vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

Hecpilot 04-26-2011 04:20 AM

Quote:

Originally Posted by RcHelp (Post 2188751)
Installed on 4.1.3 and works great. It's nice to finally have a way for new members to see who they can actually trust on a forum. Even though mine is just starting out. Great work, keep it up!

Which version did you install?

Hippy 04-26-2011 07:40 PM

Quote:

Originally Posted by Hecpilot (Post 2188754)
Which version did you install?

most likely https://vborg.vbsupport.ru/showpost....postcount=1433

Hippy 04-26-2011 07:51 PM

1 Attachment(s)
Quote:

Originally Posted by gnrx (Post 2188698)
A few days ago, I add in my additional.css this code:
Code:

.postbit .userinfo_extra dl dt {clear: both;}
.postbit .userinfo_extra dl dd  {float: left;}
.postbit .userinfo .userinfo_extra dl, .postbit .userinfo_noavatar .userinfo_extra dl {width: 200px;}

After this, I modified some line in vars (with indications of some post here):

In template post_thanks_postbit_info
search and replace all vb:stylevar right by vb:stylevar left

All ok, but in some users, in postbit, some line of thanks appears in the same line, other users, have the thanks in differents lines (this is ok).

I attachs a images for view this:

How can I made for appears in all postbits, the thanks lines, in differents lines?

Thanks and regards!

change your post_thanks_postbit_info template to this..
Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>

while your there editing your template


change your post_thanks_javascript template
to this one there is a } missing. fixes a different problem..

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>

the template fix should keep it looking like the image attached , no matter how may post thanks

Mariner1 04-26-2011 09:13 PM

I get this error

This product is not compatible with version 4.1.3 of vBulletin. (Compatible starting with 4.0.0 beta 4 / Incompatible with 4.1.0 alpha 1 and greater)

Hippy 04-26-2011 10:16 PM

Quote:

Originally Posted by Mariner1 (Post 2189036)
I get this error

This product is not compatible with version 4.1.3 of vBulletin. (Compatible starting with 4.0.0 beta 4 / Incompatible with 4.1.0 alpha 1 and greater)

https://vborg.vbsupport.ru/showpost....postcount=1433
grab that one

gnrx 04-26-2011 11:11 PM

1 Attachment(s)
Quote:

Originally Posted by Hippy (Post 2189005)
change your post_thanks_postbit_info template to this..
Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>

while your there editing your template


change your post_thanks_javascript template
to this one there is a } missing. fixes a different problem..

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>

the template fix should keep it looking like the image attached , no matter how may post thanks

Hello.
Thanks for your reply.

I made the changes in the two templates, but my problem continue, only some users (or postsbits) appears the thanks in the same line, I attach a image after made the changes you comment.

Thanks and regards!

Hecpilot 04-26-2011 11:14 PM

Quote:

Originally Posted by Hippy (Post 2189002)

Thanks, that is the one I downloaded and installed. Works fine with vBulletin 4.1.3.

Hippy 04-26-2011 11:24 PM

Quote:

Originally Posted by gnrx (Post 2189068)
Hello.
Thanks for your reply.

I made the changes in the two templates, but my problem continue, only some users (or postsbits) appears the thanks in the same line, I attach a image after made the changes you comment.

Thanks and regards!

try this

find
Code:

<dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
in your post_thanks_postbit_info template
and add a <br /> after the </dd>

gnrx 04-26-2011 11:39 PM

Quote:

Originally Posted by Hippy (Post 2189070)
try this

find
Code:

<dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
in your post_thanks_postbit_info template
and add a <br /> after the </dd>

Hi Hippy!
Thanks for your help.

I made the changes but continue, not solved the problem, continue appears in the same line.

Thank you very much for your attention :)

Hippy 04-27-2011 12:34 AM

I'm going to have to ponder this one..
send me a link to your forum I will peek at the code..


All times are GMT. The time now is 12:50 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.02999 seconds
  • Memory Usage 1,766KB
  • 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
  • (7)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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