Version: , by MrLister
Developer Last Online: Oct 2012
Version: 2.2.x
Rating:
Released: 10-31-2001
Last Update: Never
Installs: 85
No support by the author.
Somebody here request it so I made it quickly.... Basically this hack here tells your users how many new posts and threads there have been since hteir last visit on the main page.
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
In the template forumhome_welcometext find:
PHP Code:
Welcome back, <b>$bbuserinfo[username]</b>
right under it add:
PHP Code:
<br>There have been <b>$getnewthread[threads]</b> threads and <b>$getnewpost[posts]</b> posts since your last visit!
That's it! If you installed the hack please click the install button!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by FireFly Lesane, there's no link on my numbers.
LuBi, it invloves a lot of new code and templates, I can just "post it all".
Hey Firefly/MrLister thanks for the cool hacks. I've been playing around with this myself, I think I got a decent version working and I wrote it up for an admin friend as a walkthrough. I hope you don't mind, but I used your hack (fully credited of course ) and posted a template/hack thing. I think it's cool, and I think it's what LuBi is looking for....
Hey there! Just wanted to let you know that on my small board (average 100+ users) it worked great, however, when I got it on my big board (400+ users) it dragged it down quite a bit! Those two extra queries made a big difference when index.php gets hit a ton of times
Originally posted by Me2Be Hey there! Just wanted to let you know that on my small board (average 100+ users) it worked great, however, when I got it on my big board (400+ users) it dragged it down quite a bit! Those two extra queries made a big difference when index.php gets hit a ton of times
I installed this hack last night and it was working fine, I then did this..
Went into the forumhome_welcometext template and took out the user name code from it and place it in my forumhome display template (I did becuase I want it to display 'wELCOME BACK USER NAME on top line, then dispaly x new threads x new posts few lines under this)
After I did this - I refreshed and instead of saying Welcome back Admin.. it said Welcome back anothermembersname ???????
I then quickly took out the user name code from the index template and put it back in the forum home_welcometext template - things were all sound again!!
Now today.. other people are saying to me that it says Welcome back differentusername instead of their own name.. The name its displaying is from the online users lists.. Whats going on??
Originally posted by Bimma Boy I installed this hack last night and it was working fine, I then did this..
Went into the forumhome_welcometext template and took out the user name code from it and place it in my forumhome display template (I did becuase I want it to display 'wELCOME BACK USER NAME on top line, then dispaly x new threads x new posts few lines under this)
After I did this - I refreshed and instead of saying Welcome back Admin.. it said Welcome back anothermembersname ???????
I then quickly took out the user name code from the index template and put it back in the forum home_welcometext template - things were all sound again!!
Now today.. other people are saying to me that it says Welcome back differentusername instead of their own name.. The name its displaying is from the online users lists.. Whats going on??