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 :)


All times are GMT. The time now is 01:06 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.02968 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_html_printable
  • (8)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