Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto refresh from guest or usergroup or all member! Details »»
Auto refresh from guest or usergroup or all member!
Version: 1.00, by Limode Limode is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.3 Rating:
Released: 08-22-2009 Last Update: Never Installs: 4
Template Edits
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-23-2009, 05:21 PM
PaylaX PaylaX is offline
 
Join Date: Apr 2008
Location: Turkiye
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for codes, but these codes not valid XHTML,

Code:
<meta http-equiv="refresh" content="xs" />
Please update first post, thanks again:up:
Reply With Quote
  #3  
Old 08-23-2009, 06:02 PM
Limode's Avatar
Limode Limode is offline
 
Join Date: May 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PaylaX View Post
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)
Reply With Quote
  #4  
Old 08-25-2009, 05:34 PM
multiplex multiplex is offline
 
Join Date: Jun 2009
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what does this mod do? please explain or provide an example of what a user can expect
Reply With Quote
  #5  
Old 08-29-2009, 12:42 PM
PaylaX PaylaX is offline
 
Join Date: Apr 2008
Location: Turkiye
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by multiplex View Post
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.
Reply With Quote
  #6  
Old 08-29-2009, 05:26 PM
multiplex multiplex is offline
 
Join Date: Jun 2009
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

ok thanks
Reply With Quote
  #7  
Old 03-31-2011, 08:12 AM
maxc0der maxc0der is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 07-22-2011, 01:03 AM
benative's Avatar
benative benative is offline
 
Join Date: Oct 2009
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can I just make it refresh once??? not looping (over and over)??
Reply With Quote
  #9  
Old 08-02-2011, 08:06 AM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I enable this for multiple user groups in one <if> statement please?
Reply With Quote
  #10  
Old 08-03-2011, 09:09 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by furnival View Post
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.
Reply With Quote
Благодарность от:
BASHEER
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04737 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (13)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete