vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - eTiKeT? 2011 Posbit_legacy - Postbit (https://vborg.vbsupport.ru/showthread.php?t=274568)

stevieb 08-04-2013 01:05 PM

Yes it's there - aligned but duplicated - see my last post at the bottom. Remove this hook "template_hook.postbit_userinfo_right_after_po sts"

That's duplicating the mis aligned thanks. Remove that line of code and the new version will work.

joeychgo 08-04-2013 01:07 PM

Bingo! Thank you stevieb!1!

Now I just have to figure out how to get the photos link formatted properly

stevieb 08-04-2013 01:07 PM

Quote:

Originally Posted by stevieb (Post 2437037)

You also need to remove the main hook which adds the mis aligned thanks or they'll duplicate - to do that remove this hook "template_hook.postbit_userinfo_right_after_po sts" - and add each element directly like we have (age/location/posts/thanks/rep etc).

See this - that'll fix it :)

stevieb 08-04-2013 01:08 PM

Quote:

Originally Posted by joeychgo (Post 2437048)
Bingo! Thank you stevieb!1!

I spent hours lol. Just add each other element such as fieldX and age/stats etc as removal of that hook loses some of that.

stevieb 08-04-2013 01:12 PM

Do you want it aligning centre? If so just add HTML :)

Code:

<div align="center">
  Put your vB text here
</div>


stevieb 08-04-2013 01:14 PM

Edit - you've added that link beyond the container div.

You need to move it. Add it the same as you did the thanks above, in a new line directly below thanks and the link will sit in the container then.

Make sense?

To align it, add the div in my last post to it :)

stevieb 08-04-2013 01:16 PM

Should look like this:

<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
Thanks Received <dd>{vb:raw post.post_thanks_thanked_times}</dd></div>
<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
Thanks Given <dd>{vb:raw post.post_thanks_user_amount}</dd></div>
<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I" align="center">
Your new code here </div>

joeychgo 08-04-2013 01:18 PM

Its using a hook

Code:


  if( $this->post['vbpg_user'])
  {
  $template_hook['postbit_userinfo_right'] .= '<div class="imlinks" style="margin-bottom:10px;"><a href="vbpicgallery.php?'.$vbulletin->session->vars['sessionurl'].'do=hall&amp;u='.$this->post['userid'] . '">'.construct_phrase($vbphrase['vbpicgallery_view_photos_by'], $this->post['username'])."</a></div>\n";
  }


stevieb 08-04-2013 01:20 PM

Quote:

Originally Posted by joeychgo (Post 2437056)
Its using a hook

Code:


  if( $this->post['vbpg_user'])
  {
  $template_hook['postbit_userinfo_right'] .= '<div class="imlinks" style="margin-bottom:10px;"><a href="vbpicgallery.php?'.$vbulletin->session->vars['sessionurl'].'do=hall&amp;u='.$this->post['userid'] . '">'.construct_phrase($vbphrase['vbpicgallery_view_photos_by'], $this->post['username'])."</a></div>\n";
  }


Ok drop that code in my example above where it says "your new code here" - try that.

I'm on mobile so hard to help properly just now :)

joeychgo 08-04-2013 01:26 PM

I tried that - no good.

<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I" align="center">
{vb:raw template_hook.postbit_userinfo_right}
</div>


All times are GMT. The time now is 12:44 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.01574 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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