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)

maidos 06-22-2007 09:00 PM

when i click on the thank you button it redirects me to

you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

NolF 06-23-2007 08:46 AM

Quote:

Originally Posted by vitrag24
i have vb 3.6.4 aND version of this hack 5.3
can i update this addon?is it compatible with vb 3.6.4 also?

and how to update now?

Yes yiu may upgrade, USE 6.0 gold instead of 6.2.
In order to upgrade, just reupload all the new files to the FTP, reinstall the product, with overwrite on YES, and redo ALL template modifications following the instructions.

And your are done ^^

Quote:

Originally Posted by Quantnet.org
Which conditions would you use so that it only display Thanks and Thanked when it > 1.
I used to be able to do this with the if condition in earlier version but I don't know how to do it now.
Something like < if $vbphrase[post_thanks_thanks] >=1 or something

hmmm lets see

go to the template called post_thanks_postbit_info
and unless you hav emodified it change it to
HTML Code:

<if condition="$post[userid]">
        <if condition="$post[post_thanks_user_amount_formatted] > 0"><div>$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div></if>
        <div>
                <if condition="$post[post_thanks_thanked_times_formatted] != 0">
                <if condition="$post[post_thanks_thanked_times] == 1">
                        $vbphrase[post_thanks_time_post]
                <else />
                        <if condition="$post[post_thanks_thanked_posts] == 1">
                                <phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
                        <else />
                                <phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
                        </if>
                        </if>
                </if>
        </div>
</if>

basically added

<if condition="$post[post_thanks_user_amount_formatted] > 0">
which means: if this person has thanked more than 0 times then show the content.
* WHy did i put > 1 ?
because it woudl be any number bigger than one not including 1.
* Then use >= 1
bah > 0 does the job

then the second conditional is
<if condition="$post[post_thanks_thanked_times_formatted] != 0">
which means: if this person thanked times is NOT zero (hence has been thanked) then show the content
^^ I think that should help

Quote:

Originally Posted by maidos
when i click on the thank you button it redirects me to

you do not have permission to access this page. This could be due to one of several reasons: [...]

This one is harder to answer because the problem is more abstract. Are you by any chance in a baned usergroup (banned from thanking, secondary groups are affected)
I can't tghink of anything else, if that doesn't do it abe1 should be able to answer ^^

maidos 06-23-2007 08:50 AM

no since im a admin and once i did what u told everyone to do i added a thanks... and it did redirected me to that msg

NolF 06-23-2007 09:01 AM

hmm
can users use the thanks button? or do they get the same msg

Make sure all the files are propelly uploaded to your FTP, a faulty script might cause this sort of problem

maidos 06-23-2007 09:50 AM

re-uploaded the files but still redirects me... im using 3.6.7 can anyone confirm this issues aswell?

my user can view the thanks button

vitrag24 06-23-2007 10:50 AM

do i need to download and update this addon also while updating from 5.2 to 6.0 gold?

gregfindley 06-23-2007 11:42 AM

Quote:

Originally Posted by NolF (Post 1273978)
On template post_thanks_postbit_info find
<div>$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount_formatted]</div>
either delete it or wrap it in a conditional, I normally put one so only admins can see it (is good to monitor abuse etc ^^)
<if conditional="$bbuserinfo[usergroupid] == 6"> or <if conditional="$bbuserinfo[userid] == XX">
First one for usergroupid, the second one if you only want your-self to be able to see it.
Read This tutorial about conditionals, very useful.

Hi NolF,

Thanks for your reply, I have deleted that from the template, but its still showing in the postbit- any ideas? My forums are www.ChessForums.org

Thanks!
Greg

Quantnet 06-23-2007 12:12 PM

NoLF,
Just want to say thanks. it works

cayne 06-23-2007 06:34 PM

looks good, gonna download it.

NolF 06-24-2007 01:17 AM

Quote:

Originally Posted by maidos
re-uploaded the files but still redirects me... im using 3.6.7 can anyone confirm this issues aswell?

my user can view the thanks button

And can they (the users) use it?

Quote:

Originally Posted by vitrag24
do i need to download and update this addon also while updating from 5.2 to 6.0 gold?

Sorry I don't understand the question

Quote:

Originally Posted by gregfindley
Thanks for your reply, I have deleted that from the template, but its still showing in the postbit- any ideas?

To begin with you are missing a hook in memberinfo, this one $template_hook[memberinfo_foruminfo] to be precise.

secondly does the post_thanks_postbit_info template look like this?

HTML Code:

<if condition="$post[userid]">
        <div>
                <if condition="$post[post_thanks_thanked_times] == 1">
                        $vbphrase[post_thanks_time_post]
                <else />
                        <if condition="$post[post_thanks_thanked_posts] == 1">
                                <phrase 1="$post[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
                        <else />
                                <phrase 1="$post[post_thanks_thanked_times_formatted]" 2="$post[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
                        </if>
                </if>
        </div>
</if>

Quote:

NoLF,
Just want to say thanks. it works
Your welcome ^^ I'm glad it works :)

Adam21 06-24-2007 06:29 AM

Where do we find the who thanked you page?

AndyA 06-24-2007 08:58 AM

If I click on the Remove All link does it only remove the thanks shown in that bar ?

gregfindley 06-24-2007 10:59 AM

Quote:

Originally Posted by NolF (Post 1275033)
To begin with you are missing a hook in memberinfo, this one $template_hook[memberinfo_foruminfo] to be precise.

secondly does the post_thanks_postbit_info template look like this?

Do you know where do I need to add that hook?
and it didn't look like that, but it does now, and thats solved the issue- Thanks!

Appreciate your help!
Thanks, Greg

Abe1 06-24-2007 12:08 PM

Quote:

Originally Posted by AndyA (Post 1275229)
If I click on the Remove All link does it only remove the thanks shown in that bar ?

Yes.

maidos 06-24-2007 03:36 PM

my user can see the thank you button for second time :/

AndyA 06-24-2007 03:47 PM

I'm seeing some odd behavour with this mod. One of my moderators is showing as having 'Thanked' other posts even when he hasn't ! Also the 'Thanked' section seems to change position within a thread, i.e moves below other posts. Very strange.

I'm using vb 3.6.7PL1

Spinball 06-24-2007 06:45 PM

Quote:

Originally Posted by Spinball (Post 1273006)
Has anyone experienced the latest version of this hack slowing down their forums?
I upgraded vB from 3.6.4 to 3.6.7 and installed the new Thank you hack right away (with extra plugin bug fix).
I then went away for 3 days and returned to lots of complaints of a slow forum. First thing I did was disable all the plugin hacks. I think it's the Thank You hack which is crippling our forum. I have disabled it for now. Is it likely to be having a big effect on the server?

I can confirm that the Thank You hack cripples our forum. I have the latest version plus the hook fix applied on 3.6.7PL1 at www.avforums.com.
I am having to disable the hack which is a great pity since our members love it.
Running the previous version on 3.6.4 caused no problems at all.
Abe, could you possibly look closely into your hack to see whether there is anything which could cause extra drain on the server?

Abe1 06-24-2007 11:35 PM

Quote:

Originally Posted by Spinball (Post 1275582)
I can confirm that the Thank You hack cripples our forum. I have the latest version plus the hook fix applied on 3.6.7PL1 at www.avforums.com.
I am having to disable the hack which is a great pity since our members love it.
Running the previous version on 3.6.4 caused no problems at all.
Abe, could you possibly look closely into your hack to see whether there is anything which could cause extra drain on the server?

Can I have a look at your phpmyadmin and your forum while the forum is in debug mode?

Abe1 06-24-2007 11:36 PM

Quote:

Originally Posted by AndyA (Post 1275478)
I'm seeing some odd behavour with this mod. One of my moderators is showing as having 'Thanked' other posts even when he hasn't ! Also the 'Thanked' section seems to change position within a thread, i.e moves below other posts. Very strange.

I'm using vb 3.6.7PL1

Did you install the 'fix'?

powerful_rogue 06-25-2007 12:48 AM

Great mod :) No errors so far!

noyt 06-25-2007 06:38 AM

I have just updated to 6.0 Gold. Forgive me for not trawling for all the posts to see if this has been asked before. For some months I was allowing Thanked posts to give a reputation points of 5, however I have now disabled that feature so that it now gives 0 reputation points for each thanked post. I was just wondering if it was possible to remove all the points that were given by thanked posts but leaving the posts thanked if that makes sense?

Merrillizer 06-25-2007 07:16 AM

I also have the following error after I click Thank You...

Warning: Illegal offset type in /includes/functions_post_thanks.php on line 110

Line 110 is...

if ($postinfo['post_thanks_amount'] && $thanks[$userid])

Not sure how to correct the error. I have to disable the Thank You hack.

AndyA 06-25-2007 01:04 PM

Quote:

Originally Posted by Abe1 (Post 1275732)
Did you install the 'fix'?

Do you mean the template fix ? I installed that just after installing the mod.

Thanks.

vitrag24 06-25-2007 03:07 PM

u linked hide hack incl post thank you "addon" with ur hack..
do i need to download that addon and update that also?

mine version of ur addon is 5.2 AND also have that hide hack incl post thank you "addon" addon..

tell me wht shd i do plz

Greeksgal 06-25-2007 03:29 PM

Sorry to sound anal, but this is my first time downloading a hack for my forum. I don't want to do it wrong.

I have vBulletin 3.6.7 PL1.

Which one (or all) of your three downloads do I need for this to work?

AndyA 06-25-2007 03:59 PM

Hi Greeksgal, I'm on the same version as you and installed :-

product template hook vb367 fix.zip
post thanks 6 2.zip

Greeksgal 06-25-2007 05:25 PM

I can not get this hack to work.

Enable Plugin/Hook System is set to YES

Post Thank You Hack and Template Hook Fox are both appearing in Installed Products under Plugins & Products> Manage Products> and are Editable.

Still, nothing appearing on my forum: www.ReflexsimsForum.com

Any ideas?

Greeksgal 06-25-2007 06:55 PM

All fixed!

Spinball 06-25-2007 09:47 PM

Quote:

Originally Posted by Abe1 (Post 1275731)
Can I have a look at your phpmyadmin and your forum while the forum is in debug mode?

I have to humbly withdraw my post. It was an option in vBAdvanced and not the Thank You hack at all. Despite the evidence.
Apologies.

Adam21 06-25-2007 09:52 PM

Anyway to see who thanked me in a page or something like that?

Fungsten 06-25-2007 11:15 PM

Quote:

Originally Posted by Adam21 (Post 1276455)
Anyway to see who thanked me in a page or something like that?

Good idea. I'd love to see that too.

Monyet 06-26-2007 04:25 AM

thanx a lot, nice idea and this is awesome :)

NolF 06-26-2007 11:38 AM

(pufff what a weekend I love redbull xD)

Quote:

Originally Posted by gregfindley
Do you know where do I need to add that hook?
and it didn't look like that, but it does now, and thats solved the issue- Thanks!

The hook ($template_hook[memberinfo_foruminfo]) goes about here in your MEMBERINFO template

HTML Code:

                                        <if condition="$show['usernoteview']">
                                                <br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
                                        </if>
                                </div>
                        </div>
                        </if>
                        $template_hook[memberinfo_foruminfo]
                </div>
        </div>
        </td>

I would suggest you to propelly update the tamplehooks (see this) since you will have more problems further down the track, and is worth bothering you self now to do so.


Quote:

Originally Posted by Adam21
Where do we find the who thanked you page?
--------------------
Anyway to see who thanked me in a page or something like that?

You will find the link on your profile saying "Find all thanked posts by {1}" ^^
If you don't see it, you need the hook mentioned above.

Quote:

Originally Posted by noyt
I have just updated to 6.0 Gold. Forgive me for not trawling for all the posts to see if this has been asked before. For some months I was allowing Thanked posts to give a reputation points of 5, however I have now disabled that feature so that it now gives 0 reputation points for each thanked post. I was just wondering if it was possible to remove all the points that were given by thanked posts but leaving the posts thanked if that makes sense?

I don't think you will be able to do this. Doesn't matter anyways, some extra rep for some lucky guys ^^.
Wait, if you go to the reputation section on the admincp, you can delete reputation individually user by user, I know, it is very anoying and exosting, but I don't think this hack includes that feature.

Quote:

Originally Posted by Spinbal
I have to humbly withdraw my post. It was an option in vBAdvanced and not the Thank You hack at all. Despite the evidence.

Could you kindly explain this to me? I'm using vBa so I want to be on the safe side ^^

vitrag24 06-26-2007 04:40 PM

Quote:

Originally Posted by vitrag24 (Post 1276187)
u linked hide hack incl post thank you "addon" with ur hack..
do i need to download that addon and update that also?

mine version of ur addon is 5.2 AND also have that hide hack incl post thank you "addon" addon..

tell me wht shd i do plz

plz answer to my this query guys

l SKN l CHRIS 06-26-2007 08:10 PM

I Need some help, i just installed this on my vB 3.6.7 forum the correct way, but there is no thanks button in the postbit

Fungsten 06-26-2007 10:50 PM

Quote:

Originally Posted by l SKN l CHRIS (Post 1277216)
I Need some help, i just installed this on my vB 3.6.7 forum the correct way, but there is no thanks button in the postbit

One thing I have done is made sure the Button image is in the images/buttons folder and the properties are set to Read all and the Write is Owner and Group. Works sometimes.

lood 06-27-2007 01:40 PM

Is there a conflict with Google adsense script ?!
I can't get it to show the thanks button or anything.
3.6.7PL1 // 6.2

l SKN l CHRIS 06-27-2007 05:16 PM

Quote:

Originally Posted by Fungsten (Post 1277310)
One thing I have done is made sure the Button image is in the images/buttons folder and the properties are set to Read all and the Write is Owner and Group. Works sometimes.

thanks for the suggestion but still not showing up

l SKN l CHRIS 06-27-2007 08:18 PM

fixed it, my postbit_legacy needed to be reverted

thanks anyway

vitrag24 06-27-2007 08:38 PM

plz look into here
https://vborg.vbsupport.ru/showpost....postcount=1355


All times are GMT. The time now is 03:58 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.06962 seconds
  • Memory Usage 1,865KB
  • 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_html_printable
  • (23)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