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>

stevieb 08-04-2013 01:29 PM

Or you could try adding style margin using your own existing code - edit this line: style="margin_bottom:10px; margin_left:12px;"

Edit the 12px till you get it sitting right.

stevieb 08-04-2013 01:31 PM

Quote:

Originally Posted by joeychgo (Post 2437066)
I tried that - no good.

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

No that won't work cos you've removed the if function.

I'll do it later for you if you get stuck when I login to PC (6hrs time)!!

joeychgo 08-04-2013 01:36 PM

Quote:

Originally Posted by stevieb (Post 2437067)
Or you could try adding style margin using your own existing code - edit this line: style="margin_bottom:10px; margin_left:12px;"

Edit the 12px till you get it sitting right.

Nope - no good. Thanks for your help - Ill check back tonight.

stevieb 08-04-2013 01:38 PM

What hack are you using for the photo's and can you please PM me your postbit_legacy text and I'll then PM it back once edited :)

joeychgo 08-04-2013 01:48 PM

vbpicgallery -- it uses a hook via a plugin - there is no code in the template except the hook itself

stevieb 08-04-2013 02:02 PM

1 Attachment(s)
Quote:

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

Code:

<div class="imlinks" style="margin-bottom:10px;">

On my test board this should work fine.... if you replace the above with this

Code:

<div class="imlinks" style="margin-bottom:10px; margin-top:3px" align="center">
Attachment 145934

joeychgo 08-04-2013 02:04 PM

that code is in the plugin, not the template --

my postbit legacy is exactly what is in this mod - except for the changes we made

stevieb 08-04-2013 02:08 PM

1 Attachment(s)
Quote:

Originally Posted by joeychgo (Post 2437079)
that code is in the plugin, not the template --

my postbit legacy is exactly what is in this mod - except for the changes we made

Ok, so go into the plugin and edit it - that will centralise it for you and keep it in the container - or is that not what you actually want?

See:

Attachment 145935

joeychgo 08-04-2013 02:08 PM

OK - that worked - - thank you!!!

(I just was making sure you understood that)

stevieb 08-04-2013 02:09 PM

Quote:

Originally Posted by joeychgo (Post 2437081)
OK - that worked - - thank you!!!

(I just was making sure you understood that)

lol yea I did understand, sorry :)

Got there in the end though - thats the main thing :)

You ought to shorten your location as it's breaking the script lol

To make it even better (and in the middle) change top and bottom to both 5px like so:

Code:

<div class="imlinks" style="margin-bottom:5px; margin-top:5px" align="center">

stevieb 08-04-2013 02:28 PM

If you get stuck adding post count (your members are complaining) let me know lol. Removing the hack took it away but easy to re-add :)

edit - just change your code to the following (the red option is the post element):

Code:

<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
{vb:rawphrase 'posts'}<dd>{vb:raw post.posts}</dd></div>


<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
Thanks Received <dd>{vb:raw post.post_thanks_thanked_times}</dd></div>

<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
Thanks Given <dd>{vb:raw post.post_thanks_user_amount}</dd></div>


joeychgo 08-04-2013 09:47 PM

Quote:

Originally Posted by stevieb (Post 2437084)
If you get stuck adding post count (your members are complaining) let me know lol. Removing the hack took it away but easy to re-add :)

edit - just change your code to the following (the red option is the post element):

I was just coming back for this :) thank you.

What did you mean about the location breaking?

stevieb 08-04-2013 10:50 PM

Quote:

Originally Posted by joeychgo (Post 2437143)
I was just coming back for this :) thank you.

What did you mean about the location breaking?

Hope the info helps. As I say mate I spent hours & hours getting it right so happy to save others going grey by providing the *correct* code to make it all work.

As you seen on my site, it can look pretty good when you spend time on it :)

Regards the location - sorry, on user "moparxxxxxx" from your forum, his location is too long so merges into the new "posts" line like so:

Location
Overland park ks / odessa missouri

If you restrict characters in the location field (custom fields) to 15/16 then it'll always stay in the one line :)

joeychgo 08-10-2013 10:51 PM

Odd problem -- Take a look at post 13 postbit

http://www.69roadrunner.net/mopar/sh...an-Honor/page2

Hippy 08-11-2013 03:21 PM

Quote:

Originally Posted by joeychgo (Post 2438245)
Odd problem -- Take a look at post 13 postbit

http://www.69roadrunner.net/mopar/sh...an-Honor/page2

that member does not have pictures in the gallery
so to fix it you would need to add a vb:if condition

viliksar1 08-29-2013 11:23 AM

How to make Russian translation of "status" and "online"?

viliksar1 09-01-2013 05:21 PM

Hi

The file postbit_legacy.tht no hooks
HTML Code:

{vb:raw template_hook.
in contrast to the default style. It's not too bad? Or am I worried for nothing?

Bubble #5 09-01-2013 11:39 PM

1 Attachment(s)
4.2.1

This is a VERY nice hack. I can see how it won MOTM :up:

A few tweaks and this will be a nice addition.

Please look at the screenshot below. The area in the red square condenses any images in there (makes them smaller). We'd like to make this area taller to see if it fixes the problem. Where do we do this at? Also, how do we center everything inside of that red square area?

caltek 11-06-2013 08:13 PM

Like the look. I did, however, take the .postbit .posttitle, .postbitlegacy .title out of the postbit.css file as I wasn't a fan of the look on my site. Thanks for the mod.

john7911 11-07-2013 10:32 AM

Thank you ;)

Manoel J?nior 02-08-2014 01:07 PM

Thanks!!!

Manoel J?nior 02-09-2014 03:45 PM

1 Attachment(s)
How to fix:

Attachment 148129

Code:

<div class="etiket_postbit_alanI_userinfo_extra_yazIlarI">
<dd>{vb:raw template_hook.postbit_userinfo_right_after_posts}</dd></div>


PAPPACLART 02-10-2014 01:41 PM

Absolutely fantastic. Really has give my site a refreshing look. HERE have a look

Thanks for all of the hard work. Will donate shortly.

john7911 02-28-2014 04:07 PM

Hi,
Does it work for 4.2.2 ?
Thank you ;)

Manoel J?nior 02-28-2014 04:33 PM

Quote:

Originally Posted by john7911 (Post 2484312)
Hi,
Does it work for 4.2.2 ?
Thank you ;)

Yes

john7911 02-28-2014 04:42 PM

Quote:

Originally Posted by Manoel J?nior (Post 2484316)
Yes

Thank you ;) I'll install it now :)

Firyou 02-28-2014 11:44 PM

Nice mod. Is there a way to make the dark theme a little darker?

Firyou 07-05-2014 08:44 PM

is theres anyway to adapt this to other things in the postbit? Like vbexperience stats for example. They all align to the left instead of the right side

Ahsan Ali 12-08-2014 03:34 PM

how to fix this ??????

https://vborg.vbsupport.ru/external/2014/12/24.png

ramesh_umk3 12-10-2014 05:47 PM

You need to limit your avatar width or you can do it with CSS either

add <div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
your THANKs raw CODE here </div>


All times are GMT. The time now is 09:51 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.02468 seconds
  • Memory Usage 1,827KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_html_printable
  • (13)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