Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Cyb - Advanced 'New Posts' (AJAX) Details »
Cyb - Advanced 'New Posts' (AJAX)
Mod Version: 2.4, by Valter (Coder) Valter is offline
Developer Last Online: May 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (22 votes - 4.50 average) Installs: 423
Released: 10 Jan 2009 Last Update: 17 Jan 2009 Downloads: 2542
Not Supported Uses Plugins Auto-Template  

Info:
This hack will show how many new posts/threads have been posted in forums since 'last visit' time. "New Posts" in navbar menu will be replaced with "New Posts: x (In y Threads)" which is updated via AJAX - no page refresh. User can manually check for new posts, or you can enable auto-check which is executed in defined time interval. Optionally you can enable and configure Smart Search Menu to give users ability to search only selected forum sections. See screenshots...


Installation:
Import product XML: AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced 'New Posts'


Versions:
v1.0 - Apr 29. 2006.
-First version
v1.5 - Jun 25. 2006.
-Added - advanced searching of new posts (see screenshots)
-Fixed known bugs, code optimized
v1.6 - Jun 26. 2006.
-Advanced searching of new posts splitted into two navbar items
v1.7 - Jun 28. 2006.
-Depending on number of new posts different phrase is used
-Added links to phrases to hack options page so you can easily find and change/translate them.
v1.8 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.9 - Sep 28. 2006.
-Added Product Version Checking
-Fixed links to phrases in ACP (used to easily customize phrases)
-Added option to change text color
-Fixed bug (unneeded extra space after "SSM" in navbar menu)
-Product name changed to "Cyb - Advanced 'New Posts'"
NOTE: Before upgrading save somewhere content of "Menu Items" field to restore it after upgrade. It will be removed during upgrade process.
v2.0 - Jul 31. 2007.
-Added "No New Posts" to show when there is no new posts after user last visit
-Smart Search Menu (SSM) improved (no more need to write lines of code, just put forum IDs in setting field)
-SSM automatically hidden when there is no new posts
-A lot of improvements and optimization done, including:
*two templates removed
*improved integration with different styles (to avoid manual template edits)
v2.1 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed
v2.2 - Jan 14. 2009.
-New: New post check is now done via AJAX - no page refresh ;-)
-New: Auto-check for new posts every x seconds
-Ability to set order of items in Smart Search Menu
-Minor bugs fixed
v2.3 - Jan 15. 2009.
-New: Set how often user can manually check for new posts
-New: Option to colorize text only when there are new posts
-New: Option to disable product in selected styles
-Fixed some minor bugs
v2.4 - Jan 18. 2009.
-Added permissions check to fix problems where sometimes incorrect numbers are shown
-Fixed bug where unexpected content is shown on user session expiration


Mark as installed to get support and updates.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	anp.png
Views:	9148
Size:	25.4 KB
ID:	92588   Click image for larger version

Name:	acp.png
Views:	2212
Size:	71.4 KB
ID:	92764  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Statistics Modifications AJAX - Advanced Forum Statistics ry215 vBulletin 3.7 Add-ons 190 07 Jul 2011 20:31
Forum Home Enhancements [AJAX] SmnLikQuick v2.0 - Advanced Announcements Block Bree vBulletin 3.7 Add-ons 475 05 May 2011 19:51
Statistics Modifications [AJAX]ChangUonDyU - Advanced Statistics spitb19 Modification Graveyard 22 29 Jan 2009 06:35

  #211  
Old 24 Aug 2010, 18:26
trotskid trotskid is offline
 
Join Date: Feb 2009
Not working on my 3.8.4.
Reply With Quote
  #212  
Old 30 Aug 2010, 02:05
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Real name: Steven
Thumbs down

This decimated our server when tried to implement on a "big board" No matter how long I made between searches it ground our server to a halt.

Uninstalled...
Reply With Quote
  #213  
Old 16 Sep 2010, 04:51
muckleroy muckleroy is offline
 
Join Date: Mar 2009
same issue as many others

I've spent the last couple of days figuring out how to make this work with a custom style that has the navbar in header. I'm a long time IT person, but new to HTML and PHP. Anyway I have it working but it fails to decrement the new posts as I read the posts.
The only way to get the count to update is to log off and log back on to the site.

I'm running 2.4 and 3.8 vBulletin. I'm continuing to hack at it, but if anyone has a suggestion where to look, I would greatly appreciate it.
Reply With Quote
  #214  
Old 25 Sep 2010, 18:53
Xexiu Xexiu is offline
 
Join Date: May 2008
Real name: Sergiu Mironescu
Hello,

I have a simple question. How can I delete the "new posts :" ?

I want to delete the bold thing ( : ), but I can't find it. I searched in phrases but I still didn't find it .

I would be much appreciated if you can land me a hand.
Thank you.
Reply With Quote
  #215  
Old 30 Nov 2010, 22:50
nexus_dublin nexus_dublin is offline
 
Join Date: Dec 2006
Had to uninstall as counts displayed do not match counts/threads displayed on the new messages page (search.php?do=getnew)
Reply With Quote
  #216  
Old 30 Nov 2010, 23:17
nexus_dublin nexus_dublin is offline
 
Join Date: Dec 2006
Originally Posted by Xexiu View Post
I want to delete the bold thing ( : ), but I can't find it. I searched in phrases but I still didn't find it .
Open cyb_advancednewposts template and your colons are in these two lines:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #217  
Old 15 Dec 2010, 14:54
MikesSite MikesSite is offline
 
Join Date: Jan 2009
Some of our members lately have been experiencing the "Error - 400" page loading where it says "New Posts" in navbar. Any ideas?
Reply With Quote
  #218  
Old 21 Mar 2011, 00:14
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Just installed. Seems to be working fine on my main forum pages.

It stays on "checking" on my main home page that uses VbAdvanced.

Any idea how to fix?

D.
Reply With Quote
  #219  
Old 30 Mar 2011, 18:54
Fenriz Fenriz is offline
 
Join Date: Aug 2002
This hack rises a high load on a big board (200-300 registered users online). Any chance to make it lower? Is it possible to optimize this hack?
Reply With Quote
  #220  
Old 28 Nov 2011, 22:32
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Originally Posted by dvsDave View Post
Feature Request: Can forum permissions be integrated into this? I want my moderators to be able to see new posts in their private forum, but I don't want normal users to even know it exists.
Had to uninstall due to lack of this feature... or what I might call a bug. My staff wants the ability to see some of our private forums in the new posts search, but we do not want regular members to know these exist... NOT cool. If you ever get it fixed, let me know... I might reinstall it.
Reply With Quote
  #221  
Old 28 Nov 2011, 22:57
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Real name: Sara
For some reason it stopped working for me at all. I did work on the same version and server before, but not anymore. Is it possible something is blocking it?
__________________
Reply With Quote
  #222  
Old 04 Dec 2011, 23:19
WendM's Avatar
WendM WendM is offline
 
Join Date: Apr 2010
Location: DisUnited Kingdom
Real name: Wendolene
tried to click your for your good advice but it denied me the option, so thanks for solving my issue!

Originally Posted by Trek View Post
Blue91,

Someone else helped me with this outside of this thread... drop this variable $cyb_anp where ever you want the "new Posts" link to show up in your style. Works great!
__________________
Reply With Quote
  #223  
Old 28 Dec 2011, 15:04
oxblood12's Avatar
oxblood12 oxblood12 is offline
 
Join Date: Oct 2006
thanks for add
Reply With Quote
  #224  
Old 07 Nov 2014, 10:15
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Got this running fine on vb 3.8.5 with a custom style.

I added this line to my Navbar template in order to get it to show up as it wasn't showing up automatically:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then to get it working on vBAdvanced home page I added the following to the Portal Output Global Variables section in the Main Settings option under the vBa CMPS settings page.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's working perfectly. With no noticeable increase in server load....yet *touchwood*
__________________
Marine Aquariums
Reply With Quote
  #225  
Old 11 Jun 2015, 19:29
pet0etie pet0etie is offline
 
Join Date: May 2009
if u have a database with a prefix, the query isn't working

current version :

SELECT COUNT(*) AS posts, post.threadid, thread.forumid FROM " . TABLE_PREFIX . "post LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = post.threadid) WHERE post.visible = '1' $cybanp_exclforums AND post.dateline >= " . $db->escape_string($vbulletin->userinfo['lastvisit']) . " GROUP BY post.threadid

correct version :

SELECT COUNT(*) AS posts, post.threadid, thread.forumid FROM " . TABLE_PREFIX . "post as post LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = post.threadid) WHERE post.visible = '1' $cybanp_exclforums AND post.dateline >= " . $db->escape_string($vbulletin->userinfo['lastvisit']) . " GROUP BY post.threadid

otherwise the result will always be 0
thanks for correcting this !
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 05:42.

Layout Options | Width: Wide Color: