vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Post Thank You Hack v.0.6 (https://vborg.vbsupport.ru/showthread.php?t=72141)

glenvw 11-25-2004 03:45 PM

Quote:

Originally Posted by Abe1
I just tested it, It works perfectly. The thank you button only shows up on the first post of a thread.

I must be stupid.

Ok you say then in the "Postbit" template:

Replace:

<!-- post thank you hack -->
$post_thanks
<!-- end post thank you hack -->


with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


right?

Leave Postbit Legacy alone?

Abe1 11-25-2004 04:15 PM

LOL

Replace:

<!-- post thank you hack -->
<a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a>
<!-- end post thank you hack -->

with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->

you can leave legacy alone if you don't use it.

glenvw 11-25-2004 04:21 PM

Quote:

Originally Posted by Abe1
LOL

Replace:

<!-- post thank you hack -->
<a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a>
<!-- end post thank you hack -->


with

<!-- post thank you hack -->
<if condition="$post[postcount]==1"><a href="newreply.php?do=post_thanks&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]" border="0" ></a></if>
<!-- end post thank you hack -->


you can leave legacy alone if you don't use it.



Take a look what this does. Does not remove buttons and ads one between posts:

http://www.yes-its-free.com/forums/s...ad.php?t=20918

And I did not even use the "thank you button for this one.

Let me know when you have seen this so I can revert.

Abe1 11-25-2004 04:30 PM

Quote:

Originally Posted by glenvw
Take a look what this does. Does not remove buttons and ads one between posts:

http://www.yes-its-free.com/forums/s...ad.php?t=20918

And I did not even use the "thank you button for this one.

Let me know when you have seen this so I can revert.

Ok. Send me a PM with your postbit template. Make sure you put it in [html] tags.

shadiguy1 11-25-2004 04:45 PM

installed hack when i click on a Thank u it just goes to a blank page and does nothing more What could be wrong.

Abe1 11-25-2004 04:48 PM

Quote:

Originally Posted by shadiguy1
installed hack when i click on a Thank u it just goes to a blank page and does nothing more What could be wrong.

hmmm... no clue I'd need more info. What is thel ink that it shows? Did you do the file edits?

xtreme-mobile 11-25-2004 07:22 PM

hi mate sorry for delay in reply :ermm:

please find attached my postbit_legacy after edit

hopefully you can see where ive gone wrong :disappointed:

cheers mate

dean

Abe1 11-26-2004 03:55 PM

Version 0.2 Released:
  • Fixed what you should look for in file /includes/functions_showthread.php
  • Thank You Button doesn?t show if user used it already
  • Thank You Button doesn?t show in private messages
  • Fixed installation for forums that have a 'TABLE_PREFIX'
  • Administrators can delete all Thank Yous for a single post
  • Users can't thank them-selves

Abe1 11-26-2004 03:59 PM

Quote:

Originally Posted by xtreme-mobile
hi mate sorry for delay in reply :ermm:

please find attached my postbit_legacy after edit

hopefully you can see where ive gone wrong :disappointed:

cheers mate

dean

I don't see anything wrong with it. Do you use a different place for you're button's folder?

JohnBee 11-28-2004 07:09 AM

*** Update!

I did uninstall, applied the new version 2 and it works.

I would like to see the button disapear after we thanked the
person though.

I have one question, can this applied to 1 forum in perticular?

Abe1 11-28-2004 02:42 PM

Quote:

Originally Posted by JohnBee
*** Update!


I did uninstall, applied the new version 2 and it works.

I would like to see the button disapear after we thanked the
person though.

I have one question, can this applied to 1 forum in perticular?

First of all, do didn't have to uninstall. Second, you have to do the new file and template edits.

Abe1 11-28-2004 02:43 PM

Quote:

Originally Posted by JohnBee
I have one question, can this applied to 1 forum in perticular?

Next version will have an option to turn if off on forums.

Abe1 11-29-2004 01:53 PM

Version 0.3 (11/29/04):
  • Guests don't see 'thanks' button
  • Separate PHP for actions
  • Option to turn off hack for individual forums
  • Option to turn off hack for all but first post of a thread

JohnBee 11-29-2004 03:37 PM

Hmmm I did the upgrade everything looks fine in admin CP etc.
thank you buttons appear where there suppose to and on the first post
only, however there is no longer a "user has thanked you" line placed
under the thread :(

Should I uninstall and re-install again?

Abe1 11-29-2004 03:50 PM

Quote:

Originally Posted by JohnBee
Hmmm I did the upgrade everything looks fine in admin CP etc.
thank you buttons appear where there suppose to and on the first post
only, however there is no longer a "user has thanked you" line placed
under the thread :(

Should I uninstall and re-install again?

Had you updated to from 0.1 to 0.2?

TTG 11-29-2004 03:55 PM

Just upgraded from 0.2 to 0.3 with no problems .. thanks for the support Abe1

JohnBee 11-29-2004 04:00 PM

*** Update

I uninstalled completely and re-installed everything is working well now.
nice hack

[click installed]

Abe1 11-29-2004 04:03 PM

Quote:

Originally Posted by JohnBee
*** Update

I uninstalled completely and re-installed everything is working well now.
nice hack

[click installed]

Just remember, by unistalling you loose all thanks that were posted already.

Abe1 12-06-2004 02:18 PM

Version 0.4 (12/06/04):
  • Option to turn off hack view of date for separate forums
  • Counts how many thanks a user gives
  • Counts how many thanks a post gets
  • Update Counters in ACP (found in 'Import & Maintenance')
  • Shows how many thanks a user gave in every post of his
  • Shows how many thanks a user gave in profile
MAKE SURE YOU UPDATE THE POST THANKS COUNTS AFTER UPDATE!

glenvw 12-06-2004 02:44 PM

Update done as per instructions from 03 to 04

When updating in AdminCP it just brings up my main page
instead of admin update scrren.

Also, not when you use thank you button, it goes through but does not create a thatnk you thread.

www.yes-its-free.com

Abe1 12-06-2004 02:56 PM

Quote:

Originally Posted by glenvw
Update done as per instructions from 03 to 04

When updating in AdminCP it just brings up my main page
instead of admin update scrren.

Also, not when you use thank you button, it goes through but does not create a thatnk you thread.

www.yes-its-free.com

I gave it a try here: http://www.yes-its-free.com/forums/s...d.php?p=144788. I see it didn't update. Did you upload all the new files? Also, run both 'post thanks' update counters after.

glenvw 12-06-2004 02:59 PM

All files uploaded correctly. INstall went through with no problems.

As mentioned, when selecting:
"forums/admincp/post_thanks_acp.php" it goes to the main pageof forum.

I think I sent you my log in info last week. Do you still have it? Appreciate it if you can fix it. My peeps love this hack!

Abe1 12-06-2004 03:29 PM

Quote:

Originally Posted by glenvw
All files uploaded correctly. INstall went through with no problems.

As mentioned, when selecting:
"forums/admincp/post_thanks_acp.php" it goes to the main pageof forum.

I think I sent you my log in info last week. Do you still have it? Appreciate it if you can fix it. My peeps love this hack!

2 things, You have to upload: post_thanks.php to your root forum folder over write what is there. upload post_thanks_acp.php to your admincp folder.

After, the link should work and update the 2 counters there.

glenvw 12-06-2004 03:35 PM

Bummer, sorry for my ignorance.

I tried to run it again and am getting errors.

Can you please take a look at it? I have gotta take my wife to the Dr and hate to have my system all a wreck.

Abe1 12-06-2004 03:50 PM

Quote:

Originally Posted by glenvw
Bummer, sorry for my ignorance.

I tried to run it again and am getting errors.

Can you please take a look at it? I have gotta take my wife to the Dr and hate to have my system all a wreck.

Ok. Re-download the hack and re-upload dmincp/post_thanks_acp.php

It wasn't fully supporrting if you use a table prefex.

Also, while testing the hack out, I added a thanks under your name to post 145570.

glenvw 12-06-2004 03:52 PM

Thank you!

Question, I have been having a lot of trouble with hacks of late that do not support prefixes in MySQL. Is this where things are heading? Should I be doing something different?

Abe1 12-06-2004 04:08 PM

Quote:

Originally Posted by glenvw
Thank you!

Question, I have been having a lot of trouble with hacks of late that do not support prefixes in MySQL. Is this where things are heading? Should I be doing something different?

Well it's not realy your fault. It's the coders. You would have to go through the PHPs to see if it's a compatible hack for you.

MovieMaster 12-07-2004 01:49 PM

Sweet hack - Easy to install, works right out of the box with my v3.03

Abe1 12-13-2004 02:08 PM

Version 0.5 (12/13/04):
  • Shows how many thanks a user got
  • Shows how many posts or a user are thanked
  • Shows info in Profile

On List for a Future Version:
  • Option to master turn on and off hack
  • Option to master turn off date
  • Some other options (you can suggest)

MAKE SURE YOU UPDATE THE POST THANKS COUNTS AFTER UPDATE!

Abe1 12-14-2004 02:08 PM

I just updated the zip. There was a small problem with the second 2 update counters. Just re-upload 'post_thanks_acp.php'. After, update the second 2 counters in the ACP.

Abe1 12-16-2004 06:22 PM

I just updated the zip. Download and re-upload post_thanks.php into your root directory. There is a bug in the counting.

Update the following counters after:
First - Update Post Thanks Count
Second - Update User Got Post Thanks Count

snake-boy 12-19-2004 07:42 PM

Do users post-count increment when they click on "thanks" ?

How long is this hack expected to remain at Beta status? It makes me a little reluctant to install in case something falls over ;)

-snake

ericgtr 12-19-2004 08:33 PM

Quote:

Originally Posted by snake-boy
Do users post-count increment when they click on "thanks" ?

How long is this hack expected to remain at Beta status? It makes me a little reluctant to install in case something falls over ;)

-snake

I have been using it for a long time now without any issues, not sure about the post count though.

Abe1 12-20-2004 02:41 PM

Quote:

Originally Posted by snake-boy
Do users post-count increment when they click on "thanks" ?

How long is this hack expected to remain at Beta status? It makes me a little reluctant to install in case something falls over ;)

-snake

The post count doesn't go up. (I don't know why some one whould want it to go up.)

I don't know how much longer it will be in beta but I hope to have it out by new years.

Abe1 12-21-2004 02:04 PM

Version 0.6 (12/21/04):
  • New set of options. Found in main ACP options.
  • Removed option in 'forum' options
  • Turn off view of date for ALL forums
  • Turn on and off hack
  • Turn on and off hack for only some forums
  • Ban Usergroups
  • Ban Users

On List for a Future Version:
  • I hope this is the last beta. Any more ideas, say them quick. Final version hopefully next week.

Make sure you edit the new settings.

fatalsex 12-22-2004 11:28 AM

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO settinggroup VALUES ('post_thanks', 1234, 0)
mysql error: Duplicate entry 'post_thanks' for key 1

mysql error number: 1062

Date: Wednesday 22nd of December 2004 04:27:33 PM
Script: http://www.website.us/forum/admincp/...ade-0-6&step=1
Referer: http://www.website.us/forum/admincp/...do=upgrade-0-6



Just started upgrading from 0.2. to 0.6 fnr recived this

Abe1 12-22-2004 12:49 PM

Quote:

Originally Posted by fatalsex
Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO settinggroup VALUES ('post_thanks', 1234, 0)
mysql error: Duplicate entry 'post_thanks' for key 1

mysql error number: 1062

Date: Wednesday 22nd of December 2004 04:27:33 PM
Script: http://www.website.us/forum/admincp/...ade-0-6&step=1
Referer: http://www.website.us/forum/admincp/...do=upgrade-0-6



Just started upgrading from 0.2. to 0.6 fnr recived this

Well In the installed is only to upgrade from 0.5 to 0.6. You should either uninstall and re-install or I'll give you version .3 - .6 and you will have to upgrade one at a time.

fatalsex 12-22-2004 02:25 PM

ok
i'l try to uninstall.

by the way.

may i JUST uninstall it without removing additions in templates and files ?
or i have to REMOVE WHOLE changes

Abe1 12-22-2004 04:05 PM

Quote:

Originally Posted by fatalsex
ok
i'l try to uninstall.

by the way.

may i JUST uninstall it without removing additions in templates and files ?
or i have to REMOVE WHOLE changes

Better to or you may not find things.

fatalsex 12-22-2004 04:06 PM

okay.... very thanks


All times are GMT. The time now is 10:32 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.02064 seconds
  • Memory Usage 1,837KB
  • 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
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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