vb.org Archive

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

BirdOPrey5 06-30-2011 12:14 PM

Then I don't know. Do you have a customized style? If so see if it works with the default style.

commoncents 06-30-2011 07:54 PM

would this have anything to do with it?

Quote:

Open template: memberinfo_block_statistics

find:
--------------------------------------------------------------------
<fieldset class="statistics_group">
<legend>$vbphrase[general_information]</legend>

--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[profile_stats_pregeneral]
I see this (bold) in 3-4 different spots. And I'm suppose to put $template_hook[profile_stats_pregeneral before all of them?

commoncents 06-30-2011 07:57 PM

Nevermind, I found it. It's until stats in user profile. I was thinking it would be right under "UserCP". is there a way I can put in under the subscribed threads?

BirdOPrey5 07-07-2011 11:28 PM

1 Attachment(s)
Several people have asked me for specific instructions on how I turned this mod into a "Like" button mod similar to what was recently added by vBulletin.org.

I have wrote up instructions as an article- HERE, if anyone is interested.

JerichoLFG 07-28-2011 05:32 PM

My button shows up for everyone EXCEPT the administrator. What do?

Adam H 07-28-2011 05:42 PM

Quote:

Originally Posted by JerichoLFG (Post 2226120)
My button shows up for everyone EXCEPT the administrator. What do?

You cant Thank your self :rolleyes:

JerichoLFG 07-28-2011 05:44 PM

Quote:

Originally Posted by Adam H (Post 2226124)
You cant Thank your self :rolleyes:

Thanks :D

mjfan227 07-31-2011 01:08 AM

Hi, I have vBulletin version 4.1.5 and I uploaded this and it seemed to work, there is another version that was incompatible, but this error showed at the top of the forum on the homepage.

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: post_thanks_navbar_search in [path]/includes/functions.php on line 4183

Please help. Oh, and if it has anything to do with this,

Open template: memberinfo_block_statistics

find:
--------------------------------------------------------------------
<fieldset class="statistics_group">
<legend>$vbphrase[general_information]</legend>
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[profile_stats_pregeneral]
--------------------------------------------------------------------

I have no idea where to find this. I'm new to this, thanks for your patience. :D

BirdOPrey5 07-31-2011 02:15 AM

Quote:

Originally Posted by mjfan227 (Post 2227072)
Hi, I have vBulletin version 4.1.5 and I uploaded this and it seemed to work, there is another version that was incompatible, but this error showed at the top of the forum on the homepage.

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: post_thanks_navbar_search in [path]/includes/functions.php on line 4183

Please help. Oh, and if it has anything to do with this,

Open template: memberinfo_block_statistics

find:
--------------------------------------------------------------------
<fieldset class="statistics_group">
<legend>$vbphrase[general_information]</legend>
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[profile_stats_pregeneral]
--------------------------------------------------------------------

I have no idea where to find this. I'm new to this, thanks for your patience. :D

This mod is for vBulletin 3.8 and 3.7. It will NOT work on VB 4.x. Uninstall this mod from your forum and the error will go away. Go download the 4.x version of this mod, it will be in the VB4 Mods section.

NgocTam 08-02-2011 02:34 AM

how to add bbcode hide thanks :confused:

Hicksatpd 08-04-2011 11:48 PM

A couple of things I'd love to know how to do, if anyone can help me:

1) Is there a way to change anywhere it says "Thanks" to "Like" by modifying either some of the code within the AdminCP or modifying a certain file (if so, where should I be going to do that, exactly)?

2) How can I turn off the statistics that are kept for each user? I don't really want to display how many times each user has thanked or has been thanked.

... Thanks!

civic-nation 08-05-2011 12:21 AM

Quote:

Originally Posted by Hicksatpd (Post 2229461)
A couple of things I'd love to know how to do, if anyone can help me:

1) Is there a way to change anywhere it says "Thanks" to "Like" by modifying either some of the code within the AdminCP or modifying a certain file (if so, where should I be going to do that, exactly)?

Do a search in phrases for Thanks and change them to Like

Quote:

Originally Posted by Hicksatpd (Post 2229461)
2) How can I turn off the statistics that are kept for each user? I don't really want to display how many times each user has thanked or has been thanked.

... Thanks!

Set "Show Stats in Postbit" and "Show Stats in Profile" to no in "Post Thank you hack" settings.

Hicksatpd 08-08-2011 09:31 PM

Whoops! Didn't realize I didn't have the latest version (7.4 didn't have the option to turn those stats off); thanks!

As for the first part, pardon my ignorance, but I'm not entirely sure what you mean. I understand the concept of finding one word and replacing it with another automatically, but I'm not sure where specifically I'm supposed to go to do that in this instance? A file that came with the mod? Somewhere in the templates? Somewhere in the mod within the adminCP?

Simon Lloyd 08-08-2011 11:01 PM

Try this https://vborg.vbsupport.ru/showthrea...hreadid=266358

ruchemist 08-26-2011 08:57 AM

Hi,
I have a problem with this hack. Sometimes "duplicate thank you" appear. I lock table and now receive errors like:
Code:

Invalid SQL:

                INSERT INTO post_thanks
                        (userid, username, date, postid)
                VALUES
                        ('4673', 'Yellow', 1314349801, 51598);

Error MySQL    : Duplicate entry '51598-4673' for key 'UK_post_thanks'

Anybody know how it can be solved?

Chase 08-31-2011 06:55 PM

My forum is on 3.8.4... I want to upgrade to 3.8.7...

I have the post thanks hack installed.... will my thanks be deleted if I upgrade? Anything I need to do beforehand?

BirdOPrey5 08-31-2011 07:36 PM

You can upgrade to 3.8.7 without a problem. Don't Uninstall the mod. You can disable it if you want before/while upgrading.

WoodiE 08-31-2011 08:15 PM

By default the Thanks button is added at the end of the postbit buttons list. What if I wanted to place that before the "Reply", "Quick Reply", and "Edit" buttons in postbit? How do I manually set the placement of the thanks button?

ruchemist 09-01-2011 08:13 AM

Hi,
Anybody have problems with this hack in MSIE8/9? Double thanks some times appear. I think it is a problem of ajax&MSIE. Hack version - 7.6

Simon Lloyd 09-01-2011 05:09 PM

Quote:

Originally Posted by ruchemist (Post 2240734)
Hi,
Anybody have problems with this hack in MSIE8/9? Double thanks some times appear. I think it is a problem of ajax&MSIE. Hack version - 7.6

No problem for me in any browser so farand i've been using this ages!

BonsaiNut 09-15-2011 05:30 PM

I am having trouble getting this hack to work on my site (www.bonsainut.com).

I am running vB version 3.8.4 v 2
I downloaded Post Thanks Hack 7.7

I installed the Mod:
I uploaded the files via FTP
I installed it via the Product Manager in my control panel
I hit "install" in this thread :)

It shows up in my vB Options Menu
I checked the options and make sure everything is turned "on"
But I don't see any "thanks" button on the posts

Interestingly, if I check my User CP, and my user Statistics, the Posts Thanked list shows up in my statistics (current count zero). But otherwise I cannot detect Post Thank You functionality anywhere on my site.

I assume there is a conflict with another Mod, or some customization code (?) but for the life of me I can't figure it out. I am not receiving any error codes...

Simon Lloyd 09-15-2011 06:02 PM

Quote:

Originally Posted by BonsaiNut (Post 2246422)
I am having trouble getting this hack to work on my site (www.bonsainut.com).

.........But I don't see any "thanks" button on the posts

Interestingly, if I check my User CP, and my user Statistics, the Posts Thanked list shows up in my statistics (current count zero). But otherwise I cannot detect Post Thank You functionality anywhere on my site.

I assume there is a conflict with another Mod, or some customization code (?) but for the life of me I can't figure it out. I am not receiving any error codes...

I think you'll find that you just have the path to the images wrong :)

BonsaiNut 09-15-2011 06:09 PM

Quote:

Originally Posted by Simon Lloyd (Post 2246435)
I think you'll find that you just have the path to the images wrong :)

Can you be more specific? If not, I can go searching :) Thank you for the help so far :)

BonsaiNut 09-15-2011 08:02 PM

Quote:

Originally Posted by Simon Lloyd (Post 2246435)
I think you'll find that you just have the path to the images wrong :)

Ok let me rephrase what I said :) I know I have a custom folder for images (buttons). I have installed the post thank you files in BOTH FOLDERS - the default AS WELL AS my custom folder. The mod does not work.

Do I have to modify the Post Thank You code in order to point it to a different folder? Or do I need to return my vBulletin install to default folders in order to get the Mod to work?

Simon Lloyd 09-15-2011 08:16 PM

The image will look like this
HTML Code:

<img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" />
Just to prove whether it's that change it for the full url so
HTML Code:

http://www.mysite.com/forums/style/images/buttons/post_thanks.gif
And see if that makes a difference :)

BonsaiNut 09-15-2011 09:04 PM

Quote:

Originally Posted by Simon Lloyd (Post 2246478)
The image will look like this
HTML Code:

<img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" />
Just to prove whether it's that change it for the full url so
HTML Code:

http://www.mysite.com/forums/style/images/buttons/post_thanks.gif
And see if that makes a difference :)

Ok just to be 100% certain that I am doing this correctly...

I went into the Post Thank You Hack Templates
I opened the template for post_thanks_button
The original code looked like:
<img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" />
I edited to this:
<img src="http://www.bonsainut.com/forums/images/bonsainut/buttons/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" />

It still does not work :( I checked the above hard-coded directory, and the button IS in that directory. Thank you for your help!

[EDIT]

Ok... interestingly I was playing around with postbit and postbit_legacy, and by moving code around I could get the button to display... but still no functionality. I would click on the button, but the display would not change to show "thanks"...

Simon Lloyd 09-16-2011 09:47 AM

Have you got all ajax enabled on your site? AdminCp>vBulletin Options>General Settings>Disable Ajax Features>Enable All Ajax features

Remember that this mod does conflict with other mods that use ajax!

BonsaiNut 09-16-2011 01:06 PM

Quote:

Originally Posted by Simon Lloyd (Post 2246681)
Have you got all ajax enabled on your site? AdminCp>vBulletin Options>General Settings>Disable Ajax Features>Enable All Ajax features

Remember that this mod does conflict with other mods that use ajax!

Yes, I do have Ajax enabled.

I assume the conflict I am having is with my custom design. In retrospect, I wish I had run with something a little more generic. I think I am going to upgrade my site to 4.0, and at that point use very limited customization...

Simon Lloyd 09-16-2011 02:38 PM

Well i don't know that vb4 is the way to go, ideally you should find out why iy's not working with yours as it could spell trouble later for other mods...etc

Pocket Aces 09-29-2011 04:59 PM

still doesn't have the option to delete all thanks a single user received?

jl255 10-10-2011 08:21 AM

should i expect importing of the XML file to take a long time for a large board with more than 1M posts? It takes 60s to process then goes to a blank blue page in my admincp.

Simon Lloyd 10-10-2011 08:28 AM

The bigger the board the longer it takes, you may have to turn your board off while installing it.

jl255 10-10-2011 08:45 AM

tks but it just seems to stop upon reaching the blank blue screen in my admincp. If it is still processing, i shld at least still see the processing icon on my browser right?

jl255 10-10-2011 09:01 AM

also, are you saying that the mod is manually inserting the thank you bit in every existing thread during installation?

BirdOPrey5 10-10-2011 10:50 AM

The mod needs to alter your user and post table... that means it needs to edit a million+ entries on your database at least.

It might be timing out.

jl255 10-10-2011 11:15 AM

So what can I do abt the timeout?

BirdOPrey5 10-10-2011 12:00 PM

Are you on shared hosting? Maybe talk to your host to see if you can extend the timeout period.

Another option would be to shut off your forum and try during a time of day when the server has the least traffic, might work.

Final option might be to add the fields via phpmyadmin directly (or at last check to see if they were correctly made).

Scandal 10-10-2011 07:33 PM

Guys, please help!!
Sometimes, some users gave double votes :(
For example:
https://vborg.vbsupport.ru/
I update the counters "Update Post Thanks Post Amount" but nothing change...

Any solution?

BirdOPrey5 10-11-2011 03:31 PM

Quote:

Originally Posted by philos2 (Post 2255690)
Guys, please help!!
Sometimes, some users gave double votes :(
For example:
http://img20.imageshack.us/img20/3632/problemcg.png
I update the counters "Update Post Thanks Post Amount" but nothing change...

Any solution?

I got your PM but I don't really have any reason why this would be happening.

Are you comfortable using phpmyadmin?

I would browse your post_thanks table...

Look for all entries for the postid of the post you posted a picture of...

See how many entries there are... are there 2 or 3? If 3 what username isn't showing up? It might be an invalid character in a username or something, don't know.

Scandal 10-11-2011 05:40 PM

I'm not comfortable using phpmyadmin, but..

... let's take the following post as example (postid= 35936)
http://img28.imageshack.us/img28/1778/gmth.png

On the table post_thanks I find on "postid":
http://img580.imageshack.us/img580/2578/gmt2.png
.. but when I click every pencil of "35936", I go to a page with the same content:
http://img23.imageshack.us/img23/5899/gmt3.png

What's wrong on my steps?

EDIT: I run the query:
Code:

SELECT *
FROM `_vbpost_thanks`
WHERE CONCAT_WS( "-", `postid` ) = "35936"
ORDER BY `_vbpost_thanks`.`postid` ASC
LIMIT 0 , 30

and the results...

http://img849.imageshack.us/img849/74/gmt4.png

Also, a user here has the same problem (post).
What to do? There are duplicate entries :/


All times are GMT. The time now is 05:10 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.03863 seconds
  • Memory Usage 1,847KB
  • 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
  • (4)bbcode_html_printable
  • (13)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