vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Auto refresh from guest or usergroup or all member! (https://vborg.vbsupport.ru/showthread.php?t=221575)

Limode 08-22-2009 10:00 PM

Auto refresh from guest or usergroup or all member!
 
1 Attachment(s)
Here is auto refresh from guest using meta tag,
Browser supported : IE, FF, Opera

In template where you want refresh find :

From all :
Code:

<head>
After add :
Code:

<meta http-equiv="refresh" content="xs" />
From Guest only :
Code:

<head>
After add :
Code:

<if condition="$show['guest']">
<!-- guest auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / guest auto refresh -->
</if>

From a usergroup :
Code:

<head>
After add :
Code:

<if condition="$post['usergroupid'] == x"></if>
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>

From a member :
Code:

<head>
After add :
Code:

<if condition="$bbuserinfo['userid'] == x">
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>

Note :
x : id
xs : seconds

PaylaX 08-23-2009 05:21 PM

thanks for codes, but these codes not valid XHTML,

Code:

<meta http-equiv="refresh" content="xs" />
Please update first post, thanks again:up:

Limode 08-23-2009 06:02 PM

Quote:

Originally Posted by PaylaX (Post 1872833)
thanks for codes, but these codes not valid XHTML,

Code:

<meta http-equiv="refresh" content="xs" />
Please update first post, thanks again:up:

Thanks PaylaX,
Have a meta tag valid XHTML ? Look at verify meta tag by google webmaster tools :
Quote:

1 Error, 3 warning(s)
:)

multiplex 08-25-2009 05:34 PM

what does this mod do? please explain or provide an example of what a user can expect

PaylaX 08-29-2009 12:42 PM

Quote:

Originally Posted by multiplex (Post 1874223)
what does this mod do? please explain or provide an example of what a user can expect

I think its clear, "auto refresh" is benefit to refresh the current page of any x time.

For example; you may put the codes in forumhome template's, so , the forumhome page is refresh after the x second without need your click any button or f5.

multiplex 08-29-2009 05:26 PM

i c now. kinda of like how whose online page refreshes automatically

ok thanks

maxc0der 03-31-2011 08:12 AM

If you need it for vBulletin 4:
Code:

<vb:if condition="$show['guest']">
<!-- guest auto refresh -->
<meta http-equiv="refresh" content="180" />
<!-- / guest auto refresh -->
</vb:if>


benative 07-22-2011 01:03 AM

can I just make it refresh once??? not looping (over and over)??

furnival 08-02-2011 08:06 AM

How do I enable this for multiple user groups in one <if> statement please?

BirdOPrey5 08-03-2011 09:09 AM

Quote:

Originally Posted by furnival (Post 2228072)
How do I enable this for multiple user groups in one <if> statement please?


The code given for one usergroup is:
Code:

<if condition="$post['usergroupid'] == x"></if>
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>

But that is wrong- $post['usergroupid'] is only valid in posts- the correct variable I believe the author meant is: $bbuserinfo['usergroupid']

And for multiple usergroups:

Code:

<if condition="is_member_of($bbuserinfo, x, y, z)"></if>
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>

Where x, y, and z and usergroupids... you can add more with additional commas.

SoniaTel 12-27-2012 11:12 AM

Great

thank u


All times are GMT. The time now is 07:14 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.01139 seconds
  • Memory Usage 1,737KB
  • 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
  • (13)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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