The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Last posts since last visit!
I really need this mod for 3.7 or 3.6 if it will work on 3.7. It's a little thing under your PM's saying:
xxx Posts since last visit Does anyone have this please? thanks. |
#2
|
|||
|
|||
|
#3
|
|||
|
|||
I've tried this one so many times, it doens't show up new posts for me
|
#4
|
|||
|
|||
Yeah, it never seems to work for me either. (I use 3.7.)
|
#5
|
|||
|
|||
You have to set the settings correctly lol.
|
#6
|
|||
|
|||
Actually, I did and it still wouldn't work. I've used the mod a couple of years ago on another forum I had that operated on vBulletin 3.6 and it worked just fine then.
|
#7
|
||||
|
||||
AdminCP --> Plugins & Products --> Add New Plugin
Product: vBulletin Hook Location: global_start Title: New post on top of forums Plugin PHP Code: Code:
$newposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post AS post " . iif($vbulletin->options['threadmarking'], 'LEFT JOIN ' . TABLE_PREFIX . 'threadread AS threadread ON (threadread.threadid = post.threadid AND threadread.userid = ' . $vbulletin->userinfo['userid'] . ')') . " WHERE dateline >= " . $vbulletin->userinfo['lastvisit'] . iif($vbulletin->options['threadmarking'], ' AND dateline > IF(threadread.readtime IS NULL, ' . (TIMENOW - ($vbulletin->options['markinglimit'] * 86400)) . ', threadread.readtime)')); $newposts = vb_number_format($newposts['count']); Then put this where ever you want it in a template: Code:
$vbphrase[new_posts] since your last visit: <a href="search.php?$session[sessionurl]do=getnew">$newposts</a> I put mine at the very end of navbar. This should work on 3.7 and 3.8. |
#8
|
|||
|
|||
Having battled with this for longer than I care to remember as my members really wanted this back on the navbar and not in notifications, I have to say a massive 'THANKS' to you BBR-APBT as want you recommended worked a treat with 3.8.4.
If I dare to push the boat out what code would I need to implement to get the 'New rep since last visit' working in the same place? I'm somewhat of a novice with this stuff, hence why I'm asking. Thanks again! Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|