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)

Bubble #5 12-02-2005 06:43 PM

Quote:

Originally Posted by Abe1
Say that again???

LOL :D

That was my first reaction too :nervous:

mfizzel 12-02-2005 11:06 PM

An amazing little add-on to this hack would be the ability to only show attached files to those who have thanked the post...any possibility of that? :D :D


*edit - actually I retract that request :)...there are files that have been download 5k+ times, the thanked #s would gett outta control

D.Ilyin 12-03-2005 05:54 AM

Quote:

Originally Posted by Abe1
Say that again???

sory.... what i must say?

Abe1 12-03-2005 10:29 PM

Quote:

Originally Posted by D.Ilyin
sory.... what i must say?

Repeate your question with more words. I didn't understand it.

akanevsky 12-04-2005 12:46 AM

I think he means that when mods/admins/smods view soft deleted threads, they can still post a "thanks" to posts. Which, in my opinion, is useless, cause why would one want to say thanks for a post in a deleted thread?

Abe1 12-04-2005 12:47 AM

Quote:

Originally Posted by Psionic Vision
I think he means that when mods/admins/smods view soft deleted threads, they can still post a "thanks" to posts. Which, in my opinion, is useless, cause why would one want to say thanks for a post in a deleted thread?

Got it. I will try to fix that.

akanevsky 12-04-2005 12:58 AM

Yea. :)
The way to select it from DB is (inside of a query):
IF(visible = 2, 1, 0) AS isdeleted
If $thread['isdeleted'] == 1, then the thread is soft deleted.
Just saying in case it helps :)

EDIT:
Actually, since you are hooking into the showthread itself, $thread['isdeleted'] is already there. Just use it.

masterross 12-04-2005 01:14 AM

hi,

sorry for the stupid question but where are the Hacks settings?
i cant gind them :(

thanks,
Ross

divided_by_fear 12-04-2005 01:19 AM

in vBulletin Options look for Post Thank You Hack in the drop down menu

Abe1 12-04-2005 03:13 AM

Version 2.6 (12/04/05):
  • [FIXED] Number outputs for numbers between 1,000 and 1,999
  • [FIXED] Showing of the thanks button on deleted threads pages.

mfizzel 12-04-2005 03:23 AM

Imported 2.6 and 1-1,999 still read 'thanked 1 time in 1 post'

Bubble #5 12-04-2005 03:47 AM

Hi Abe :) When we're upgrading from 2.5 do we just do the template changes, or do we do the template changes, uninstall the 2.5 plugin and reinstall 2.6 plugin?

mfizzel 12-04-2005 03:55 AM

just import and overwrite the product

masterross 12-04-2005 11:17 AM

Quote:

Originally Posted by divided_by_fear
in vBulletin Options look for Post Thank You Hack in the drop down menu

thank you!

BR,
Ross

lazytown 12-04-2005 11:26 AM

Thanks! Love the mod. However....

I may have to uninstall this after seeing the load / performance problems it is causing my server. If I click search->find all thanks, it causes a load on my server like I've never seen before (even with regular searches). Now I do have over 10,000 members and 850,000 posts. Is it scanning each and every post when a user clicks that? Why the huge load?

Thanks -vissa

Abe1 12-04-2005 12:20 PM

Quote:

Originally Posted by mfizzel
Imported 2.6 and 1-1,999 still read 'thanked 1 time in 1 post'

Did you do the template changes in the file 'template changes from v2.5 to 2.6"?

Abe1 12-04-2005 12:21 PM

Quote:

Originally Posted by vissa
Thanks! Love the mod. However....

I may have to uninstall this after seeing the load / performance problems it is causing my server. If I click search->find all thanks, it causes a load on my server like I've never seen before (even with regular searches). Now I do have over 10,000 members and 850,000 posts. Is it scanning each and every post when a user clicks that? Why the huge load?

Thanks -vissa

1) You can dissable the view all thanks button by not doing that template edit.

2) Can you please explain more were the extra load is?

lazytown 12-04-2005 12:33 PM

The load occurs whenever someone clicks "view all thanks" either in the memberinfo or navbar templates. I removed both of them, but it's a shame not to be able to do that.

It looks like the reason is because the search query it creates scans through every single post and does some very large joins. It creates by far the largest load of anything I have on my vbulletin (and I have a lot of mods, search enabled, etc). If you need more details please ask a specific question.

thanks -vissa
Quote:

Originally Posted by Abe1
1) You can dissable the view all thanks button by not doing that template edit.

2) Can you please explain more were the extra load is?


mfizzel 12-04-2005 02:40 PM

Quote:

Originally Posted by Abe1
Did you do the template changes in the file 'template changes from v2.5 to 2.6"?

nope, now I did, works great thanks

Dollah 12-04-2005 03:49 PM

i am running 3.5.1 and i dont see any of template edits you are refering to. is their any way u can help me out

Dollah 12-04-2005 05:06 PM

Quote:

Originally Posted by Dollah
i am running 3.5.1 and i dont see any of template edits you are refering to. is their any way u can help me out

i found it just been tired late ly so thanx and installed

Abe1 12-04-2005 10:19 PM

Quote:

Originally Posted by vissa
The load occurs whenever someone clicks "view all thanks" either in the memberinfo or navbar templates. I removed both of them, but it's a shame not to be able to do that.

It looks like the reason is because the search query it creates scans through every single post and does some very large joins. It creates by far the largest load of anything I have on my vbulletin (and I have a lot of mods, search enabled, etc). If you need more details please ask a specific question.

thanks -vissa

It uses the same query that VB uses to search posts. Can you see if there is a differencein the load time of searching for all posts of one user?

SCRIPT3R 12-05-2005 01:48 AM

for template changes between version 2.5 and 2.6, you have the following instructions...

Quote:

in postbit AND postbit_lagacy:

find:
--------------------------------------------------------------------
<if condition="$post[post_thanks_thanked_posts] == 1">
--------------------------------------------------------------------

REPLACE WITH:
--------------------------------------------------------------------
<if condition="$post[post_thanks_thanked_posts] == 1">
--------------------------------------------------------------------
shouldn't the REPLACE line read as..

Quote:

REPLACE WITH:
--------------------------------------------------------------------
<if condition="$post[post_thanks_thanked_posts_on] == 1">
--------------------------------------------------------------------
just want to double-check prior to template modification.

Abe1 12-05-2005 12:02 PM

Quote:

Originally Posted by GearTripper
for template changes between version 2.5 and 2.6, you have the following instructions...


shouldn't the REPLACE line read as..


just want to double-check prior to template modification.

Yes. Thanks alot. Uploading new zip.

lazytown 12-06-2005 08:27 AM

I installed this mod: https://vborg.vbsupport.ru/showthread.php?t=82628 to prevent the search from being used during high server load.

Would using phpmyadmin to index some of the rows in the table help the search for thanks speed at all?

thanks -vissa

havefun 12-06-2005 11:35 AM

thx for the update :)

Abe1 12-06-2005 12:06 PM

Quote:

Originally Posted by vissa
I installed this mod: https://vborg.vbsupport.ru/showthread.php?t=82628 to prevent the search from being used during high server load.

Would using phpmyadmin to index some of the rows in the table help the search for thanks speed at all?

thanks -vissa

I dont know.

dan35 12-07-2005 09:32 PM

Quote:

Originally Posted by TJFweb
Edit! Managed to integrate it with uCash ;-)

Cool! Do you have any instruction? ;)

Bubble #5 12-09-2005 04:16 AM

Hi Abe. We're having trouble with the thank you button not centering properly when a thread is closed. What template or script is $post_thanks_button calling to?

lazytown 12-09-2005 10:22 AM

I've attempted to uninstall this mod and it doesn't uninstall quite properly. I believe it removed most of the tables, but all the phrases and one template still remain.

thanks -vissa

bashy 12-09-2005 12:02 PM

Hi..

I have installed this and is working well apart from...

Rep points do not go up (is enabled to 1)
Post count does not go up (is enabled to 1)

Also, I am using the mod that hides the attachments until the member
has posted, is there away that you could sort this so that when they have
clicked the thanks button it will allow you to see the attachments instead of having to post as well?

Regards

Bashy

Abe1 12-09-2005 12:30 PM

Quote:

Originally Posted by vissa
I've attempted to uninstall this mod and it doesn't uninstall quite properly. I believe it removed most of the tables, but all the phrases and one template still remain.

thanks -vissa

Were they customized? vB's unistaller may not remove something you costomized.

Abe1 12-09-2005 12:31 PM

Quote:

Originally Posted by bashy
Hi..

I have installed this and is working well apart from...

Rep points do not go up (is enabled to 1)
Post count does not go up (is enabled to 1)

Also, I am using the mod that hides the attachments until the member
has posted, is there away that you could sort this so that when they have
clicked the thanks button it will allow you to see the attachments instead of having to post as well?

Regards

Bashy

Do you have a link to the hack?

Abe1 12-09-2005 12:32 PM

Quote:

Originally Posted by Bubble #5
Hi Abe. We're having trouble with the thank you button not centering properly when a thread is closed. What template or script is $post_thanks_button calling to?

It called from the plugin. I may make it a template some day.

bashy 12-09-2005 01:03 PM

Hi,

Thanks for your quick response, here the link https://vborg.vbsupport.ru/showthrea...ght=attachment
Will look forward to the out come :)

Quote:

Originally Posted by Abe1
Do you have a link to the hack?

Regards

Bashy

Abe1 12-09-2005 06:31 PM

Quote:

Originally Posted by bashy
Hi,

Thanks for your quick response, here the link https://vborg.vbsupport.ru/showthrea...ght=attachment
Will look forward to the out come :)



Regards

Bashy

I have to code to make it work, i'm just waiting right now. For some reason the guys code doesn't work now. Look at the last few posts in the thread.

LEAD_WEIGHT 12-09-2005 06:49 PM

Quote:

Originally Posted by Abe1
3.5.2?

Will this work for vB3.5.2? I will wait a couple of more weeks to see if any bugs come out.

Ncturnal 12-10-2005 04:16 PM

Quote:

Originally Posted by LEAD_WEIGHT
Will this work for vB3.5.2? I will wait a couple of more weeks to see if any bugs come out.

Working great for us on 3.5.2. :D

Something I'd like to see to compliment this is a Top Ten similiar to Paul M's Top Ten posters. https://vborg.vbsupport.ru/showthread.php?t=92177 :D

Abe1 12-10-2005 09:10 PM

Quote:

Originally Posted by Ncturnal
Working great for us on 3.5.2. :D

Something I'd like to see to compliment this is a Top Ten similiar to Paul M's Top Ten posters. https://vborg.vbsupport.ru/showthread.php?t=92177 :D

I did a top ten for the CMPS portal.

Bubble #5 12-11-2005 02:51 AM

Abe is there a "align = "left" assigned to the post thanks button anywhere? We can't seem to get it to center :ermm:


All times are GMT. The time now is 02:25 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.01989 seconds
  • Memory Usage 1,833KB
  • 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
  • (24)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