vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944)

Abe1 04-05-2007 03:47 PM

Quote:

Originally Posted by rjmjr69 (Post 1220454)
Do we have to do the template edits again? For upgraders

There were a few changes I think. Just look them over to make sure.

rjmjr69 04-05-2007 04:06 PM

Thanks installed

rjmjr69 04-05-2007 04:13 PM

I can not seem to find any but I did them all over thank you very much. So post groan is done?

NolF 04-05-2007 04:39 PM

Just installed both hacks (groan and thanks), they seem to be working perfectly [3.6.5]. Love the new functions and admin options :P

thanks Abe ^^

RS_Jelle 04-05-2007 09:14 PM

A suggestion for the post_thanks_button template: hide the whole HTML code instead of hiding the button with the display:none CSS code. This saves a bit of bandwidth and generates smaller pages. You can also speed it even more up when you replace the template conditional with and if statement for the eval('$post_thanks_button = " ' . fetch_template('post_thanks_button') . '";'); code in the postbit_display_start plugin.

Abe1 04-06-2007 02:09 PM

Quote:

Originally Posted by RS_Jelle (Post 1220645)
A suggestion for the post_thanks_button template: hide the whole HTML code instead of hiding the button with the display:none CSS code. This saves a bit of bandwidth and generates smaller pages. You can also speed it even more up when you replace the template conditional with and if statement for the eval('$post_thanks_button = " ' . fetch_template('post_thanks_button') . '";'); code in the postbit_display_start plugin.

I need the button there so if you remove your thanks the button comes back.

RS_Jelle 04-06-2007 02:13 PM

Quote:

Originally Posted by Abe1 (Post 1221086)
I need the button there so if you remove your thanks the button comes back.

Aah, forgotten that :D

Quantnet 04-06-2007 02:50 PM

Is there a way to find out which post a user thanks yet ? I believe I asked this a while ago but not sure if this feature is added to the new version.

Abe1 04-06-2007 02:56 PM

Version 6.0 (04/06/07):
  • Totally re-wrote hack - please redo all template edits
  • AJAX code moved to a file.
  • templates are cached in showpost
  • NEW - Option to delete all of a users thanks.
  • Post thanks actions moved to files.
  • New ACP options.
  • Index the PostID column in the post_thanks table
  • If you delete a user, all this thanks are deleted.
  • When you change a Username, any thanks he gave his name changes by.
  • When you physically remove a post, the thanks are deleted.
  • New Setting - Post Count Needed to Use the Thanks Button
  • Delete thanks when you hard delete a thread.
  • New Setting - Ban Usergroups from Getting Thanks
  • New Setting - Disable Giving Thanks if Post is X Days Old
  • Much better security checking to make sure a user can use the thank you button.
  • Any many more changes.

Abe1 04-06-2007 02:57 PM

Quote:

Originally Posted by Quantnet.org (Post 1221115)
Is there a way to find out which post a user thanks yet ? I believe I asked this a while ago but not sure if this feature is added to the new version.

no.

Quantnet 04-06-2007 02:58 PM

Wow, thanks for the new release. Awesome job.

deezelpope 04-06-2007 03:13 PM

Thanks for the update! Do you recommend an uninstall and starting over, or just an overwrite? I apologize for my questions...this is my first update.

C_P 04-06-2007 03:29 PM

Umm Abe, usually your modifications are spot on. However, I had your prior version (did not remove it and simply added or uploaded all your files suggested, overwrote Y in products, and did every single template edit you put in your notes overwtitting existing sections already existing in the templates from prior version...
So far the issues I am having is when I click thanks button it goes away but does not thank. When I click the Find all thanked posts by USERNAME option in profile it takes me to an error page.
Another issue, when you click on Remove Your Thanks it adds the Thanks button back, does not remove the thanks given. When I refresh the page it comes back.
FYI, vBulletin Version 3.6.5
I also went into the admin CP option of this mod and selected to save not changing anything and still same issues

Tearstone 04-06-2007 03:34 PM

So far so good on 6.0. The only thing that did not work for me was:

in SHOWTHREAD:

find:
--------------------------------------------------------------------
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v=$vboptions[simpleversion]"></script>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<script type="text/javascript" src="clientscript/post_thanks.js"></script>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

I did not find that line at all in my SHOWTHREAD, although on this one particular site I am still running 3.5.4?

Abe1 04-06-2007 03:36 PM

Quote:

Originally Posted by Tearstone (Post 1221150)
So far so good on 6.0. The only thing that did not work for me was:

in SHOWTHREAD:

find:
--------------------------------------------------------------------
<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v=$vboptions[simpleversion]"></script>
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
<script type="text/javascript" src="clientscript/post_thanks.js"></script>
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------

I did not find that line at all in my SHOWTHREAD, although on this one particular site I am still running 3.5.4?

Just place it in between the 'head' tags.

Abe1 04-06-2007 03:37 PM

Quote:

Originally Posted by deezelpope (Post 1221144)
Thanks for the update! Do you recommend an uninstall and starting over, or just an overwrite? I apologize for my questions...this is my first update.

No need to uninstall. Just re-do the template edits. and upload the files and product file.

Abe1 04-06-2007 03:38 PM

Quote:

Originally Posted by C_P (Post 1221149)
Umm Abe, usually your modifications are spot on. However, I had your prior version (did not remove it and simply added or uploaded all your files suggested, overwrote Y in products, and did every single template edit you put in your notes overwtitting existing sections already existing in the templates from prior version...
So far the issues I am having is when I click thanks button it goes away but does not thank. When I click the Find all thanked posts by USERNAME option in profile it takes me to an error page.
Another issue, when you click on Remove Your Thanks it adds the Thanks button back, does not remove the thanks given. When I refresh the page it comes back.
FYI, vBulletin Version 3.6.5
I also went into the admin CP option of this mod and selected to save not changing anything and still same issues

Please make sure you installed all files in the right place and re-did all the template edits. Also, make sure you revert any Post Thanks templates.

subnet_rx 04-06-2007 03:53 PM

Thanks for the update, this is a hack that my users really love and I have some users where half their post counts are thanks. Anyway, I just installed this and I have a problem I can't figure out. All thanks and groans are posting twice. So, if I thank someone, the edit that puts in "The following users thank you..." is there twice. Where is this located at? Because I have went over the template edits again and don't see where I doubled this up. I do have the new post groan 3.0 gold hack installed also. It shows the same behavior. If someone has a thanks or groan, it shows up twice. Both, and I have four additions to the bottom of the post.

Abe1 04-06-2007 03:57 PM

Quote:

Originally Posted by subnet_rx (Post 1221168)
Thanks for the update, this is a hack that my users really love and I have some users where half their post counts are thanks. Anyway, I just installed this and I have a problem I can't figure out. All thanks and groans are posting twice. So, if I thank someone, the edit that puts in "The following users thank you..." is there twice. Where is this located at? Because I have went over the template edits again and don't see where I doubled this up. I do have the new post groan 3.0 gold hack installed also. It shows the same behavior. If someone has a thanks or groan, it shows up twice. Both, and I have four additions to the bottom of the post.

Look at the end of the postbit.

C_P 04-06-2007 03:58 PM

Quote:

Originally Posted by Abe1 (Post 1221155)
Please make sure you installed all files in the right place and re-did all the template edits. Also, make sure you revert any Post Thanks templates.

Thank you for the reply Abe. I did this twice now with same results. What am I missing? Can you check your PM please and let me know?

Tearstone 04-06-2007 04:03 PM

Quote:

Originally Posted by Abe1 (Post 1221151)
Just place it in between the 'head' tags.

k, not sure what that did as I don't see any difference, so I'm keeping my fingers crossed :) Thank you!

subnet_rx 04-06-2007 04:03 PM

Quote:

Originally Posted by Abe1 (Post 1221170)
Look at the end of the postbit.

thanks for the quick reply. Here's the very end of my postbit:

Code:

<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
<!-- Start Post Groan Hack -->
$post_groan
<!-- End Post Groan Hack -->


subnet_rx 04-06-2007 04:07 PM

I had another idea, could this be due to the post cache?

Abe1 04-06-2007 04:18 PM

Quote:

Originally Posted by subnet_rx (Post 1221175)
I had another idea, could this be due to the post cache?

Possible. I dont know what other hacks you have.

Abe1 04-06-2007 04:19 PM

Quote:

Originally Posted by Tearstone (Post 1221172)
k, not sure what that did as I don't see any difference, so I'm keeping my fingers crossed :) Thank you!

As long at the AJAX works, then you know you put it in the right place.

subnet_rx 04-06-2007 04:22 PM

Quote:

Originally Posted by Abe1 (Post 1221181)
Possible. I dont know what other hacks you have.

I have several, but how would they affect this hack if I had it working before?

Abe1 04-06-2007 04:29 PM

Quote:

Originally Posted by subnet_rx (Post 1221186)
I have several, but how would they affect this hack if I had it working before?

No clue really.

subnet_rx 04-06-2007 04:54 PM

Apparently, the cache was the problem. I guess since you totally rebuilt this hack, it doubled it up. It's fixed now and working fine. Thanks for your help and the addon.

subnet_rx 04-06-2007 05:16 PM

Hmm, it seems I was wrong. AJAX seems to display it correctly, but once you refresh the thread, it displays double.

AzzidReign 04-06-2007 05:19 PM

Sweet! Thank you for the 6.0 release! I've been waiting for a few of those features now for some time! Much appreciated! Thanks again.

subnet_rx 04-06-2007 05:20 PM

nevermind, I finally found it. <!-- / post $post[postid] popup menu --> was a two different places in my postbit.

dbirosel 04-06-2007 06:25 PM

How do i set the width of the table?

Example:

#36 Post
http://www.caraudiojunkyard.com/foru...2678#post12678

I want the width of the list of thank you's in showthread to be as wide as the replies.

Abe1 04-06-2007 06:52 PM

Quote:

Originally Posted by dbirosel (Post 1221269)
How do i set the width of the table?

Example:

#36 Post
http://www.caraudiojunkyard.com/foru...2678#post12678

I want the width of the list of thank you's in showthread to be as wide as the replies.

looks like you never reverted the template since the upgrade. Please revert the post_thanks_postbit template it.

C_P 04-06-2007 07:44 PM

Stoopid me. I forgot to upload the post_thanks.php file in the forum folder both times I tried this. Abe is a MASTER and it works great! Thank you sooo very much. I wish they would make this base product so we would not have to modify this. ;) Got my vote!

dbirosel 04-06-2007 08:18 PM

Thanks for the great update!!!! :D Works perfectly!

deezelpope 04-06-2007 08:29 PM

Quote:

Originally Posted by Abe1 (Post 1221153)
No need to uninstall. Just re-do the template edits. and upload the files and product file.

Ok, I can handle this, thank you very much...

Quote:

Originally Posted by Abe1 (Post 1221155)
Please make sure you installed all files in the right place and re-did all the template edits. Also, make sure you revert any Post Thanks templates.

But I'm sorry, I don't understand what you mean by reverting any post thanks templates. Revert to what?

Abe1 04-06-2007 08:32 PM

Quote:

Originally Posted by deezelpope (Post 1221375)
Ok, I can handle this, thank you very much...



But I'm sorry, I don't understand what you mean by reverting any post thanks templates. Revert to what?

Make sure you do not have any customizations on the templates that come with this hack.

deezelpope 04-06-2007 08:41 PM

Ahhhhh, I see now. I think maybe I should just skip this update...lots of hacks. Thank you for your help and information.

efil 04-07-2007 05:02 AM

Hi,
After the upgrade the ajax is not working.

big dan 04-07-2007 08:33 AM

Excellent hack, thank you for the update, Abe. :)

I have one question, is it normal for the entire page to refresh when you give or remove a thanks? This never happened in the 5.x series.

Thank you,
Dan


All times are GMT. The time now is 08:15 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.02925 seconds
  • Memory Usage 1,836KB
  • 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
  • (1)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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