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

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

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 01-09-2009 Last Update: 01-16-2009 Installs: 425
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.

Download Now

File Type: zip Cyb - Advanced 'New Posts' v2.4.zip (5.5 KB, 2537 views)

Screenshots

File Type: png anp.png (25.4 KB, 0 views)
File Type: png acp.png (71.4 KB, 0 views)

Show Your Support

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

Comments
  #112  
Old 02-13-2009, 05:04 AM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mode. For me the new post count is always 0 but Forum specific search works and that is great for my board.

Just wondering can this mode be enhanced to consider new posts for a group not a person?
I have 5 moderators on my forum and all we need to read what is posted to be sure we don't miss something and we dont have a clue what other has read/moderate already.
If It was to have an additional link to work as search new posts but when you read it (moderate it) then it counts read for the whole group not only for you.
This way Group moderators is counted as a person reading new posts thus each moderator needs to read a part of the new posts (as much as he can) others finishing the rest so no duplication in reading.
I am not using post in moderation queue but let people post directly and we (moderators) read and react after (if it is the case).
Regular new posts (this mod) should be separate from this.

I have no coding knowledge (I do understand some stuff) and I was asking how tough it will be to do this. Possible to be a separate mode not a feature on this one but you know better.
Possible problem I think can be conflicts on 2 moderators reading the same thread ...
Reply With Quote
  #113  
Old 02-18-2009, 12:58 AM
MasterofWorlds MasterofWorlds is offline
 
Join Date: Aug 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not working for me either now, it's always showing 0 even when there are new post and i can tell as the icons have the new post icons showing when scrolling down the site.
Reply With Quote
  #114  
Old 02-18-2009, 03:17 AM
Blue91's Avatar
Blue91 Blue91 is offline
 
Join Date: Apr 2002
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh but wait... according to Cyb, ALL of our problems are solely OUR fault b/c we must ALL have modified styles, etc.

If you read each posts... it's clear to see this doesn't work 100% correctly for the majority of those who've posted here.
Reply With Quote
  #115  
Old 02-19-2009, 02:14 AM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Blue

Give it a rest. Cyb knows, I know, we all know it doesn't work with some people's installs.

Have you tried to disable each product individually to see if there is a conflicting product?

I haven't done this yet, but I think I'll try now. Why don't you post the results back here if you find something, and even if you don't, post what products you have running, that way we can compare notes to find similarities?
Reply With Quote
  #116  
Old 02-20-2009, 12:45 AM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm... is there anybody who is having the problems NOT using vbSEO ?
Reply With Quote
  #117  
Old 02-20-2009, 08:13 AM
Honk0815 Honk0815 is offline
 
Join Date: Feb 2007
Location: Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I once read a post on top he was still unread.
Does not
Reply With Quote
  #118  
Old 02-20-2009, 10:37 AM
paintballer.ie's Avatar
paintballer.ie paintballer.ie is offline
 
Join Date: Jan 2009
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, it works great for me on standard theme, but does not on my custom theme. It is a fresh install on a test board. Any help?

here is my custom header code

PHP Code:
<!-- logo -->
<
a name="top"></a>
<
table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="wrapper">
  <
tr>
    <
td class="headerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td class="logowrap"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/geram/spacer.gif" alt="$vboptions[bbtitle]width="234" height="96" border="0" /></a></td>
        <
td>&nbsp;</td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td class="topnav"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td>&nbsp;</td>
        <
td class="topnavR">&nbsp;</td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td class="navwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td>
<!-- 
nav buttons bar -->


<
div id="navstyle" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
    <
table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <
tr align="center">
        <if 
condition="$show['member']">
            <
td><a href="usercp.php$session[sessionurl_q]"><!--$vbphrase[user_cp]-->User Settings</a></td>
        </if>
        <if 
condition="$show['registerbutton']">
            <
td><a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
        </if>
        
$template_hook[navbar_buttons_left]
<
td><a id="vbbloglinks" href="blog.php$session[sessionurl_q]">$vbphrase[blogs]</a><script type="text/javascript">vbmenu_register("vbbloglinks");</script></td>
        <!--<
td><a rel="help" href="faq.php$session[sessionurl_q]accesskey="5">$vbphrase[faq]</a></td>-->
        <if 
condition="$show['communitylink'] AND $show['popups']">
            <
td><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"vbmenu_register("community"); </script></td>
        <else />
            <if 
condition="$show['memberslist']">
                <
td><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
            </if>
            <if 
condition="$show['quick_links_groups']">
                <
td><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
            </if>
            <if 
condition="$show['quick_links_groups']">
                <
td><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
            </if>
        



</if><!--<
td><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>-->
        <if 
condition="$show['popups']">
            <if 
condition="$show['searchbuttons']">
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
                <
td><a id="navbar_search" 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>
            </if>
            <if 
condition="$show['member']">
                <
td><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>
            </if>
        <else />
            <if 
condition="$show['searchbuttons']">
                <
td><a href="search.php$session[sessionurl_q]accesskey="4">$vbphrase[search]</a></td>
                <if 
condition="$show['member']">
                <
td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                <else />
                <
td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
            </if>
            <
td><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
            <if 
condition="$show['member']">
                <
td><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_contacts]</a></td>
            </if>
        </if>
        
$template_hook[navbar_buttons_right]
        <if 
condition="$show['member']">
            <
td><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 class="navR">&nbsp;</td>
      </
tr>
    </
table></td>
  </
tr>
  <
tr>
    <
td valign="top" class="cwrap">
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output

$ad_location
[ad_header_end
Reply With Quote
  #119  
Old 02-20-2009, 02:11 PM
samuelss samuelss is offline
 
Join Date: Feb 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting a database error like this:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'mysqlname' (10061) C:\Domains\mydomainname\wwwroot\forum\includes\cla ss_core.php on line 311

Any ideas.

Thanks.
Reply With Quote
  #120  
Old 02-20-2009, 03:45 PM
Trek Trek is offline
 
Join Date: Sep 2003
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dvsDave View Post
hmm... is there anybody who is having the problems NOT using vbSEO ?
I am not using VBSEO and it doesn't work for me, always shows 0 new posts. One of the old versions worked at some point, but the count was wrong, but it showed somethign other than 0. Now though, it just doesn't work, even on the default template.
Reply With Quote
  #121  
Old 02-20-2009, 08:56 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vba...checking.... same as the rest of you... might be working else where, haven't tried, tried all suggestions in this thread, using 3.8.1 custom style and vba

-b6
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 07:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10185 seconds
  • Memory Usage 2,421KB
  • 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
  • (1)bbcode_php
  • (1)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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_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