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)

kud0gfx 01-22-2009 12:52 AM

is there anyway to get a no-ajaxed version? just like the old one... because my forum are getting pretty some max user connection mysql errors.. so I had to deactivate it

Biker_GA 01-22-2009 09:15 AM

I had to turn it off as well. Load on the forum was unacceptable and we, too, use vBAdbvanvced.

thunderclap82 01-22-2009 01:37 PM

I'm just sticking with v2.1 since it seems to work properly. I really wish an updated version was released that correct a lot of our issues, but if not I'm quite happy with 2.1 for now.

Blue91 01-22-2009 10:31 PM

I went with Better New Posts and changed the "Today's Posts" link in the Quick Links navbar menu to "My Threads from Past Month".

I had my vb 3.03 like this until I upgraded to 3.8. My users actually preferred the ability to search from past visit, past day, past week, and past month so I went ahead and changed it.

What would be the BEST of both worlds for me would be Cyb's AJAX new posts with a dropdown menu like the "Better New Posts" I'm using now so my users can still do a quick search that way as well. *shrug* Oh well.

Skyrider 01-23-2009 10:06 PM

Quote:

New Posts: 7 (In 4 Threads)
Quote:

Sorry, there are no new threads to view.

You may search for threads updated during the previous 24 hours, here.
Is this right?

Kendothpro 01-23-2009 11:18 PM

Nice hack cyb! I have installed it and wanted to contribute: I think it can be made better with a simple adjustment:

1- For users without javascript, it completely invalidates the "new posts" button (i.e. doesn't degrade gracefully), this can be solved by changing this part:
PHP Code:

href="javascript:void(0);" onclick="CAnp_getStats();" 

to this
PHP Code:

href="search.php?do=getnew" onclick="CAnp_getStats(); 
return false;" 

It will work exactly the same for users with javascript, but will degrade gracefully for those who don't have javascript. It will also be possible to open the link with the "open to new tab" option in firefox (i.e. middle mouse button)

2- The "checking.." text is a bit annoying since it changes the layout in the navbar and moves all the menus, there should be an option to disable/change it

Trek 01-24-2009 01:26 AM

Old versions did this to me, the latest didn't, but never displayed anything but 0's after that. Sorry I can't be of any help, just letting you know, you're not alone. heh

Quote:

Originally Posted by FF|Skyrider (Post 1722781)
Is this right?


albear 01-25-2009 10:41 PM

Installed... Thank You !

dresus 01-25-2009 10:55 PM

uninstalled till a working version is released...

emperatour 01-27-2009 07:55 AM

this don't work for me :-? why ?

emperatour 01-29-2009 04:19 AM

I have some newposts in mu froum but newpost is 0 on navbar ...

Trek 01-29-2009 04:38 AM

Quote:

Originally Posted by emperatour (Post 1727805)
I have some newposts in mu froum but newpost is 0 on navbar ...

This is the same problem I had, finally gave up, I'll just keep trying new versions as they are released until it's magically fixed.

Blue91 01-29-2009 03:43 PM

It looks like the developer isn't even trying to fix the issues that most of us are having with this hack.

thunderclap82 01-29-2009 06:28 PM

Quote:

Originally Posted by Blue91 (Post 1728230)
It looks like the developer isn't even trying to fix the issues that most of us are having with this hack.

I agree. It seems as if the author isn't even interested in resolving the issues people are having. But, as the saying goes, you get what you pay for. :) (But this mod should be marked as "unsupported" then.)

Valter 01-30-2009 08:00 PM

If I can not help you to make it working on your custom styles that does not mean the product is unsupported.

thunderclap82 01-30-2009 08:13 PM

I only made the unsupported comment because it appeared you were ignoring many users concerns trying to use the hack. Please don't take it as me attacking you, just an observation on my part.

Trek 01-30-2009 09:59 PM

Quote:

Originally Posted by Cybernetec (Post 1729421)
If I can not help you to make it working on your custom styles that does not mean the product is unsupported.

I think it's more the ignoring of issues some people (like myself) have. We understand we have custom styles and that it's our problem. However, when we ask a question and get nothing back at all... it doesn't look good.

If you choose not to support anything done with custom styles, no problem. Say so. Otherwise, we'll be waiting for help/a fix to get things working. If we're not going to get that, we'll move on to other products as needed. No harm done.

Blue91 01-31-2009 01:22 PM

Hell, it doesn't work on my "stock" VB style, so please stop blaming the issues on the users' "custom styles."

thunderclap82 01-31-2009 02:09 PM

Quote:

Originally Posted by Blue91 (Post 1729923)
Hell, it doesn't work on my "stock" VB style, so please stop blaming the issues on the users' "custom styles."

And how many users use the vB stock style? I'd wager 95% of users customize their style.

M_Portiss 01-31-2009 02:25 PM

Working great on 3.8! I have the stock style with only colours modified.

Thanks!
Great little touch.

Valter 01-31-2009 02:31 PM

Quote:

Originally Posted by Blue91 (Post 1729923)
Hell, it doesn't work on my "stock" VB style, so please stop blaming the issues on the users' "custom styles."

Why it then works perfect here:
bihforum.com
or here:
noitats.com ?

I can not fix *something which I can not reproduce. I don't know what's your config, are there edited files, wrong file versions, bad settings, some php problems, other problematic hacks installed, problems with templates etc...

Chadi 01-31-2009 10:27 PM

It doesn't work for me either on 3.8.1 / custom style.

Jack Black 02-01-2009 07:22 PM

Is there anyway of making the post count amend itself once someone has read a new post?

TsirhCitna 02-02-2009 04:17 PM

1 Attachment(s)
Not working for me as well on any style. It refreshes and always comes up with 0 new posts which is wrong.

dvsDave 02-03-2009 06:24 PM

Hey Cyb,

I've got the default theme with no manual template edits, and it's not working for me either.

chiapeterson 02-03-2009 07:41 PM

It used to show you a list of "unread" threads... even if there were no "new" threads. Now it doesn't. Was that a "feature" change?

Edit: Just realized... it's not working at all! :-(

Valter 02-03-2009 10:29 PM

If you are interested create temp admin account for me so I can check it on your forums during next weekend.

MikesSite 02-04-2009 01:52 AM

1 Attachment(s)
Install & nominated. Very nice!

What would be the easiest way to adjust the width of it? There seems to be way too much space to the left and right of the New Posts notification. Check the attachment to see what I am talking about.

sectomy 02-06-2009 08:11 AM

yeah it shows always: 1 New Post
even if i marked all as read.
if i can change this to 0, then it should work :D
but how ? :)

Urinemachine 02-12-2009 03:07 PM

I installed this mod but it doesn't do anything on my page :(

imedic 02-13-2009 05:04 AM

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

MasterofWorlds 02-18-2009 12:58 AM

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.

Blue91 02-18-2009 03:17 AM

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.

dvsDave 02-19-2009 02:14 AM

@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?

dvsDave 02-20-2009 12:45 AM

hmm... is there anybody who is having the problems NOT using vbSEO ?

Honk0815 02-20-2009 08:13 AM

I once read a post on top he was still unread.
Does not

paintballer.ie 02-20-2009 10:37 AM

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


samuelss 02-20-2009 02:11 PM

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.

Trek 02-20-2009 03:45 PM

Quote:

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

b6gm6n 02-20-2009 08:56 PM

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


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.01750 seconds
  • Memory Usage 1,911KB
  • 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_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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