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.


All times are GMT. The time now is 08:06 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.01736 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_code_printable
  • (9)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