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)

Abe1 01-10-2010 02:31 PM

Quote:

Originally Posted by mad@Max (Post 1948997)
Abe1, i propose this realization of js.
P.S. I found a bug, if you remove your thanks (in the box when there are other thanks), then the box will be removed too (in file it fixed).

Fixed for next version. Had to do with removing the box if you removed all the thanx. I just removed the line taking out the box since your thing does not move fast enough to see if there is only 1 thanx left or not. I just removed that code for now.

Abe1 01-10-2010 02:44 PM

Quote:

Originally Posted by murratti (Post 1950356)
when u press the thanks button, it makes u jump to first message...i reinstall it several times, same problem :(

I need a site to test it on. My test site does not have that problem.

Abe1 01-10-2010 02:47 PM

Quote:

Originally Posted by RoteRose (Post 1951783)
Hello,

a bug occurs:

Code:

Database error in vBulletin 4.0.0:

Invalid SQL:
SELECT * FROM vb3_post_thanks AS post_thanks INNER JOIN vb3_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  : Sunday, January 10th 2010 @ 03:07:10 AM
Error Date    : Sunday, January 10th 2010 @ 03:07:10 AM
Script        : http://<<url>>/private.php?do=showpm&pmid=59086
Referrer      : http://<<url>>/private.php
Classname    : vB_Database

I got this bug in 2 days over 150times, please fix.

Something you did. Post thanx hack does not run on the PM page. It is automatically disabled for that page.

RoteRose 01-10-2010 05:01 PM

I dont know why, only 2 messages are affted of 1 User, if i change the userid in db to mine, i donĀ“t get this, any idea what happens?

mdawg 01-10-2010 05:21 PM

Quote:

Originally Posted by RobbieZ (Post 1945632)
Your in the wrong thread!

If you are using VB 3.8.4 you should not upgrade as this is for VB 4.0.0

Well, I have two forums. One, I made the MISTAKE (lol) of upgrading to 4.0
https://vborg.vbsupport.ru/showthread.php?t=231332

The other one is a heavily modified 3.8.4

COL NIL SATIS 01-10-2010 05:23 PM

installed!!!! nice one

War.Frog 01-10-2010 08:34 PM

Quote:

Originally Posted by Abe1 (Post 1951987)
I need a site to test it on. My test site does not have that problem.

I can PM you my test site if you like?

Edit: PM sent with id and pw.

S4RFamily 01-11-2010 03:44 PM

Quote:

Originally Posted by S4RFamily (Post 1946533)

Someone help me fix it, i want 2 row "thanked" is straight together. Thanks so much!

s0lidgr0und 01-11-2010 10:04 PM

Quote:

Originally Posted by exyuteam (Post 1948286)
I have this "problem" (see Capture.png). If someone not see, BLOG ENTRIES - 1 need to be in one line.. Not number 1 up, and text down :) You can see what I meen... ;)

Problem is here:
Code:

<dd style="white-space: nowrap; display: inline; float: right;">
Please fix this. Maybee not using float - juts add text in next line..... ?

Thanks for great hack!!!!

Quote:

Originally Posted by Abe1 (Post 1951948)
Will be fixed in next version.

Is there a quick edit we can do for this until the next version is released?

s0lidgr0und 01-11-2010 10:05 PM

Quote:

Originally Posted by S4RFamily (Post 1952845)
Someone help me fix it, i want 2 row "thanked" is straight together. Thanks so much!

Go into post_thanks_postbit_info and change the three references to "right" to "left".

Highwayfrunkis 01-12-2010 12:50 AM

I wish I could get this to work :(

Abe1 01-12-2010 02:51 AM

Quote:

Originally Posted by War.Frog (Post 1952271)
I can PM you my test site if you like?

Edit: PM sent with id and pw.

Who ever is getting a refresh, please make sure you Disable the option to integrate with post groan hack.

Abe1 01-12-2010 02:57 AM

Quote:

Originally Posted by s0lidgr0und (Post 1953099)
Is there a quick edit we can do for this until the next version is released?

Add
HTML Code:

<div style="clear: both;"></div>
right before the last line in the post_thanks_postbit_info template.

War.Frog 01-12-2010 03:15 AM

Quote:

Originally Posted by Abe1 (Post 1953234)
Who ever is getting a refresh, please make sure you Disable the option to integrate with post groan hack.

I disabled and it's working as advertised again. Thanks Abe1!

Dream 01-12-2010 12:14 PM

The phrase "post_thanks_thanks" needs to be duplicated, it's used both on the number of thanks in the postbit and as the thanks button... Some translations can't be made like that.

Darkimmortal 01-12-2010 02:56 PM

Code:

Database error in vBulletin 4.0.0:

Invalid SQL:

            REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
            VALUES (0, '208.115.111.242', 1, 'shadiku', '', 'post.dateline', 'DESC', 0.00142, 1, '45432,45054,44755', 1263311386, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:205;s:7:\"shadiku\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'e2029801f80096dbfd74e69cd2d66539');

MySQL Error  : Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 12th 2010 @ 03:49:46 PM
Error Date    : Tuesday, January 12th 2010 @ 03:49:46 PM
Script        : http://www.gamingmasters.co.uk/post_thanks.php?do=findthanks_user_gave&u=205
Referrer      :
IP Address    : 208.115.111.242
Username      : Unregistered
Classname    : vB_Database
MySQL Version :

Along with a load of other similar errors for do=findthanks

The "search" table doesn't exist in stock vB4.

shakirulqadree 01-12-2010 05:14 PM

Thank u Installed Working with VB4 but their is a problem
when this mod is Active the PMs (Private Massages) or not Showing
Arrer Massage is below :
Quote:

Warning: require_once([path]/includes/functions_post_thanks.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_postbit.php(314) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home2/alqirtas/public_html/qirtas/includes/functions_post_thanks.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/alqirtas/public_html/qirtas/includes/class_postbit.php(314) : eval()'d code on line 1

s0lidgr0und 01-12-2010 06:14 PM

Quote:

Originally Posted by Abe1 (Post 1953239)
Add
HTML Code:

<div style="clear: both;"></div>
right before the last line in the post_thanks_postbit_info template.

Thank you, Abe. That looks much better.

elkov 01-12-2010 07:07 PM

Installed.
Thank you!

Asterix_ita 01-13-2010 06:08 AM

Hello

In previous versions (VB3) there were some link to show thanks received and gived in this new relise I only see the sum is intended to enable some function or do I need to see this information to the previous version?

Thanks

Globus 01-13-2010 09:10 AM

Quote:

Originally Posted by meissenation (Post 1949563)
I fixed the alignment issue by changing the post_thanks_postbit_info template to be the following:

HTML 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 style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{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>

(I changed all the "float: {vb:stylevar right}" to be left.)

Thank You!:)

Deirdre 01-13-2010 08:40 PM

Quote:

Originally Posted by Darkimmortal (Post 1953600)
Code:

Database error in vBulletin 4.0.0:

Invalid SQL:

            REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
            VALUES (0, '208.115.111.242', 1, 'shadiku', '', 'post.dateline', 'DESC', 0.00142, 1, '45432,45054,44755', 1263311386, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:205;s:7:\"shadiku\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'e2029801f80096dbfd74e69cd2d66539');

MySQL Error  : Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 12th 2010 @ 03:49:46 PM
Error Date    : Tuesday, January 12th 2010 @ 03:49:46 PM
Script        : http://www.gamingmasters.co.uk/post_thanks.php?do=findthanks_user_gave&u=205
Referrer      :
IP Address    : 208.115.111.242
Username      : Unregistered
Classname    : vB_Database
MySQL Version :

Along with a load of other similar errors for do=findthanks

The "search" table doesn't exist in stock vB4.

I'm getting the same error. The template was reverted back before the upgrade. How can we find where this link is? What I have found is that the ips are from bots that crawl the site so is there anything we can do?

RedHacker 01-14-2010 08:09 AM

Abe1 not work with 4.0.1 Version....

iyama 01-14-2010 03:29 PM

Quote:

Originally Posted by RedHacker (Post 1955245)
Abe1 not work with 4.0.1 Version....

+1 include

War.Frog 01-14-2010 06:10 PM

Mine works fine with 4.01.

steve1966 01-14-2010 06:24 PM

Quote:

Originally Posted by meissenation
I fixed the alignment issue by changing the post_thanks_postbit_info template to be the following:.)
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 style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{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>(I changed all the "float: {vb:stylevar right}" to be left.)

thanks

Alibass 01-14-2010 07:45 PM

Quote:

Originally Posted by War.Frog (Post 1955799)
Mine works fine with 4.01.

Works fine on 4.0.1 for me too......

nikosb 01-14-2010 08:01 PM

Works for me on 4.0.1
Installed.
Thank you!

RedHacker 01-14-2010 08:04 PM

Sorry i forget something i will check now....

RedHacker 01-14-2010 08:12 PM

Its worked perfect for 4.0.1....

shakirulqadree 01-15-2010 11:54 AM

Quote:

Originally Posted by shakirulqadree (Post 1953710)
Thank u Installed Working with VB4 but their is a problem
when this mod is Active, The PMs (Private Massages) or not Showing
Arrer Massage is below :

any fix of this problem ?

ConfusedCartman 01-15-2010 12:27 PM

Quote:

Originally Posted by Darkimmortal (Post 1953600)
Code:

Database error in vBulletin 4.0.0:

Invalid SQL:

            REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
            VALUES (0, '208.115.111.242', 1, 'shadiku', '', 'post.dateline', 'DESC', 0.00142, 1, '45432,45054,44755', 1263311386, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:205;s:7:\"shadiku\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'e2029801f80096dbfd74e69cd2d66539');

MySQL Error  : Table 'forum.search' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 12th 2010 @ 03:49:46 PM
Error Date    : Tuesday, January 12th 2010 @ 03:49:46 PM
Script        : http://www.gamingmasters.co.uk/post_thanks.php?do=findthanks_user_gave&u=205
Referrer      :
IP Address    : 208.115.111.242
Username      : Unregistered
Classname    : vB_Database
MySQL Version :

Along with a load of other similar errors for do=findthanks

The "search" table doesn't exist in stock vB4.

Yep, I can confirm this issue. I actually came to this thread to report it, but I'd figure I'd support the existing report instead.

I.am 01-15-2010 02:26 PM

I can't see post tahks images on vb 4.0.1

fixed^^

athlon64bit 01-15-2010 11:01 PM

Quote:

Originally Posted by garretbyrne (Post 1946548)
Hey if you go into AdminCP and look for Post Thanks run all four counters that should do it for you.. Didn't for me but I made the mistake of removing it ages ago by mistake..

Hold on is there a way of getting the old count back in anyway??

I've found another sql with the old count how do i just import that ?? Cheers
[EDIT] I added them in manually... not the same but at least the counts there.. I didn't do it for everyone only the main people...

You could create a new database, back up your old back up. Then using something like phpmyadmin download the individual thank you tables. Then import the thank you tables into your current database for your active forum. That would probably work. You would still need to run an upgrade of the latest version of this addon though I would imagine after doing so. I can't guarantee that this will work but it is worth a try.

Quote:

Originally Posted by SCSCSC (Post 1946833)
same prblm with me

1 - there is no thanks button coming
2 - the first post showing Thanked 0 Times in 0 Posts one time
in second post its showing Thanked 0 Times in 0 Posts two times
and so on
3 - i dont have any BBR - Useful Links on Member Action Dropdown
4 - i am having Add Ignore User To Postbit Dropdown plugin so when i disabled it its working fine but still i cant see thanks button

Did you uninstall the previous version? If you did you will lose your thank you score. What version of vbulletin are you using? This thank you version is for vbulletin version 4.

car20 01-16-2010 05:05 AM

Hello

Thanks for great Mod , i love it but ,
Multi Qoute is'nt working !!

disable post tank you mod and solved problem .

in my forum dir lang is right to left .

how do I can Solved this , I dont want Uninstall it.

Thanks

imagirlgeek 01-17-2010 05:26 PM

Quote:

Originally Posted by ConfusedCartman (Post 1956424)
Yep, I can confirm this issue. I actually came to this thread to report it, but I'd figure I'd support the existing report instead.

What I did to resolve this was to comment out these lines in post_thanks.php...

PHP Code:

        $db->query_write("
            REPLACE INTO " 
TABLE_PREFIX "search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
            VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string(IPADDRESS) . "', 1, '" $db->escape_string($user['username']) . "', '" $db->escape_string($forumchoice) . "', 'post.dateline', 'DESC', $searchtime, 1, '" $db->escape_string(implode(','$orderedids)) . "', " TIMENOW ", '" $db->escape_string(serialize($display)) . "', '" $db->escape_string($searchhash) . "')
        "
);
        
$searchid $db->insert_id();

        
$vbulletin->url 'search.php?' $vbulletin->session->vars['sessionurl'] . "searchid=$searchid";
        eval(
print_standard_redirect('search')); 

I found this query on lines 278 - 285, 413 - 420, and 527 - 534. I commented out all of them 3 days ago and haven't received this error and also haven't seen any adverse effects.

Hope this helps!

Charlie98902 01-18-2010 12:44 AM

The notification of posted thanks isn't working on my end but the over hack is. Is there a way to fix this? Using 4.0.1.

I.am 01-18-2010 08:43 AM

On my site the blogs entries is showed on

Thanked 70 Times in 68 Posts2
Blog Entries

Instead to be here

Thanked 70 Times in 68 Posts
Blog Entries 2

How can i fix this problem?

War.Frog 01-18-2010 03:00 PM

1 Attachment(s)
Quote:

Originally Posted by I.am (Post 1959011)
On my site the blogs entries is showed on

Thanked 70 Times in 68 Posts2
Blog Entries

Instead to be here

Thanked 70 Times in 68 Posts
Blog Entries 2

How can i fix this problem?

Mine is in the wrong place too...showing like this (postbit legacy):

mitch84 01-18-2010 03:19 PM

Quote:

Originally Posted by I.am (Post 1959011)
On my site the blogs entries is showed on

Thanked 70 Times in 68 Posts2
Blog Entries

Instead to be here

Thanked 70 Times in 68 Posts
Blog Entries 2

How can i fix this problem?

yes, same for me


All times are GMT. The time now is 08:07 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.02853 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
  • (6)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (26)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