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)

thetechgenius 11-04-2014 01:39 PM

I would like to move the Thanked users box below the signature. Right now its below the post, I think it would look much cleaner inside the posts, below the signature.

Does anyone know how to do this? I am running vB 4.1.4.

TheLastSuperman 11-05-2014 11:42 AM

Quote:

Originally Posted by thetechgenius (Post 2521265)
I would like to move the Thanked users box below the signature. Right now its below the post, I think it would look much cleaner inside the posts, below the signature.

Does anyone know how to do this? I am running vB 4.1.4.

I noticed your post here as well:
https://vborg.vbsupport.ru/showthread.php?p=2521457

Edit the .xml, scroll to find (around line 206):
Code:

        $templater = vB_Template::create('post_thanks_box');
        $templater->register('post', $post);
        $templater->register('post_thanks_box', $post_thanks_box);
        $template_hook['postbit_end'] .= $templater->render();
}

Change this line:
Code:

$template_hook['postbit_end'] .= $templater->render();
To:
Code:

$template_hook['postbit_signature_end'] .= $templater->render();
Basically as you can see we simply added _end but that changes the location of where it inserts the thanks box.

Edit: Also not sure if it makes a difference, perhaps on the line in the .xml file being 206 or not lol but I was referencing a change to the .xml file from this post: https://vborg.vbsupport.ru/showthrea...50#post2249550 the one w/ the search fix included.

mokujin 11-05-2014 12:34 PM

Quote:

Originally Posted by TheLastSuperman (Post 2521461)
I noticed your post here as well:
https://vborg.vbsupport.ru/showthread.php?p=2521457

Edit the .xml, scroll to find (around line 206):
Code:

        $templater = vB_Template::create('post_thanks_box');
        $templater->register('post', $post);
        $templater->register('post_thanks_box', $post_thanks_box);
        $template_hook['postbit_end'] .= $templater->render();
}

Change this line:
Code:

$template_hook['postbit_end'] .= $templater->render();
To:
Code:

$template_hook['postbit_signature_end'] .= $templater->render();
Basically as you can see we simply added _end but that changes the location of where it inserts the thanks box.

Edit: Also not sure if it makes a difference, perhaps on the line in the .xml file being 206 or not lol but I was referencing a change to the .xml file from this post: https://vborg.vbsupport.ru/showthrea...50#post2249550 the one w/ the search fix included.

If the user does not have signature (or have turn off the signature) then post thanks won't show up.

Teascu Dorin 11-05-2014 03:22 PM

Use an if condition. If sig off use $template_hook['postbit_end'] .= $templater->render(); else $template_hook['postbit_signature_end'] .= $templater->render();

ozzy47 11-05-2014 11:08 PM

No don't use conditionals, the easiest way is to do this.

Edit the .xml, scroll to find (around line 206):
Code:

        $templater = vB_Template::create('post_thanks_box');
        $templater->register('post', $post);
        $templater->register('post_thanks_box', $post_thanks_box);
        $template_hook['postbit_end'] .= $templater->render();
}

Change this line:
Code:

$template_hook['postbit_end'] .= $templater->render();
To this:
Code:

$show['post_thanks_box'] = $templater->render();
Then in your postbit_legacy or postit template find:
Code:

{vb:raw template_hook.postbit_signature_end}
And after that add this:
Code:

{vb:raw show.post_thanks_box}
Now it will show inside the post, below the signature, even if the user has no signature.

hurricane_sh 11-08-2014 09:03 AM

The thanks hack on vB looks very nice, does anyone know if it's the same hack? Thanks!

ozzy47 11-08-2014 10:44 AM

No the thanks hack on vB.org is the reputations system, modified to act like a thanks. :)

ForceHSS 11-08-2014 01:05 PM

Quote:

Originally Posted by ozzy47 (Post 2521907)
No the thanks hack on vB.org is the reputations system, modified to act like a thanks. :)

How you know that

ozzy47 11-08-2014 01:08 PM

Because every time you click on a like, for someones post, it adds to their reputation. :)

ForceHSS 11-08-2014 01:15 PM

And where in members profile does it show this info as I don't see it in mine on here unless you see it because of the group you are in

ozzy47 11-08-2014 01:17 PM

I believe it only shows on the memberlist, https://vborg.vbsupport.ru/memberlis...putation&pp=25

ForceHSS 11-08-2014 01:21 PM

I see but even with that info there is no way to know it goes up when members click the like button on here unless an admin told you it does that. What does the rep even do to me it does nothing even on my own site

ozzy47 11-08-2014 01:22 PM

Well that is just the way it was coded. :)

VHLinks 11-08-2014 09:53 PM

So I just installed Force HSS's version and it works great on my 4.2.2. I've tried searching the thread and it's just so hard to find the answer to this. I just want to move the Thanks button itself from the far left over next to the Post and Reply buttons on the right and I just can't seem to get it to work. I know it should be easy to do. Any help would be great! Thanks.

ForceHSS 11-08-2014 11:16 PM

Quote:

Originally Posted by VHLinks (Post 2521985)
So I just installed Force HSS's version and it works great on my 4.2.2. I've tried searching the thread and it's just so hard to find the answer to this. I just want to move the Thanks button itself from the far left over next to the Post and Reply buttons on the right and I just can't seem to get it to work. I know it should be easy to do. Any help would be great! Thanks.

Install dbtech thanks mod you will find it better

VHLinks 11-09-2014 12:36 AM

Quote:

Originally Posted by ForceHSS (Post 2521986)
Install dbtech thanks mod you will find it better

I didn't like it, I had the old 3.8 version of this one. I like yours, it works great, I just want the Like Post thing over on the other side. It's perfect other than that. Plus this one works with Tapatalk and a lot of my users (like myself) like that.

VHLinks 11-09-2014 03:30 AM

Well I actually figured it out somehow. Seems to be right, so I'm happy. :)

ForceHSS 11-09-2014 05:14 AM

Good you worked it out if you can post what you changed in case others need the info

Firyou 11-10-2014 08:33 AM

This mod has been working fine for the last year and I love that it works with tapatalk. I looked through the thread and wasn't able to find this. I was wondering how I can go about editing the text that says "Thanked X Times in X Posts" in postbit legacy

I wanted to shorten it to just "Thanked X Times" because it's stretching out the width of the postbit box since my members thank a lot. Tyia for any help.

Black Snow 11-10-2014 01:52 PM

Quote:

Originally Posted by Firyou (Post 2522114)
This mod has been working fine for the last year and I love that it works with tapatalk. I looked through the thread and wasn't able to find this. I was wondering how I can go about editing the text that says "Thanked X Times in X Posts" in postbit legacy

I wanted to shorten it to just "Thanked X Times" because it's stretching out the width of the postbit box since my members thank a lot. Tyia for any help.

It is a phrase. Run a search for "thanked" and edit it.

Pisadam 11-12-2014 10:58 AM

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

I'm getting an error. Can you help me pls @ForceHSS

ForceHSS 11-12-2014 11:02 AM

Check error file and post the error

Franck 11-13-2014 08:04 AM

Quote:

Originally Posted by Pisadam (Post 2522383)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

I'm getting an error. Can you help me pls @ForceHSS

I was getting that error too, and, checking the error log, it showed that the permissions were set wrong on the post_thanks.php file, was writable by Group. Changed it to 755 and all working great now.

Thanks @ForceHSS for the fixes.

webfred 11-15-2014 12:35 PM

thank you very much

dariyos 12-01-2014 08:51 AM

whats that????

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

WEBDosser 12-01-2014 09:14 AM

Someone has received a lot of thanks..

dariyos 12-02-2014 08:16 AM

what can i do now?

how is it possible to get the Value "4.294.967.295 " (UINT 32 Bit) ---> Decimal Value "-1" for a Thanks?

angemon 12-04-2014 10:44 PM

how to make the users only say thanks based on how much thanks they have !? I mean If a member have 10 thanks then he thank someone's post he lose 1 thank , so he end up with 9 thanks and the other one will have 1 thanks which he can use to thank someone else.

ozzy47 12-04-2014 10:52 PM

That will not happen with this mod, as the developer has not been on in almost five years.

But if you were to do such a thing, where would someone get a thank to be able to thank someone else?
Where would this thank be removed from, which post?

That is way to complicated of a system to try and integrate into this mod.

angemon 12-04-2014 10:57 PM

Quote:

Originally Posted by ozzy47 (Post 2525698)
That will not happen with this mod, as the developer has not been on in almost five years.

But if you were to do such a thing, where would someone get a thank to be able to thank someone else?
Where would this thank be removed from, which post?

That is way to complicated of a system to try and integrate into this mod.

I didn't know it was too complicated , here what I want , I've enabled the hide-thanks in threads so people need to thanks the OP to view the thread , but to thanks the thread he need to have thanks first , which require him to write threads to get thanks from other members , so that's why I need the system that when someone thanks a thread he got -1 thank , and the other one get that 1 thank.

ozzy47 12-04-2014 11:04 PM

Yeah that is way to complicated to do with this mod. I am sure you could pay someone, and they may be able to code something. But I still don't see where the thanks will get taken from, as it is assigned to a post. So you would have to basicaly un thank a post in order to take a thanks away.

angemon 12-04-2014 11:08 PM

Quote:

Originally Posted by ozzy47 (Post 2525705)
Yeah that is way to complicated to do with this mod. I am sure you could pay someone, and they may be able to code something. But I still don't see where the thanks will get taken from, as it is assigned to a post. So you would have to basicaly un thank a post in order to take a thanks away.

is there any other mod that can do the work !? or a mod where thanks are not attached to posts ? I mean just a button you click to add a point as " like/dislike" but this time if you like someone post you got a dislike or something like that . I'm not sure if you get the idea I'm trying to tell

ozzy47 12-04-2014 11:09 PM

Not that I ever remember coming across.

angemon 12-04-2014 11:43 PM

Quote:

Originally Posted by ozzy47 (Post 2525708)
Not that I ever remember coming across.

can you made that mod for me!? I will buy it from you

ozzy47 12-04-2014 11:48 PM

I don't do paid work. You can post a request here, Requests for Paid Services just make sure you read the stickie threads in that forum before hiring someone. :)

RawBoard 12-18-2014 10:07 AM

The following dependencies were not met:

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

why is not working on the 4.2.1 ?

Simon Lloyd 12-18-2014 12:42 PM

You can remove the version dependencies in the xml, it's probably just been left like that as the real author hasn't been around for ages.

Are you using the correct one? https://vborg.vbsupport.ru/showthrea...50#post2249550

joeychgo 12-25-2014 10:40 AM

Any idea how to make this NOT visible to guests?

Simon Lloyd 12-26-2014 10:00 AM

just put the button in a conditional something like <vb:if condition="$show['member']"> if you want to do it for specific usergroups then wrap the button in <vb:if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> where 1,2 and 3 are the usergroups that CAN see it.

analog-x 12-28-2014 02:58 PM

Will this work with vBulletin 5.x ? If not. Is there a similar mod for vBulletin 5?


All times are GMT. The time now is 01:55 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.04213 seconds
  • Memory Usage 1,833KB
  • 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
  • (11)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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