![]() |
Surround the template code in a check like this ;
Code:
<if condition="$bbuserinfo[userid]"> |
Quote:
|
Will this "Hack" work for V. 3.0.7?
cause this is exactly what i want, but it says v. 3.0.9 , so i want to know if it will still work for me :) Thanks -Sarv. |
It will work on any 3.0.x version.
|
I'm using 3.07 currently and my members love it!
Thanks! :) |
Possible bug?
I am not sure but it appears that the sql command affects whether threads are shown in bold or not. Example. When I posted a reply to a post it still showed the thread title in bold even though I was the last to post and had look at it. Is there a way to remove the sql? EDIT - hmm perhaps I posted on thread prior to running the sql command for lastactivity. This might explain it. |
The sql adds an index to the user table, it cannot affect how threads are displayed. :)
|
<-- clicks INSTALL :)
|
is their any version of this for 3.5.xxx I used it on 3.0.xxx and loved it, it was a very handy tool to see who was visiting the forum, but not post, and since I am not online 24hours per day, its hard to see who has been on and not posted.
|
Quote:
Hint: Aways check the author's profile for the prior version. Chances are, he upgraded it for the new version. ;) |
how to view it only admin thanks!
|
It took me 2 minutes to install this!!!! I have tons of hacks and I'm surprised I waited this long for this one and yes it works for 3.0.7. I lvoe it. Thanks... Clicked install
|
Installed Whicked :)
|
Quote:
Code:
<if condition="$bbuserinfo[userid] == 6"> |
thank! its works but we are 3 admin and only view one how to view the 3 thanks
|
<if condition="$bbuserinfo[usergroupid] == 6">
its work for admin group 6, but not view group 5 what is the code for this ?? |
upssss
|
Quote:
|
Pardon but my English one is not good and i want to do a question but I saw that was not in this section and I am wrong it I sit a greeting
|
Quote:
Code:
<if condition=" in_array($bbuserinfo[usergroupid],array('5,6') "> |
Parse error: parse error, unexpected ':' in /home/httpd/vhosts/myforum.com/httpdocs/includes/adminfunctions_template.php(3098) : eval()'d code on line 157
this is the messaje give after paste this code <if condition=" in_array($bbuserinfo[usergroupid],array('5,6') "> thanks! |
Quote:
Code:
<if condition="in_array($bbuserinfo[usergroupid],array(5,6)"> |
Quote:
Parse error: parse error, unexpected ':' in /home/httpd/vhosts/myforum.com/httpdocs/includes/adminfunctions_template.php(3098) : eval()'d code on line 157 Line 157 of adminfunctions_template.php ----> return 'col-c'; same error :disappointed: thanks! for help |
I give up - I can't see what's wrong with that, just use the old fashioned method ;
Code:
<if condition="$bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 5"> |
Quote:
Ok this method works thanks! |
PHP Code:
this is my template FORUMHOME i paste here to view wrongs thanks |
thanx a lot...installed :)
|
Is this still good to use for vb 3.5.0??
|
Quote:
|
Hi Paul
Is this still good to use for vb 3.0.3?? |
Yes.
|
Hi,
Thanks for the great hack...:rolleyes: Is it possible to show today's visitors as well? Thanks again! |
Hi, Paul M. I am using 3.0.7, I am trying to show last 24 hours instead of today but it doesn't work, only show today.
Index.php - $cutoff = TIMENOW - (substr($tnow,8,2)*3600 + substr($tnow,10,2)*60 + substr($tnow,12,2)); //$cutoff = TIMENOW - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## // I did try remove the comment line // infront $cutoff. Any clue or am I doing wrong? Thx |
Quote:
i.e. those two lines become ; Code:
$cutoff = TIMENOW - 86400 ; |
Hi Paul,
Do u think that I can use this hack an display visitors as well, or should I use another one? Thanks |
I don't really understand what you mean by "display visitors", do you mean guests ?
If so then you cannot do it, no record is kept of guests. |
yeap I meant guests (i seperate them in 2 groups users and visitors)...
ok, thanks anyway... |
Hi Paul, thanks for help, I followed what you said.
But "Last 24 hours" text doesn't show, just "visited today"... Now index.php shows: $tnow = date('YmdHis',TIMENOW - $vboptions['hourdiff']); $cutoff = TIMENOW - 86400 ; |
Quote:
|
oh okay, I've edited the template. No problem so far. This is great mod hack! Thank you :)
|
All times are GMT. The time now is 05:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|