The Arcive of vBulletin Modifications Site. |
|
Auto refresh from guest or usergroup or all member! Details »»
|
|||||||||||||||||||||||||||
|
Auto refresh from guest or usergroup or all member!
Developer Last Online: Mar 2013
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> Code:
<meta http-equiv="refresh" content="xs" /> Code:
<head> Code:
<if condition="$show['guest']"> <!-- guest auto refresh --> <meta http-equiv="refresh" content="xs" /> <!-- / guest auto refresh --> </if> Code:
<head> Code:
<if condition="$post['usergroupid'] == x"></if> <!-- auto refresh --> <meta http-equiv="refresh" content="xs" /> <!-- / auto refresh --> </if> Code:
<head> Code:
<if condition="$bbuserinfo['userid'] == x"> <!-- auto refresh --> <meta http-equiv="refresh" content="xs" /> <!-- / auto refresh --> </if> x : id xs : seconds Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
thanks for codes, but these codes not valid XHTML,
Code:
<meta http-equiv="refresh" content="xs" /> |
|
#3
|
||||
|
||||
|
Quote:
Have a meta tag valid XHTML ? Look at verify meta tag by google webmaster tools : Quote:
|
|
#4
|
|||
|
|||
|
what does this mod do? please explain or provide an example of what a user can expect
|
|
#5
|
|||
|
|||
|
Quote:
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. |
|
#6
|
|||
|
|||
|
i c now. kinda of like how whose online page refreshes automatically
ok thanks |
|
#7
|
|||
|
|||
|
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> |
|
#8
|
||||
|
||||
|
can I just make it refresh once??? not looping (over and over)??
|
|
#9
|
|||
|
|||
|
How do I enable this for multiple user groups in one <if> statement please?
|
|
#10
|
||||
|
||||
|
Quote:
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> 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> |
| Благодарность от: | ||
| BASHEER | ||
![]() |
|
|