![]() |
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. :):cool: |
|
I've tried this one so many times, it doens't show up new posts for me
|
Quote:
|
You have to set the settings correctly lol.
|
Quote:
|
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)')); 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. |
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:
|
All times are GMT. The time now is 12:11 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:
|