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)

kiawah75 08-25-2011 12:58 PM

I have installed the hack and it works well. In the features section of the product it says you can search for Thanks in the user profile. I would like to recognize our members who have been thanked the most - How do I get a list of them. I checked the admin panel and the search function on the forum and could not find it. Thanks in advance for your help.

michal72 08-25-2011 02:52 PM

Quote:

Originally Posted by kiawah75 (Post 2237898)
I would like to recognize our members who have been thanked the most - How do I get a list of them.

I use VSa - Advanced Forum Statistics mod + search fix: https://vborg.vbsupport.ru/showpost....postcount=1534

michal72 08-25-2011 03:11 PM

For information:

Now, this mod works also via Tapatalk

Hippy 08-25-2011 06:20 PM

Quote:

Originally Posted by kiawah75 (Post 2237898)
I have installed the hack and it works well. In the features section of the product it says you can search for Thanks in the user profile. I would like to recognize our members who have been thanked the most - How do I get a list of them. I checked the admin panel and the search function on the forum and could not find it. Thanks in advance for your help.

users profile (About Me) has the links to view them

addamroy 08-25-2011 07:28 PM

So how exactly do i upgrade from the version abe1 provided to the new version provided at post 1737?

There's no clear instructions on how to do the upgrade. Am I supposed to upload and overwrite ALL files or just the xml product via the vbulletin admincp?

Also, will this effect any of my existing post thanks data? I don't want to lose any of my existing thanks data by accidentally uploading the wrong files.

Please provide me with a step-by-step process I can follow to ensure it goes smoothly??

Thanks!

Hippy 08-25-2011 09:03 PM

upload all files overwriting them and import the xml file ... allow over write..

NarutoFTW 08-25-2011 10:27 PM

Anyone know how to prevent the thanks count from being exploited? it seems pretty easy and a lot of users are doing it.

kiawah75 08-26-2011 12:38 PM

Quote:

Originally Posted by Hippy (Post 2238035)
users profile (About Me) has the links to view them

Thanks Hippy, but I was hoping to run a report that would show the information so I would not have to go into each user profile

kiawah75 08-26-2011 12:39 PM

Quote:

Originally Posted by michal72 (Post 2237957)

Thanks Michal I will look at this the forum stats mod looks great I just dont like to mess with the code on the search fix

shyguy82 08-26-2011 04:16 PM

The developer of this mod should optimize his code a little bit. His queries are very expensive. There is an INDEX missing on the USERNAME field in post_thanks table. I found it the hard way, I have a pretty busy site with 250k users. My post_thanks contains more than 3 million records already and the performance was sluggish. I've checked the query and it was doing a full table scan because he is ordering by username. I've added an index on username column and the problem goes away. Just an FYI

addamroy 08-26-2011 05:43 PM

Quote:

Originally Posted by Hippy (Post 2238088)
upload all files overwriting them and import the xml file ... allow over write..

And this updated version will work fine with all 4.0.x and 4.1.x versions for sure?

stilly 08-26-2011 07:36 PM

I have it working and integrated with groans on 4.1.4 pl2. Only issue I have had is if i disable the groans plugin and thank a post the page refreshes. That doesn't happen if both plugins are active. Or if I un-install groans. I'm still looking into the refresh issue, but other than that I am pretty happy with the mod. Works well. Thanks to those that are helping keeping this up.

michal72 08-26-2011 08:16 PM

Quote:

Originally Posted by stilly (Post 2238469)
I'm still looking into the refresh issue,

Try to change option "Integrate this hack with Post Thanks Hack?" to "No" before you disable or uninstall

cavyspirit 08-26-2011 10:41 PM

Quote:

Originally Posted by shyguy82 (Post 2238379)
The developer of this mod should optimize his code a little bit. His queries are very expensive. There is an INDEX missing on the USERNAME field in post_thanks table. I found it the hard way, I have a pretty busy site with 250k users. My post_thanks contains more than 3 million records already and the performance was sluggish. I've checked the query and it was doing a full table scan because he is ordering by username. I've added an index on username column and the problem goes away. Just an FYI

I'm gunshy about mucking with tables. Can you elaborate just a bit on this? Do you just add an index on that field in the table and that's it? You didn't have to do anything with the SQL inside the code?

anticipations 08-28-2011 08:52 AM

The following dependencies were not met:

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

Videx 08-28-2011 01:07 PM

Quote:

Originally Posted by anticipations (Post 2239065)
The following dependencies were not met:

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

You've made the common mistake of not reading the entire thread before installing a mod (or at least the last page or two!). Get to reading, and don't ever do that again.

ForceHSS 08-29-2011 01:33 AM

1 Attachment(s)
Version 7.83 (29/08/11 by Forcehss)
Cosmetic changes necessary in postbit for integration purposes.
Changed to allow integration with Post Groans Hack.
also op name put back in place

abdobasha2004 08-29-2011 09:44 AM

excellent mod
however i am looking for the "like" Mod

ForceHSS 08-29-2011 11:19 AM

Quote:

Originally Posted by abdobasha2004 (Post 2239363)
excellent mod
however i am looking for the "like" Mod

http://www.dragonbyte-tech.com/forum.php
they have a thanks and like mod here very good one

NarutoFTW 08-29-2011 01:58 PM

ForceHSS, do you know how to prevent the thanks count from being exploited? It seems to be fairly easy.

ForceHSS 08-29-2011 04:24 PM

Quote:

Originally Posted by NarutoFTW (Post 2239453)
ForceHSS, do you know how to prevent the thanks count from being exploited? It seems to be fairly easy.

on what thank you hack the link I give you or this one here

mpoorrajab 08-29-2011 05:25 PM

i give this error more than 100 items in day :
Quote:

Database error in vBulletin 4.1.5:

Invalid SQL:

REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '88.131.106.8', 1, 'aram55', '', 'post.dateline', 'DESC', 0.00679, 1, '305681', 1314637817, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:47519;s: 6:\"aram55\";}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\";}}', '1f28679bdcfbd8a401a96b2451c5ed5d');

MySQL Error : Table 'daneshju_vb4.search' doesn't exist
Error Number : 1146
Request Date : Monday, August 29th 2011 @ 07:10:17 PM
Error Date : Monday, August 29th 2011 @ 07:10:17 PM
Script : http://www.daneshju.ir/forum/post_th...thanks&u=47519
Referrer :
IP Address : 88.131.106.8
Username : ثبت نشده
Classname : vB_Database
i disable this mod but still get this error !

ForceHSS 08-29-2011 07:15 PM

you are missing a table
and this plugin has nothing to do with that plugin so you will need to find out what custom plugin it belongs to so you can add that table again

ForceHSS 08-29-2011 07:47 PM

try running the sql it says in your post see if that fixes it

REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
VALUES (0, '88.131.106.8', 1, 'aram55', '', 'post.dateline', 'DESC', 0.00679, 1, '305681', 1314637817, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{} s:6:\"common\";a:0:{}s:5:\"use rs\";a:1:{i:47519;s:6:\"aram55\";}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\";} }', '1f28679bdcfbd8a401a96b2451c5ed5d');

NTMID8 08-30-2011 12:08 AM

1 Attachment(s)
OK, I am going crazy. I had this formatted and located exactly how I wanted but lost all of that when I upgraded to the new version. I've gotten the actual Thanks box formatted back the way I had it, but I don't remember how I had moved it.

In the screenshot, the highlighted portion of the Thanks box needs to be moved so it shows up in the same box as the user's message as shown by the single yellow line.

The outside box marked in red should go away entirely.

I hope that makes sense. So, how do I make it happen?

ForceHSS 08-30-2011 12:36 AM

<a href="http://i1103.photobucket.com/albums/g479/getamped1404/screenshot.png" target="_blank">http://i1103.photobucket.com/albums/...screenshot.png</a>
you want it like this you mean?

NTMID8 08-30-2011 12:53 AM

Quote:

Originally Posted by ForceHSS (Post 2239720)

No. I actually had it as part of the body of the post, after the user's post but before their signature.

ForceHSS 08-30-2011 11:39 AM

do you have a screenshot of what it use to look like

infun 08-30-2011 01:26 PM

Thanks

NTMID8 08-30-2011 05:20 PM

Quote:

Originally Posted by ForceHSS (Post 2239899)
do you have a screenshot of what it use to look like

I wish I did, but I do not.

The style of the box is the same as used for the Quote box. I have gotten that much replaced again. Just as the Quoted text appears before the post, the Thanks box should appear after the message so the order of the post should be:


Quote (if exists)
Post
Thanks (if exists)
------------
Signature

ForceHSS 08-30-2011 05:50 PM

pity you did not as I dont have this installed on my live site and only installed it on my test site to update it as it is now removed and dont have the time to check for you unless you had that ss. I am working on other things if I do have time at a later date will have a look

NTMID8 08-31-2011 12:17 AM

1 Attachment(s)
OK, I got it back now... for the most part. I have the desired location and look (see attachment) but it is now reloading the page when I click thank so I believe I broke the AJAX. Can you help me correct that?

I changed post_thanks_box to:

PHP Code:

{vb:raw post_thanks_box

I changed post_thanks_postbit to:

PHP Code:

<br />
    <
div class="bbcode_container">
        <
div class="bbcode_quote">
            <
div class="quote_container">
                <
div class="bbcode_quote_container"></div>
                <
div class="bbcode_postedby">
                    <
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>
<!--                <
img src="images/styles/streetrod/misc/quote_icon.png" alt="Quote" />     -->
                    
These members thank <strong>{vb:raw post.username}</strong> for this useful post.
                </
div>
                <
div class="message">
                    {
vb:raw post.post_thanks_bit}
                </
div>
            </
div>
        </
div>
    </
div>
<
hr /> 

I also modified the plugin postbit_display_complete replacing:

PHP Code:

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

with:

PHP Code:

$template_hook['postbit_signature_start'] .= $templater->render(); 


ForceHSS 08-31-2011 10:33 AM

will run some tests see what I can do to help you

Marios858 09-01-2011 09:32 AM

Tested on 4.1.5 works . Thanks , Excellent Hack.:)
Quote:

Originally Posted by Hippy (Post 2194225)


ForceHSS 09-01-2011 03:36 PM

Quote:

Originally Posted by Marios858 (Post 2240750)
Tested on 4.1.5 works . Thanks , Excellent Hack.:)

https://vborg.vbsupport.ru/showpost....postcount=1779

prabhgrewal 09-01-2011 07:12 PM

I get a access denied message for some users when they click the thanks button, and it seems to be a randomly occuring event, in the sense that the same user is able to use the thanks and then all of a sudden he gets a "You are not authorised to view this page" message, though the thanks seems to have registered fine

NTMID8 09-03-2011 03:58 AM

Any luck with restoring the AJAX functionality?

One other request I have... is it possible to add a notification so the user's are notified when their posts are thanked? It would be nice to see this show up with other notifications and then clicking it would show a list of the thanked posts.

pcmwebmaster 09-03-2011 10:43 AM

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

30et 09-05-2011 03:32 AM

Does this work with the vbulletin native mobile skin?

AussieDave 09-06-2011 12:53 PM

vBulletin version 4.1.5 L1

New forum - plug in not used before.

Downloaded and installed code update:
https://vborg.vbsupport.ru/showpost....postcount=1779

No errors given but neither buttons are displaying in post.
Checked output of compiled code and it's present. Checked postbit and postbitlegacy code is in bothbBut still wont work.

Anyway idea what's up and how to fix?

URL of site (remove xxx):
xxxhttp://www.awaa.com.au/forums/

Any help much appreciated, thanks!


Cheers

Dave


All times are GMT. The time now is 08:12 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.03101 seconds
  • Memory Usage 1,870KB
  • 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_php_printable
  • (15)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