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)

Zagis 03-02-2008 06:30 PM

Hi,

How can I hide post thanks from guests? I prefer to be visible to all the other usergroups except guests-spiders

Abe1 03-02-2008 06:31 PM

Quote:

Originally Posted by rrr (Post 1450829)
I found the problem.

In the "Insructions - vb-3-6-6 - vb-3-6-7.txt" file, the template edit instructions are wrong.

I compared them to the edit instructions for vb-3-6-8 and it looks like this part:

Code:

find:
--------------------------------------------------------------------
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[postbit_userinfo_right]
--------------------------------------------------------------------


Should be this:
Code:

find:
--------------------------------------------------------------------
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[postbit_userinfo_right_after_posts]
--------------------------------------------------------------------

The template hook name seems to have been renamed.

I changed the template hook name to match the 3.6.8 instructions and it worked fine.

Hope this helps :)

Actually, fixed in next version. This was not the mistake.

Abe1 03-02-2008 07:14 PM

Quote:

Originally Posted by Taragon (Post 1453836)
Would it be possible, by a template edit perhaps, to turn the 'Post Thanks' tab off in MEMBERINFO?
Currently it is looking for $template_hook[profile_left_last], but I can't figure it out

There will no longer be a tab by next version. It will be in the statistics tab. You will be able to blank out the 'post_thanks_memberinfo_block' template to remove the stats.

Abe1 03-02-2008 07:15 PM

Quote:

Originally Posted by GameWizard (Post 1454385)
Found a small bug:

When the original thread starter presses "Remove All" the 'thanks' button appears in the postbit_legacy, even though the option is set to not allow the ability to thank oneself. Pressing this button does nothing, it just dissapears. It seems the check for this option is ignored when removing all the thanks, just thought I'd let you know.

I figured I did not have to fix this but since it only applies to admins. I did know about it.

Abe1 03-02-2008 07:16 PM

Quote:

Originally Posted by YLP1 (Post 1454767)
Yep .... Should I pm you the access info or email it or??

PM me please.

Abe1 03-02-2008 07:17 PM

Quote:

Originally Posted by Kadi (Post 1455097)
Hi,

Thank you so much for the update.

Will the option of deleting thanks from deleted posts delete them from posts deleted before we updated the hack?

Not sure your question.

Abe1 03-02-2008 07:18 PM

Quote:

Originally Posted by glowinggal (Post 1455172)
noted by abe1 to other "have to see APC"

What do i need to do? Would love to use this... I installed it on 3.6.8 and it appears almost as nothing has changed at all on our forum.

Please PM me.

Abe1 03-02-2008 07:26 PM

Quote:

Originally Posted by Zagis (Post 1455341)
Hi,

How can I hide post thanks from guests? I prefer to be visible to all the other usergroups except guests-spiders

Make your own plug-in. Use 'post_thanks_function_fetch_thanks_start' and put in it:

PHP Code:

if ($vbulletin->userinfo['usergroupid'] == 0)
{
return 
'';



davehouston 03-02-2008 09:25 PM

Hi all,

I have followed the install instructions to the tee. But the thanks button willn't appear on any posts. Am i missing something? vB version 3.6.8 patch level 2.

Many Thanks

Dave

Abe1 03-02-2008 11:18 PM

Quote:

Originally Posted by davehouston (Post 1455473)
Hi all,

I have followed the install instructions to the tee. But the thanks button willn't appear on any posts. Am i missing something? vB version 3.6.8 patch level 2.

Many Thanks

Dave

I would have to look at your ACP. Do you have custom templates?

Zagis 03-03-2008 08:24 AM

1 Attachment(s)
Quote:

Originally Posted by Abe1 (Post 1455392)
Make your own plug-in. Use 'post_thanks_function_fetch_thanks_start' and put in it:

PHP Code:

if ($vbulletin->userinfo['usergroupid'] == 0)
{
return 
'';



Well, I did that but I'm still seeing post thanks as a guest.

Am I missing something? Please see the attachment...

davehouston 03-03-2008 09:19 AM

Quote:

Originally Posted by Abe1 (Post 1455538)
I would have to look at your ACP. Do you have custom templates?

Yeah, I have a custom template. Would you mind looking at my ACP. If so how do I go about giving you login details.

Thanks again

Hypo 03-03-2008 10:10 AM

Quote:

Originally Posted by Saudi Zoom (Post 1455209)
me too..

Hypo, did you use vbseo ?

thanks Abe1

No I don't use vBSEO. ;)
You have both problems too, or only 1?

Saudi Zoom 03-03-2008 12:30 PM

Quote:

Originally Posted by Hypo (Post 1455806)
No I don't use vBSEO. ;)
You have both problems too, or only 1?


I am using vbseo and got only this error like you:
Quote:


Also I get this error if I want to search at all thanked post for a user:

Code:
Sorry - no matches. Please try some different terms.
Is this a setting or somethin' else?

:(

CLF 03-03-2008 05:58 PM

Quote:

Originally Posted by rrr (Post 1448984)
I searched this thread, but didn't find an answer.

I just installed this today and everything looks great except that the "number of thanks received" and the "number of thanks given" stats aren't showing in postbit legacy.

I put the required manual template edit in both postbit and postbit_legacy, but the text still isn't showing up.

Any ideas?

Quote:

Originally Posted by Abe1 (Post 1449644)
Do you have more then one style?

Quote:

Originally Posted by CLF (Post 1449827)
I just realized the same thing. It does count when it's thanked but it only shows when I'm in my PM box. And yes, I have two styles. What should I do?

Hope I could fix this.
Thank you, Abe!


Abe, do you know what I need to do to make this part work?
THANK YOU!

Abe1 03-05-2008 11:30 AM

Quote:

Originally Posted by Zagis (Post 1455747)
Well, I did that but I'm still seeing post thanks as a guest.

Am I missing something? Please see the attachment...

Sorry, change the 0 to a 1

Abe1 03-05-2008 11:31 AM

Quote:

Originally Posted by davehouston (Post 1455762)
Yeah, I have a custom template. Would you mind looking at my ACP. If so how do I go about giving you login details.

Thanks again

Read the installation instuctions on what template edits have to be made.

Abe1 03-05-2008 11:32 AM

Quote:

Originally Posted by CLF (Post 1456132)
Abe, do you know what I need to do to make this part work?
THANK YOU!

Make sure you have to template edits. Check the instructions.

Zagis 03-05-2008 12:22 PM

Quote:

Originally Posted by Abe1 (Post 1457522)
Sorry, change the 0 to a 1

No, doesn't work neither.

"Unregistered / Not Logged In" id is 1

Abe1 03-05-2008 12:33 PM

Quote:

Originally Posted by Zagis (Post 1457558)
No, doesn't work neither.

"Unregistered / Not Logged In" id is 1

Correct, that is the guests usergroup.

Saudi Zoom 03-05-2008 12:39 PM

would you please check this problem Abe1..

if u try to "find all posts thanked by user" or "all posts user give thanked" in user profile you got
Quote:

Sorry - no matches. Please try some different terms.
i am using 3.6.8 patch2..
check here please
http://www.saudizoom.com/members/2.html

Thank you

Zagis 03-05-2008 12:48 PM

Quote:

Originally Posted by Abe1 (Post 1457566)
Correct, that is the guests usergroup.

Yes, "Unregistered / Not Logged In" is the guests usergroup and its id is 1.

I also tried with 6 and I can see "post thanks" as an admin too.

Abe1 03-05-2008 01:06 PM

Quote:

Originally Posted by Saudi Zoom (Post 1457572)
would you please check this problem Abe1..

if u try to "find all posts thanked by user" or "all posts user give thanked" in user profile you got


i am using 3.6.8 patch2..
check here please
http://www.saudizoom.com/members/2.html

Thank you

No clue. Are you using a 3rd party plug-in that can effect this?

Abe1 03-05-2008 01:08 PM

Quote:

Originally Posted by Zagis (Post 1457578)
Yes, "Unregistered / Not Logged In" is the guests usergroup and its id is 1.

I also tried with 6 and I can see "post thanks" as an admin too.

Add this there:

var_dump($vbulletin->userinfo);

Tell me what it sais on the top of the page now when a guest. Remove right after you get the result.

Zagis 03-05-2008 01:15 PM

Quote:

Originally Posted by Abe1 (Post 1457596)
Add this there:

var_dump($vbulletin->userinfo);

Tell me what it sais on the top of the page now when a guest. Remove right after you get the result.

Unable to add cookies, header already sent.
File: /home/user/public_html/forum/includes/functions_post_thanks.php(141) : eval()'d code
Line: 1

Abe1 03-05-2008 01:30 PM

Quote:

Originally Posted by Zagis (Post 1457599)
Unable to add cookies, header already sent.
File: /home/user/public_html/forum/includes/functions_post_thanks.php(141) : eval()'d code
Line: 1

I need the info before then. Did it say NULL?

Zagis 03-05-2008 03:55 PM

Quote:

Originally Posted by Abe1 (Post 1457607)
I need the info before then. Did it say NULL?

No, it does not say NULL. I'm just getting a full page of letters and numbers :confused:

Abe1 03-05-2008 04:19 PM

Quote:

Originally Posted by Zagis (Post 1457722)
No, it does not say NULL. I'm just getting a full page of letters and numbers :confused:

Need the letters and numbers, but in the format that it shows if you "view source". PM to me would be better.

Zagis 03-05-2008 04:21 PM

Sure, I'll PM you...

Thanks

glowinggal 03-05-2008 05:05 PM

Quote:

Originally Posted by glowinggal (Post 1455172)
noted by abe1 to other "have to see APC"

What do i need to do? Would love to use this... I installed it on 3.6.8 and it appears almost as nothing has changed at all on our forum.

Just wanted to post a quick note on this - we got it all fixed... I one-by-one reuploaded ALL files just in case something went askew in the upload the first time... then reinstalled the product; and viola - all set =]

Saudi Zoom 03-05-2008 09:43 PM

Quote:

Originally Posted by Abe1 (Post 1457594)
No clue. Are you using a 3rd party plug-in that can effect this?


i am using vbseo 3.1 , nothing else maybe can make an effect !

Abe1 03-05-2008 09:59 PM

Quote:

Originally Posted by Saudi Zoom (Post 1457956)
i am using vbseo 3.1 , nothing else maybe can make an effect !

vbseo can mess it up i believe.

IRANCITY 03-06-2008 06:05 PM

i have problem .... this hack dont work for me
what am i doing?
(enable all ajax)(enable hack tanks)

Abe1 03-06-2008 10:19 PM

Quote:

Originally Posted by IRANCITY (Post 1458655)
i have problem .... this hack dont work for me
what am i doing?
(enable all ajax)(enable hack tanks)

You have to give more details. What doesn't work?

IRANCITY 03-07-2008 07:33 AM

it doesn't give tank u when click it(so doesn't work)

Citizen 03-07-2008 04:37 PM

Is there a way to display the top 10 thanked users?

Abe1 03-08-2008 11:46 PM

Quote:

Originally Posted by Citizen (Post 1459475)
Is there a way to display the top 10 thanked users?

There are 3rd party hacks that do this.

Abe1 03-08-2008 11:46 PM

Quote:

Originally Posted by IRANCITY (Post 1459116)
it doesn't give tank u when click it(so doesn't work)

What does happen?

choccyclaire 03-10-2008 12:51 PM

Any way I can edit the template so that another usergroup has the ability to remove all thanks?

I assume I need to change something on this line, in postbit template, but to what?

Code:

<if condition="$bbuserinfo['usergroupid'] == 6">
Thanks in advance.

LordDB 03-10-2008 04:50 PM

When deleting threads/posts, I woud like to prevent the loss of the Thanks count...any fix?


All times are GMT. The time now is 11: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.02256 seconds
  • Memory Usage 1,850KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (35)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