Phpbb Autorefrash

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!
User avatar
slash
BBCoder II
BBCoder II
Posts: 57
Joined: 27 Oct 2011, 18:53
BBCodes: 31
Contact:

Phpbb Autorefrash

Post by slash »

With this simple mod you can autorefresh your index forum page.

open:
/styles/prosilver/template/overall_header.html

find:

Code: Select all

</head>
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.
User avatar
doktornotor
BBCoder IV
BBCoder IV
Posts: 167
Joined: 14 Sep 2011, 23:20
BBCodes: 30
Favourite MOD: Thanks for Posts
Contact:

Phpbb Autorefrash

Post by doktornotor »

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 -->

:shock: :!:
Support requests via PM go straight to /dev/null!
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Phpbb Autorefrash

Post by martin123456 »

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
User avatar
Vox Populi
BBCoder III
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:

Phpbb Autorefrash

Post by Vox Populi »

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
User avatar
FTH
BBCoder III
BBCoder III
Posts: 124
Joined: 25 Nov 2011, 23:28
BBCodes: 10
Contact:

Phpbb Autorefrash

Post by FTH »

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>&reg; Forum Software &copy; 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>&reg; Forum Software &copy; 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 :

Code: Select all

'REDIRECTS'					=> 'Total redirects',
Add after :

Code: Select all

'REFRESH'					=> 'Refresh',
http://graphogames.fr/demo/index.php

See at the bottom on board and click on button "Refresh" ;)
User avatar
Vox Populi
BBCoder III
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:

Phpbb Autorefrash

Post by Vox Populi »

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
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

Phpbb Autorefrash

Post by Solidjeuh »

F5 ? :P
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
Vox Populi
BBCoder III
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:

Phpbb Autorefrash

Post by Vox Populi »

Solidjeuh wrote:F5 ? :P
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
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Phpbb Autorefrash

Post by martin123456 »

Solidjeuh wrote:F5 ? :P
And if you cant be assed to lift a finger click refresh in the browser lol
User avatar
Vox Populi
BBCoder III
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:

Phpbb Autorefrash

Post by Vox Populi »

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
Locked