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-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...


All times are GMT. The time now is 06:50 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.01423 seconds
  • Memory Usage 1,785KB
  • 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
  • (2)bbcode_php_printable
  • (4)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
  • (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