
02-02-2006, 10:42 PM
|
|
|
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by thisgeek
Disabling auto refresh and adding a 'refresh' button
Go to style manager, and edit (or customize) the template forumhome_vbshout
Find text:
HTML Code:
<input type="submit" value="Shout" class="button" />
And add immediately BELOW it:
HTML Code:
<input type='button' class='button' value='Refresh' onclick='requestShouts()' />
The code must go above the ' if condition' code.
This line occurs twice - add the new button to both.
THEN
Find the text:
Code:
setTimeout('requestShouts()', 10000)
And comment it out by enclosing it with /* and */ like so:
Code:
/* setTimeout('requestShouts()', 10000) */
You can also delete the line entirely.
The shoutbox will now only refresh if you a) Submit a shout, or b) hit the 'refresh' button.
|
This works very well, thank you.
|