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)

ForceHSS 09-23-2012 04:19 PM

its just bring it to a new line going by that screenshot u have

Hippy 09-23-2012 04:29 PM

Quote:

Originally Posted by Nirjonadda (Post 2367944)
Its is username show does not correctly ! when username is Nirjonadda , Its show on Nirjon
adda

https://vborg.vbsupport.ru/external/2012/09/17.png

post your post_thanks_postbit template ..

Hippy 09-23-2012 04:31 PM

Quote:

Originally Posted by Ravallojr (Post 2367909)
Anyone know how to fix database error?

send me temp log dsetails and your site url

Nirjonadda 09-23-2012 04:42 PM

My v7.83 on your fixed updated !
post_thanks_postbit template is

Code:

<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0"</vb:if>>
        <div class="postrow">
        <vb:if condition="$bbuserinfo['usergroupid'] == 5 || $post['show_thanks_remove_option']">
        <div class="smallfont" style="float:{vb:stylevar right}">
                <vb:if condition="$bbuserinfo['usergroupid'] == 5">
                        <a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if condition="$vboptions['post_groans_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove}</a>
                </vb:if>
                <vb:if condition="$bbuserinfo['usergroupid'] == 5 && $post['show_thanks_remove_option']">
                        |
                </vb:if>
                <vb:if condition="$post['show_thanks_remove_option']">
                        <a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if condition="$vboptions['post_groans_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove_user}</a>
                </vb:if>
        </div>
        </vb:if>
        <h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
                <vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
        </h2>
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
        </div>
</div>
<hr />


Hippy 09-23-2012 04:51 PM

then the template was never converted back..
should look like this

Code:

<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0"</vb:if>>
        <div class="postrow">
        <vb:if condition="$bbuserinfo['usergroupid'] == 6 || $post['show_thanks_remove_option']">
        <div class="smallfont" style="float:{vb:stylevar right}">
                <vb:if condition="$bbuserinfo['usergroupid'] == 6">
                        <a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove}</a>
                </vb:if>
                <vb:if condition="$bbuserinfo['usergroupid'] == 6 && $post['show_thanks_remove_option']">
                        |
                </vb:if>
                <vb:if condition="$post['show_thanks_remove_option']">
                        <a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove_user}</a>
                </vb:if>
        </div>
        </vb:if>
        <h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
                <vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
        </h2>

<vb:if condition="$post['post_thanks_amount'] > 10">
<style type="text/css">

.togList
{
font-family: verdana;
}

.togList dt
{
cursor: pointer; cursor: hand;
}

html.isJS .togList dd
{
display: none;
}

</style>
<script type="text/javascript">

/* Only set closed if JS-enabled */
document.getElementsByTagName('html')[0].className = 'isJS';

function tog(dt)
{
var display, dd=dt;
/* get dd */
do{ dd = dd.nextSibling } while(dd.tagName!='DD');
toOpen =!dd.style.display;
dd.style.display = toOpen? 'block':''
dt.getElementsByTagName('span')[0].innerHTML
= toOpen? '-':'+' ;
}
</script>

<dl class="togList">
<dt onclick="tog(this)"><center><font style="font-size:12px"><span>+</span> Show/Hide list of the thanked</font></center></dt>
<dd>
<br />
<span id="thanks">
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
</span>
</dd>
</dl>
<vb:else />
<span id="thanks">
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
</span>
</vb:if>

        </div>
</div>
<hr />

But I dont think thats going to fix the issue with the wrapping ..
it's do to the users with spaces in there name ..
working on something with someone else at the moment .. If I figure it out I will post the fix

marcus123 09-23-2012 06:59 PM

Quote:

Originally Posted by Hippy (Post 2367873)

its a template

thanks fixed it

deltahawk5 09-24-2012 06:11 AM

Is there a away to change the wording from "Thanks" to "Like"? Sorting through 195 of post might be too much for me.

I'm using Hippy's version.

Hippy 09-24-2012 09:14 AM

Quote:

Originally Posted by deltahawk5 (Post 2368099)
Is there a away to change the wording from "Thanks" to "Like"? Sorting through 195 of post might be too much for me.

I'm using Hippy's version.

How to turn the "Post Thank You" hack into a "Likes" system similar to vBulletin.org

Nirjonadda 09-24-2012 02:48 PM

Quote:

Originally Posted by marcus123 (Post 2368008)
thanks fixed it

How to fixed , can you give me info ?

achoo254 09-24-2012 03:11 PM

[AJAX] Post Thank You Hack version 7.84 Edit by achoo254 - thanks add money (credits)

Enjoy :)


All times are GMT. The time now is 06:03 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.03604 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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