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)

YAHOME 02-03-2010 03:59 PM

hiiiiiiiiiiiiiiiiiii any one

fatdr 02-04-2010 10:07 AM

thanks working good on 3.8.4

SirShaw 02-06-2010 06:41 PM

Quote:

Originally Posted by Scalemotorcars (Post 1908316)
Anyone know how I can Exclude RSS posts from the post count.

I added a plugin at the search_start hook to exclude showing the RSS forums and that works fine.

PHP Code:

$_REQUEST['exclude'] .= ',xx,xx,xx'

All I need now is for the search result to exclude those forums form the post and thread count.

Any suggestions would be great. Thanks...

I too would like to know how to do this, I cant seem to get it..

YAHOME 02-08-2010 10:25 AM

Quote:

Originally Posted by MWRD (Post 1972764)
Hi dear Valter :

Now i have a little problem ... this nice mod don't work at vBadvanced CMPS navbar !

i follow right instruction for install hacks at navbar in instruction like in this option at vBadvanced 3.2.1 CP say :

Code:

Portal Output Global Variables

and this is its description content

If you have other hacks installed (especially to hacks located within the vBulletin navbar), it may be necessary to globalize some of the variables used in those hacks for the CMPS. You may enter a list of variables to globalize here. It is NOT necessary to add the $ mark before the variable name. Separate each variable with a carriage return (new line).

and i put for your hack : cybpoststhreadscounter to enable this mod at my navbar and doesn't work too

only appear at the navbar : New Posts: Checking... without any counters numbers or any link

also i chose and enable SSM ... its work perfectly at the forum and don't work at vBadvanced

please help me i need it work so much at my vBadvanced CMPS pages

and thanks for your help

Please i need help...

necessary and important support required my members complain about that !! what shall i do ???

Teemberland 03-02-2010 02:57 AM

Awesome hack! Working on 3.8.2! I wish after you read the posts/thread, the counter goes to 0 but what the hell.. :)

daddy. 03-14-2010 06:17 PM

I'm getting security token errors right and left since installing this mod. I have tried all typical fixes for security token errors but continue to get them with this mod. Any help?

michael5472 03-16-2010 03:43 PM

Any chance of this not pulling in the information from my RSS Sections ?

Basically if a person makes a post then it shows new posts but if my RSS feed posts it doesnt ?

Thanks,

Mike

Taringa! CS 03-25-2010 11:40 AM

Is it possible to make it work on "header" template? not on navbar... because i don't use navbar for navigation on my template

chrisbeau 04-13-2010 10:11 PM

Quote:

Originally Posted by daddy. (Post 2003573)
I'm getting security token errors right and left since installing this mod. I have tried all typical fixes for security token errors but continue to get them with this mod. Any help?

https://vborg.vbsupport.ru/showthread.php?t=212444

Hellmaster 06-30-2010 05:45 PM

I always get "0" :(

trotskid 08-24-2010 05:26 PM

Not working on my 3.8.4.

Hostboard 08-30-2010 01:05 AM

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...

muckleroy 09-16-2010 03:51 AM

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.

Xexiu 09-25-2010 05:53 PM

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.

nexus_dublin 11-30-2010 09:50 PM

Had to uninstall as counts displayed do not match counts/threads displayed on the new messages page (search.php?do=getnew)

nexus_dublin 11-30-2010 10:17 PM

Quote:

Originally Posted by Xexiu (Post 2103098)
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:

Code:

document.getElementById("cybanp_newposts").innerHTML = ": $vbphrase[cybanp_checking]";
and
Code:

CAnp_NPStatsDiv.innerHTML = ': ' + CAnp_NPStats.handler.responseText;

MikesSite 12-15-2010 01:54 PM

Some of our members lately have been experiencing the "Error - 400" page loading where it says "New Posts" in navbar. Any ideas?

Gadget_Guy 03-20-2011 11:14 PM

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.

Fenriz 03-30-2011 05:54 PM

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?

ShackMaster 11-28-2011 10:32 PM

Quote:

Originally Posted by dvsDave (Post 1712156)
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.

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 04:58 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.02874 seconds
  • Memory Usage 1,804KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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