summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHash9 <hash9@users.sourceforge.net>2006-07-21 23:58:45 +0000
committerHash9 <hash9@users.sourceforge.net>2006-07-21 23:58:45 +0000
commit3ec6674d5552ede082e26634a73a2ef15dc7c8b1 (patch)
tree966ef5f1e1684d546245bb819c1b67832ee81c0a /modules
parent58677f0ca02b26bfff031dd8152a90e1b0e2d28c (diff)
downloadboards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.tar.gz
boards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.tar.bz2
boards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.zip
Add RSS feeds of boards, Topic reply display, Topic reply notification, Locked threads (the threads are now actually locked)
Diffstat (limited to 'modules')
-rw-r--r--modules/userprefs.php31
-rw-r--r--modules/userprefs.tpl29
2 files changed, 0 insertions, 60 deletions
diff --git a/modules/userprefs.php b/modules/userprefs.php
deleted file mode 100644
index a8617a0..0000000
--- a/modules/userprefs.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-$title ="Boards";
-
-$boardsSettings = array(
- 'show_avatars' => array(
- 'pref' => 'boards_show_avatars',
- 'label' => "Show Avatars",
- 'type' => "checkbox",
- 'default'=> 'y',
- 'note' => "",
- ),
- 'signature' => array(
- 'pref' => 'boards_signature',
- 'label' => "Board Post Signature",
- 'type' => "text",
- 'default'=> '',
- 'note' => "",
- ),
-);
-
-foreach( $boardsSettings as $option => $op) {
- if ($op['type']=="checkbox") {
- $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? 'y' : 'n', 'users');
- } else {
- $editUser->storePreference($op['pref'], !empty( $_REQUEST['boards'][$option]) ? $_REQUEST['boards'][$option] : '', 'users');
- }
-}
-
-$gBitSmarty->assign('boardsSettings',$boardsSettings);
-
-?> \ No newline at end of file
diff --git a/modules/userprefs.tpl b/modules/userprefs.tpl
deleted file mode 100644
index 882d9d1..0000000
--- a/modules/userprefs.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{assign var=package value='boards'}
-{assign var=title value=$package|ucwords}
-{strip}
-{form legend=$title}
- {foreach from=$boardsSettings key=option item=output}
- <div class="row">
- {assign var='pref' value=$output.pref}
- {if $userPrefs.$pref == null}
- {assign var='value' value=$output.default}
- {else}
- {assign var='value' value=$userPrefs.$pref}
- {/if}
- {formlabel label=$output.label for=$option}
- {forminput}
- {if $output.type == 'text'}
- <input type="text" maxlength="250" size="250" name="boards[{$option}]" id="boards[{$option}]" value="{$value|escape}" />
- {else}
- {html_checkboxes name="boards[$option]" values="y" checked=$value labels=false id="boards[$option]"}
- {/if}
- {formhelp note=`$output.note` page=`$output.page` link=`$output.link`}
- {/forminput}
- </div>
- {/foreach}
-
- <div class="row submit">
- <input type="submit" name="boards[submit]" value="{tr}Change preferences{/tr}" />
- </div>
-{/form}
-{/strip}