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)

Blue91 01-12-2009 10:15 PM

thunderclap82.... as it turns out, by adding forums/ in front of the search.php callout like you said, my newposts link on the actual forums doesn't work now.

So I'm back to square one, as described in post #4. :( Can someone out there help?

I suck at coding but I'm starting to wonder if I'm going to have to turn the entire cyb_advancednewposts template into an if/then statement. I have no idea how to do that (yet).

TimberFloorAu 01-12-2009 10:19 PM

Blue91 have you added this hack string to vb advanced in admincp.

ie. the bit where you specify prefix urls.?

Infopro 01-12-2009 10:27 PM

Quote:

Originally Posted by thunderclap82 (Post 1710118)
UPDATE: I've gotten the link working properly in vBadvanced, but it doesn't seem to be displaying the new message number correctly.

To fix the link search your style(s) for search.php

In the list select cyb_advancednewposts

Find the href="search.php?" and replace with href="/<forum dir>/search.php?"

This will get the links working properly under vBadvanced.

Change /<forum dir>/ to

{$vbulletin->options[bburl]}/

Infopro 01-12-2009 10:49 PM

1 Attachment(s)
I also had to change this:
<div class="vbmenu_popup" id="cyb_forumsearch_menu" style="display:none">

To this:
<div class="vbmenu_popup" id="cyb_forumsearch_menu" style="display:none;margin-top:3px" align="$stylevar[left]">

Still trying to locate the space in toolbar just before the "New Posts" text.

Blue91 01-12-2009 11:01 PM

Quote:

Originally Posted by TimberFloorAu (Post 1710287)
Blue91 have you added this hack string to vb advanced in admincp.

ie. the bit where you specify prefix urls.?

I wouldn't know where to add it. It looks like I got the search issue taken care of though (thanks infopro).

Now the issue is like thunderclap82 mentioned above... the "numbering" feature doesn't work with the main page. It just says "No New Posts". However, it works fine with the forums index, showing how many new posts there really are.

*shrug*

subnet_rx 01-12-2009 11:07 PM

Why is there so much space on both sides of the new posts link? Can that be fixed?

thunderclap82 01-12-2009 11:14 PM

Quote:

Originally Posted by Blue91 (Post 1710281)
thunderclap82.... as it turns out, by adding forums/ in front of the search.php callout like you said, my newposts link on the actual forums doesn't work now.

Really? It works for me. Did you include the slash before forums? (i.e. /forums/) You don't have it listed that way above. If not that could be causing the problem.

Infopro 01-12-2009 11:24 PM

Quote:

Originally Posted by Blue91 (Post 1710331)
I wouldn't know where to add it. It looks like I got the search issue taken care of though (thanks infopro).

Now the issue is like thunderclap82 mentioned above... the "numbering" feature doesn't work with the main page. It just says "No New Posts". However, it works fine with the forums index, showing how many new posts there really are.

*shrug*

There are 4 places to add what I posted. Search that template for href to find them.

thunderclap82 01-13-2009 12:38 AM

Quote:

Originally Posted by Infopro (Post 1710321)
I also had to change this:
<div class="vbmenu_popup" id="cyb_forumsearch_menu" style="display:none">

To this:
<div class="vbmenu_popup" id="cyb_forumsearch_menu" style="display:none;margin-top:3px" align="$stylevar[left]">

Still trying to locate the space in toolbar just before the "New Posts" text.

I tried adding this but in vBadvanced it still says "No New Messages".

Dax IX 01-13-2009 04:02 AM

Quote:

Originally Posted by thunderclap82 (Post 1710402)
I tried adding this but in vBadvanced it still says "No New Messages".

You need to add template variables into your vBA configuration under Portal Output Global Variables.

I have:
Code:

cybanp_ssmforums
cybanp_posts
cybanp_threads

Good luck. :)


I have a question, tho...how would I only show the forums that have new posts in them in the SSM list? Also, how would you only show the forums that a user has permission to view at the same time?

Thanks! :)


All times are GMT. The time now is 04:12 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.01318 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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