Welcome, Guest. Please Login or Register.
May 09, 2025, 03:56:13 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Auto update feature? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Auto update feature?  (Read 726 times)
Galt
Jr. Member
**
Posts: 68


I am NOT a llama!

WWW
Auto update feature?
« on: December 20, 2002, 05:50:26 AM »
Reply with quote

I'm running two seperate Yabb forums.  The first is running on Yabb gold and I have a mod on it to allow the page to auto-update every 90 seconds.  I've been unable to locate a similar mod for YabbSE.  Is one in the works?

Yeah, I know, it eats up bandwidth and processor time but I'm willing to give it up for this particular feature.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Auto update feature?
« Reply #1 on: December 20, 2002, 06:53:17 AM »
Reply with quote

Can't you do this with a meta tag in your template?
Logged

Galt
Jr. Member
**
Posts: 68


I am NOT a llama!

WWW
Re:Auto update feature?
« Reply #2 on: December 21, 2002, 05:13:49 AM »
Reply with quote

I'm a bit of a dunce when it comes to code.  :-\  The fellow who set things up for me hasn't been available lately so I figured I'd ask you folks about this.  I guess this doesn't really belong in this forum if it can be done with a meta-tag.  Sorry about that.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Auto update feature?
« Reply #3 on: December 21, 2002, 05:16:41 AM »
Reply with quote

Try putting this in the head section of your template.

<meta http-equiv="refresh" content="90">
Logged

Galt
Jr. Member
**
Posts: 68


I am NOT a llama!

WWW
Re:Auto update feature?
« Reply #4 on: December 21, 2002, 07:07:07 AM »
Reply with quote

Thanks!  I'll try that.
Logged

klumy
Sr. Member
****
Posts: 432


Re:Auto update feature?
« Reply #5 on: December 21, 2002, 09:01:34 AM »
Reply with quote

Don't forget if you and all the other users use Autorefresh your traffic will increase dramatically. And you have to pay more for your hosting.
This is my experienced.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Auto update feature?
« Reply #6 on: December 21, 2002, 09:02:10 AM »
Reply with quote

Quote from: klumy on December 21, 2002, 09:01:34 AMDon't forget if you and all the other users use Autorefresh your traffic will increase dramatically. And you have to pay more for your hosting.
This is my experienced.
And if someone takes over 90 seconds to post it will autorefresh the post screen too.
Logged

klumy
Sr. Member
****
Posts: 432


Re:Auto update feature?
« Reply #7 on: December 21, 2002, 12:57:52 PM »
Reply with quote

This function brings more problems than you think.
I wouldn't install it on my page ;)
Logged
Galt
Jr. Member
**
Posts: 68


I am NOT a llama!

WWW
Re:Auto update feature?
« Reply #8 on: December 22, 2002, 03:24:19 AM »
Reply with quote

LOL.  You folks are dead on there.  I put it on.  It's back off now though.  Well, that's one bit of "functionality" that I can live without.  
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Auto update feature?
« Reply #9 on: December 22, 2002, 05:20:19 AM »
Reply with quote

Quote from: Galt on December 22, 2002, 03:24:19 AMLOL.  You folks are dead on there.  I put it on.  It's back off now though.  Well, that's one bit of "functionality" that I can live without.  
lmao  ;D
Logged

DeadSeraphim
Noobie
*
Posts: 9


I'm a llama!

Re:Auto update feature?
« Reply #10 on: December 26, 2002, 07:51:59 PM »
Reply with quote

Taken from the documationation of the Who's Online mod, if you're wanting to only refresh under certain conditions, the following can be placed in the <HEAD> of your template instead to achive the same effect, and tweaked by condition (in this example, when viewing the Who's Online):

<?
global $action;
if ($action == "who") {
  print " <meta http-equiv=\"refresh\" content=\"60; url=$scripturl?action=$action\">\n";
}
?>
Logged
MarcoMan
Noobie
*
Posts: 15


Yeah, I'm a newbie

WWW
Re:Auto update feature?
« Reply #11 on: January 13, 2003, 10:24:37 PM »
Reply with quote

The exact code I used for this is as follows:

<?
global $action;
global $board;
   if ($action == "" && $board == "")
     print " <meta http-equiv=\"refresh\" content=\"90; url=$scripturl?action=$action\">\n";
   if ($action == "expandcat" || $action == "collapsecat" )
     print " <meta http-equiv=\"refresh\" content=\"90; url=$scripturl?action=$action\">\n";
?>

All you need to do is insert this into your forum template just before the <BODY text=#xxxxxx link=#xxxxxx bgColor=#xxxxxx> tag.

This will only update the main board every 90 seconds. And, because I have the collapsable categories mod, I have the second if statement to refresh after someone has expanded or collapsed a category.

Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Auto update feature? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.034 seconds with 20 queries.