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)

Datenpapst 01-20-2008 12:39 PM

When I upload the xml file the thread are not shown any more just getting white pages :(

kimtown 01-20-2008 01:29 PM

Anyone? :D

Quote:

Originally Posted by kimtown (Post 1423911)
Hi there...everyone loves this thanks button!! I have a question on how to change what it says when you click it.

Right now it says: The Following User Says Thank You to XXXX For This Useful Post:

How do I change that to just say THANKS or THANK YOU?

Thanks in advance ;)


Kalina 01-20-2008 09:07 PM

Quote:

Originally Posted by kimtown (Post 1425106)
Anyone? :D

You'd edit these phrases: $vbphrase[post_thanks_user_says] and $vbphrase[post_thanks_users_says]

kimtown 01-20-2008 10:42 PM

Quote:

Originally Posted by Kalina (Post 1425429)
You'd edit these phrases: $vbphrase[post_thanks_user_says] and $vbphrase[post_thanks_users_says]

thank you Kalina. Forgive my ignorance, but where do I find these and what do I change (them to)? Thanks

MattIS 01-21-2008 04:42 AM

How would I put a Legend box around the thanks in the Post Bit?

jacki 01-22-2008 02:48 PM

post thank you error :
Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183

Roxie 01-23-2008 04:09 AM

Quote:

Originally Posted by kimtown (Post 1425475)
thank you Kalina. Forgive my ignorance, but where do I find these and what do I change (them to)? Thanks

Search for the phrases in your language files (admin cp).

Roxie 01-23-2008 04:10 AM

Quote:

Originally Posted by MattIS (Post 1425633)
How would I put a Legend box around the thanks in the Post Bit?

The fieldset tag draws the little box around information. You can find examples in the memberinfo statistics box template.

Nathan2006 01-24-2008 10:38 PM

Just a quick question.

I have not yet updated to 3.7.0 yet but once the full version is released,

I will be totally removing the Hide hack from Psionic Vision and installing your version of thank you hack.

Is there anyway I can move over the thanks you's that all my members already have and import them into your hack
once I install or would I have to start a fresh?

Thanks for any help :)

Abe1 01-25-2008 01:35 AM

Quote:

Originally Posted by rinkrat (Post 1422551)
MySQL Error : Unknown column 'post.post_thanks_amount' in 'where clause'
Error Number : 1054


How can I fix that?

You have to give me more info then that please.
Quote:

Originally Posted by Kalina (Post 1423213)
I found a strange bug. I had a thread going and ended up having to ban the original poster of the thread, any thanks on that page caused an error. I had to delete them all, tried thanking again, and it caused the error again, only on page 1 of the thread, where the banned member had been the creator of the thread.

I was not able to reproduce. I would need to look at your forum.
Quote:

Originally Posted by Darthvader2007 (Post 1423224)
What about forum prune ??
Will this decrease your thanks counts in your profile ?
This for the thank you ranklist.

Currently yes. Will be an option in next version.
Quote:

Originally Posted by fatal1980 (Post 1423486)
Hello,

I just upgraded from 6.1 to 7.1.

For some reason the thanks button is missing... any ideas? I am running 3.6.8

I was thinking of uninstalling and reinstalling, but would that delete all my previously thanked posts?

thanks!

I would have to look at your forum.

Abe1 01-25-2008 01:36 AM

Quote:

Originally Posted by Skavenger (Post 1423647)
hi, I have a little problem with a feature

I use this hack in a category with a few forums only, so any time I create a new forum, I have to add it in the "induvidual forums to turn post thank you hack off" setting. I was wondering if there is any possibility to make something more usefull, like a radio button to choose "include this forums" or "exclude this forums" and put the IDs there, for example. I hope you understand what I mean, my english is not good...

thanks!

Possibly in the future, but not right now.

Abe1 01-25-2008 01:38 AM

Quote:

Originally Posted by kimtown (Post 1423911)
Hi there...everyone loves this thanks button!! I have a question on how to change what it says when you click it.

Right now it says: The Following User Says Thank You to XXXX For This Useful Post:

How do I change that to just say THANKS or THANK YOU?

Thanks in advance ;)

Edit the phrases.

Abe1 01-25-2008 01:39 AM

Quote:

Originally Posted by Reminisce32 (Post 1424285)
Hi. I installed and for some weird reason in the part of the thread under where the users avatar is where it says:
Thanks: 0
Thanked 0 Times in 0 Posts

^^ that duplicates every post.

so for post #2 in the thread, in that users profile it will show:

Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts

then for post #3 in the thread in THAT users profile will show:
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts


...whats the problem?

This was only a vb3.6.7 error and has a fix in the current version. What version are you running now.

DieselMinded 01-25-2008 01:46 AM

Hey Abe i upgraded to this new version and my thanks button is all the way to the right of other buttons i want it to be the first one , what am i doing wrong ?

Code:

<!-- controls --><!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['multiquote_post']">
                                <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                        </if>
                       
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <if condition="$show['deletedpost']">
                                <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                        </if>
                        <if condition="$show['redcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                        <else />
                                <if condition="$show['yellowcard']">
                                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                                </if>
                        </if>
$template_hook[postbit_controls]
                        <!-- / controls -->


Abe1 01-25-2008 01:59 AM

Quote:

Originally Posted by vauge (Post 1424589)
My users are interested whom they have thanked.

What is challenge to add this?

Thanks!

Added for next version

Abe1 01-25-2008 02:09 AM

Quote:

Originally Posted by Kalina (Post 1424659)
I ran the "special actions" function to delete all thanks a user gave and nothing actually happens, I still see all the "thanks" they gave.

Fixed in next version.

Abe1 01-25-2008 02:10 AM

Quote:

Originally Posted by Datenpapst (Post 1425082)
When I upload the xml file the thread are not shown any more just getting white pages :(

I would have to check your forum.

Abe1 01-25-2008 02:11 AM

Quote:

Originally Posted by MattIS (Post 1425633)
How would I put a Legend box around the thanks in the Post Bit?

Try the template.

Abe1 01-25-2008 02:12 AM

Quote:

Originally Posted by jacki (Post 1426676)
post thank you error :
Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183

Should be fixed in next version.

Abe1 01-25-2008 02:14 AM

Quote:

Originally Posted by Nathan2006 (Post 1428304)
Just a quick question.

I have not yet updated to 3.7.0 yet but once the full version is released,

I will be totally removing the Hide hack from Psionic Vision and installing your version of thank you hack.

Is there anyway I can move over the thanks you's that all my members already have and import them into your hack
once I install or would I have to start a fresh?

Thanks for any help :)

If you currently have post thanks installed, do not uninstall it.

Abe1 01-25-2008 02:15 AM

Quote:

Originally Posted by DiesellMinded (Post 1428419)
Hey Abe i upgraded to this new version and my thanks button is all the way to the right of other buttons i want it to be the first one , what am i doing wrong ?

Code:

<!-- controls --><!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['multiquote_post']">
                                <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                        </if>
                       
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <if condition="$show['deletedpost']">
                                <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                        </if>
                        <if condition="$show['redcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                        <else />
                                <if condition="$show['yellowcard']">
                                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                                </if>
                        </if>
$template_hook[postbit_controls]
                        <!-- / controls -->


Remove the template edit. No need in this version. Move the '$template_hook[postbit_controls]' to where you currently have the post thanks edit.

Abe1 01-25-2008 02:35 AM

Version 7.2 (01/24/08):
  • Updated files: post_thanks.php, functions_post_thanks.php
  • Updated templates: post_thanks_memberinfo_block, post_thanks_member_info
  • New option: Remove User's Thanks Count When Deleting Post
  • New phrase: post_thanks_search_user_gave
  • FIX User reputation level now updates. (Thanks to liwo for this one.)
  • NEW Added option to view all posts a user has thanked.
  • FIX Fixed Special Action - Delete All of a Users Thanks
  • FIX Should have fixed some 'foreach()' errors.

Hornstar 01-25-2008 10:29 AM

Thanks, I have been waiting for this release for ages especially for this part here:
FIX Fixed Special Action - Delete All of a Users Thanks

can you confirm what this exactly means.

Is it,

1. Deletes all thanks that user gave?

or

2. Delete all thanks that user has?

Thanks.

Abe1 01-25-2008 10:40 AM

Quote:

Originally Posted by hornstar1337 (Post 1428614)
Thanks, I have been waiting for this release for ages especially for this part here:
FIX Fixed Special Action - Delete All of a Users Thanks

can you confirm what this exactly means.

Is it,

1. Deletes all thanks that user gave?

or

2. Delete all thanks that user has?

Thanks.

First one.

BadgerDog 01-25-2008 10:56 AM

Hello ...

I'm using v3.67pl1 of vBulletin I just upgraded this mod from v7.0 to v7.2 and it created a mess .... :eek:

It was working fine, but I've had to disable it for now.... :(

After the simple upgrade (following the instructions), it seemed (for example) to take an existing "thank you" first post and proceed to automatically add a "thank you" to every post in the thread. It also started showing an extra "thank you" area under one that already existed, plus on some posts, it's now showing 3 to 4 separate thank you buttons?

Anyone help me here?

As I said, it was working fine until the upgrade. Was there something else I needed to do besides follow the v3.67 instructions ie: remove things in templates because they weren't needed any longer because of this v7.2 etc?

Regards,
Badger

Edit: ps... If uninstall this mod, will it clean up and delete all of the "not longer needed" records from the database, then if I re-install it, it will be clean? Is this a possible way to fix all of this corruption from upgrading from v7.0 to 7.2?

Abe1 01-25-2008 11:05 AM

Quote:

Originally Posted by BadgerDog (Post 1428624)
Hello ...

I'm using v3.67pl1 of vBulletin I just upgraded this mod from v7.0 to v7.2 and it created a mess .... :eek:

It was working fine, but I've had to disable it for now.... :(

After the simple upgrade (following the instructions), it seemed (for example) to take an existing "thank you" first post and proceed to automatically add a "thank you" to every post in the thread. It also started showing an extra "thank you" area under one that already existed, plus on some posts, it's now showing 3 to 4 separate thank you buttons?

Anyone help me here?

As I said, it was working fine until the upgrade. Was there something else I needed to do besides follow the v3.67 instructions ie: remove things in templates because they weren't needed any longer because of this v7.2 etc?

Regards,
Badger

Edit: ps... If uninstall this mod, will it clean up and delete all of the "not longer needed" records from the database, then if I re-install it, it will be clean? Is this a possible way to fix all of this corruption from upgrading from v7.0 to 7.2?

There is a plug-in included in this hack that fixes this problem for vb3.6.7 users. It is the one 'postbit_display_start' that has 'Execution Order: 1'

Try removing the following from it:

PHP Code:

if (version_compare($vbulletin->options['templateversion'], '3.6.7''>=') && version_compare($vbulletin->options['templateversion'], '3.6.8''<'))



and


PHP Code:




BadgerDog 01-25-2008 11:39 AM

Thanks Abe1 ... :)

The resulting plug-in (the one with 'Execution Order: 1') after the changes looks like this:

Code:

$template_hook[postbit_userinfo_right] = '';
        $template_hook[postbit_controls] = '';
        $template_hook[postbit_end] = '';

I saved it and re-checked the board after turning the mod back ON. The board seems fine now, although I haven't extensively checked a LOT of posts, a sampling look seems to show a return to normal.

Should I run any of the AdminCP counter checks to reset anything now?

Thanks for your support... it is appreciated. This is an excellent mod and really helps our type of board. I dout we'll ever move past out current v3.67 dues to the nature of our customization, so it's great that you've maintained backwards compatibility.

Regards,
Badger

Skavenger 01-25-2008 01:42 PM

thanks for the update!

Abe1 01-25-2008 04:59 PM

Quote:

Originally Posted by BadgerDog (Post 1428645)
Thanks Abe1 ... :)

The resulting plug-in (the one with 'Execution Order: 1') after the changes looks like this:

Code:

$template_hook[postbit_userinfo_right] = '';
        $template_hook[postbit_controls] = '';
        $template_hook[postbit_end] = '';

I saved it and re-checked the board after turning the mod back ON. The board seems fine now, although I haven't extensively checked a LOT of posts, a sampling look seems to show a return to normal.

Should I run any of the AdminCP counter checks to reset anything now?

Thanks for your support... it is appreciated. This is an excellent mod and really helps our type of board. I dout we'll ever move past out current v3.67 dues to the nature of our customization, so it's great that you've maintained backwards compatibility.

Regards,
Badger

I'm just wondering why the version check didn't work. As you sure you have vb 3.6.7? maybe just some files were not updated.

nyqnzguju 01-25-2008 05:14 PM

Thanks Nice Hack. Installed. But there is one Problem. I cant see the Thanks Image.:( Help me out. Thanks in adv.
https://vborg.vbsupport.ru/

Abe1 01-25-2008 05:32 PM

Quote:

Originally Posted by nyqnzguju (Post 1428801)
Thanks Nice Hack. Installed. But there is one Problem. I cant see the Thanks Image.:( Help me out. Thanks in adv.
http://i168.photobucket.com/albums/u...eeTheImage.jpg

Make sure the image is in all button folders for each style.

YLP1 01-25-2008 05:39 PM

I am running a new board v. 3.6.8. The button isn't showing on either postbits. I did confirm that the templates had the correct code via the instructions.

Any idea on what I did wrong?
Thanks in advance.

DieselMinded 01-25-2008 06:00 PM

Hey Abe

I had Thanked 2 times in 1 posts , Showing twice so I edited out a bit of code in post bit and i thouight it worked but for some reason i have forund 1 member that its still showing twice , I went back and edited legacy too and no change

What do i do ?

DM

Namaless 01-25-2008 10:27 PM

With GARS found one error:

When view the second page of Reviews, get this error:
Code:

Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183
the part is:
PHP Code:

    foreach ($thanks AS $thank)
    {
        if (
$cmpt<$number_rows)
        {
            
$virg=",";
        }
        else
        {
            
$virg="";
        }

        if (
show_thanks_date($forumid))
        {
            
$date_thank vbdate($vbulletin->options['dateformat'], $thank['date'], true);
        }

        eval(
'$liste_user .= " ' fetch_template('post_thanks_box_bit') . '";');
        
$cmpt++;
    } 

This problem get because not found users has thanked.

Thanks for your work.

Nathan2006 01-26-2008 12:03 AM

Quote:

Originally Posted by Abe1 (Post 1428440)
If you currently have post thanks installed, do not uninstall it.


Hi Abe,

I only have your version that was included within the hide hack from Psionic Vision

BadgerDog 01-26-2008 09:50 AM

Quote:

Originally Posted by Abe1 (Post 1428794)
I'm just wondering why the version check didn't work. As you sure you have vb 3.6.7? maybe just some files were not updated.

I don't know ....

I just checked in AdminCP and at the top is says:

Quote:

You are currently running vBulletin version 3.6.7 PL1.
If there's anything (a test PHP script etc) that you'd like me to run and give you results on, I'd be happy to do so.

Should I run any (or all) of those counter reset routines in the AdminCp for your mod, after I altered that plug-in?

Thanks for your help... :up:

Regards,
Badger

teenhut 01-26-2008 10:00 AM

I get an error

Bitfield Collision: credits_cantearn = prefixrequired

Is it because I am using VB Credits?

DieselMinded 01-26-2008 10:13 AM

Quote:

Originally Posted by DiesellMinded (Post 1428826)
Hey Abe

I had Thanked 2 times in 1 posts , Showing twice so I edited out a bit of code in post bit and i thought it worked but for some reason i have found 1 member that its still showing twice , I went back and edited legacy too and no change

What do i do ?

DM

It seems to be only 1 user ? HELP

Traxdata 01-26-2008 11:52 AM

Hello,

I would like to suggest to add disable/enable "Find All Thanked Posts"/"Find All Posts Thanked" functions in "Post Thanks Settings"
This "Find Thanks Posts" search function in User Profiles slows down my forums.
Well, I can edit two "post thanks memberinfo" templates but disable function in "Post Thanks Settings" would be more comfortable.

Thank you :)

teenhut 01-26-2008 12:56 PM

I want to know that.

Is it possible to edit the post bit myself rather than automatic edit?

I only want to know as How many times user has been thanked in post bit rather this and also the one "How many he thanked in how many posts"

Plus it shows up under the Mood feature. I want to show where I want to. I could not any way to turn off the automatic editing of postbit template. Any help please.


All times are GMT. The time now is 05:06 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.05351 seconds
  • Memory Usage 1,892KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (27)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