PDA

View Full Version : Miscellaneous Hacks - Cyb - Advanced 'New Posts'


Valter
05-02-2008, 10:00 PM
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.

jGas
05-03-2008, 01:45 PM
thanks! i was waiting for this mod :D

jGas
05-03-2008, 03:31 PM
i have a question: why the number of posts doesn't decrease when i visit an unread thread?

YLP1
05-03-2008, 07:00 PM
Hey Cyb ---- I am using CMPS and it shows No New Posts but when I go to the forum page, it shows there are new posts.

How do I get it to show correctly on the CMPS portal page?

Thanks in advance.

airborneCAL
05-03-2008, 08:09 PM
Cyb, excellent mod but the new posts do not decrease once they are checked. The number only goes up unless you "Mark all forums read".

Boosted Panda
05-03-2008, 09:17 PM
Hey Cyb I love ALL of your mods! I do have a custom navbar though and when I enable this my new posts disappear. What do I need to insert to make this work?

ssslippy
05-03-2008, 09:49 PM
Is it possible to automate this based on users permissions?

myown
05-04-2008, 07:50 AM
thanks for this valued hack.

XnaMe
05-04-2008, 12:56 PM
Hello! I just installed! I need to know what variable i need to insert in nav because i can't see New threads and new posts like screenshoot 3!
Please Help me!
Thanks!

McCarroll21
05-04-2008, 01:24 PM
Thanks! I've been waiting for this for 3.7.x. My only complaint is that it causes a 404 error with vbadvanced. Instead of rewriting and taking you to site.com/forums/search.php it takes you to site.com/search.php.

Any way to fix that?

------

Edit: Upon testing, it's not compatible with vbadvanced at all. It always says 'No New Posts'

-----

Edit2: For the time being, I've edited your product's php file and overwrote the install. I added an if conditional to the 0 posts condition.

Arrangements
05-04-2008, 04:28 PM
How do I remove the extra space around the button?

XnaMe
05-04-2008, 05:56 PM
Sorry i understand what's wrong! If i Set on the hack, the defaut "New Posts" is not visible and the hack don't appear too! what i need to do? Thanks

airborneCAL
05-04-2008, 05:59 PM
Cyb, excellent mod but the new posts do not decrease once they are checked. The number only goes up unless you "Mark all forums read".

Any help on this?

toolblast
05-05-2008, 04:55 AM
I've had the same issue as the others... when I enable the hack it makes my 'new posts' link completely dissappear, and also nothing shows up (the hack makes it all just vanish).

The code in my template is the proper code that the hack is setup to replace... not sure whats wrong. Help??

Phr34q
05-05-2008, 08:48 PM
*/me clicks install*

I had my doubts as to where the images should go, I just started out with putting them in root and it worked just fine.

Thanks for this sweet mod, makes the whole concept of New posts more exciting :)

RedTrinity
05-06-2008, 03:17 AM
Works great!! Thanks Cyb :)

Crrrazzzy
05-06-2008, 03:23 AM
How do I remove the extra space around the button?

Wondering the same thing:

http://images.totalgamingnetwork.com/images/navbar.jpg

Also, is there any reason this plugin would slow down the forum? It seems the load times hang a lot more with this enabled and I even got a 500 internal server error once. Just curious if anyone else if having this problem.

airborneCAL
05-06-2008, 06:38 PM
Cyb, excellent mod but the new posts do not decrease once they are checked. The number only goes up unless you "Mark all forums read".
I'm going to have to uninstall this unfortunately.

newtsys
05-07-2008, 01:27 PM
hmmm this hacks works on some skins and not others. UT3 and Molten the hack does not appear any direction here Cyb.

BTW your hacks normally kick butt =)

chaser.nl
05-12-2008, 06:37 AM
As soon as i install this the new post button is gone completely in one style.
In the default style it is working so it seems it has to do with modified headers.

when i disable the product i regain the button.

Maybe you can tell me how to manually install this and tell me witch i need to replace with what.

cellarius
05-18-2008, 07:04 PM
I'm going to have to uninstall this unfortunately.
Same here. The number of unread posts does not decrease.

GaiLoan
06-18-2008, 11:18 PM
All mods from Cyb, is excellent, thank you :)

z0diac
06-19-2008, 12:36 PM
2 questions:

How do I get rid of that (in 1 thread, in 2 threads) bit in parenthesis? I can't afford the room in my navbar.

How do I get rid of the underlined text - all my other navbar items have no underline. Having New Posts underlined wrecks the uniformity of it.

???

z0diac
06-19-2008, 12:38 PM
Oops nevermind, the hack doesn't work properly anyway. I read the new posts, click on the top banner to go to forumhome, and it keep saying that # of posts are new again.

Thanks anyway.

Your other hacks are usually good though.

TrIn@dOr
06-19-2008, 02:50 PM
Here is the full translation to spanish.

But having the same error like others, i don't have unreaded posts and the menu show another thing... need we to update some counter or ???

Thanks in advance.

TrIn@dOr
06-23-2008, 05:47 PM
Cyber?

aramiK89
06-29-2008, 10:43 AM
Hey, just need to check - once this is added it won't give birth to the security token error?

Has the line of code been added so that it works with the security token feature?

Just been having a lot of issues with this + mods

Thanks!

sickboy6ths
07-09-2008, 10:08 AM
Same problem here, on some pages the new posts is set to none, on others esp forum home it still displays there are new posts. While there aren't any.
However, for some reason clicking "Mark Forums Read" does clear the new posts and put it back to "No New Posts"

trigatch4
07-11-2008, 04:32 PM
Amazing. 2 Questions:

1) Is there a way to use the "NEW POSTS IN" dropdown feature without using the "X new posts in Y new threads"?

2) When you choose what specific forums users can see "New Posts In" - is there a way to combine these and have it show new posts in ALL the forums you identify at once instead of 1 by 1?

Sayrex
07-14-2008, 07:37 PM
How do I remove the extra space around the button?
next install plugin , create extra space with this link : http://forum/search.php?do=getnew

https://vborg.vbsupport.ru/external/2008/07/51.jpg

:confused:

Ronseal
07-19-2008, 06:10 PM
Works okay, on the forum home page, however I've installed a CMPS portal page and unfortunately when the new posts link is displayed there it just says 'No New Posts' which is wrong and when clicked on it brings up and error.

Does anybody else use this with a vbAdvanced portal page?

kud0gfx
07-22-2008, 01:35 PM
Hey, i've a problem, it change the style of the text, and dont fits very well in my navbar, i've removed the lime color and i left it blank...

it looks like this
http://img.pordescargadirecta.com/images/a1f7x99e6t0xrfvbvd8.jpg

do you know how can i fix it?


edit: i've fixed it, it was a problem in my style... see you!

amirlol
07-25-2008, 07:44 AM
thanks alot

SSJB_7
08-07-2008, 04:47 PM
thanks i was searching for it now i am going to try it!!! thanks again

soundbarrierpro
08-07-2008, 04:52 PM
Shows "No New Posts" on navbar on cmps but when clicked it shows "new posts:14(in 13 threads)

digicom
08-09-2008, 07:39 AM
Thankyou apprciated :up:

SSJB_7
08-12-2008, 01:38 AM
thanks it's working but how can i make it when someone logs in to show the new posts in his profile immediately?????

Can you make me a mod?

mystic10
08-13-2008, 12:56 AM
for some reason new post in not showing..i have new style..anyway to manually put it in navbar kindly help

BucWiLd
08-13-2008, 01:18 AM
very, very, very nice mod cyb... you do some nice work

justchil
08-13-2008, 11:33 AM
for some reason new post in not showing..i have new style..anyway to manually put it in navbar kindly help

+1. Custom theme... it doesn't show it only removes my current "New Posts".

:Judge:
08-17-2008, 04:22 PM
+1. Custom theme... it doesn't show it only removes my current "New Posts".

I got it working for my custom theme, as far as I can tell it's working fine.

here is what I did...

Go to your Admin CP > Styles & Templates > Cybernetec Templates > cyb_advancednewposts.

Copy everything in the cyb_advancednewposts template and paste it in your nav menu.

Hope that helps!

yamahapaul
09-03-2008, 07:37 AM
just installed thanks :up:

imedic
09-29-2008, 02:47 PM
Great job !
I was looking for this for ages ...
Installed and give highest mark.
For the moment number of new posts is not decreasing while you read posts. It only shows the first number. I have replaced all phrases with New since I do not have place on my navbar for long text . Will find later a solution.

Just notice if you have scripts disabled for the site you see only the first time New message in : link
It works like normal link new posts.
After this link is dissapear and it will show only the first one (New posts)

It happen users dont know how to enable scripts.
(tested only on Firefox)

I dont think is usefull to have 2 links for more or les the same thing (maybe is better to move the numbers in the drop down menu) Keep in mind also the no script issue...

Will love also usergrup permision on it :D

In rest life saver since it was asked on my forum for ages ...
Many thanks and great job!

vithorius
10-15-2008, 02:35 PM
This hack is just SUPER!!! :cool:

I have used it since 3.5.x and I still use it! :up:


:p Well, but there is this new idea that I had and that I need to apply to my forum:

I need to have this Mod working, but with the exception of two sub-forums, for example, 'sales' and 'new members'. :D


How could the exception be applied to this Mod? :confused: I mean, I want the Mod to keep working on my New Posts Button, but I don't want it to show the New Messages posts on sections "X" and "Y". :erm:


Does anyone knows how to do it? :confused:


THANK YOU SO VERY MUCH!!! :up: :up:

Valter
10-15-2008, 10:16 PM
Option to exclude forums may be added in next version.

vithorius
10-16-2008, 07:34 AM
Option to exclude forums may be added in next version.

Thank you Cyber, for considering my idea!!! :up: :up:

I do believe that many vBulletin users will find it useful as well. (I just can't wait until we have this new option working on this NEAR-TO-PERFECT hack! :D )


Greetings from Portugal! :)

mmoore5553
11-26-2008, 11:45 PM
does the number decrease problem solved ?

mmoore5553
11-27-2008, 12:01 AM
i just installed and the numbers are not decreasing ..such a shame ..usually cyb makes the best ...hope you can get this sorted .

Sycoloco1212
12-14-2008, 03:48 AM
Is there a chance i that this can work in the header?

Gipskopf
01-01-2009, 04:56 AM
Shit, dont work in this header.
can help me ?

<!-- logo --><br/>
<a name="top"></a>
<table border="0" width="90%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/head_back.jpg)">
<tr>

<td align="$stylevar[left]"><a href="http://www.diespritzer.de"><img src="$stylevar[imgdir_misc]/selberlackieren.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>


<td align="$stylevar[right]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_leftneu.jpg" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[center]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>



</td>
</tr>
</table>
<!-- /logo -->

<table border="0" width="90%" cellpadding="0" cellspacing="0" align="center" style="background-image:url($stylevar[imgdir_misc]/nav.gif)">
<tr>
<td align="left" valign="top"><img src="$stylevar[imgdir_misc]/nav.gif" border="0" alt=""/></td>
<td align="left" valign="top"><br/>
<!-- nav buttons bar -->
<div align="center">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="alt5"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="alt5"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>

$template_hook[navbar_buttons_left]
<td class="alt5"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="alt5"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>



<td class="alt5"><a href="index.php$session[sessionurl_q]">Portal</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="alt5"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="alt5"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="alt5"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td><td class="alt5"><a href="lackieren.php$session[sessionurl_q]">Forum</a></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="alt5"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="alt5"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="alt5"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="alt5"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="alt5"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="alt5"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="alt5"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

</td>
<td align="center" valign="top"><img src="$stylevar[imgdir_misc]/nav.gif" alt="" /></td>
</tr>
</table>
</div>
</table>
<!-- content table -->

$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

Valter
01-01-2009, 10:23 AM
It adds to navbar automatically. To add it to header, put:
$cyb_anp
after:
$vbphrase[new_posts_nav]</a></td>

kenfuzed
01-02-2009, 05:16 PM
For those with vbAdvanced having trouble with this appearing correctly in your homepage navbar, here is the edit I found to fix it. Replacing the relative url with an absolute (full) url corrects this linking error.

Open the cyb_advancednewposts template found under Cybernetic Templates.
Find instances of:
<a href="search.php?do=getnew
Replace with
<a href="http://YOURDOMAIN.com/forum/search.php?do=getnew

I replaced all 3 instances of the relative url with an absolute. Not sure all 3 were necessary but it worked for me.

Valter
01-13-2009, 10:29 PM
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

To upgrade:
-Import XML, allow overwrite
-Check settings, update if needed
-Translate new phrases if needed

mmoore5553
01-14-2009, 12:51 AM
man thought i would try this again and the number still doesnt decrease. ..i am willing to donate money to cyber to get this corrected.

David Gillaspey
01-17-2009, 09:25 PM
Installed (on a 3.8 version forum), and seems to work fine.

Thanks for your work on this.

Valter
01-17-2009, 10:25 PM
vB 3.8 version/support:
https://vborg.vbsupport.ru/showthread.php?t=201308

imedic
01-19-2009, 09:50 PM
vB 3.7.3 patch 1 and last upgrade change not reliable numbers with 0 (after upgrade). It is verifying and still founding 0 posts. No exceptions.
I have logged with another account and is the same. FF and IE7 same thing.
I take this post/chance to thank you allot for this mod. Great stuff. :)

dataman
01-22-2009, 04:42 PM
Installed and it's great, except it does not decrease new post count.

Valter
01-22-2009, 06:21 PM
It counts new posts from your last visit. Mark forums as read (update 'last visit' time) to mark these post as read.

Rckcrwlr
01-22-2009, 06:51 PM
It counts new posts from your last visit. Mark forums as read (update 'last visit' time) to mark these post as read.

I am having the same problem...so you are saying that in only tracks from last visit so until we leave and then come back, it will not "zero" out?...unless you click on mark all read...

Thanks

imedic
01-23-2009, 10:16 AM
With mine the new count post is showing 0 every time. It is checking but with no success. :(
I have reverted to 2.2 and it works fine. I didn't get the 2.3 version.

SCRIPT3R
02-06-2009, 08:58 AM
Still buggy, also went back to an older version. :(

mariocaz
05-08-2009, 05:00 PM
I installed it but also mine is not working, Always appears 0 New Posts, please help!!!

Is there a version that is working fine with 3.7.X ???

tommythejoat
05-28-2009, 07:43 PM
I actually have version 2.1 installed with vBulletin 3.8.2 and it seems to work just fine. I have not upgraded to later releases because of all the problem comments in this thread.

However, we now have lots of entries on our nav bar and are using the mod to divide the nav bar into two segments. Most of our users seem to prefer the Smart Menu variant of the New Posts and rarely use the New posts: n (in n threads) piece. Is there some reasonable way to turn off the left hand piece and still keep the Smart Search Menu? I do not have the automatic update turned on.

With both variants turned on this hack takes up a lot of room on the nav bar.

Butzel
06-16-2009, 01:10 PM
Thank you for this AddOn.

I took the V 2.0 for 3.6 in vB 3.8.1 and it works fine. V 2.4 looks fine, but let the Serverload explode. Same with 2.0, but not the same Serverload.....

Some Ideas for optimization ?

mariocaz
06-16-2009, 03:33 PM
Please help us Cyb to have this awesome working perfectly in the forums, update it!!

Thanx!!

Mario

kNeeLy
06-18-2009, 09:06 AM
another great cyb hack.....

has anyone tried the vba code posted a few posts back and had success?

da_judge
07-15-2009, 11:14 PM
works a treat thanks...

Only thing i ask... i edited header... button now massive... how can i reduce size..

Cheers

Scalemotorcars
09-14-2009, 09:43 PM
I have an RSS poster and would like to exclude that one forum from the results. Is there a way to do that with this mod.

I have the 2.1 version installed on a 3.7.* board and I see someone requested it before and a remark that it may be added to a future release but I didn't see that in the new release notes.

Thanks for your help.

Arrangements
10-06-2009, 07:25 AM
For anyone looking to download the working old version: