Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 09-07-2008, 12:08 AM
xGriffin xGriffin is offline
 
Join Date: Dec 2007
Location: Australia
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 09-07-2008, 08:22 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Search and you will find

Display Unread Posts and New Reputation Comments
Reply With Quote
  #3  
Old 09-19-2008, 07:23 AM
xGriffin xGriffin is offline
 
Join Date: Dec 2007
Location: Australia
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried this one so many times, it doens't show up new posts for me
Reply With Quote
  #4  
Old 12-02-2009, 09:07 PM
Elizabeth_1977 Elizabeth_1977 is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xGriffin View Post
I've tried this one so many times, it doens't show up new posts for me
Yeah, it never seems to work for me either. (I use 3.7.)
Reply With Quote
  #5  
Old 12-03-2009, 12:39 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to set the settings correctly lol.
Reply With Quote
  #6  
Old 12-03-2009, 02:13 AM
Elizabeth_1977 Elizabeth_1977 is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChopSuey View Post
You have to set the settings correctly lol.
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.
Reply With Quote
  #7  
Old 12-03-2009, 03:24 AM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']);
Plugin is Active: yes


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.
Reply With Quote
  #8  
Old 12-08-2009, 06:59 AM
Braders Braders is offline
 
Join Date: Apr 2007
Location: Moscow
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally Posted by BBR-APBT View Post
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']);
Plugin is Active: yes


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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04024 seconds
  • Memory Usage 2,225KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete