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 10-11-2011 07:18 PM

If you look at the date Darkness gave the Thank You's they were the exact same second. It's either a browser issue or a user issue- maybe they are double-clicking or something. I don't think there is anything you can do about it short of rewriting the mod code to prevent duplicates.

Scandal 10-14-2011 02:29 PM

Every vote has its own security token, I don't understand why it happens. :(

I hope that it's possible for someone to write a php script or a cron to fix the database data (remove the duplicates or remove all the double votes). :(


-petros

Scandal 10-16-2011 05:30 PM

Well, I made an inquiry and I find that users with Internet Explorer 9 gives double thanks (with same date/time but different thanks ID). I believe that someone should give us a solution/update! :o

djbaxter 10-16-2011 07:24 PM

Quote:

Originally Posted by philos2 (Post 2257835)
Well, I made an inquiry and I find that users with Internet Explorer 9 gives double thanks (with same date/time but different thanks ID). I believe that someone should give us a solution/update! :o

Then you have so9me sort of conflict with another add-on or possibly with a custom style. I have several members using IE9 and that's not happening on my forums (installed on two 4.1.7 forums and one 3.8x forum).

Scandal 10-17-2011 06:26 PM

Quote:

Originally Posted by djbaxter (Post 2257881)
Then you have so9me sort of conflict with another add-on or possibly with a custom style. I have several members using IE9 and that's not happening on my forums (installed on two 4.1.7 forums and one 3.8x forum).

You are right!

The problem was a javascript tooltip I had installed on my site for the viewing of "thanks" votes. I replace it with a simple css tooltip and now all is ok. I don't understand why it appears problems only on IE9 but anyway...
Sorry for the confusion :o:o

Now, I must find a solution to fix my database from the duplicate entries. :(

jl255 10-28-2011 05:22 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2255539)
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).

would you be able to give me the exact mysql statements to run to add in the fields via phpmyadmin? tks.

BirdOPrey5 10-28-2011 10:21 AM

If you open the product XML file, near the top of the file are the MySQL Statements:

PHP Code:

$vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS`"TABLE_PREFIX ."post_thanks` (
    `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    `userid` INT(10) NOT NULL,
    `username` VARCHAR(50) NOT NULL,
    `date` INT(10) NOT NULL,
    `postid` INT(10) NOT NULL)
    "
);
$vbulletin->db->query_write("ALTER TABLE `"TABLE_PREFIX ."post_thanks` ADD INDEX ( `postid` )");

$vbulletin->db->query_write("ALTER TABLE `"TABLE_PREFIX ."user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE `"TABLE_PREFIX ."post` ADD `post_thanks_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE `"TABLE_PREFIX ."user` ADD `post_thanks_thanked_posts` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE `"TABLE_PREFIX ."user` ADD `post_thanks_thanked_times` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");

$db->show_errors();]]></installcode

As you can see there are quite a few... You will need to remove the `". TABLE_PREFIX ." from each one and replace it with your actual table prefix, if any.

They need to be run in the order they are shown.

The queries are the code between the quotes, you would ignore everything in red in this example:

Code:

$vbulletin->db->query_write("ALTER TABLE `". TABLE_PREFIX ."post_thanks` ADD INDEX ( `postid` )");
And of course it goes without saying- be ABSOLUTELY SURE you have a recent and verified backup of the database before attempting manual edits.

pfdc 10-29-2011 04:44 AM

is this hack available for 4.1.7??

Simon Lloyd 10-29-2011 02:58 PM

Quote:

Originally Posted by pfdc (Post 2262552)
is this hack available for 4.1.7??

Considering you have posted here you must have read the mod description.......did you spot the link? :)

Mark_Zuckerberg 11-03-2011 10:28 PM

first time bad experience with vb mod i also installed db tech like mod and dint worked and now this one also installed showing settings in admin panel but not working in threads and also made the board so slow :down: :(

Max Taxable 11-03-2011 11:06 PM

Quote:

Originally Posted by Mark_Zuckerberg (Post 2264216)
first time bad experience with vb mod i also installed db tech like mod and dint worked and now this one also installed showing settings in admin panel but not working in threads and also made the board so slow :down: :(

Sum Ting Wong elsewhere then, this mod works great for me. No hitches or glitches at all.

Simon Lloyd 11-04-2011 04:08 PM

On first install, if you have a large board it will take quite some time to load, however using it afterwards isn't a problem, my forum has around 800,000 posts and page load (even with all my other mods whistles and bells :)) is only around 2.5 seconds for a member and 4 -5 seconds for a guest (due to external ads loading).

muratcan25 11-05-2011 09:35 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=130887" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=130887</a>

Compatible?

DragonByte Tech 11-07-2011 12:49 AM

Just dropping in to let those of you who were interested in DBTech's Advanced Post Thanks/Like mod that our importer between this mod and ours is now free in the lite version - you don't lose any info when you switch and get a bunch of new features & regular (and official) updates/support ^.^

You can grab it at the link below (as well as see all of the features added in the recent v2 release)

https://vborg.vbsupport.ru/showthread.php?t=243511

vB4 version also available: https://vborg.vbsupport.ru/showthread.php?t=243510

djbaxter 11-07-2011 01:23 AM

Quote:

Originally Posted by DragonByte Tech (Post 2265165)
Just dropping in to let those of you who were interested in DBTech's Advanced Post Thanks/Like mod that our importer between this mod and ours is now free in the lite version - you don't lose any info when you switch and get a bunch of new features & regular (and official) updates/support ^.^

You can grab it at the link below (as well as see all of the features added in the recent v2 release)

https://vborg.vbsupport.ru/showthread.php?t=243511

vB4 version also available: https://vborg.vbsupport.ru/showthread.php?t=243510

Spamming one thread wasn't enough? You had to spam both threads?

TheLastSuperman 11-07-2011 01:33 AM

Quote:

Originally Posted by djbaxter (Post 2265175)
Spamming one thread wasn't enough? You had to spam both threads?

Reporting wasn't enough? You had to post so he could see?

KIDDING! Seriously just being silly to make a point :cool: - See how easy it is to misinterpret someone's actions? I don't see anything wrong with it personally seeing as many have had issues with this modification and there is no official support while they have a lite version of a very similar mod that is supported.

Share the love DB Tech and djbaxter, share it ;).

DragonByte Tech 11-07-2011 01:43 AM

Quote:

Originally Posted by TheLastSuperman (Post 2265178)
Reporting wasn't enough? You had to post so he could see?

KIDDING! Seriously just being silly to make a point :cool: - See how easy it is to misinterpret someone's actions? I don't see anything wrong with it personally seeing as many have had issues with this modification and there is no official support while they have a lite version of a very similar mod that is supported.

Share the love DB Tech and djbaxter, share it ;).

*Offers hugs to DJBaxter*

^.^

jl255 11-07-2011 08:59 AM

Possible to create a page for members to see the latest 'liked' posts? Wld be extremely useful to see which posts are hot over past X days. :)

Occosion 11-14-2011 12:42 PM

Thank you for support

i have a problem

when i clic on thank button for the group guest

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

http://img51.imageshack.us/img51/893...2011144031.png

Baitona 11-15-2011 07:22 PM

What a wounder full addon,
many thanks for it.

i have a little problem though, i have my own customized postbit_legacy,
as will as another plugin " Chief First Post - Every Page [Forum Based] " to keep the first post at the top, on all pages.
for some reason the addon is not showing on the first post.
is there any possibility to add the addon manually to the postbit legacy?

Max Taxable 11-15-2011 09:34 PM

Quote:

Originally Posted by Baitona (Post 2268287)
What a wounder full addon,
many thanks for it.

i have a little problem though, i have my own customized postbit_legacy,
as will as another plugin " Chief First Post - Every Page [Forum Based] " to keep the first post at the top, on all pages.
for some reason the addon is not showing on the first post.
is there any possibility to add the addon manually to the postbit legacy?

Check the settings in this Mod, there is a option to not allow the thanks for the first post of a thread. Insure this option is not active.

Baitona 11-18-2011 11:14 PM

thanks Max,
it is set to be Not Active,

however the same problem, the first post doesn't have the
Post Thank you

i am sure it is something to do with my customized postbit_legacy, i may have deleted some needed coding by the hack, if i use the default postbit_legacy it works perfectly... however i still need to use a customized one :(

Occosion 11-27-2011 12:49 PM

Quote:

Originally Posted by Occosion (Post 2267820)
Thank you for support

i have a problem

when i clic on thank button for the group guest

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

http://img51.imageshack.us/img51/893...2011144031.png

help me for this error

bki 12-11-2011 11:16 AM

Is there any .psd for the button ?

Max Taxable 12-11-2011 12:15 PM

Quote:

Originally Posted by bki (Post 2276722)
Is there any .psd for the button ?

If you have the PSDs for other buttons in your style, it is easy to make a matching "Thanks" button for that style.

djjeffa 01-05-2012 12:13 AM

I had an old version of the hack and for some reason spam bots like thanking every post they could is there a way to delete all thanks from members with 0 posts and if not could i just reset or clear all the thanks. also after I upgraded to the newest version of the thank hack half my styles lost the thank you button and the list of thank yous , any clue why?

ForceHSS 01-05-2012 12:48 AM

Quote:

Originally Posted by djjeffa (Post 2283993)
I had an old version of the hack and for some reason spam bots like thanking every post they could is there a way to delete all thanks from members with 0 posts and if not could i just reset or clear all the thanks. also after I upgraded to the newest version of the thank hack half my styles lost the thank you button and the list of thank yous , any clue why?

if you are running vb4 then use the one in my sig for the updated one

djjeffa 01-05-2012 01:08 AM

Quote:

Originally Posted by ForceHSS (Post 2284000)
if you are running vb4 then use the one in my sig for the updated one

Thanks but im running 3.8

djjeffa 01-13-2012 12:28 AM

Quote:

Originally Posted by djjeffa (Post 2283993)
I had an old version of the hack and for some reason spam bots like thanking every post they could is there a way to delete all thanks from members with 0 posts and if not could i just reset or clear all the thanks. also after I upgraded to the newest version of the thank hack half my styles lost the thank you button and the list of thank yous , any clue why?

bumppppp

tide 01-13-2012 06:45 PM

Running 7.7 and got tons of these spam/hack emails from my board today. Not sure if there is a hole, but found it not good they are trying to execute SQL here:

Quote:

Database error in vBulletin 3.8.7:

Invalid SQL:
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN () ORDER BY post_thanks.username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY post_thanks.username ASC' at line 1
Error Number : 1064
Request Date : Friday, January 13th 2012 @ 11:35:36 AM
Error Date : Friday, January 13th 2012 @ 11:35:36 AM
Script : /forums/post_thanks.php?do=post_thanks_remove_user&amp=%27 %20UNION%20ALL%20SELECT%20NULL%2C%20NULL%2C%20NULL--%20%20AND%20%27uqdT%27%3D%27uqdT
Referrer :
IP Address : 95.140.125.10
Username : Unregistered
Classname : vB_Database
MySQL Version :
Any thoughts?

Smitty 01-17-2012 03:05 AM

If any thoughts, don't let the button show to unregistered visitors.

I've had this running for a few years now. Am on vB 3.8.7 and no problems.

j-bo 01-19-2012 08:09 PM

Does anyone know if you can make the "thank box" not show any users or anonymous users instead of each username that makes the thanks?

Meaning... some want to thank some folks, but they don't want others to know that they thanked someone. If that makes any sense.

The Following 4 Users Say Thank You to j-bo For This Useful Post:
Remove All
coltontomlin33 (Today), deuxlatch (Today), jixxxer (Today), KP959 (Today)<<<<<<<<TRYING TO MAKE THESE IN RED INVISIBLE OR ANONYMOUS

BirdOPrey5 01-21-2012 08:53 PM

Quote:

Originally Posted by j-bo (Post 2289965)
Does anyone know if you can make the "thank box" not show any users or anonymous users instead of each username that makes the thanks?

Meaning... some want to thank some folks, but they don't want others to know that they thanked someone. If that makes any sense.

The Following 4 Users Say Thank You to j-bo For This Useful Post:
Remove All
coltontomlin33 (Today), deuxlatch (Today), jixxxer (Today), KP959 (Today)<<<<<<<<TRYING TO MAKE THESE IN RED INVISIBLE OR ANONYMOUS

Edit the template: post_thanks_box_bit

The code that shows the username is:
Code:

<a href="member.php?$session[sessionurl]u=$thank[userid]" rel="nofollow">$thank[username]</a>
Edit or remove it.

j-bo 01-24-2012 04:35 PM

Thank you BirdOPrey5

Chance4Today 01-24-2012 08:50 PM

Hi all~!

I have never had a issue with this hack since it was I became a member. I recently transferred to a new host and I am now receiving a error when you click on the Thank You button

Code:

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/class_core.php on line 2552

It happens when you click the button or remove the thank you. However it does the operation and shows this error message, once you refresh the page the error message goes away. I have uninstalled it and reinstalled it however that didn't fix anything. I don't know how to fix this init.php or where to begin. Any suggestions?

Thanks

Victor

djbaxter 01-24-2012 10:48 PM

Quote:

Originally Posted by Chance4Today (Post 2291927)
Hi all~!

I have never had a issue with this hack since it was I became a member. I recently transferred to a new host and I am now receiving a error when you click on the Thank You button

Code:

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/soberoda/public_html/justfortodaymeditations.com/forums/includes/class_core.php on line 2552

It happens when you click the button or remove the thank you. However it does the operation and shows this error message, once you refresh the page the error message goes away. I have uninstalled it and reinstalled it however that didn't fix anything. I don't know how to fix this init.php or where to begin. Any suggestions?

Thanks

Victor

Your new host has a later version of PHP installed. Ask the host to turn off PHP deprecated warnings and everything will run normally.

You can also do this by adding

PHP Code:

error_reporting(E_ALL & ~E_DEPRECATED); 

to the top of your global.php file in the root directory.

Sarah EI 01-25-2012 03:01 AM

Quote:

Originally Posted by ForceHSS (Post 2284000)
if you are running vb4 then use the one in my sig for the updated one

All I get it is error when I want to import the files from my computer I previous download. I dont know what I am doing wrong.

Chance4Today 01-25-2012 10:24 AM

1 Attachment(s)
Quote:

Originally Posted by djbaxter (Post 2291967)
Your new host has a later version of PHP installed. Ask the host to turn off PHP deprecated warnings and everything will run normally.

You can also do this by adding

PHP Code:

error_reporting(E_ALL & ~E_DEPRECATED); 

to the top of your global.php file in the root directory.

Sorry but that does nothing but screw up my whole forums

Simon Lloyd 01-25-2012 01:53 PM

A permanent fix is to edit the files; includes/init.php, includes/class_core.php, etc. and on the line the problem is (i.e. on line 101) there should be something like:

$variable =& new Class();

Just remove the &.

Sarah EI 01-26-2012 02:50 AM

I ve downloaded the files to my PC,import product,upload the XML file from my computer, choose file, import and I get this:

"XML Error: Invalid character at Line 92"

Or line 92,43,56..


All times are GMT. The time now is 10:54 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.02991 seconds
  • Memory Usage 1,874KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (19)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