vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=92410)

Code Monkey 11-12-2005 03:47 PM

Quote:

Originally Posted by mfizzel
Big issue when upgrading to 2.5 - all members that have been thanked over 1,000 times now read as "Thanked 1 time in 1 post"

Just spent over an hour rebuilding all of the thank you stats and that didn't resolve it.

vb_number_format should be used for display only. If any calclations are to be done with the data then a unformated version must be used or you get lot's of incorect results.

Code Monkey 11-12-2005 03:52 PM

Maybe do something like this so that the display data is seperated from the rest of the working code.

PHP Code:

$this->post['post_thanks_user_amount_display'] = vb_number_format($this->post['post_thanks_user_amount']);
$this->post['post_thanks_thanked_times_display'] = vb_number_format($this->post['post_thanks_thanked_times']);
$this->post['post_thanks_thanked_posts_display'] = vb_number_format($this->post['post_thanks_thanked_posts']);] 


mfizzel 11-14-2005 07:30 PM

I don't follow what you mean.

I didn't have this issue until I installed 2.5.

Still waiting for a fix....:)

Abe1 11-15-2005 02:49 AM

Quote:

Originally Posted by mfizzel
I don't follow what you mean.

I didn't have this issue until I installed 2.5.

Still waiting for a fix....:)

Sorry, I'm realy busy right now. Mabe in a few days I'll be able to check it out. Check your VB date and time settings.

mfizzel 11-15-2005 02:54 AM

is there anywhere I can download a previous version of this? namely 2.2 which is what I was running before and it worked perfectly - tommorrow it'll be a week that all of the top contributers on my forum read 'Thanked 1 time in 1 Post'

Abe1 11-15-2005 11:16 PM

Quote:

Originally Posted by mfizzel
is there anywhere I can download a previous version of this? namely 2.2 which is what I was running before and it worked perfectly - tommorrow it'll be a week that all of the top contributers on my forum read 'Thanked 1 time in 1 Post'

This one should work fine.

mfizzel 11-15-2005 11:24 PM

Quote:

Originally Posted by Abe1
This one should work fine.

Thanks Abe!! Works perfect :D

crzy 11-18-2005 02:52 PM

i was using this hack before when was my forum 3.0.7... i upgrade my forum to 3.5.0 and my members really wanted this hack back and i trying install this hack but it says
Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO *******
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
10,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'3',
'0',
'number',
'',
90,
0,
1,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'1',
'0',
'boolean',
'yesno',
100,
0,
1,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Friday, November 18th 2005 @ 04:46:07 PM
Script : http://www.***net/forum/admincp/plugin.php
Referrer : http://www.***.net/forum/admincp/plu...?do=productadd
IP Address : 88.111.******
Username : crazyb0y
Classname : vb_database

i trying your query things
Quote:

DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';
but it says

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '***_****.setting' doesn't exist

please help me i need this hack cos my members doesnt share things anymore without this hack :)
thank you

Abe1 11-18-2005 03:02 PM

Quote:

Originally Posted by crzy
i was using this hack before when was my forum 3.0.7... i upgrade my forum to 3.5.0 and my members really wanted this hack back and i trying install this hack but it says



i trying your query things

but it says

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table '***_****.setting' doesn't exist

please help me i need this hack cos my members doesnt share things anymore without this hack :)
thank you

In the error, what did it say 'INSERT TO'?

crzy 11-21-2005 10:27 AM

Quote:

Originally Posted by Abe1
In the error, what did it say 'INSERT TO'?

INSERT INTO kankane_forumsetting


All times are GMT. The time now is 07:42 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.01868 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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