vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Refresh homepage every X Seconds (https://vborg.vbsupport.ru/showthread.php?t=108314)

CrazyShooter 02-17-2006 10:00 PM

Refresh homepage every X Seconds
 
This is my very first mod so go easy on me!

This mod will make your homepage automaticly refresh to how ever many seconds you choose!

In FORUMHOME Find:
Code:

$headinclude
And add above:
Code:

<meta http-equiv="refresh" content="XX"; url=" />
Where XX is change to the number of seconds you want in between every refresh

60: 1 minute


PLEASE CLICK INSTALL

G_Man 02-18-2006 08:06 PM

Too Cool !!

Hard to believe that is all it took.

Installed and checking it now. Thanks for that!!

CrazyShooter 02-18-2006 08:33 PM

lol, i might adapt this so that it will have its own option in the vbulletin options, but bare in mind this is the first hack i released :)

G_Man 02-18-2006 08:45 PM

Quote:

Originally Posted by CrazyShooter
lol, i might adapt this so that it will have its own option in the vbulletin options, but bare in mind this is the first hack i released :)


You might want to add in the instructions something about adding your own url in the code like you did with the time setting.

And an AdminCP function would of course be the professional finishing touch, but as is, I love this. It was one of my two "wish list" mods in fact. :D

Thanks again.

bashy 02-19-2006 09:23 AM

Hi

I have tried this and it works well...
There is a down side to having this....

If you have a shoutbox of ny kind then auto refreshing of the page
will not go down too well, as whilst typing in the box and it refreshes
you will lose all that you have typed lol

Great idea btw but i cant use it, well done :)

Floris 02-19-2006 09:47 AM

<meta http-equiv="refresh" content="XX; url=" />

content="x"

values for parameters should be inside the " .. "

CrazyShooter 02-19-2006 02:41 PM

sorry about that, just a typo error

nufc fan 02-20-2006 05:54 PM

nice and simple works a treat cheers mate.

ChuckH 02-24-2006 01:26 AM

How would you do it with showthread or forumhome? Something that has info after the .php?

For example, http://www.YOURSITE.com/forumdisplay.php?f=27

How would you refresh that without losing the f=27?

trigon 02-24-2006 03:30 AM

installed, BUT: on the forumhome they shows me this:
function largerThan(a,b) { return a>b; }
Changed the time from 60 to 30 but no change. :(

Edit: Now it works, i delete this: url="

ChuckH 02-24-2006 04:11 PM

Quote:

Originally Posted by ChuckH
How would you do it with showthread or forumhome? Something that has info after the .php?

For example, http://www.YOURSITE.com/forumdisplay.php?f=27

How would you refresh that without losing the f=27?

Anybody?

Iain M 02-25-2006 01:12 PM

Quote:

Originally Posted by ChuckH
Anybody?

you just want it for forum id 27? or with all forums?

if you want it for all forums you would just edit the FORUMDISPLAY template and add the code above
Code:

$headinclude
for showthread you would just edit the SHOWTHREAD template and do the same...

Rukbat 03-28-2006 10:13 PM

Quote:

Originally Posted by CP1
you just want it for forum id 27? or with all forums?

if you want it for all forums you would just edit the FORUMDISPLAY template and add the code above
Code:

$headinclude
for showthread you would just edit the SHOWTHREAD template and do the same...


Is it possible for the 'newposts' to auto-refresh, and if so, change what where?

gothicuser 03-29-2006 03:04 AM

Quote:

Originally Posted by bashy
Hi

I have tried this and it works well...
There is a down side to having this....

If you have a shoutbox of ny kind then auto refreshing of the page
will not go down too well, as whilst typing in the box and it refreshes
you will lose all that you have typed lol

Great idea btw but i cant use it, well done :)

:tired::tired: Same here, took a few hours before the PM's started to come in from disgruntled members tho' :D

Iain M 03-29-2006 09:00 AM

Quote:

Originally Posted by Rukbat
Is it possible for the 'newposts' to auto-refresh, and if so, change what where?

this hack was released a couple of days ago

https://vborg.vbsupport.ru/showthread.php?t=111494

Rukbat 03-29-2006 03:05 PM

thanks :D

basketmen 12-09-2006 02:53 PM

Quote:

Originally Posted by Iain M (Post 909900)
you just want it for forum id 27? or with all forums?

if you want it for all forums you would just edit the FORUMDISPLAY template and add the code above
Code:

$headinclude
for showthread you would just edit the SHOWTHREAD template and do the same...



Where to edit the on specific SHOWTHREAD template like example f=27?


All times are GMT. The time now is 02:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01118 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete