Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VSa - Advanced 'New Posts' (AJAX) Details »»
VSa - Advanced 'New Posts' (AJAX)
Version: 3.0.3, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 01-16-2010 Last Update: 05-20-2012 Installs: 580
Uses Plugins Auto-Templates
 
No support by the author.

Info:
This hack will show how many new posts/threads have been posted in forums since your 'last visit'. New posts are checked via AJAX, manually or in defined time interval. Optionally you can enable and configure Smart Search Menu to give users ability to search individual forum sections. View screenshots...

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

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

Versions:
v1.0 - Apr 29. 2006.
-First version
v2.4 - Jan 18. 2009.
-Latest 3.x version
v3.0 - Jan 17. 2010.
-Updated for vBulletin 4.x
-Mod prefix (Cyb) changed to 'VSa'
v3.0.1 - Jan 17. 2010.
-Fixed bug where individual forum search does not work properly
-Fixed bug where product is not stopped when forums are turned off
v3.0.2 - Apr 11. 2010.
-Fixed: WOL confusion
-New: Compatible with DB thread/forum read marking types
-New: Navbar items merged
-Fixed: Permissions bug
-Fixed: Minor bugs
v3.0.3 - May 21. 2012.
-Compatible with vBulletin 4.2.x

Download Now

File Type: zip VSa - Advanced 'New Posts' v3.0.3.zip (4.2 KB, 897 views)

Screenshots

File Type: jpg acp.jpg (209.9 KB, 0 views)
File Type: png newposts.png (15.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
Bubble #5, eTiKeT?, Honk0815, mokujin, NoMatt3r

Comments
  #132  
Old 02-11-2012, 04:36 PM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works on 4.1.10, at least with it's basic functionality, I haven't gotten deeper yet. But it doesn't show properly here:



Any ideas on how I could get it to work with What's New tab?
Reply With Quote
  #133  
Old 02-24-2012, 06:21 AM
depalaza depalaza is offline
 
Join Date: Feb 2011
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Valter View Post
Try rebuilding forum cache by going to your forum manager and saving the display.

Try also with:
Maintenance > Update Counters > Rebuild Thread Information
Maintenance > Update Counters > Rebuild Forum Information
i have same problem and i have do
-forum manager and saving the display.
Maintenance > Update Counters > Rebuild Thread Information
Maintenance > Update Counters > Rebuild Forum Information


but still error

Invalid SQL: SELECT COUNT(*) AS posts, post.threadid, post.dateline, thread.forumid FROM post as post LEFT JOIN thread AS thread ON (thread.threadid = post.threadid) WHERE post.visible = '1' AND thread.forumid NOT IN(3,10,57,64,79,80,81,73,48,74,87,62,75,71,) AND post.dateline >= 1330064830 GROUP BY post.threadid;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND post.dateline >= 1330064830 GROUP BY post.threadid' at line 4
Error Number : 1064
Request Date : Thursday, February 23rd 2012 @ 10:52:17 PM
Error Date : Thursday, February 23rd 2012 @ 10:52:18 PM
Script : http://www.blackgamerz.net/misc.php?...saanp_newposts
Referrer : http://www.blackgamerz.net/forum.php
Classname : vB_Database
MySQL Version :
Reply With Quote
  #134  
Old 02-24-2012, 07:25 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have unexpected comma at the end of list of excluded forums.
3,10,57,64,79,80,81,73,48,74,87,62,75,71,
Reply With Quote
  #135  
Old 02-24-2012, 12:17 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on my forum 4.1.10
Reply With Quote
  #136  
Old 02-27-2012, 12:33 PM
depalaza depalaza is offline
 
Join Date: Feb 2011
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Valter View Post
You have unexpected comma at the end of list of excluded forums.
3,10,57,64,79,80,81,73,48,74,87,62,75,71,
hmm excluded forum ? where i can find it ? and that message not shown at admin usergroup so it only shown to other usergroup
Reply With Quote
  #137  
Old 05-21-2012, 04:05 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v3.0.3 - May 21. 2012.
-Compatible with vBulletin 4.2.x

To upgrade:
-Import XML, allow overwrite
-Revert product templates if modified
Reply With Quote
  #138  
Old 05-21-2012, 04:12 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update
Reply With Quote
  #139  
Old 05-22-2012, 01:39 AM
FTG LIQUID CL FTG LIQUID CL is offline
 
Join Date: Jan 2012
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like it says,updates fine.Great work as always Valter. Thank you
Reply With Quote
  #140  
Old 05-27-2012, 12:52 AM
jdeveaux jdeveaux is offline
 
Join Date: Jul 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm testing with 4.2 and getting the same MySQLi error, below:

Note - I've noticed that it only happens if a user logs out or comes to the site and does not have cached login credentials. Once they log-in everything appears to be ok.


Database error in vBulletin 4.2.0:

Invalid SQL:

SELECT COUNT(*) AS posts, post.threadid
FROM vb_post as post /*FORCE INDEX (dateline)*/
INNER JOIN vb_thread as thread USING (threadid)
INNER JOIN vb_forum AS forum USING (forumid)
LEFT JOIN vb_threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 0)
LEFT JOIN vb_forumread AS forumread ON (forumread.forumid = forum.forumid AND forumread.userid = 0)
WHERE thread.visible IN (1)
AND thread.forumid NOT IN(7,16,24,8,33,21,136,127,115,138,5,110,25,28,29, 42,80,3,12,134,139,36,131,130,30,99,91,32,82,69,31 ,20,27,26,117,)
AND post.dateline > IF(threadread.readtime IS NULL, 1338082997, threadread.readtime)
AND thread.lastpost > IF(threadread.readtime IS NULL, 1338082997, threadread.readtime)
AND post.dateline > IF(forumread.readtime IS NULL, 1338082997, forumread.readtime)
AND thread.lastpost > IF(forumread.readtime IS NULL, 1338082997, forumread.readtime)
AND post.dateline > 1338082997 AND thread.lastpost > 1338082997
GROUP BY post.threadid;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND post.dateline > IF(threadread.readtime IS NULL, 1338082997, threadre' at line 8 Error Number : 1064 Request Date : Saturday, May 26th 2012 @ 08:44:21 PM
Error Date : Saturday, May 26th 2012 @ 08:44:22 PM
Script : http://site/misc.php?show=vsaanp_newposts
Referrer : http://site/login.php?do=logout&logo...6f538d64af7e12
IP Address :
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :

Regards,

John
Reply With Quote
  #141  
Old 05-27-2012, 06:38 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the end of list of excluded forums you have extra comma which produces error:
...27,26,117,).

It should not be there. Try rebuilding Forum Information.
Reply With Quote
Reply


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 10:57 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
  • Page Generation 0.04648 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete