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)

Dax IX 01-16-2009 02:51 AM

1 Attachment(s)
Here ya go. :)

Trek 01-16-2009 03:31 AM

Thanks for the 2.1, I still have the same problem with that one though, shows the incorrect unread post counts... so 2.1, 2.2 and 2.3 all show incorrect post counts for me. Very odd.

vBA does show the correct counts though, so... it has to be the way it's calculating the unread posts.

Valter 01-16-2009 01:30 PM

I've fixed permission bug which sometimes shows incorrect numbers. I'll release this new version later.

About navbar link - does your custom styles which you have problems with contains:
Code:

$vbphrase[new_posts_nav]</a></td>
?

Blue91 01-16-2009 02:04 PM

2.1 works for me. 2.2 and 2.3 don't, in any of my styles. :(

Blue91 01-16-2009 02:15 PM

Quote:

Originally Posted by Cybernetec (Post 1714666)
I've fixed permission bug which sometimes shows incorrect numbers. I'll release this new version later.

About navbar link - does your custom styles which you have problems with contains:
Code:

$vbphrase[new_posts_nav]</a></td>
?

Yes, my navbar templates have this code. Please see what diffferences there are between 2.1 and 2.2/2.3 b/c 2.1 works great but the other versions don't. They install and all, but the link doesn't show up on the navbar.

Trek 01-16-2009 04:01 PM

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!

Trek 01-16-2009 04:02 PM

Excellent to hear, I can't wait. I'll finally be able to enable this plugin!

Quote:

Originally Posted by Cybernetec (Post 1714666)
I've fixed permission bug which sometimes shows incorrect numbers. I'll release this new version later.
[/code]?


Roxie 01-16-2009 04:26 PM

Works great. Would like to be able to remove how many threads though. Thanks Cyb!

TandyServices 01-16-2009 05:23 PM

Installed but disabled for now. Doesn't show the right amount of new posts and always shows there's one new post. Hoping on a fix soon :)

Valter 01-16-2009 05:34 PM

1 Attachment(s)
Please try this XML and let me know if it works properly on your forums.

As always, import XML as product with 'overwrite' checked.

Trek 01-16-2009 07:51 PM

Installed this one, still doesn't work. Now, it says 0 posts no matter what. I waited for someone else to post, refreshed, I can see that in the new posts list, but this still says 0.

Another thing I noticed is that the first page load, the "New Posts" is not bolded/colored as my theme is. After the AJAX refresh, it looks like it should.

Quote:

Originally Posted by Cybernetec (Post 1714936)
Please try this XML and let me know if it works properly on your forums.

As always, import XML as product with 'overwrite' checked.


fattony69 01-16-2009 09:28 PM

It doesn't work for me either and my members like live off of this modification.

Valter 01-16-2009 10:31 PM

Problem solved on fattony69's forums. It was modified product template.

https://vborg.vbsupport.ru/external/2009/01/39.png

Please follow upgrade instructions which I'm writing every time when new version is released.

To revert modified template (use original content) select it on the list and click Revert button, then confirm.

Trek 01-16-2009 10:53 PM

I checked and none of your templates are modified.

Valter 01-17-2009 08:04 AM

Quote:

Originally Posted by Roxie (Post 1714843)
Works great. Would like to be able to remove how many threads though. Thanks Cyb!

You're welcome.

Just edit phrases and remove that part.

Blue91 01-17-2009 01:13 PM

1 Attachment(s)
2.3 is working properly on my forums index but not on my vbadvanced home page. On the index, it shows correct number of posts, etc. On the vbadvanced home page, it stays at "checking...". What code do I need to add so it works on both?

TandyServices 01-17-2009 02:03 PM

Uninstalled. Xml didnt work, no templates were modified. After installing new xml smilies page kept popping up. Done with it. Nice try though

dvsDave 01-17-2009 04:03 PM

Quote:

Originally Posted by Blue91 (Post 1715722)
2.3 is working properly on my forums index but not on my vbadvanced home page. On the index, it shows correct number of posts, etc. On the vbadvanced home page, it stays at "checking...". What code do I need to add so it works on both?

That's the issue I'm getting. I added the global variables to vBadvanced and still get the "checking..." message. I'm running 2.3.0

Dragbike Live 01-17-2009 04:15 PM

i have found a new problem with this mod... i have been testing it and finally had to uninstall it...because all this when i install it on my board...after a hour it seems to reset the images and navbar and basically stretches the back ground images and everything...hard to explain what it does....but it is this mod that causes it...
maybe the ajax ? is there a version that requires a page refresh by the member....

I really like this mod...

Pessimist 01-17-2009 09:18 PM

Exactly!
Log in under the account, but don't check "Save me" checkbox!
Wait when updating through an Ajax will update pages and session will expired :)

Cybernetec, please, fix it.

Valter 01-17-2009 09:53 PM

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

To upgrade:
-Import XML, allow overwrite
-Ensure that hack templates are unmodified

Pessimist 01-17-2009 10:28 PM

Cybernetec
Great, thanks!

Blue91 01-17-2009 11:01 PM

Quote:

Originally Posted by Blue91 (Post 1715722)
2.3 is working properly on my forums index but not on my vbadvanced home page. On the index, it shows correct number of posts, etc. On the vbadvanced home page, it stays at "checking...". What code do I need to add so it works on both?

Quote:

Originally Posted by dvsDave (Post 1715879)
That's the issue I'm getting. I added the global variables to vBadvanced and still get the "checking..." message. I'm running 2.3.0

Cybernetic,

Can you help address this issue we're having?

I'm now using 2.4, templates unmodified, and it's still doing the same thing shown in my attachments in my previous post.

Thanks.

dvsDave 01-17-2009 11:29 PM

Quote:

Originally Posted by Blue91 (Post 1716262)
Cybernetic,

Can you help address this issue we're having?

Thanks.

just upgraded to 2.4 and am still having this issue.

Trek 01-18-2009 02:46 AM

v2.4, still shows 0 new posts when there are posts. On the main VBA page or the forums index. My templates are still unmodified.

Kica 01-18-2009 07:24 AM

I have the same problem as Trek.

canpare 01-18-2009 09:14 AM

My Forum :

http://img413.imageshack.us/img413/6006/samplesw5.jpg

Thanks Cybernetec (:

Blue91 01-18-2009 04:32 PM

:( I guess I'll go back to 2.1 since it worked on both the homepage and on the forums index.

Trek 01-18-2009 05:30 PM

I'm using this mod now: https://vborg.vbsupport.ru/showthread.php?t=168303

Basically does the same thing, but not as nicely and no AJAX, but... it's something. At least until/if this mod ever works for me. Would be nice to not be told it's my templates, I didn't install it right and otherwise to just be ignored, but... I guess I can't have everything. ;)

Quote:

Originally Posted by Blue91 (Post 1716995)
:( I guess I'll go back to 2.1 since it worked on both the homepage and on the forums index.


MoMan 01-18-2009 06:04 PM

Any version beyond 2.2 does not work at all for me. Furthermore, I'm experiencing the same homepage (vBadvanced) problems as everybody else. My vBa menu simply says "New Posts: Checking..." and does not update. Within the forum, however, everything is fine.

I would appreciate a fix for this in the future if possible. This is truly a great modification and it would be even better if it worked on our homepage (or, if it automatically disabled itself and reverted to default templates when browsing the homepage). If version 2.1 works on the homepage but without AJAX, I'd settle for that, but I can't find where to download that version.

Stefanus 01-18-2009 06:18 PM

Same here, would like to see a working version of this mod.

(ver 2.1 does not work on my setup)

Quote:

Originally Posted by MoMan (Post 1717104)
Any version beyond 2.2 does not work at all for me. Furthermore, I'm experiencing the same homepage (vBadvanced) problems as everybody else. My vBa menu simply says "New Posts: Checking..." and does not update. Within the forum, however, everything is fine.

I would appreciate a fix for this in the future if possible. This is truly a great modification and it would be even better if it worked on our homepage (or, if it automatically disabled itself and reverted to default templates when browsing the homepage). If version 2.1 works on the homepage but without AJAX, I'd settle for that, but I can't find where to download that version.


MoMan 01-18-2009 06:50 PM

I've added

Code:

$vbulletin->templatecache['header'] = str_replace('$vbphrase[new_posts_nav]</a></td>', $vbulletin->templatecache['cyb_advancednewposts'],$vbulletin->templatecache['header']);
to my installation in order to incorporate the links into those styles which display the new posts link in the header template, and not the navbar. While it's working for me in 2.2 (save the homepage), 2.1 seems to introduce an extra <tr> tag which messes everything up. Guess I'll just wait for the AJAX homepage fix.

rbecking 01-18-2009 07:31 PM

2.4 works fine for me in the forum and on vba homepage

Blue91 01-19-2009 02:04 AM

Quote:

Originally Posted by rbecking (Post 1717179)
2.4 works fine for me in the forum and on vba homepage

Did you do new install? Upgrade from previous version? Did you make ANY changes to the cyb_advancednewposts template? Did you change any other templates? Can you post the code to the various templates used in this mod for comparison to ours?

Mythor 01-20-2009 09:04 AM

I installed 2.4 onto vb 3.8.0 and it won't work on my vbadvanced page (even with editing the template manually) nor does it count the new posts inside the forums correctly.
Will give it another chance if/when it's updated. :)

Dax IX 01-20-2009 04:42 PM

Did you add the template variables to your vBA options?

Code:

cybanp_ssmforums
cybanp_posts
cybanp_threads


Blue91 01-20-2009 05:02 PM

Quote:

Originally Posted by Chani (Post 1719181)
Did you add the template variables to your vBA options?

Code:

cybanp_ssmforums
cybanp_posts
cybanp_threads


I, for one, have done that already. Thanks for the suggestion though.

Mythor 01-20-2009 07:42 PM

Yes, I too tried adding the variables. And every other fix available in this thread plus a few I came up with myself. Nothing seemed to make any improvement.
Hopefully Cybernetec will know what's gone wrong and 2.5 will get the job done. :)

aproape 01-20-2009 08:56 PM

Greetings everyone,

We installed v2.4 over v2.1. Didn't work at first on our customized template - the links went away from the navbar.

The default template, however, worked on the forum homepage without any issues.

We've read all the posts in here and checked the cyb_advancednewposts template. It was modified since the last version and the new upgrade didn't modify it [of course].

We reverted the cyb_advancednewposts so that we have the new version and.. Voila! The mod works on the forum homepage.

VBA pages, however - still don't work. We're looking into making that work as well. Stay tuned..

Cheers,
aproape

Blue91 01-21-2009 03:13 PM

I think I'm going to uninstall this until someone posts up that they've got a way to get it working on both the forums navbar and on the navbar on the vbadvanced home page. My users keep PMing me letting me know it works on forums, but constantly says "checking" on home page.

Will keep an eye on this to see if it's ever resolved. :-(


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.01364 seconds
  • Memory Usage 1,829KB
  • 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
  • (5)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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