vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Different Postbit on first post based on prefix (news thread) (https://vborg.vbsupport.ru/showthread.php?t=232803)

RobbieZ 05-20-2010 07:25 AM

Interesting..

texasf1racer 08-11-2010 05:12 PM

Thanks, its a handy mod! One problem though, my forum members and guests are seeing the different postbit for the first post on each page of the thread. Only the original posters #1 post in the thread should use the different postbit.

Any idea what could be causing this?

tpearl5 08-11-2010 05:30 PM

I'm not sure why that would be happening. The conditional will make sure it is only displayed on the first post of the thread regardless of the page. Did you copy things per the instructions above?

texasf1racer 08-12-2010 02:23 AM

Hi, thanks for the quick reply!

I actually used the adjusted conditional from Danny above for multiple prefixes, however I tried it with just your code as well and the bug was still present. In fact on your site you can see it on page 2 of THIS thread for example. It turns out that admin/mod accounts see it correctly with only the first post in the thread using the different postbit. Guests/not logged in and regular user accounts see the different postbit for the first post on each page of the thread - even though that post isn't the original posters.

Thanks to one of our members, he found the fix by changing your conditional to:
HTML Code:

<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $thread['firstpostid'] AND $thread['prefixid'] == news">
Thank you for posting this, we found it very useful! :)

DannyITR 08-12-2010 01:17 PM

Quote:

Originally Posted by texasf1racer (Post 2082487)
Hi, thanks for the quick reply!

I actually used the adjusted conditional from Danny above for multiple prefixes, however I tried it with just your code as well and the bug was still present. In fact on your site you can see it on page 2 of THIS thread for example. It turns out that admin/mod accounts see it correctly with only the first post in the thread using the different postbit. Guests/not logged in and regular user accounts see the different postbit for the first post on each page of the thread - even though that post isn't the original posters.

Thanks to one of our members, he found the fix by changing your conditional to:
HTML Code:

<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $thread['firstpostid'] AND $thread['prefixid'] == news">
Thank you for posting this, we found it very useful! :)

I'm experiencing this issue as well but only in Internet explorer. In Firefox, its only the first post on the first page that gets the new postbit as it should be. Would love to get this fixed somehow.

texasf1racer 08-13-2010 06:22 AM

As far as I know using the conditional I posted above should work in IE8, Firefox, and Chrome as my staff use those browsers with no report of the bug anymore.

DannyITR 08-17-2010 04:41 PM

A user is now reporting that he sees the different postbit on every first post even in FF. I'm going to upgrade to VB4 soon anyways. Will this still work?

DannyITR 10-03-2011 02:26 PM

Is there any chance of this being ported to VB4?

tpearl5 05-16-2013 12:24 PM

Quote:

Originally Posted by DannyITR (Post 2252706)
Is there any chance of this being ported to VB4?

I'm actually using a modified version of the regular postbit template now (postbit_legacy is set as the normal postbit) using this code:

Code:

<vb:if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrfirstpostid'] AND in_array($thread['prefixid'], array('howto', 'news', 'info'))">

DannyITR 05-16-2013 05:16 PM

Thanks I'll try it out!


All times are GMT. The time now is 06:28 AM.

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.01096 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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