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)

Dutch_Boy 08-07-2009 02:12 PM

Quote:

Originally Posted by verbs (Post 1861551)
I'm having all kinds of problems myself....

It's appearing as just a clickable hyperlink that says "Thanks" for some users, for others it's a red X for the image. Did I miss putting the IMG file in the buttons folder or something? I put it in 2 different buttons folders and couldn't find a third.

Are you using a self made template? If you do plz put the thanks button in this file:

/public_html/styles/Your Template name here!/images/buttons

Put the thanks button in the buttons map.

The red X image is only show to the people using IE right? Thats because IE sucks. It allways shows a X images and firefox shows nothing or a link.

If your using IE right click on the image --> properties and check the the link in the new pop up. Put the images your missing in the map you see in the link.

I hope this will solve your problems.

And make sure the name of the thanks or groan button is post_groan.gif or post_thanks.gif

lurkerx 08-09-2009 06:21 PM

Im using v3.8.3

and the thanks button doesnt show up.

I am using postbit legacy and have looked at the code and there isnt even a reference to post thanks.

How can I manually plug this in?

ITDarasgah 08-09-2009 07:10 PM

Quote:

Originally Posted by SHER (Post 1862083)
in my board from the last 4 days its stop work ......the Following User says Thank you is not show .....for more information see the attach picture
Attachment 102926

any one know about that.......so please reply I am waiting .


Regards

ETDC 08-09-2009 08:59 PM

Quote:

Originally Posted by ETDC (Post 1861320)
Abe1 hasn't been here since 7th July.

....................

Skillz10 08-10-2009 07:19 PM

Hello i am starting a website and to complete it i need this addon i have install the shoutout and the 5 stats but i am having problems installing this thank hack everthing went in import and everthing did it both ways did it upload and import after i install i go back to the forum and the thread and click thanks it shows me this

The Following User Says Thank You to newuser For This Useful Post: Remove All Remove Your Thanks

But the problem is i dont get no name....
Can someone plssssssssssss help me..

Makc666 08-11-2009 09:32 AM

Proposal

It will be nice to have a way to delete individual user's Thank You.

For now administrator can delete:
  1. His own Thank You
  2. All Thanks You at once

Proposal is to add one more way:
  1. His own Thank You
  2. Any other user Thank You
  3. All Thanks You at once

thepowerofnow 08-11-2009 10:39 AM

hi, anybody know why it does Not show the how many thanked posts & posts thanked by in the user statistic ? im using vbseo, vb 3.82 ?

its just a number, 1 or 0 . but No text at all ?

thanks :)

Makc666 08-12-2009 08:01 AM

BUG

There is a serious bug which has effect on forums which have several languages on them.

The problem is with actions:
  • Remove Your Thanks
  • Remove All

The effected file is:
Code:

./includes/functions_post_thanks.php
Function is:
PHP Code:

function delete_all_thanks($postinfo$remove_users_thanks_count true)
{
...


Code is:
PHP Code:

        if ($vbulletin->options['post_thanks_reputation'] && ($remove_users_thanks_count == true || $vbulletin->options['post_thanks_delete_remove_thanks_count']))
        {
            
$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_thanks_thanked_post]'");

            if (
$vbulletin->db->affected_rows() != 0)
            {
                
$total_rep_got $vbulletin->options['post_thanks_reputation'] * $nb;
                
$set_user_got .= ", reputation = reputation - $total_rep_got";
            }
        } 

Line:
PHP Code:

$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_thanks_thanked_post]'"); 

Problem part:
PHP Code:

AND reason '$vbphrase[post_thanks_thanked_post]' 

As you can see you use $vbphrase[post_thanks_thanked_post].

But for every language it has it's own "variable".

For English it will be "Thanked Post".
For German it will be "Dankte Post".
For Russian it will be "Сообщение с благодарностью".
etc.

So if Admin uses English and will hit 'Remove All' then only English reputation comments with points will be deleted. All other languages reputation comments with points will not be deleted.

The same for normal user.
If he will give Thanks You in one Language,
then switch to another language
and then will hit remove his thanks,
the reputation comment with points will not be deleted.

I am thinking for two days how to fix this one.

Of course we can try to search for all languages variables but the problem is that language variables can be changeable.
So this is not a clear decision.

We can also remove
PHP Code:

AND reason '$vbphrase[post_thanks_thanked_post]' 

But this will delete normal reputation comments.

The only "fix" for this one I see is to have another table with comments' IDs which where given by pressing "Thank You" button.

This will be the best and as I can see the only one correct variant.

P.S. The same for [AJAX] Post Groan Hack.

PHP Code:

function delete_all_groans($postinfo$remove_users_groan_count true)
{
...
$vbulletin->db->query_write("DELETE FROM "TABLE_PREFIX ."reputation WHERE postid = '$postinfo[postid]' AND reason = '$vbphrase[post_groan_groaned_post]'");
...



maxicep 08-12-2009 11:32 PM

Working correctly with vbulletin 3.8.4 ?

iTz Steve xX 08-13-2009 05:27 PM

yippie i o kai yay


All times are GMT. The time now is 05:16 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.02629 seconds
  • Memory Usage 1,766KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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