vb.org Archive

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

cavyspirit 08-06-2006 05:56 PM

I would still like to be able to put two additional queries in the members profile:

Posts GROANED by username
Posts THANKED by username

Can you figure out a way to do that? I really need to be able sometimes remove all groans made by a user, especially when that user is put on restricted, moderated or banned status.

Abe1 08-06-2006 06:01 PM

Quote:

Originally Posted by cavyspirit
I would still like to be able to put two additional queries in the members profile:

Posts GROANED by username
Posts THANKED by username

Can you figure out a way to do that? I really need to be able sometimes remove all groans made by a user, especially when that user is put on restricted, moderated or banned status.

Should be there already.

Dermo-MIO 08-06-2006 06:53 PM

thanks for the update will install it 2morrow

cavyspirit 08-06-2006 08:28 PM

Quote:

Originally Posted by Abe1
Should be there already.

Maybe I'm confused.

In the MemberInfo template, this code:

<!-- Start Post Thank You Hack -->
<br />
$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount]</strong>
<br />
<if condition="$userinfo[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$userinfo[post_thanks_thanked_posts_on] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times]" 2="$userinfo[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
<!-- End Post Thank You Hack -->

At the bottom, that one query (search) gets you all posts that were made by the user that were thanked by someone else (same with groans).

I would ALSO like another query that is all posts made by others that this user has thanked (same with groans).

Abe1 08-06-2006 09:07 PM

Quote:

Originally Posted by cavyspirit
Maybe I'm confused.

In the MemberInfo template, this code:

<!-- Start Post Thank You Hack -->
<br />
$vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount]</strong>
<br />
<if condition="$userinfo[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$userinfo[post_thanks_thanked_posts_on] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times]" 2="$userinfo[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
<!-- End Post Thank You Hack -->

At the bottom, that one query (search) gets you all posts that were made by the user that were thanked by someone else (same with groans).

I would ALSO like another query that is all posts made by others that this user has thanked (same with groans).

I hear what you are saying now. It's on my to-do list. No garranty though.

cavyspirit 08-06-2006 09:46 PM

If you can give me a viable string like this that would work:

search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]

I'd be happy to add it myself until you make it official.

And probably a little more code in the php file.

Thanks for a great product!

Abe1 08-06-2006 10:31 PM

Quote:

Originally Posted by cavyspirit
If you can give me a viable string like this that would work:

search.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]

I'd be happy to add it myself until you make it official.

And probably a little more code in the php file.

Thanks for a great product!

Not possable yet. Needs a lot of code.

Brandon Sheley 08-06-2006 11:14 PM

thx, updated :)

cavyspirit 08-07-2006 01:50 AM

I forgot about another problem I'm having. I can't update the groan counts when the groans are removed from a post.

Any update on when you'll have the groans upgraded for 3.6 as well? We use them equally with the Thanks.

Abe1 08-07-2006 01:54 AM

Quote:

Originally Posted by cavyspirit
I forgot about another problem I'm having. I can't update the groan counts when the groans are removed from a post.

Any update on when you'll have the groans upgraded for 3.6 as well? We use them equally with the Thanks.

The count should update automaticlly.

cavyspirit 08-07-2006 03:29 AM

On closer examination, it's not the count that's not working, it's the Remove All Groans on the postbit that's not working.

http://www.guineapigcages.com/forum/...emove&p=228758

Dermo-MIO 08-07-2006 11:56 AM

just updated my new 3.6 forum thanks i really love this hack

therocks 08-07-2006 01:55 PM

great mod abe! any way to tie this in with a hide hack so users must click on thanks to see hidden content?

Schahab 08-07-2006 03:55 PM

Hello,

must i uninstall the version before, or who can i upgrade to the news version?

GOOD Work man!

Abe1 08-07-2006 05:18 PM

Quote:

Originally Posted by Schahab
Hello,

must i uninstall the version before, or who can i upgrade to the news version?

GOOD Work man!

Just upload the new XML

iran.gs 08-07-2006 09:08 PM

well i must say one thing the thing i did not understand is this

find:
--------------------------------------------------------------------
Quote:

$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<br />
do i just add these following the part like here </phrase>) <<< ?? cuz i did all like this right after the found i added them but it did not apear for me :(

Za4a Tuner 08-07-2006 09:32 PM

Hy Abe1,
at first many thanks for your work => great hack :D

but i've found a little bug!

If you set @ the adminCP the option "write templatenames in source" (sorry, i don't know the exact english expression) =>
you will get a klickable underline after the button!
This does only appear by using the IE,
Firefox or other browsers have don't make "trouble" ;)

look at the source-code of the different browsers and the screenshot

Source-code with IE:
Code:

onMouseOut="this.src='images/buttons_yellow-vanillin/edit.gif';" alt="Edit Post" /></a>
           
<!-- Start Post Thank You Hack -->
 <!-- BEGIN TEMPLATE: post_thanks_button -->
<a href="showthread.php?do=post_thanks_add&p=15530" id="post_thanks_button_15530" onclick="post_thanks_give_15530(); return false;"> <!-- BEGIN TEMPLATE: post_thanks_button_image -->
<img src="images/buttons_yellow-vanillin/post_thanks.gif" alt="Danksagungen" border="0" />
<!-- END TEMPLATE: post_thanks_button_image --></a>
<!-- END TEMPLATE: post_thanks_button -->
<!-- End Post Thank You Hack -->

           
           
                <a href="newreply.php?do=newreply&p=15530" rel="nofollow"><img

and here the source-code of firefox:
Code:

onMouseOut="this.src='images/buttons_yellow-vanillin/edit.gif';" alt="Edit Post" /></a>
           

<!-- Start Post Thank You Hack -->
 <!-- BEGIN TEMPLATE: post_thanks_button -->
<a href="showthread.php?do=post_thanks_add&p=11601" id="post_thanks_button_11601" onclick="post_thanks_give_11601(); return false;"></a>
<!-- END TEMPLATE: post_thanks_button -->
<!-- End Post Thank You Hack -->

           
           
                <a href="newreply.php?do=newreply&p=11601" rel="nofollow"><img

here you can see the little underline:
Attachment 51783
(klick to enlarge)

blogtorank 08-09-2006 05:28 AM

Abe1,

You have some of the best hacks out there, I have almost all of your hacks onsite(s) *Clicks Nominated*

Keep up the awesome work!

WeArab 08-09-2006 09:36 PM

Thank you for the nice hack, installed again after the upgrade to 3.6.0 rated with 5 stars!

big dan 08-09-2006 11:43 PM

Quote:

Originally Posted by Abe1
Do you have a screenshot? Not sure what you are talking about.

I figured it out it was my error when adding the code to the postbit. Thanks anyhow. :)

Hornstar 08-10-2006 01:56 AM

Code:

Database error in vBulletin 3.6.0:

Invalid SQL:

              UPDATE vb3_user
              SET post_thanks_user_amount = post_thanks_user_amount - 1
              WHERE userid IN ();

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 ')' at line 3
Error Number : 1064
Date        : Wednesday, August 9th 2006 @ 09:07:13 PM
Script      : http://www.gamerzneeds.net/forums/showthread.php?do=post_thanks_remove_all_ajax&p=156656
Referrer    :
IP Address  :
Username    :
Classname    : vb_database

I've been using the thanks button on my site for so long, upgraded my forums to vb 3.6 gold and then upgraded to this version a few days ago, and then just a few hours ago I had a few database errors come through relating to the database error above.

Anyideas what caused that?

Thanks

unitedpunjab 08-10-2006 01:59 PM

How to totally disable this hack for guests ?
for the past few days google spends an hour daily trying to thank posts.

cavyspirit 08-10-2006 04:12 PM

Quote:

How to totally disable this hack for guests ?
for the past few days google spends an hour daily trying to thank posts.
You can set who can't thank by user group in the vbulletin options for the plugin.

Of all the posts I've ever read in this forum over the years, that one just totally cracked me up! :)

unitedpunjab 08-10-2006 04:15 PM

lol,Did that but dint help.

unitedpunjab 08-10-2006 04:31 PM

This is the problem,1/4 of the bots are trying to Thank :surprised:

cavyspirit 08-10-2006 05:14 PM

Do your guests see the thanks (and groan if you have it) option/button when on the forum? Is it visible to them?

unitedpunjab 08-10-2006 06:04 PM

No,but i think the problem is this code which is shown to all (logged in or not)

Please Check your showthread (view source) if you also have this problem.
Code:

<script type="text/javascript">
<!--
function post_thanks_give_84842()
{
    do_thanks_button = new vB_AJAX_Handler(true)
    do_thanks_button.onreadystatechange(thanks_button_Done_84842)
    do_thanks_button.send('showthread.php?do=post_thanks_button_ajax&p=84842')
    do_thanks_add = new vB_AJAX_Handler(true)
    do_thanks_add.onreadystatechange(thanks_add_Done_84842)
    do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p=84842')
}
function thanks_button_Done_84842()
{
    if (do_thanks_button.handler.readyState == 4 && do_thanks_button.handler.status == 200)
    {
        fetch_object('post_thanks_button_84842').innerHTML = do_thanks_button.handler.responseText
    }
}
function thanks_add_Done_84842()
{
    if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200)
    {
        fetch_object('post_thanks_box_84842').innerHTML = do_thanks_add.handler.responseText
    }
}
function post_thanks_remove_all_84842()
{
    do_thanks_button = new vB_AJAX_Handler(true)
    do_thanks_button.onreadystatechange(thanks_button_Done_84842)
    do_thanks_button.send('showthread.php?do=post_thanks_button_add_ajax&p=84842')
    do_thanks_remove_all = new vB_AJAX_Handler(true)
    do_thanks_remove_all.onreadystatechange(thanks_remove_all_Done_84842)
    do_thanks_remove_all.send('showthread.php?do=post_thanks_remove_all_ajax&p=84842')
}
function thanks_remove_all_Done_84842()
{
    if (do_thanks_remove_all.handler.readyState == 4 && do_thanks_remove_all.handler.status == 200)
    {
        fetch_object('post_thanks_box_84842').innerHTML = do_thanks_remove_all.handler.responseText
    }
}
function post_thanks_remove_user_84842()
{
    do_thanks_button = new vB_AJAX_Handler(true)
    do_thanks_button.onreadystatechange(thanks_button_Done_84842)
    do_thanks_button.send('showthread.php?do=post_thanks_button_add_ajax&p=84842')
    do_thanks_remove_user = new vB_AJAX_Handler(true)
    do_thanks_remove_user.onreadystatechange(thanks_remove_user_Done_84842)
    do_thanks_remove_user.send('showthread.php?do=post_thanks_remove_user_ajax&p=84842')
}
function thanks_remove_user_Done_84842()
{
    if (do_thanks_remove_user.handler.readyState == 4 && do_thanks_remove_user.handler.status == 200)
    {
        fetch_object('post_thanks_box_84842').innerHTML = do_thanks_remove_user.handler.responseText
    }
}
//-->
</script>


cavyspirit 08-10-2006 10:01 PM

I have the same source. But the whole thing is commented out, right? So Google is trying to execute it anyway?

ktaylor 08-11-2006 03:20 AM

Quote:

Originally Posted by hornstar1337
Code:

Database error in vBulletin 3.6.0:

Invalid SQL:

              UPDATE vb3_user
              SET post_thanks_user_amount = post_thanks_user_amount - 1
              WHERE userid IN ();

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 ')' at line 3
Error Number : 1064
Date        : Wednesday, August 9th 2006 @ 09:07:13 PM
Script      : http://www.gamerzneeds.net/forums/showthread.php?do=post_thanks_remove_all_ajax&p=156656
Referrer    :
IP Address  :
Username    :
Classname    : vb_database

I've been using the thanks button on my site for so long, upgraded my forums to vb 3.6 gold and then upgraded to this version a few days ago, and then just a few hours ago I had a few database errors come through relating to the database error above.

Anyideas what caused that?

Thanks

does anyone have a fix for this? i get the same db error....

iran.gs 08-11-2006 01:13 PM

lnstalled

iran.gs 08-11-2006 01:16 PM

lnstalled

The Notorious 08-11-2006 03:13 PM

Does this hack have an option to hide the post till someone clicks thanks?

Abe1 08-11-2006 04:04 PM

Quote:

Originally Posted by hornstar1337
Code:

Database error in vBulletin 3.6.0:

Invalid SQL:

              UPDATE vb3_user
              SET post_thanks_user_amount = post_thanks_user_amount - 1
              WHERE userid IN ();

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 ')' at line 3
Error Number : 1064
Date        : Wednesday, August 9th 2006 @ 09:07:13 PM
Script      : http://www.gamerzneeds.net/forums/showthread.php?do=post_thanks_remove_all_ajax&p=156656
Referrer    :
IP Address  :
Username    :
Classname    : vb_database

I've been using the thanks button on my site for so long, upgraded my forums to vb 3.6 gold and then upgraded to this version a few days ago, and then just a few hours ago I had a few database errors come through relating to the database error above.

Anyideas what caused that?

Thanks

It looks like an error with removing all thanks from a post. Any of your admins report this error?

Abe1 08-11-2006 04:06 PM

Quote:

Originally Posted by unitedpunjab
How to totally disable this hack for guests ?
for the past few days google spends an hour daily trying to thank posts.

I'm glad Google likes your posts :)

I have down on my list to add a noflow or something like that.

firstrebel 08-11-2006 08:31 PM

If a post is edited the 'Thanks' disappears. Is this by design?

Bob

Darat 08-12-2006 11:17 AM

I was wondering if and if yes how I could I search for thanked posts in a given month - ideally what I would like to do is add another search option "Posts thanked this month".

texasasl 08-12-2006 04:50 PM

Does anybody knows if it works with vbulletin 3.5.3 ??????

I am trying to install it but I get this error message:

"Database error in vBulletin 3.5.3:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vb3_plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)"

and also I get:

"MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Saturday, August 12th 2006 @ 08:55:30 PM
Script : http://www.inout.gr/admincp/plugin.php
Referrer : http://www.inout.gr/admincp/plugin.php?do=productadd"

Can somebody help??? Thank you in advance.

ktaylor 08-12-2006 07:09 PM

I think there was a mesage about that earlier like on page 2 or 3 that said this would only work on 3.5.4 and up or something to that nature.

texasasl 08-12-2006 08:58 PM

Quote:

Originally Posted by ktaylor
I think there was a mesage about that earlier like on page 2 or 3 that said this would only work on 3.5.4 and up or something to that nature.

No there is nothing about. There is a reference from some more members for the same problem but actually nobody replied or proposed something that solves the problem or explains clearly that does not work with earlier versions as 3.5.3 or 3.5.4. That's I'm asking for. Thanks anyway for your reply.

P.S. Finally I resolved the problem by installing the previous version of this hack and it works fine. Thanks to Abe1.

Eagle Creek 08-13-2006 12:35 AM

The GIF file isnt showing up anywhere, so I can't thank for threads?


All times are GMT. The time now is 01:02 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.04925 seconds
  • Memory Usage 1,852KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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