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)

q8-star 10-22-2005 09:14 PM

Quote:

Originally Posted by Abe1
Search just 'Post' or just 'thanks'.

Tried this one ,still doesn't work ... I'm sure you didn't use phrases for this two.
One more problem :nervous: ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Best regards ,,,

vibe 10-22-2005 11:44 PM

Quote:

Originally Posted by q8-star
Tried this one ,still doesn't work ... I'm sure you didn't use phrases for this two.
One more problem :nervous: ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Best regards ,,,

Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

Code:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

Abe1 10-22-2005 11:50 PM

Quote:

Originally Posted by dai-kun
when a regular user thanks a person.. and i have the settings to give the thanked person +1 rep, well, a regular user can choose the "remove your thanks" option and then thank again and then remove then thank. Then the person keep on getting +1 rep (it also +1 post for every thanks that person gives if that option is on)... might wanna fix that?

I'll look into.

Abe1 10-22-2005 11:52 PM

Quote:

Originally Posted by Cybernetec
Hi Abe1

Anything new about this?

Cyb

Not yet. I'm realy busy latelly.

Abe1 10-22-2005 11:53 PM

Quote:

Originally Posted by vibe
Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

Code:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

This is a good point. I will try to move over to phases for next version.

smokering 10-23-2005 05:06 AM

thanks need one of these preciate the hard work here

q8-star 10-23-2005 10:02 AM

Quote:

Originally Posted by vibe
Open an instruction included with zip file,
under number 3, where he asks you to edit postbit AND postbit_lagacy:

Code:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
$vbphrase[posts]: $post[posts]
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times] == 1">
<phrase 1="$post[post_thanks_thanked_times] Time" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<if condition="$post[post_thanks_thanked_posts] == 1">
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Post">$vbphrase[post_thanks_thanks_amount]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times] Times" 2="$post[post_thanks_thanked_posts] Posts">$vbphrase[post_thanks_thanks_amount]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

Check out those in bold

You are absulutely right ,it works ... well for the postbit right now ...but I got the idea ... THANKS MAN ....

ON more thing for Abe1
I included the following from my last post:
Quote:

Originally Posted by q8-star
One more problem ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

Anything about that ...??

Abe1 10-23-2005 10:31 AM

Quote:

Originally Posted by q8-star
You are absulutely right ,it works ... well for the postbit right now ...but I got the idea ... THANKS MAN ....

ON more thing for Abe1
I included the following from my last post:


Anything about that ...??

Please explain that last thing more.

Abe1 10-23-2005 03:14 PM

Quote:

Originally Posted by vibe
I saw thank you under user's avatar, in search, and member info but not within post, don't see any button. Your instruction was followed "exactly". I have double checked and redo everything 3 times.
I double, triple checked everything and still no button.

Am I missing something?
Oh I'm using 3.5 gold

You dont see a button since it maybe your post. The button will not show on a post made by you.

Abe1 10-23-2005 04:03 PM

Version 2.1 (10/23/05):
  • [BUG FIX] When merging/splitting threads
  • [BUG FIX] When a user deletes his thanks (now removes post/rep count if option(s) on)
  • [ADD PHRASE] post_thanks_user_says
  • [ADD PHRASE] post_thanks_time_post
  • [ADD PHRASE] post_thanks_times_post
  • [ADD PHRASE] post_thanks_times_posts
  • [DELETED PHRASE] post_thanks_thanks_amount

There are 2 template changes for upgrading found in a text file in the zip.

Abe1 10-23-2005 04:08 PM

Also, The 2 main templates were edited alittle to accomidate the new phrase 'post_thanks_user_says'.

o0Hubba0o 10-23-2005 04:40 PM

nvm I think I know what I did, I'll get back to you heh.

Carl Anderson 10-23-2005 04:42 PM

I went over the entire install a few times and made sure the button was uploaded - have the plugin enabled and went into vboptions admin and made sure it was on and nothing? I am not looking at posts that I made - so that is not it?

I am stumped... any ideas?

Abe1 10-23-2005 05:02 PM

I just updated the zip with a new xml file that fixes 2 things.

Abe1 10-23-2005 05:08 PM

Anyone who updating before this file fix, lost the amount of thanks all the users had. I will try to release the re-count file ASAP.

Carl Anderson 10-23-2005 05:25 PM

Guess I will uninstall.................... tried new files

o0Hubba0o 10-23-2005 05:29 PM

Quote:

Originally Posted by Abe1
I just updated the zip with a new xml file that fixes 2 things.

Thank you, that fixed my problem, I couldn't view new pm's.

q8-star 10-23-2005 06:41 PM

Quote:

Originally Posted by Abe1
Please explain that last thing more.

Here is the post where problem explained:
Quote:

Originally Posted by q8-star
One more problem ... I have made a test thread is the forum and tried the Thanks hack with ...when I deleted the thread the thanks count was still there and did not change with the thread ....

To explain more it says (Thanked 1 Time ,0 Post) ,but ,it seems you have fixed that here.
I'll download the update and come back if the problem still there .

Abe1 10-23-2005 06:44 PM

Quote:

Originally Posted by q8-star
Here is the post where problem explained:

To explain more it says (Thanked 1 Time ,0 Post) ,but ,it seems you have fixed that here.
I'll download the update and come back if the problem still there .

I'm in middle of woking on the re-counts. Should come out in a few hours.

Abe1 10-23-2005 07:04 PM

Re-counters now added.

vibe 10-23-2005 07:26 PM

Quote:

Originally Posted by Abe1
You dont see a button since it maybe your post. The button will not show on a post made by you.

Not just my post I've tried testing it with others also.

However when I did 2.1a update $vbphrase[post_thanks_thanks] shows under the post instead of an image. So close.....man. Can you help?

post_thanks.gif is placed within buttons folder under my style, images folder.

Abe1 10-23-2005 07:31 PM

Quote:

Originally Posted by vibe
Not just my post I've tried testing it with others also.

However when I did 2.1a update $vbphrase[post_thanks_thanks] shows under the post instead of an image. So close.....man. Can you help?

post_thanks.gif is placed within buttons folder under my style, images folder.

There are 3 edits in the postbit template. Make sure their all by the right spot.

Valter 10-23-2005 07:41 PM

Nice update, thanks.

Markco 10-23-2005 08:07 PM

I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:

Valter 10-23-2005 09:23 PM

Quote:

Originally Posted by Markco
I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:

Same error :(

Tulsa 10-23-2005 09:35 PM

I have that same error.

Valter 10-23-2005 10:24 PM

To fix this problem open template post_thanks_postbit_legacy

Find:
Code:

<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>

And replace it with:
Code:

<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>


:)

Tulsa 10-23-2005 10:40 PM

Quote:

Originally Posted by Cybernetec
To fix this problem open template post_thanks_postbit_legacy

Find:
Code:

<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>

And replace it with:
Code:

<if condition="$number_rows == 1"><strong><phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase></strong>
<else /><strong><phrase 1="$post[post_thanks_amount]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></strong></if>


:)

That did it! :) Thanks...

Abe1 10-23-2005 11:07 PM

Quote:

Originally Posted by Markco
I have an error in postbit_legacy view

The Following Test Users Say Thank You to [ARG:2 UNDEFINED] For This Useful Post:

The zip has been updated. Just re-upload the product xml.

vibe 10-23-2005 11:21 PM

How do I put a small gif on top of the message, want to make it stand out a little more. Please see attachment.

Abe1 10-23-2005 11:26 PM

Quote:

Originally Posted by vibe
How do I put a small gif on top of the message, want to make it stand out a little more. Please see attachment.

Edit the post_thanks_legacy tempate.

Akutenshii 10-24-2005 12:40 AM

My error is strangely different.. I am getting the thanks box directly under the expanded thread view, and then multiple thanks boxes...

Please advise... also... where would I change the font for the text, and what if I did not want the thanks to be removed.. is there a simple modification for that?

Abe1 10-24-2005 02:16 AM

Quote:

Originally Posted by Akutenshii
My error is strangely different.. I am getting the thanks box directly under the expanded thread view, and then multiple thanks boxes...

Please advise... also... where would I change the font for the text, and what if I did not want the thanks to be removed.. is there a simple modification for that?

Can you post a picture?

Markco 10-24-2005 03:51 AM

Quote:

Originally Posted by Abe1
The zip has been updated. Just re-upload the product xml.

Ok thank's

Akutenshii 10-24-2005 05:17 PM

Ok. correcting the code fixed the location issue... still, I am interested in disabling the 'remove thanks' link. Is it possible to change the code slightly to disable this? Once thanked I do not desire for the thanks to be removed.

Uh...thanks. *smiles*

Abe1 10-24-2005 08:34 PM

Quote:

Originally Posted by Akutenshii
Ok. correcting the code fixed the location issue... still, I am interested in disabling the 'remove thanks' link. Is it possible to change the code slightly to disable this? Once thanked I do not desire for the thanks to be removed.

Uh...thanks. *smiles*

You can delete the option in the template. Go to your templates and edit the post_thanks ones removing that option.

Stussi 10-25-2005 08:33 AM

Hey Abe1!

Great Hack!!

But there's one Problem... the option to turn the Hack in specific Forums off is for our purposes senseless.
We want to turn the hack only in some Forums on and not off.
Otherwise we have to exclude 200 Forum IDs.....

Do you have an Idea?

Edit says:

I solved the problem by myself... this Hack ROCKS!! :D :)

ombossman 10-26-2005 08:48 AM

what is this problem and how to solve this problem please tell me

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',
'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',
'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_forum_off' for key 1
Error Number : 1062
Date : Wednesday, October 26th 2005 @ 11:06:15 AM

Stussi 10-26-2005 08:53 AM

See instructions.txt ;)

NOTE: IF YOU ARE UPGRADING FROM A PRE 2.0 VERSION THAT WAS RUNNING ON A vBulletin v3.0 FORUM, RUN THESE 4 QUERIES MANUALY NOW.
--------------------------------------------------------------------
[sql]
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` = '';[/sql]

ombossman 10-26-2005 09:12 AM

Quote:

Originally Posted by Stussi
See instructions.txt ;)

NOTE: IF YOU ARE UPGRADING FROM A PRE 2.0 VERSION THAT WAS RUNNING ON A vBulletin v3.0 FORUM, RUN THESE 4 QUERIES MANUALY NOW.
--------------------------------------------------------------------
[sql]
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` = '';[/sql]

thanks for reply my post i try this method but have another error


here error


All times are GMT. The time now is 09:15 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.01643 seconds
  • Memory Usage 1,860KB
  • 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
  • (7)bbcode_code_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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