vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Cyb - Advanced 'New Posts' (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=201308)

Emeralda 11-28-2011 10:57 PM

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?

WendM 12-04-2011 11:19 PM

tried to click your https://vborg.vbsupport.ru/external/2012/03/7.gif for your good advice but it denied me the option, so thanks for solving my issue! :)

Quote:

Originally Posted by Trek (Post 1714812)
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!


oxblood12 12-28-2011 03:04 PM

thanks for add

viper357 11-07-2014 09:15 AM

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:
PHP Code:

<td class="vbmenu_control">$cyb_anp</td

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.
PHP Code:

cyb_anp 

It's working perfectly. With no noticeable increase in server load....yet *touchwood* :p

pet0etie 06-11-2015 05:29 PM

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 !

ManuelW 08-26-2016 05:40 AM

Quote:

Originally Posted by pet0etie (Post 2547613)
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 !

It makes it working, but it makes my forum very slow and opens a lot processes in mysql :(


All times are GMT. The time now is 10:44 PM.

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.01235 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete