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)

Abe1 09-11-2005 05:20 PM

Quote:

Originally Posted by bleodler
Can I request a feature? It would really work great for my forum if part of a post could be hidden until the user clicks on the thanks button. I hope you'll take this into consideration for a future version.

Basicly incorpeate it with another hack. Can I have the link to the hidden hack or something like that?

bleodler 09-11-2005 07:19 PM

Quote:

Originally Posted by Abe1
Basicly incorpeate it with another hack. Can I have the link to the hidden hack or something like that?

Here is a hack that hides whatever is between [hide][/hide] tags until the user replies to the thread. https://vborg.vbsupport.ru/showthread.php?t=90985

I would like to keep track of which users get access to the hidden info, but the hack I linked to above adds lots of useless replies, so I think adding something like that to this hack would be a more elegant solution.

MrGoodbyte 09-29-2005 11:26 AM

Sorry to tell you that, but this hack doesn't work in 3.5.0 gold .. installation works correctly, but neither the button nor the postbits are shown ...

https://vborg.vbsupport.ru/

Abe1 09-29-2005 01:33 PM

Quote:

Originally Posted by MrGoodbyte
Sorry to tell you that, but this hack doesn't work in 3.5.0 gold .. installation works correctly, but neither the button nor the postbits are shown ...

https://vborg.vbsupport.ru/

Did you do the template edits?

ukbill69 09-30-2005 10:38 AM

See attached, I want to make my forums (thankyou1.gif) look like thankyou2.gif

How can I do this?

SecTa 10-01-2005 10:25 AM

Greets. Will there be an update for 3.5 Gold in nearest future?

Abe1 10-01-2005 11:18 PM

Quote:

Originally Posted by SecTa
Greets. Will there be an update for 3.5 Gold in nearest future?

Yes. i should have one out any day now. Hopfully by tomorrow night.

Abe1 10-02-2005 03:14 AM

Version 2.0 GOLD released.

If you are using a 2.0 beta version, just upload the Product XML. You may want to re-do the template edits since they were changed a little.

If you are using 1.10 now, just upgrade your forum normally, and install this hack like it's a FRESH installation. You wont over write all the thanks that are there already.

There were no new features added to this version.

Sezmarone 10-02-2005 04:03 AM

Nice!

Colejo 10-02-2005 04:16 AM

Quote:

Originally Posted by Abe1
Version 2.0 GOLD released.

If you are using a 2.0 beta version, just upload the Product XML. You may want to re-do the template edits since they were changed a little.

If you are using 1.10 now, just upgrade your forum normally, and install this hack like it's a FRESH installation. You wont over write all the thanks that are there already.

There were no new features added to this version.

When I try to upload the product xml I get this error. I have it set to yes to overwrite.

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1

It was a bit long so I took out the middle part of the error.

Valter 10-02-2005 04:17 AM

Quote:

Originally Posted by Cybernetec
I have problem when merging threads. It shows some error at the top of page until I remove thanks posts from thread.

Still have this problem.

Post Thanks 2.0 Gold - vB 3.5 Final

Tulsa 10-02-2005 04:37 AM

I found the same issue as Colejo.

Abe1 10-02-2005 04:46 AM

Quote:

Originally Posted by Colejo
When I try to upload the product xml I get this error. I have it set to yes to overwrite.

Database error in vBulletin 3.5.0:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'1',
'1',
'boolean',

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1

It was a bit long so I took out the middle part of the error.

Hmmm.... This seems like a vB error. It should check to see if settings are in already. The settings are being added using the xml style. Try to remove the settings from the xml and re-upload.

Abe1 10-02-2005 04:46 AM

Quote:

Originally Posted by Cybernetec
Still have this problem.

Post Thanks 2.0 Gold - vB 3.5 Final

I didn't add any new features or try to fix complex things yet. When I have the time, i'll try to do this.

Colejo 10-02-2005 04:50 AM

Quote:

Originally Posted by Abe1
I didn't add any new features or try to fix complex things yet. When I have the time, i'll try to do this.

Ok. Thanks. I disabled and then re-enabled it and now it seems to work.

Colejo 10-02-2005 04:55 AM

Well almost working. It shows the Thank you button and when I click on it, it adds a thanked to the user I thank but it doesn't have the message under their post that says they were thanked by me.

Abe1 10-02-2005 04:56 AM

Quote:

Originally Posted by Colejo
Well almost working. It shows the Thank you button and when I click on it, it adds a thanked to the user I thank but it doesn't have the message under their post that says they were thanked by me.

Is the 3rd template edit for postbit there?

Colejo 10-02-2005 04:59 AM

Should I still be able to view the post_thanks_acp.php page because it gives me this error:

Fatal error: Call to undefined function: globalize() in /home/public/forum/admincp/post_thanks_acp.php on line 41

Colejo 10-02-2005 05:00 AM

Quote:

Originally Posted by Abe1
Is the 3rd template edit for postbit there?

Yeah. I went through twice to make sure I didn't miss any. I can look again though.

Abe1 10-02-2005 05:00 AM

Quote:

Originally Posted by Colejo
Should I still be able to view the post_thanks_acp.php page because it gives me this error:

Fatal error: Call to undefined function: globalize() in /home/public/forum/admincp/post_thanks_acp.php on line 41

No. The recount thanks amount page was not updated.

Abe1 10-02-2005 05:01 AM

Quote:

Originally Posted by Colejo
Yeah. I went through twice to make sure I didn't miss any. I can look again though.

Does it still show you the "thank" button?

Colejo 10-02-2005 05:05 AM

Quote:

Originally Posted by Abe1
Does it still show you the "thank" button?

It shows the thank you button but when you thank them it doesn't show anymore. It just doesn't show the message that they were thanked.

Abe1 10-02-2005 05:07 AM

Quote:

Originally Posted by Colejo
It shows the thank you button but when you thank them it doesn't show anymore. It just doesn't show the message that they were thanked.

Interesting. I dont know why. Can you unistall then re-install?

Colejo 10-02-2005 05:24 AM

I don't see a post_thanks_users_say phrase like I used to have.

Abe1 10-02-2005 05:28 AM

Quote:

Originally Posted by Colejo
I don't see a post_thanks_users_say phrase like I used to have.

Did you upload the XML into products (Like you should)?????? or plugins?

Colejo 10-02-2005 05:32 AM

Quote:

Originally Posted by Abe1
Did you upload the XML into products (Like you should)?????? or plugins?

I'm sorry I said that wrong. It does have the phrase. I just don't see in the instructions where that is applied in the postbit.

Colejo 10-02-2005 05:46 AM

I'll just try it again later.

bonnmac 10-02-2005 05:36 PM

i'm getting this error when importing product the error comes up as soon as starting install but the install bar keeps running and running.........

PHP Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                
INSERT INTO setting
                
(varnamegrouptitlevaluedefaultvaluedatatypeoptioncodedisplayorderadvancedvolatileproduct)
                
VALUES
                
(
                    
'post_thanks_on_off',
                    
'post_thanks',
                    
'0',
                    
'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',
                    
'1',
                    
'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',
                    
'0',
                    
'0',
                    
'number',
                    
'',
                    
90,
                    
0,
                    
1,
                    
'post_thanks'
    
),
    (
                    
'post_thanks_post_count',
                    
'post_thanks',
                    
'0',
                    
'0',
                    
'boolean',
                    
'yesno',
                    
100,
                    
0,
                    
1,
                    
'post_thanks'
    
);

MySQL Error  Duplicate entry 'post_thanks_on_off' for key 1
Error Number 
1062
Date         
SundayOctober 2nd 2005 02:24:30 PM 


SecTa 10-02-2005 06:20 PM

Here's my error message, hope it'll help to figure out the issue:
Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                                INSERT INTO vb3_setting
                                (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',
                                        '21|19|22|15|25|32|33|34|35|37|38|39|40|41|27|5',
                                        '',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first_all',
                                        'post_thanks',
                                        '1',
                                        '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',
                                        '1|3|8',
                                        '',
                                        'free',
                                        '',
                                        70,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_user_useing',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        80,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_reputation',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'number',
                                        '',
                                        90,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_post_count',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        100,
                                        0,
                                        1,
                                        'post_thanks'
        );

MySQL Error  : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date        : Sunday, October 2nd 2005 @ 09:13:41 PM
Script      : http://localhost/forum/admincp/plugin.php
Referrer    : http://localhost/forum/admincp/plugin.php?do=productadd
IP Address  : 127.0.0.1
Username    : ***
Classname    : vb_database

vB 3.5 Gold, updated from 3.0.6, without Post Thank Yoy hack uninstallaton...

Abe1 10-02-2005 07:14 PM

Quote:

Originally Posted by SecTa
Here's my error message, hope it'll help to figure out the issue:
Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

                                INSERT INTO vb3_setting
                                (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',
                                        '21|19|22|15|25|32|33|34|35|37|38|39|40|41|27|5',
                                        '',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first_all',
                                        'post_thanks',
                                        '1',
                                        '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',
                                        '1|3|8',
                                        '',
                                        'free',
                                        '',
                                        70,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_user_useing',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        80,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_reputation',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'number',
                                        '',
                                        90,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_post_count',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        100,
                                        0,
                                        1,
                                        'post_thanks'
        );

MySQL Error  : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date        : Sunday, October 2nd 2005 @ 09:13:41 PM
Script      : http://localhost/forum/admincp/plugin.php
Referrer    : http://localhost/forum/admincp/plugin.php?do=productadd
IP Address  : 127.0.0.1
Username    : ***
Classname    : vb_database

vB 3.5 Gold, updated from 3.0.6, without Post Thank Yoy hack uninstallaton...

Yes, I know this problem. I posted on thop of the main post that there is a problem with the upgrade. I will work on it soon.

Colejo 10-02-2005 10:13 PM

Mine is working now.

Abe1 10-02-2005 10:55 PM

bonnmac, SecTa, or anyone that would like to upgarde this hack from vb3.0 to vb3.5, can you AIM me @ abec4p ?

I have a fix and would like someone to test it first before I release it.

Abe1 10-03-2005 12:55 AM

Anyone having a problem upgrading to this version from 1.10, Run the following queries before:
PHP Code:

DELETE FROM `settingWHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroupWHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phraseWHERE `varnameLIKE '%post_thanks%' AND `product` = '';

DELETE FROM `templateWHERE `titleLIKE '%post_thanks%' AND `product` = ''


bonnmac 10-03-2005 06:21 AM

Quote:

Originally Posted by Abe1
Anyone having a problem upgrading to this version from 1.10, Run the following queries before:
PHP Code:

DELETE FROM `settingWHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroupWHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phraseWHERE `varnameLIKE '%post_thanks%' AND `product` = '';

DELETE FROM `templateWHERE `titleLIKE '%post_thanks%' AND `product` = ''


ok i ran the queries and my problem is solved thank you very much abe your just great!! it works fine now

Brandon Sheley 10-03-2005 06:35 AM

i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?

bonnmac 10-03-2005 06:41 AM

Quote:

Originally Posted by Loco Macheen
i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?

the 2 errors are from having it installed on 3.0X then upgrading to 3.5 if you had this installed on previous board and did upgrade run the queries in abes last post and you will have no problem works great!!

SecTa 10-03-2005 09:00 AM

Abe1, i got folloing errors, when running your query:
in admin CP:
Code:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thank

in phpmyadmin
Code:

Error

SQL-query:

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

MySQL said: Documentation
#1146 - Table 'hqsharen.setting' doesn't exist

Unfortunately, i don't have AIM account, Abe1 do you have icq or msn?

Abe1 10-03-2005 12:10 PM

Quote:

Originally Posted by SecTa
Abe1, i got folloing errors, when running your query:
in admin CP:
Code:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thank

in phpmyadmin
Code:

Error

SQL-query:

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

MySQL said: Documentation
#1146 - Table 'hqsharen.setting' doesn't exist

Unfortunately, i don't have AIM account, Abe1 do you have icq or msn?

Dont run all 4 together. Run one at a time.

thedvs 10-03-2005 12:15 PM

Using vb 3.5
Imported the product
did the edits

The thanks button doesn't show up at all & I have no idea what is wrong

Abe1 10-03-2005 12:24 PM

Quote:

Originally Posted by Loco Macheen
i see this says its for 3.5 gold.. is this installing okay on gold ? i just see the last few post are errors. ?

Yes. You will have no errors installing it. The errors you see are from upgrading from vb3.0 to vb3.5 and they were resolved even.


All times are GMT. The time now is 08:20 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.02223 seconds
  • Memory Usage 1,968KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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