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 01-09-2005 12:31 PM

Quote:

Originally Posted by TTG
For anyone that has a problem after upgrading to vbulletin 3.0.5. Simply run the installer again and all will then work as intended :)

I realized there was a problem with the templates when you upgrade. I should be comming out with minor upadte soon to fix that problem for future updates.

Okiewan 01-09-2005 01:43 PM

Quote:

Database error in vBulletin 4.0.2:

Invalid SQL: INSERT INTO settinggroup VALUES ('post_thanks', 1234, 0)
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136
Ideas? I do have your Post Award hack installed (and love it!)

Abe1 01-09-2005 01:57 PM

Quote:

Originally Posted by Okiewan
Ideas? I do have your Post Award hack installed (and love it!)

you have vbulletin 4.0.2??????

Intex 01-09-2005 03:28 PM

Abe - It looks like it's because the queries didn't run properly to me. I tried running one of the ones from the install file directly in phpadmin:

Code:

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)");

Produced the following error:

Code:

Error
 
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
 
ERROR: Unknown Punctuation String @ 9
STR: ->
SQL: $DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
SQL-query :
 
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
 
MySQL said:
 
 
#1064 - 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 '$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES

All the queries where the syntax is using 'INSERT INTO' produce the same problem and these are all related to the settings. The other queries which ALTER tables, such as the 'user' and 'post' run successfully and they're working because it's tracking the amount of thank you's someone has.

Can you see what's wrong with the syntax? I'm running 3.0.1 and mySQL 3.23.49.

Okiewan 01-09-2005 03:46 PM

Quote:

Originally Posted by Abe1
you have vbulletin 4.0.2??????

LOL... yeah that was a joke for a another board admin. Guess I should change it back. :nervous:

Abe1 01-09-2005 04:59 PM

Quote:

Originally Posted by Intex
Abe - It looks like it's because the queries didn't run properly to me. I tried running one of the ones from the install file directly in phpadmin:

Code:

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)");

Produced the following error:

Code:

Error
 
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
 
ERROR: Unknown Punctuation String @ 9
STR: ->
SQL: $DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
SQL-query :
 
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES ('post_thanks_on_off', 'post_thanks','1','1', 'yesno', 10, 0, 0)")
 
MySQL said:
 
 
#1064 - 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 '$DB_site->query("INSERT INTO " . TABLE_PREFIX . "setting VALUES

All the queries where the syntax is using 'INSERT INTO' produce the same problem and these are all related to the settings. The other queries which ALTER tables, such as the 'user' and 'post' run successfully and they're working because it's tracking the amount of thank you's someone has.

Can you see what's wrong with the syntax? I'm running 3.0.1 and mySQL 3.23.49.

I have no copy of v3.0.1. So I can't try. I'll try to fix this in my minor update in a few days.

Abe1 01-09-2005 05:01 PM

Quote:

Originally Posted by Okiewan
Ideas? I do have your Post Award hack installed (and love it!)

I'll try to fix this for next version. I hope some time this week.

dacho 01-10-2005 09:29 AM

did user can 10X to himself ?
if so, how can i repair that ?

Abe1 01-10-2005 01:36 PM

Quote:

Originally Posted by dacho
did user can 10X to himself ?
if so, how can i repair that ?

A user can't thank him self.

Abe1 01-10-2005 01:42 PM

Version 1.01 released.

Tiny update. When you upgrade your forum, the templates stay.

Intex 01-10-2005 06:15 PM

Thanks Abi1, getting that working would be appreciated, then I can release the hack.



Quote:

Originally Posted by Abe1
I have no copy of v3.0.1. So I can't try. I'll try to fix this in my minor update in a few days.


Abe1 01-10-2005 07:59 PM

Quote:

Originally Posted by Intex
Thanks Abi1, getting that working would be appreciated, then I can release the hack.

I sent you a PM about this error.

TTG 01-11-2005 10:58 PM

Just ran the update to 1.01 and the hack stopped working .. click on "thanks" and nothing happens !?

Abe1 01-11-2005 11:05 PM

Quote:

Originally Posted by TTG
Just ran the update to 1.01 and the hack stopped working .. click on "thanks" and nothing happens !?

do you a template that is not a child of templateid 1?

Abe1 01-12-2005 12:20 AM

For now you can add these templates.

post_thanks_postbit
HTML Code:

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt2" style="padding:0px">
<if condition="$nb == 1"><strong><phrase 1="User Says" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount] Users Say" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
</td>
<if condition="$bbuserinfo[usergroupid] == 6"><td class="alt2" style="padding:0px" align="right">
<a href="post_thanks.php?do=post_thanks_remove&p=$post[postid]">$vbphrase[post_thanks_remove]</a>
</td></if>
</tr>
<tr><td class="alt1" colspan="2"><div>$liste_user</div></td></tr>
</table>
</div>
$spacer_close

post_thanks_postbit_legacy
HTML Code:

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175">
<if condition="$nb == 1"><strong><phrase 1="User Says" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount] Users Say" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>
<if condition="$bbuserinfo[usergroupid] == 6"><br><a href="post_thanks.php?do=post_thanks_remove&p=$post[postid]">$vbphrase[post_thanks_remove]</a></if>
</td>
<td class="alt1">
<div>$liste_user</div>
</td>
</tr>
</table>
</div>
$spacer_close


TTG 01-12-2005 03:40 AM

Thanks Abe1 .. that worked.

Great support

Abe1 01-12-2005 01:21 PM

Quote:

Originally Posted by TTG
Thanks Abe1 .. that worked.

Great support

Thanks.

I hope to come up wait a sollution for the install soon. Anyone else that has a problems with the templats not installing should add them manualy. Look up 2 posts.

PcCopat 02-03-2005 09:23 AM

can i use this hack with hide hack? can the member who thanks for the post, see the hidden content? u see, i thank for the post and c the hidden content? is this possible? i know it is, cause i saw this in other boards. sorry for my english. it's not so good.

mindbuster 02-04-2005 11:45 PM

How could i make it so the person getting thanked would recieve reputation too ?
Like one added reputation for each thank you he gets ?

The Realist 02-15-2005 02:10 PM

Im not getting the thank you box to show under the posts?

Any ideas?

WORKING NOW:

Deinstalled hack, reinstalled and noticed the install file does not install the templates so I manually added them.

Thanks.

Eternal2u 02-21-2005 12:44 PM

not getting any errors..

seems as tho i don't have the admin control over this mod, but i have the thank you edited intot he template and working fine in all forums..but i only want it for one section..

just the admin part is not working..it shows the post thank you hack int eh vbull options bit, but when i goto it it has a bar that says the mod name, and nothing underneath like it should be..

help please.

Abe1 02-21-2005 01:14 PM

Quote:

Originally Posted by Eternal2u
not getting any errors..

seems as tho i don't have the admin control over this mod, but i have the thank you edited intot he template and working fine in all forums..but i only want it for one section..

just the admin part is not working..it shows the post thank you hack int eh vbull options bit, but when i goto it it has a bar that says the mod name, and nothing underneath like it should be..

help please.

You have to explain more.

H@K@N 02-21-2005 08:30 PM

*clicks install*

Abe1 :

I have installed this nice hack. but i want to activate it only for the first Post.

If i change in the Admin Section the : Only First Post to yes, it is still showing the Thank_you Button in all Post. If i switch to No, nothing happens.

Is there something wrong, or should i add all my Forum id's into : Individual Forums to Have for Only First Post ?

th@nks and gr33tz

Abe1 02-21-2005 08:35 PM

Quote:

Originally Posted by H@K@N
*clicks install*

Abe1 :

I have installed this nice hack. but i want to activate it only for the first Post.

If i change in the Admin Section the : Only First Post to yes, it is still showing the Thank_you Button in all Post. If i switch to No, nothing happens.

Is there something wrong, or should i add all my Forum id's into : Individual Forums to Have for Only First Post ?

th@nks and gr33tz

Nope. That should do it. If you make the option to show only thanks by first posts, it should only show at the first posts. I have no idea why it doesn't work. Do you have other info that might help me figure it out?

H@K@N 02-21-2005 08:55 PM

No clou, what info i can give you else, i have tried to make some other settings, but it is still showing on all Post, except the own Posts, there i cannot see the Button.

Can i redo the installtion of that hack ? Do i need to uninstall all changes to get it working for a reinstall ?

th@nks

chooah 02-21-2005 10:42 PM

for some reason I'm getting the same problem...but everything else works absolutely fine, this is an amazing hack

chooah 02-21-2005 11:32 PM

by the way i think a good extension to this would be, when a user presses the thanks button, it asks if they wish to place a comment, if so, they type in a comment....in order to view that users comment, you simply press thier name in the list of users that gave thanks (which has become a hyperlink)...or somethin like that :)

Abe1 02-22-2005 02:38 PM

Quote:

Originally Posted by H@K@N
No clou, what info i can give you else, i have tried to make some other settings, but it is still showing on all Post, except the own Posts, there i cannot see the Button.

Can i redo the installtion of that hack ? Do i need to uninstall all changes to get it working for a reinstall ?


th@nks

Can I ask you one thing? Are you testing this on a test forum? or installed it on your forum? If you are testing it, remember, the 'thank you' button doesn't show if it's your own post.

Abe1 02-22-2005 02:44 PM

Version 1.02 released.

Long awaited search feature is now in action. You can search for one user thanked posts or all thanked posts.

Also, there is an option ou should use after you upgrade your forum that way you get back the templates.

Download zip and follow the upgrade instructions.

H@K@N 02-22-2005 02:49 PM

Quote:

Originally Posted by Abe1
Can I ask you one thing? Are you testing this on a test forum? or installed it on your forum? If you are testing it, remember, the 'thank you' button doesn't show if it's your own post.

Hello Abe1,

i am using it on my Production System, and as i mentioned in my Post, that all Post have a Thank you button, except of my own, indepent on the Setting in ACP ....

Will try to update to 1.0.2, to see if its working then ....

gr33tz

Abe1 02-22-2005 02:57 PM

Quote:

Originally Posted by H@K@N
Hello Abe1,

i am using it on my Production System, and as i mentioned in my Post, that all Post have a Thank you button, except of my own, indepent on the Setting in ACP ....

Will try to update to 1.0.2, to see if its working then ....

gr33tz

GREAT! That is what suppose to happen! You can't thank your own post so the button wont show. Look at the discription of this hack to see the other times the button wont show.

H@K@N 02-22-2005 04:55 PM

Quote:

Originally Posted by Abe1
GREAT! That is what suppose to happen! You can't thank your own post so the button wont show. Look at the discription of this hack to see the other times the button wont show.

Sorry Ab1, maybe i couldn't explain well :

If i change in Admincp the setting : post_thanks_forum_first_all = 1

Normally only the first Post has to be a Button Thank You, ok if its my Post, than no button appear thats clear.

But with this setting, ALL post have a thank_you Button, but my own Posts didn't have a button thats also clear.

The main question is, why i have on all other Posts a Thank you button, even i put the setting to only first Post ...

Ok lets try to figure it out :

If i enter a Forum Id, into : Individual Forums to Have for Only First Post
than its working, only first post in that Forum Id have the thansk button.

If i want to use it on all Forums, normally this field should be blank, isn't it ?

If i keep this field blank, all Post on all Forums have a Than_You Button.


gr33tz

Abe1 02-22-2005 05:03 PM

Quote:

Originally Posted by H@K@N
Sorry Ab1, maybe i couldn't explain well :

If i change in Admincp the setting : post_thanks_forum_first_all = 1

Normally only the first Post has to be a Button Thank You, ok if its my Post, than no button appear thats clear.

But with this setting, ALL post have a thank_you Button, but my own Posts didn't have a button thats also clear.

The main question is, why i have on all other Posts a Thank you button, even i put the setting to only first Post ...

Ok lets try to figure it out :

If i enter a Forum Id, into : Individual Forums to Have for Only First Post
than its working, only first post in that Forum Id have the thansk button.

If i want to use it on all Forums, normally this field should be blank, isn't it ?

If i keep this field blank, all Post on all Forums have a Than_You Button.


gr33tz

OK. Let me see if I got this,

When you set the option 'Make the thank you button for only the first posts in topics,' it still still shows the button for all posts.

If this is the case, I'll try to look tonight at the code but I thought it was working.

H@K@N 02-22-2005 05:08 PM

Yes thats the case, indepent of Setting in ACP for only in first Post, the Hack is showing it in ALL Posts ... ( except my own )

In the meanwhile i made the Upgrade into 1.0.2 with the Upgrade procedure ... just 4 info.

It is working if i set it to only first post, and give a Forum Id in the setting below, than only in that Forum, the first Post have a Button.

th@nks 4 checking

Gohan 02-22-2005 05:09 PM

1.0.0 work fine :D, I don't need it

Abe1 02-23-2005 01:26 PM

Turn hack on for only first posts of threads now works.

You can either download 1.03 and folow the instruction in the installer or just follow these instructions:

in the file /includes/functions_showthread.php

Find:
PHP Code:

if ($vboptions['post_thanks_first_all'] == '1' AND $post[postcount] != 1

and replace with:
PHP Code:

if ($vboptions['post_thanks_forum_first_all'] == '1' && $post[postcount] != 1


H@K@N 02-23-2005 01:30 PM

Th@nks Abe1 now its working ....

just wondering, if i made somethign wrong, because the others mentioned that the hack is working :-)

gr33tz

Eternal2u 02-23-2005 01:33 PM

http://gamesxposed.com/showthread.ph...1&page=1&pp=20

ok here is my explnation..the bove link shows that the thank you hack is working fine to the public..

however the admin panel options were supose to have with this mod is non-exsitent..

screenshot of it..

http://gamesxposed.com/upload/images...1109172793.jpg

now if thats not enough explnation..well fuc i'm gona run into a wall full speed

Abe1 02-23-2005 01:34 PM

Quote:

Originally Posted by H@K@N
Th@nks Abe1 now its working ....

just wondering, if i made somethign wrong, because the others mentioned that the hack is working :-)

gr33tz

Nope, this option wasn't working for anyone.

Abe1 02-23-2005 01:45 PM

Quote:

Originally Posted by Eternal2u
http://gamesxposed.com/showthread.ph...1&page=1&pp=20

ok here is my explnation..the bove link shows that the thank you hack is working fine to the public..

however the admin panel options were supose to have with this mod is non-exsitent..

screenshot of it..

http://gamesxposed.com/upload/images...1109172793.jpg

now if thats not enough explnation..well fuc i'm gona run into a wall full speed

try running these quaruies:

PHP Code:

INSERT INTO setting VALUES ('post_thanks_on_off''post_thanks','1','1''yesno'1000);
INSERT INTO setting VALUES ('post_thanks_forum_off''post_thanks'''''''2000);
INSERT INTO setting VALUES ('post_thanks_forum_first_all''post_thanks''0','0''yesno'3000);
INSERT INTO setting VALUES ('post_thanks_forum_first','post_thanks''''',''4000);
INSERT INTO setting VALUES ('post_thanks_date_all','post_thanks''1','1''yesno'5000);
INSERT INTO setting VALUES ('post_thanks_date_forum','post_thanks''',''''6000);
INSERT INTO setting VALUES ('post_thanks_usergroup_using''post_thanks'''''''7000);
INSERT INTO setting VALUES ('post_thanks_user_useing''post_thanks'''''''8000); 



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