vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Post Thank You Hack 1.10 (https://vborg.vbsupport.ru/showthread.php?t=73410)

Abe1 04-07-2005 03:31 PM

Quote:

Originally Posted by teedizz
Abe1...is there anyway to make it to where if someone clicks the Thanks icon that it kinda counts as a post? Reason being I run a forum where alot of stuff is hidden with the [*hide][*/hide] codes & I want it to where if someone clicks the thanks icon it shows whats behind the hide code instead of having to reply & see whats behind the hide code itself. Is this possible & if so how can this be done. Thank you bro

i can easaly make the post count go up but that wont make it like he has a pos in the thread.

eXtremeTim 04-08-2005 03:47 AM

Hey just a note. Might want to rework the showthread part. It will add one query per post. Meaning if 100 posts are showed on the page this hack adds 100 queries.

teedizz 04-08-2005 04:12 AM

Quote:

Originally Posted by Abe1
i can easaly make the post count go up but that wont make it like he has a pos in the thread.


Is there anyway to do it? I really dont care about the post count going up, Just a simple click of the Thank you button & then whutever is behind the [*hide][*/hide] code appears. Can this be done?

eXtremeTim 04-08-2005 04:23 AM

Also if you take the url for thanking in a post such as http://www.extremechatforums.com/for...t_thanks&p=415 and change the number you can thank yourself. I took it and changed it to http://www.extremechatforums.com/for...t_thanks&p=425 which was the postid for the announcement I just made and was able to thank myself without any problems. Might want to get that fixed as well. Users shouldn't be able to thank themselves. That would just lead to abuse of the system.

Abe1 04-08-2005 04:25 PM

Quote:

Originally Posted by teedizz
Is there anyway to do it? I really dont care about the post count going up, Just a simple click of the Thank you button & then whutever is behind the [*hide][*/hide] code appears. Can this be done?

I'm sure it can. But I have no idea what your code looks like and it would be a whole separate hack.

Abe1 04-08-2005 04:27 PM

Quote:

Originally Posted by eXtremeTim
Hey just a note. Might want to rework the showthread part. It will add one query per post. Meaning if 100 posts are showed on the page this hack adds 100 queries.

I have learned more about PHP since I wrote this hack. I may soon re-write parts of it.

Abe1 04-08-2005 04:30 PM

Quote:

Originally Posted by eXtremeTim
Also if you take the url for thanking in a post such as http://www.extremechatforums.com/for...t_thanks&p=415 and change the number you can thank yourself. I took it and changed it to http://www.extremechatforums.com/for...t_thanks&p=425 which was the postid for the announcement I just made and was able to thank myself without any problems. Might want to get that fixed as well. Users shouldn't be able to thank themselves. That would just lead to abuse of the system.

Thans for posting the out. I did put stops to a few of thouse tricks but when I realease again I should have all these little things fixed.

eXtremeTim 04-08-2005 05:12 PM

Sounds good. If you need any help hit me up.

teedizz 04-08-2005 07:03 PM

Quote:

Originally Posted by Abe1
I'm sure it can. But I have no idea what your code looks like and it would be a whole separate hack.

Is there something that I can send you so you can look at it & tell me what I can do?

Eternal2u 04-11-2005 03:25 AM

A Way to cheat the system and thank yourself....this is my lil exploit for this mod..

Also i include a quick fix at the end of it..that is working on my forums...

Take the URL http://yourwebsite.com/post_thanks.p...post_thanks&p=

Then you add the post number. You can find this by waving your cursor over the link at the upper left hand corner of the post...the number like #129 for example..

Or just click on the #129 and in the big long line like this http://www.yourwebsite.com/forum/showpost.php?p=637918&postcount=129 the bold number is what you would take and put at the end of the url posted above..

so basicially if i wanted to thank myself i would do the following url on the website if it was installed..

http://yourwebsite.com/post_thanks.p...post_thanks&p=637918

Now the bold number is the number of my post and would allow me to thank myself..

So erm author..might wanna fix this in your next version..


And a quick fix for those of you having probs with your users cheating it..

/*

moved this here....

if ($bbuserinfo['userid'] == $userid) {
echo "++++ off retard";
exit;
}


*/

TTG 04-13-2005 01:45 AM

I've just re-installed this hack and have a problem with the button alignment.
How can I bring it into line ?

Abe1 04-13-2005 06:15 PM

Quote:

Originally Posted by TTG
I've just re-installed this hack and have a problem with the button alignment.
How can I bring it into line ?

I'd have to see the postbit template.

TTG 04-13-2005 06:33 PM

Quote:

Originally Posted by Abe1
I'd have to see the postbit template.

Thanks Abe1

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>
<br />

<table width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" border="0" cellpadding="0" cellspacing="0">
  <tr>
      <td width="50" height="28" align="left" valign="top" class="pbitcat"><img  src="$stylevar[imgdir_misc]/cat_back.gif" width="50" height="28" alt="" /></td>
    <td width="100%" style="background-image:url($stylevar[imgdir_misc]/cat_back.gif)" valign="middle"><div class="smallfont" align="center">$post[icon] <strong>$post[title]</strong></div></td>
      <td width="28" height="28" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="28" height="28" alt=" " border="0" /></td>
  </tr>
</table>
        <!-- End top category table setup -->
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $scrolltothis>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                        <td nowrap="nowrap">
                       
                                <div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> is        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                               
                                <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                                <div class="smallfont"><a href="mc_nominate.php?$session[sessionurl]do=nominate&memberid=$post[userid]">$vbphrase[mc_nominate_now]</a></div>
                        </td>
                        <td width="100%">&nbsp;</td>
                        <td valign="top" nowrap="nowrap">
                               
                                <div class="smallfont">
                                        <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                        <div>
                                                $vbphrase[posts]/$vbphrase[post_thanks_thanks]: $post[posts]/$post[post_thanks_user_amount]
<br>
<if condition="$userinfo[post_thanks_thanked_times] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Time" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$userinfo[post_thanks_thanked_posts] == 1">
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$userinfo[post_thanks_thanked_times] Times" 2="$userinfo[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
                                        </div>
                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                                </div>
                               
                        </td>
<if condition="$bbuserinfo[petSHO]==0">
                <td valign="top">
                        $post[mypet]
                </td>
        </if>
                </tr>
                </table>
                <!-- / user info -->
        </td>
</tr>
<tr>
        <td class="alt1">
        <!-- message, attachments, sig -->
       
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong><if condition="$forum['allowcategories'] AND $thread['category'] AND $post['postid'] == $thread['firstpostid']">$thread[category] - </if>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>
               
                <!-- message -->
                <div>$post[message]</div>
                <!-- / message -->
       
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                                <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div align="$stylevar[right]">
                        <!-- controls -->
<!-- post thank you hack -->
$post_thanks_button
<!-- end post thank you hack -->
                        <if condition="$post['editlink']">
                                <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
                                <a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" align="middle" border="0" /></a>
                        </if>
                        <!-- / controls -->
                </div>
               
        <!-- message, attachments, sig -->
       
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->
  <!-- bottom table setup -->
    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image:url($stylevar[imgdir_misc]/dist_btm_table.gif)">
      <tr>
        <td width="100%" height="14" align="left" valign="top" class="btmcat">&nbsp;</td>
      </tr>
    </table>
  <!-- End bottom table setup -->
<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->
<!-- post thank you hack -->
$post_thanks
<!-- end post thank you hack -->


Abe1 04-13-2005 07:26 PM

Open: includes/functions_showthread.php
Find:
PHP Code:

eval('$post_thanks_button = "<a href=\"post_thanks.php?do=post_thanks&p=$post[postid]\"><img src=\"$stylevar[imgdir_button]/post_thanks.gif\" alt=\"$vbphrase[post_thanks_thanks]\" border=\"0\" ></a>";'); 

Replace with:
PHP Code:

eval('$post_thanks_button = "<a href=\"post_thanks.php?do=post_thanks&p=$post[postid]\"><img src=\"$stylevar[imgdir_button]/post_thanks.gif\" alt=\"$vbphrase[post_thanks_thanks]\" border=\"0\" align=\"middle\" ></a>";'); 


TTG 04-13-2005 11:44 PM

Thanks for the quick response Abe1 .. that solved the problem.

snake-boy 04-17-2005 01:57 PM

This has to be one of the most fantastic hacks I have ever seen! I absolutely LOVE it. Thank you so much for creating this useful hack.

Clicks INSTALL

-snake

PS, Installed flawlessly in to 3.0.7.

-=Sniper=- 04-24-2005 11:06 AM

any chance of posting the .psd file? I want to change the text to helpful.

thanks

-=Sniper=- 04-24-2005 02:36 PM

ok, anyone figured out how to fix the nospace / extra space problem.

heres the problem, if the thanked post is the last one, there is no space above the thanks post bit. Also theres a extra space added under it.

http://www.hardwareforums.com/showthread.php?p=31917

thanks

EDIT: I changed the style so theres no need :) though I'd still be interested to know how its done...

-=Sniper=- 04-24-2005 05:29 PM

Hey, I'm not sure if its during the new install or update, I had no options displaying in control panel, so I used the script to insert again, but got a error! so looking at the entries in phpmyadmin I found the values were in the wrong place.

the values for "disaply order" are in the "default value" field, vice versa.

the values for "group title" are in the "value" field

the values for "option code" are in the "group title" field

and the value for "values" are in the "option code" field!

use this in phpmyadmin to update, if you have this problem. (change setting to your prefix_setting).

PHP Code:

UPDATE `settingSET `varname` = 'post_thanks_date_all', `value` = '1', `optioncode` = 'yesno', `displayorder` = 50, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_date_all';
UPDATE `settingSET `varname` = 'post_thanks_date_forum', `value` = '', `optioncode` = '', `displayorder` = 60, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_date_forum';
UPDATE `settingSET `varname` = 'post_thanks_forum_first', `value` = '', `optioncode` = '', `displayorder` = 40, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_first';
UPDATE `settingSET `varname` = 'post_thanks_forum_first_all', `value` = '0', `optioncode` = 'yesno', `displayorder` = 30, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_first_all';
UPDATE `settingSET `varname` = 'post_thanks_forum_off', `value` = '', `optioncode` = '', `displayorder` = 20, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_off';
UPDATE `settingSET `varname` = 'post_thanks_on_off', `value` = '1', `optioncode` = 'yesno', `displayorder` = 10, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_on_off';
UPDATE `settingSET `varname` = 'post_thanks_usergroup_using', `value` = '', `optioncode` = '', `displayorder` = 70, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_usergroup_using';
UPDATE `settingSET `varname` = 'post_thanks_user_useing', `value` = '', `optioncode` = '', `displayorder` = 80, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_user_useing'


smacklan 04-27-2005 02:38 PM

When I try to run the uninstall I get the following:

PHP Code:

WarningUnknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open streamPermission denied in Unknown on line 0

Warning
Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open streamPermission denied in Unknown on line 0

Warning
: (null)(): Failed opening '/home/strength/public_html/forum/admincp/post_thanks_install.php' for inclusion (include_path='.:/usr/local/lib/php'in Unknown on line 0 

Need help!

Abe1 04-27-2005 02:53 PM

Quote:

Originally Posted by -=Sniper=-
Hey, I'm not sure if its during the new install or update, I had no options displaying in control panel, so I used the script to insert again, but got a error! so looking at the entries in phpmyadmin I found the values were in the wrong place.

the values for "disaply order" are in the "default value" field, vice versa.

the values for "group title" are in the "value" field

the values for "option code" are in the "group title" field

and the value for "values" are in the "option code" field!

use this in phpmyadmin to update, if you have this problem. (change setting to your prefix_setting).

PHP Code:

UPDATE `settingSET `varname` = 'post_thanks_date_all', `value` = '1', `optioncode` = 'yesno', `displayorder` = 50, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_date_all';
UPDATE `settingSET `varname` = 'post_thanks_date_forum', `value` = '', `optioncode` = '', `displayorder` = 60, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_date_forum';
UPDATE `settingSET `varname` = 'post_thanks_forum_first', `value` = '', `optioncode` = '', `displayorder` = 40, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_first';
UPDATE `settingSET `varname` = 'post_thanks_forum_first_all', `value` = '0', `optioncode` = 'yesno', `displayorder` = 30, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_first_all';
UPDATE `settingSET `varname` = 'post_thanks_forum_off', `value` = '', `optioncode` = '', `displayorder` = 20, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_forum_off';
UPDATE `settingSET `varname` = 'post_thanks_on_off', `value` = '1', `optioncode` = 'yesno', `displayorder` = 10, `grouptitle` = 'post_thanks', `defaultvalue` = '1', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_on_off';
UPDATE `settingSET `varname` = 'post_thanks_usergroup_using', `value` = '', `optioncode` = '', `displayorder` = 70, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_usergroup_using';
UPDATE `settingSET `varname` = 'post_thanks_user_useing', `value` = '', `optioncode` = '', `displayorder` = 80, `grouptitle` = 'post_thanks', `defaultvalue` = '0', `advanced` = 0, `volatile` = 0 WHERE  `varname` = 'post_thanks_user_useing'


I think something was changed in recent vb releases. I'm going to add the field names to my next release.

Abe1 04-27-2005 02:56 PM

Quote:

Originally Posted by smacklan
When I try to run the uninstall I get the following:

PHP Code:

WarningUnknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open streamPermission denied in Unknown on line 0

Warning
Unknown(/home/strength/public_html/forum/admincp/post_thanks_install.php): failed to open streamPermission denied in Unknown on line 0

Warning
: (null)(): Failed opening '/home/strength/public_html/forum/admincp/post_thanks_install.php' for inclusion (include_path='.:/usr/local/lib/php'in Unknown on line 0 

Need help!

I've got no clue.

-=Sniper=- 04-27-2005 03:02 PM

suggestions for a page which displays

Most Thanked Post | Most Thanked User | Most Thanks Given

(or top 10 for each)

Abe1 04-27-2005 03:06 PM

Quote:

Originally Posted by -=Sniper=-
suggestions for a page which displays

Most Thanked Post | Most Thanked User | Most Thanks Given

(or top 10 for each)

When I have a chance, I'll be making one for CMPS Portal.

Polo 04-27-2005 03:38 PM

Quote:

Originally Posted by Abe1
When I have a chance, I'll be making one for CMPS Portal.

Awesome, I'm interested too...

Martin CX 04-27-2005 09:02 PM

I get no AdminCP controls? As you can see in the screenshot there is nothing there?

It doesn't turn up in the left navbar either, though that isn't a major problem as I can just type in the URL for the post_thanks_acp.php.

Please, what went wrong?

MP3 04-29-2005 06:19 AM

lets try it :)

Bubble #5 04-30-2005 02:50 AM

We are using 3.07 but our memberinfo appears to be different :(.

The instructions for this mod say:

In Template MEMBERINFO: Find:

HTML Code:

$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
However that does not exsist :(

The closest that we have is:

HTML Code:

<td width="40%" class="infoleft">$vbphrase[total_posts]</td>
<td width="60%" class="inforight"><strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)</td>

How should we alter that so that the mod works correctly? Thanks.

JohnBee 05-01-2005 03:09 PM

I am freaking out with this hack!

I was running the older 1.02 ver at some point.
I updated it but the hack never really worked up tp snuff when someone clicks the
thank you button it doesn show the thanks panel but then everyone else gets
a thank you button under that thread.

also, it shows the button in forums that are not suppose to show thanks.

I know I have some code from older version still mixed in, I did the uninstall
but with all the changes I don't know which order to run things anymore!

is there another way to clean out every bit of code from every version from
my forums and start fresh?

Bubble #5 05-01-2005 03:18 PM

Hi John. Sadly I don't think this hack is being supported anymore :( My question has been sitting there for several days now (as of this post) with no response :( Regarding your question, don't you have backups of before you installed the hack? If not, then I would work backwards and make sure that everything is removed from the install. For example; if it says "add xxx after yyy" then make sure that xxx is no longer in your code...

JohnBee 05-01-2005 04:31 PM

Well I am happy to say that I worked through it on my own.
What I had to do was gather every Post thank you hack I had (4) starting from v.02
and did an install uninstall in backwards order.

In the end I found the bots of code that were plaguing my forums in some of the
earlier versions, when I was finished I took a deep breath and installed v 1.03 fresh.

I thought the installed was botched when I went out to my AdminCP /forum manager
and couldn't find the Post thank you hack controls there, but just before I was going
to strip everything off I thought I should through a peek in the vb control settings.
and there I found the >new< Post Thank You Hack settings :D

So now after some quick testing everything seems to work properly now. :)
I do kind of miss the individual forum controls though instead of the new system
with forum ID's.

To bad there is no more support on this hack :(

Abe1 05-02-2005 01:07 PM

Quote:

Originally Posted by Bubble #5
Hi John. Sadly I don't think this hack is being supported anymore :( My question has been sitting there for several days now (as of this post) with no response :( Regarding your question, don't you have backups of before you installed the hack? If not, then I would work backwards and make sure that everything is removed from the install. For example; if it says "add xxx after yyy" then make sure that xxx is no longer in your code...

Sorry, I was away for Passover. I hope in the next few days to look into this problem. There seems to be a few problems with 3.0.7 and I hope to have them all figured out. I only work on my hacks in my free time and hope to clear some time for it in the next few days.

Abe1 05-02-2005 01:12 PM

Quote:

Originally Posted by JohnBee
Well I am happy to say that I worked through it on my own.
What I had to do was gather every Post thank you hack I had (4) starting from v.02
and did an install uninstall in backwards order.

In the end I found the bots of code that were plaguing my forums in some of the
earlier versions, when I was finished I took a deep breath and installed v 1.03 fresh.

I thought the installed was botched when I went out to my AdminCP /forum manager
and couldn't find the Post thank you hack controls there, but just before I was going
to strip everything off I thought I should through a peek in the vb control settings.
and there I found the >new< Post Thank You Hack settings :D

So now after some quick testing everything seems to work properly now. :)
I do kind of miss the individual forum controls though instead of the new system
with forum ID's.

To bad there is no more support on this hack :(

Like i said it my first post, I'm still supporting it. I changed the vb version to 3.0.6 until I sort out a few things.

Bubble #5 05-02-2005 01:53 PM

Quote:

Originally Posted by Abe1
I hope in the next few days to look into this problem.

Thank you Abe1. We truly do appreciate the help :)

JohnBee 05-02-2005 02:00 PM

Yes I agree with Bubble no.5

thank you for staying with it. We need more people to stick with the hacks
around here some potentially greats mods go south due to loss of interest
or suppport :9

Good to see your sticking with it.

Watson 05-02-2005 02:00 PM

My options dont show up when going to AdminCP>VB Options>Thank You Hack>

The only options there are to save or reset

And as I aint got the options in the Admin CP yet, I am able to limit this hack to only certain forums?? Also is there anyway for the thanks to be added in just 1 thank you at the bottom of the 1st post, again dunno if all this is in the options as I cant get in to see them

Watson 05-07-2005 12:21 AM

anyone able to help on this??

Abe1 05-08-2005 12:17 PM

Quote:

Originally Posted by Watson
anyone able to help on this??

Yes. Read my posts a drop earlier. I'm going to try to fix this as soon as I have time.

Watson 05-09-2005 12:04 AM

ahh, sorry mate :)

Cheers for that

Watson

-=Sniper=- 05-09-2005 02:00 PM

thanks will be updating later.


All times are GMT. The time now is 12:49 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.01992 seconds
  • Memory Usage 2,019KB
  • 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
  • (2)bbcode_html_printable
  • (6)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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