vb.org Archive

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

Abe1 03-26-2008 10:22 PM

Quote:

Originally Posted by zmmmzz (Post 1475118)
Abe what conditional should I use in the template to show something only to members who have already said thanks?

Well "$display_thanks_image == 'none'" should show the text if the thanks button will not be showing.

zmmmzz 03-27-2008 05:06 PM

Quote:

Originally Posted by Abe1 (Post 1475421)
Well "$display_thanks_image == 'none'" should show the text if the thanks button will not be showing.

ok and can I use something like this in the template?

Code:

<if condition="User already voted">

Custom code

</if>


popowich 03-28-2008 01:32 PM

Hi. I did something really dumb. It was late, and for some reason while upgrading from vb 3.6.8 to 3.7 I uninstalled the old thanks before installing the new one. Everyone lost their thanks and some people are pissed. I have good daily backups. I restored the post_thanks table. What else do I need to restore to make the thanks show up in threads and have the thanks counts be correct? Thank you very much! :D

-Raymond

etechno 03-29-2008 07:25 PM

On our MySQL Server (5.2.5) I'm just reporting this too you on install took about 1 minute to go thru and install via the product plugin xml:

Quote:

TOP:

PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
23299 mysql 22 6 72.7 9:49.76 5.8 370m 117m 3908 S /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var
Just wanted to point this too you so if others have issues you may wanna look into this.

I did an strace on the PID as well at the same time and confirmed it was this install.

physiart 04-01-2008 12:41 PM

Thanks for the hack {clicked install}.

Is there a way to display thanked posts as new posts when clicking on the "New Posts" button?

P.S. BTW, what's a markup username?

MR-2ZZ 04-01-2008 03:14 PM

I didnt see but is there a way to limit the amount of thanks a person gives in a day?

tgillespie 04-01-2008 04:57 PM

Great hack. Thanks a bunch. I've modified it a bit to act more or less like a Digg system. Saved me a lot of time.

My only question, is there a way to show the search results as thread titles only? I've modified $showposts in post_thanks.php to 0, but it still shows the posts and not thread titles only. Any help appreciated.

Namaless 04-01-2008 08:07 PM

Abe you have news for GARS integration?
Thanks ^_^

mblb 04-03-2008 10:20 PM

It's not working properly for me. The buttons are showing but when you click one they just both disappear. They don't count. I am using 3.6.9

Guest210212002 04-04-2008 12:41 PM

Is there a way to disable the auto-insert of the thanks button, and manually add it to skins? This hack works fine, but it's putting my (heavy) normal thanks button into my mobile theme, and I can't seem to find where to remove it.


All times are GMT. The time now is 07:19 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.02532 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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