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)

Hippy 09-10-2012 10:10 AM

I just looked at your forum I would have to come by to fix it
or maybe I can get a better idea on how to explain it better when I am in for of my rig.
I'm at work atm on my cell

Hippy 09-10-2012 07:46 PM

1 Attachment(s)
Quote:

Originally Posted by Zylantex (Post 2364218)
That doesn't seem to make much difference? It's giving me something like this.

Code:

Thanks                      4,645
Thanked 7,898 Times in 3,690
                                Posts


first
to make room so the info stays in the field

the stylevars with in your style your working on
search for
postbitlegacy_userinfo_width

it's 200
make it 220
it should be good
but you may need to tweak that # a little to 230 etc


your post_thanks_postbit_info template should be like so.
so the
thanked
and
thanked in x post are not in the same box..


Code:

<vb:if condition="$post['userid']">
    <div class="post_field"><dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
    <vb:if condition="$post['post_thanks_thanked_times'] == 1">
      <div class="post_field">{vb:rawphrase post_thanks_time_post}</div>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
      <div class="post_field">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</div>
    <vb:else />
        <div class="post_field">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</div>
    </vb:if>
</vb:if>

hope this helps

Deimos 09-15-2012 06:53 PM

Is there anyway to shrink, or move the "Users who have thanked XX" box? It seems to take up an awful amount of space under each post

I couldn't find anything while searching.

Hippy 09-15-2012 07:48 PM

Not sure about shrinking, but the version i posted has a collapsible box

Djonn 09-15-2012 10:52 PM

I try to use this on vB 4.2 with a custom design.
But since i activated this plugin, the page is a mix of my custom design and the default vB 4 Design. For example the header and the userprofile (classic postbit) are from my design, and most of the rest (like the background) from the default template.
I try this with both updates for vb 4.2 but it isn't working.

And the plugin also replace my language - he set it to the default value (english).
Whats wrong here?

vinayagam 09-18-2012 01:02 PM

Doesn't work for version 4.2

Hippy 09-18-2012 01:13 PM

Quote:

Originally Posted by vinayagam (Post 2366419)
Doesn't work for version 4.2

This one works https://vborg.vbsupport.ru/showpost....postcount=1941

vinayagam 09-18-2012 01:30 PM

Quote:

Originally Posted by Hippy (Post 2366421)

Thnx Very Much Am Trying It

vinayagam 09-18-2012 01:45 PM

Quote:

<vb:if condition="$post['userid']">
<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
{vb:rawphrase post_thanks_thanks} <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
{vb:rawphrase post_thanks_time_post}
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</div>
<vb:else />
<div class="etiket_postbit_alanI_userinfo_extra_yazIlar I">
{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</div>
</vb:if>
</vb:if>
Where should i put this ???

vinayagam 09-18-2012 01:54 PM

i get this error when i install it

Videx 09-18-2012 02:03 PM

Quote:

Originally Posted by vinayagam (Post 2366427)
i get this error when i install it

Don't take this the wrong way please, but you really shouldn't be installing anything but the simplest mods until you understand vb more. And the first rule of any mod install is that first you must read the entire thread to familiarize yourself with it. While that may not be practical, at the very least you should read the last couple pages.

The first thing you should have noticed about this mod is that the author hasn't been around in ages (a BIG warning sign!) and that the first post already answered your earlier question. I don't even know about your second question, I think you're just installing it wrong.
https://vborg.vbsupport.ru/showthread.php?t=201864

Hippy 09-18-2012 09:45 PM

what Videx said ..:up:
get the mod working them customize it



Quote:

Originally Posted by vinayagam (Post 2366426)
Where should i put this ???

that template is for eTiKeT? 2011 Posbit_legacy - Postbit Details
if your using that modification then

your post_thanks_postbit_info is replaced with that code

Quote:

Originally Posted by vinayagam (Post 2366427)
i get this error when i install it

Quote:

Originally Posted by Videx (Post 2366433)
Don't take this the wrong way please, but you really shouldn't be installing anything but the simplest mods until you understand vb more. And the first rule of any mod install is that first you must read the entire thread to familiarize yourself with it. While that may not be practical, at the very least you should read the last couple pages.

The first thing you should have noticed about this mod is that the author hasn't been around in ages (a BIG warning sign!) and that the first post already answered your earlier question. I don't even know about your second question, I think you're just installing it wrong.
https://vborg.vbsupport.ru/showthread.php?t=201864


RedTurtle 09-19-2012 11:23 PM

Hi guys,

I'm having an issue where after a user thanks a certain post and refreshes the page, the Thank you button still persists on that same post even though the thanks has been recorded.

Which file would I have to track this down to?

Could it be because I'm using a CSS class to make the thank you button rather than just a direct img src tag?

Thank you!

Here is my post_thanks_button template:


HTML Code:

<a href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groans_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button" style="width: 0px; margin: 0px; padding: 0px;" ></a>

<span id="post_thanks_separator_{vb:raw post.postid}" <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> style="border: 0px; padding: 0px; margin: 0px;"></span>


Hippy 09-19-2012 11:50 PM

Most likely its your edit. You should not have to refresh the page. Put it back to default and make sure it works as it should, so you can track the issue down.

RedTurtle 09-20-2012 12:03 AM

Quote:

Originally Posted by Hippy (Post 2366839)
Most likely its your edit. You should not have to refresh the page. Put it back to default and make sure it works as it should, so you can track the issue down.

Thank you Hippy. Would it be the edit in the post_thanks_button template itself? I am a little lost but it looks like maybe the ID of the specific thank you button that needs to be removed is not being added properly?

I have tried putting the default post_thanks_button template back in and the issue still seems to persist. Is there any way I could have you take a look at the site or send you some templates? I would be willing to compensate you for your time.

Thank you for responding.

EDIT: In response to your reply -- I don't have to refresh the page to see the thank you register but when I do refresh the page, the thank you button shows up again on the same post even though it is showing that I already thanked that post.

Hippy 09-20-2012 12:11 AM

Pm me details. I'll take a look

DFORMS 09-21-2012 04:02 PM

Hi guys!

First I would like to thank everyone who is keeping this mod alive. For me this is one of the best mods! I am currently running a phpbb forum http://fragnet.ca but now I want to switch to VB 4.2 http://quebec-gamer.ca (my test/dev board).

I've followed the instructions and successfully installed this mod but I am having a display issue with my custom profile fields :

http://quebec-gamer.ca/images/thank_1.jpg

Secondly I would like to use two different images for the thumbs up icon. The height of the two new images are 18px so it?s being cut off at the top and the bottom :

http://quebec-gamer.ca/images/thank_2.jpg

Any help with this would be greatly appreciated, thank you!

Hippy 09-21-2012 06:40 PM

send me links to the new images your using and I will resize them..
replace your post_thanks_postbit_info
with for the alignment issue
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>{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd>{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>


DFORMS 09-21-2012 09:22 PM

Thank you Hippy, that did the trick!

I have Photoshop and modifying the images is not a problem. I just hoping to could keep the same height and not reduce the quality.

Nirjonadda 09-22-2012 06:08 PM

1 Attachment(s)
Bug on thread Show block in Username ? How to fix this ?

Attachment 141386

marcus123 09-22-2012 10:40 PM

so i installed this app BUT its clashing with this one https://vborg.vbsupport.ru/showthread.php?t=238691 when i installed it the money/credit or whatever you would like to call it displayed like this

https://vborg.vbsupport.ru/external/2012/10/44.jpg

i have 100 points but it isnt showing in the correct position but it was in the correct postion before installing this app

any idea how to fix this?

Hippy 09-22-2012 10:52 PM

Use the template I have posted just above

RedTurtle 09-23-2012 01:24 AM

Quote:

Originally Posted by Nirjonadda (Post 2367719)
Bug on thread Show block in Username ? How to fix this ?

Attachment 141386

Have the same issue. Hippy I think you had suggested a fix for me the other day but I just don't recall it. Could you post the solution here please?

Thank you!

marcus123 09-23-2012 01:48 AM

Quote:

Originally Posted by Hippy (Post 2367411)
send me links to the new images your using and I will resize them..
replace your post_thanks_postbit_info
with for the alignment issue
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>{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd>{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>


Quote:

Originally Posted by Hippy (Post 2367770)
Use the template I have posted just above

i cant find the file post above in red

Hippy 09-23-2012 12:31 PM

the day I was at your place , after the new style allwas good ..
I'm confused now

Quote:

Originally Posted by RedTurtle (Post 2367788)
Have the same issue. Hippy I think you had suggested a fix for me the other day but I just don't recall it. Could you post the solution here please?

Thank you!

its a template
Quote:

Originally Posted by marcus123 (Post 2367792)
i cant find the file post above in red


Ravallojr 09-23-2012 02:56 PM

Anyone know how to fix database error?

ForceHSS 09-23-2012 03:30 PM

Quote:

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

post it

Nirjonadda 09-23-2012 03:48 PM

Quote:

Originally Posted by Nirjonadda (Post 2367719)
Bug on thread Show block in Username ? How to fix this ?

Attachment 141386

Any Update About On This ?

ForceHSS 09-23-2012 03:58 PM

cant work with a screenshot need link to problem and what is the problem you are pointing to all i see are some user names maybe if you say what you think is wrong

Nirjonadda 09-23-2012 04:09 PM

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

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 09:05 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.04784 seconds
  • Memory Usage 1,881KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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