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)
-   -   Mini Mods - My Listings (link in postbit) (https://vborg.vbsupport.ru/showthread.php?t=218592)

Gio~Logist 02-17-2016 10:26 PM

That can be done with a conditional such as
Code:

<if condition="$thread['firstpostid'] == $post['postid']">

</if>


blind-eddie 02-17-2016 11:01 PM

In the plugin?

Gio~Logist 02-17-2016 11:14 PM

Ah, sorry.. It's been a while since i edited this mod.

In the postbit_display_complete plugin, change the following
Code:

$template_hook[postbit_userinfo_right] .= '<div align="right"><a href="' . $this->registry->options['bburl'] . "/forumdisplay.php?f=$forum[forumid]&userid=$post[userid]\">" . $mylistings_inpostbit_forums . '</a><div>';
To
Code:

if($thread['firstpostid'] == $post['postid']){
$template_hook[postbit_userinfo_right] .= '<div align="right"><a href="' . $this->registry->options['bburl'] . "/forumdisplay.php?f=$forum[forumid]&userid=$post[userid]\">" . $mylistings_inpostbit_forums . '</a><div>';
}


blind-eddie 02-17-2016 11:15 PM

I tried that conditional in the plugin yesterday, threw up errors

No other addon I have installed uses $template_hook[postbit_userinfo_left]. I added the conditional to that, works fine, Thank you

blind-eddie 02-17-2016 11:20 PM

Opps, I was typing as you posted.

Gio~Logist 02-17-2016 11:25 PM

Assuming its working now?

blind-eddie 02-17-2016 11:28 PM

Yes, thank you. Not sure why I did not think to wrap a conditional around the hook. :confused:

Gio~Logist 02-17-2016 11:35 PM

Heh, no worries. Happens to the best of us :up:


All times are GMT. The time now is 04:57 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.00995 seconds
  • Memory Usage 1,724KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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