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

Reply
 
Thread Tools
Cyb - Advanced 'New Posts' Details »»
Cyb - Advanced 'New Posts'
Version: 2.4, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 05-02-2008 Last Update: 01-17-2009 Installs: 214
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 '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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-17-2008, 04:22 PM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by justchil View Post
+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!
Reply With Quote
  #43  
Old 09-03-2008, 07:37 AM
yamahapaul's Avatar
yamahapaul yamahapaul is offline
 
Join Date: Aug 2008
Location: UK
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just installed thanks :up:
Reply With Quote
  #44  
Old 09-29-2008, 02:47 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

In rest life saver since it was asked on my forum for ages ...
Many thanks and great job!
Reply With Quote
  #45  
Old 10-15-2008, 02:35 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is just SUPER!!!

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


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


How could the exception be applied to this Mod? 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?


THANK YOU SO VERY MUCH!!! :up: :up:
Reply With Quote
  #46  
Old 10-15-2008, 10:16 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Option to exclude forums may be added in next version.
Reply With Quote
  #47  
Old 10-16-2008, 07:34 AM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybernetec View Post
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! )


Greetings from Portugal!
Reply With Quote
  #48  
Old 11-26-2008, 11:45 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does the number decrease problem solved ?
Reply With Quote
  #49  
Old 11-27-2008, 12:01 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just installed and the numbers are not decreasing ..such a shame ..usually cyb makes the best ...hope you can get this sorted .
Reply With Quote
  #50  
Old 12-14-2008, 03:48 AM
Sycoloco1212 Sycoloco1212 is offline
 
Join Date: Mar 2008
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a chance i that this can work in the header?
Reply With Quote
  #51  
Old 01-01-2009, 04:56 AM
Gipskopf Gipskopf is offline
 
Join Date: Dec 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shit, dont work in this header.
can help me ?

PHP Code:
<!-- 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,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=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
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 04:15 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.04538 seconds
  • Memory Usage 2,396KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete