Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
slash
BBCoder II
Posts: 57 Joined: 27 Oct 2011, 18:53
BBCodes: 31
Contact:
Post
by slash » 04 Jan 2012, 15:41
With this simple mod you can autorefresh your index forum page.
open:
/styles/prosilver/template/overall_header.html
find:
add before:
Code: Select all
<!-- IF not S_IS_BOT -->
<!-- IF SCRIPT_NAME == 'index' --><meta http-equiv="refresh" content="5"/><!-- ENDIF -->
<!-- ENDIF -->
change 5 to change the time for autorefresh (in second)
Last edited by
slash on 05 Jan 2012, 13:24, edited 1 time in total.
doktornotor
BBCoder IV
Posts: 167 Joined: 14 Sep 2011, 23:20
BBCodes: 30
Favourite MOD: Thanks for Posts
Contact:
Post
by doktornotor » 04 Jan 2012, 15:56
Erm... I would rather not comment on the idea itself but in case someone really insists on doing this, you
must do this in
overall_header.html
itself, and
before the closing
</head>
tag. To limit that to index page, you need to wrap that between
<!-- IF SCRIPT_NAME == 'index' --><!-- ENDIF -->
Support requests via PM go straight to /dev/null!
martin123456
BBCoder VI
Posts: 765 Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:
Post
by martin123456 » 04 Jan 2012, 16:39
Nice little server over load if there's a few site watchers lol
Tested with 2 seconds refresh and pushed my cpu right up on my server machine hate to think if there was a few watchers
Vox Populi
BBCoder III
Posts: 135 Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:
Post
by Vox Populi » 04 Jan 2012, 21:52
When I was a NUB I tried auto refresh every 15 minutes but found it was not for me. Not in a forum. I do use it in a few parts of the main site and blog but forums?? Interferes too much with the users.
Mind you, I am not slamming what you are doing... It's your site. Just MO is all this is. Thanks for sharing too.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
FTH
BBCoder III
Posts: 124 Joined: 25 Nov 2011, 23:28
BBCodes: 10
Contact:
Post
by FTH » 04 Jan 2012, 22:48
Hi,
and if you add simply a bottom on your overall_footer ?
example (for my code)
Open files styles/prosilver/overall_footer.html
Find :
Code: Select all
<div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a>® Forum Software © phpBB Group
<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
</div>
Replace with :
Code: Select all
<div class="copyright">
<form action="" method=post>
<p><input type=button name="bottom" value="{L_REFRESH}" onclick='parent.location="javascript:location.reload()"'>
</form></p>
Powered by <a href="http://www.phpbb.com/">phpBB</a>® Forum Software © phpBB Group
<!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->
<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
<!-- IF U_ACP --><br /><strong><a href="{U_ACP}">{L_ACP}</a></strong><!-- ENDIF -->
</div>
Open files language/en/common.php
Find :
Add after :
http://graphogames.fr/demo/index.php
See at the bottom on board and click on button "Refresh"
Vox Populi
BBCoder III
Posts: 135 Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:
Post
by Vox Populi » 04 Jan 2012, 22:54
Now you're talking! Nice work and simple. Me like
That turns the control over to the user.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
Solidjeuh
BBCoder IV
Posts: 257 Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:
Post
by Solidjeuh » 04 Jan 2012, 22:54
F5 ?
Vox Populi
BBCoder III
Posts: 135 Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:
Post
by Vox Populi » 04 Jan 2012, 22:58
Solidjeuh wrote: F5 ?
That too...
Danke.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss
martin123456
BBCoder VI
Posts: 765 Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:
Post
by martin123456 » 04 Jan 2012, 23:23
Solidjeuh wrote: F5 ?
And if you cant be assed to lift a finger click refresh in the browser lol
Vox Populi
BBCoder III
Posts: 135 Joined: 27 Jul 2011, 15:44
BBCodes: 51
Favourite BBCode: YouTube
Favourite MOD: mChat, Welcome on Index
Location: Index,WA
Contact:
Post
by Vox Populi » 04 Jan 2012, 23:28
Or record a macro that does it for you... Oh, this can go on forever.
Be who you are and say what you feel.
Those who mind don't matter.
Those who matter don't mind.
- Dr. Seuss