Add More Refresh Rate Options
-----
| Author | Message | |
|---|---|---|
|
Thoul |
||
| Wed Mar 29, 2006 2:13 am Post subject: Add More Refresh Rate Options | ||
|
For greater control and forum security, forum administrators are able to set an option in the Administration Panel to change the refresh rate input box in Prillian user preferences to a drop down list of selections. This guide tells you how to expand this drop down list beyond the five default choices.
To add more selections, you need to know two things for each selection. First, the amount of time, in seconds, that the selection will represent. Second, the text that will be displayed for the selection (and, optionally, what that text would be in each of your forum's languages). Sixty (60) seconds is equal to one (1) minute. Now, do the OPEN and FIND actions below to locate the place where the selections are defined. On the lines following the one in the FIND action, you can define all the selections. An example selection for 30 seconds is provided below. Make sure each selection is defined in a pair, 'number of seconds' => 'selection name', like those in the file and the example. Code: #
#-----[ OPEN ]------------------------------------------ # lang_prillian.php # #-----[ FIND ]------------------------------------------ # // Include any options you want in the refresh rate drop down list here // They should be in this format: // $lang['Refresh_times']['number of seconds'] = 'name in list'; // The number of seconds can be no longer than 5 digits, unless you alter // the im_prefs database table. # #-----[ AFTER, ADD ]------------------------------------------ # # Remember, this is just an example! # $lang['Refresh_times'][30] = '30 seconds'; # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # End |
||
Page 1 of 1