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)

brvheart 10-26-2006 11:58 AM

to upgrade just upload the xml and allow overwrite or is there difference in the template edits?

Abe1 10-26-2006 12:12 PM

Quote:

Originally Posted by Markith
Is there any way to just have the Thanks # and not
Thanks # in blank number of posts?

bascially just want it to say THANKS and how many times

Edit the template edits you made for this hack.

Abe1 10-26-2006 12:13 PM

Quote:

Originally Posted by brvheart
to upgrade just upload the xml and allow overwrite or is there difference in the template edits?

Just upload the new XML file. If you custom edited any templates that come with this hack, you should revert them.

Markith 10-26-2006 03:52 PM

Thanks for the quick reply Abe, I am not sure what you mean by editing the templates I made??? sorry I am a newbie

SCRIPT3R 10-26-2006 03:59 PM

Quote:

Originally Posted by perfphysio
Can you or someone else provide a few more image options for the thanks icon? The hack itself is great

here's a few...

flindersredclaw 10-26-2006 04:21 PM

Spot on - installed on 3.6.1 no issues

Thank you :o)

brvheart 10-26-2006 04:50 PM

Quote:

Originally Posted by GearTripper
here's a few...

the buttons should match the style that you use...which you should have the .psd file for to make your own buttons...thanks for the ones that you made though :)

perfphysio 10-27-2006 02:51 PM

Quote:

Originally Posted by GearTripper
here's a few...

Thanks very muchly :)

Kadi 10-28-2006 04:26 AM

Why doesnt the Thanks button show on posts by Super Mods?

Abe1 10-29-2006 03:00 AM

Quote:

Originally Posted by Kadi
Why doesnt the Thanks button show on posts by Super Mods?

It should. It just shouldn't show up on your own posts.

boing 10-29-2006 06:19 AM

Okay here are some minor bugs that I found, its not about how it works but how it looks. You will not see any different untill you use some VB skin

Original code on line 111 -> v5.3
PHP Code:

<![CDATA[<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center"

The right one (IMO)
PHP Code:

<![CDATA[<div style="padding:5px 0px $stylevar[cellpadding]px 0px">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center"

Original code on line 131 v5.3
PHP Code:

<![CDATA[<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center"


The right one (IMO)
PHP Code:

<![CDATA[<div style="padding:4px 0px 0px 0px">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center"

Hope it helps

Abe1 10-29-2006 11:09 AM

Quote:

Originally Posted by boing
Okay here are some minor bugs that I found, its not about how it works but how it looks. You will not see any different untill you use some VB skin

These corrections were made vary carefully. If I do make these changes, then there is a bigger area then normal under the thanks box. Having it like this, makes it show up perfect.

Targowski 10-30-2006 12:08 AM

Very nice hack, I'll be sure to download this one.

grc 10-31-2006 12:10 PM

Quote:

Originally Posted by GearTripper
post vB 3.6.1 upgrade, i am receiving this message atop my forums when a user clicks Find All Thanked Posts from within the navbar search and/or memberinfo...

Did this ever get resolved? I get the same error message - although things do go right on working.

grc 10-31-2006 12:11 PM

Quote:

Originally Posted by GearTripper
post vB 3.6.1 upgrade, i am receiving this message atop my forums when a user clicks Find All Thanked Posts from within the navbar search and/or memberinfo...

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 648



Did this ever get resolved? I get the same error message - although things do go right on working.

Abe1 10-31-2006 09:30 PM

Quote:

Originally Posted by grc
Did this ever get resolved? I get the same error message - although things do go right on working.

I never looked into this. I need a way to reproduce it.

Th3_Ch@H@N^ 11-01-2006 01:28 PM

excellent mod thank a lot

Markith 11-01-2006 04:43 PM

Is there a way to take that navbar search option out????

Abe1 11-01-2006 05:51 PM

Quote:

Originally Posted by Markith
Is there a way to take that navbar search option out????

Sure. Just dont do the template edit for it.

ninjamaster 11-02-2006 09:49 AM

thanks m8 nice work :)

topshams 11-02-2006 08:16 PM

Thanks for a great hack.

I am getting a few database error messages when I remove thanks. I doesn't happen every time I remove thanks just sometimes. I'm not sure why that is. Here is the message

Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

                UPDATE vb3_user
                SET post_thanks_user_amount = post_thanks_user_amount - 1
                WHERE userid IN ();

MySQL Error  : You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ')' at line 3
Error Number : 1064

Thanks for your help:)

Abe1 11-03-2006 02:34 AM

Quote:

Originally Posted by topshams
Thanks for a great hack.

I am getting a few database error messages when I remove thanks. I doesn't happen every time I remove thanks just sometimes. I'm not sure why that is. Here is the message

Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

                UPDATE vb3_user
                SET post_thanks_user_amount = post_thanks_user_amount - 1
                WHERE userid IN ();

MySQL Error  : You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near ')' at line 3
Error Number : 1064

Thanks for your help:)

Did you click the button 2 times quickly?

topshams 11-03-2006 08:06 AM

Quote:

Did you click the button 2 times quickly?
Yes, thinking about it that's exactly what happened.

Thanks for getting back to me. I'm no longer worried about it now.

Razasharp 11-06-2006 02:25 AM

Hi Abe - excellent hack! I have a few questions I hope you can help with...

Quote:

Originally Posted by brandnew
This hack is messy. It includes a long string of javascript after each and every post in the thread. Why it has to be that? You can just put javascript in an external .js file, attach postid to the "Thank You" button in each post, and for every click, the postid is passed to the function.

Please clean this up. The vbulletin inline mod offers a good example to follow.

Quote:

Originally Posted by Abe1
Last time I checked, I had to do it this way because AJAX uses a second function that i am unable to send a variable to. I will look into it again since my knowledge for javascript has been increasing the past few weeks.

Did you manage to work this out Abe?

Also, if we don't need to show:

Quote:

Thanks: 0
Thanked 0 Times in 0 Posts
Can we minus the query you mentioned for showthread? Just wondering as this might help people with busy forums?

Thanks again for a great hack!

ociosos 11-06-2006 05:20 PM

i love this Hack....

im looking for a hack to work with this....

[hide] so people wont see the download links if they dont click on thanks????

any ideas where to get it?

thank you!!!!!

emtee 11-06-2006 08:46 PM

Quote:

Originally Posted by ociosos
i love this Hack....

im looking for a hack to work with this....

[hide] so people wont see the download links if they dont click on thanks????

any ideas where to get it?

thank you!!!!!

Somebody just made this hide + thanks combination: https://vborg.vbsupport.ru/showthread.php?t=130887

Check it out. :D

Abe1 11-07-2006 12:46 AM

Quote:

Originally Posted by Razasharp
Hi Abe - excellent hack! I have a few questions I hope you can help with...





Did you manage to work this out Abe?

Also, if we don't need to show:



Can we minus the query you mentioned for showthread? Just wondering as this might help people with busy forums?

Thanks again for a great hack!

AJAX is still in the template.

The stats dont come from the 1 query. They come from the user info.

Razasharp 11-08-2006 03:43 AM

Thanks for the reply Abe - are you still looking into it?
Cheers.

Abe1 11-08-2006 11:47 AM

Quote:

Originally Posted by Razasharp
Thanks for the reply Abe - are you still looking into it?
Cheers.

Only if some one shows me a small example if it done the other way.

SCRIPT3R 11-09-2006 02:58 AM

adding a Thanks column into the Members List page would be awesome! i'm trying to get my head around it right now (got it working actually, but the searching is attached to post count for some reason and i can't separate them), but with the recent vB upgrade and you mentioning a newer version coming out, i'll hold off for a bit in hopes that maybe it'll be included with the next version. ;)

Abe1 11-09-2006 03:04 AM

Quote:

Originally Posted by GearTripper
adding a Thanks column into the Members List page would be awesome! i'm trying to get my head around it right now (got it working actually, but the searching is attached to post count for some reason and i can't separate them), but with the recent vB upgrade and you mentioning a newer version coming out, i'll hold off for a bit in hopes that maybe it'll be included with the next version. ;)

I just release a pretty stable version. I dont expect to be coming out with a new very soon.

RMS-Chef 11-10-2006 02:04 AM

Hi Abe.

I have a serious question. I am not sure what other users have for raw numbers of thanks but I think I have a lot. My post_thanks table has a little over 770,000 records (yes, over 3/4 of a million), I have dozens of users with xx,xxx thanks and threads with x,xxx and xxx thanks. I have over 30k registered users, regularly have a little over 400 users online at once, we generate about 1,000+ new posts daily and I have a vB "User Activity" statistic of a little over 6,000+ daily.

The Thanks hack is very popular and important to my community. I am not sure of the code design and queries involved so I was wondering if this hack could be contributing to my load issues with this amount of user, post and thanks activity?

Abe1 11-10-2006 03:14 AM

Quote:

Originally Posted by RMS-Chef
Hi Abe.

I have a serious question. I am not sure what other users have for raw numbers of thanks but I think I have a lot. My post_thanks table has a little over 770,000 records (yes, over 3/4 of a million), I have dozens of users with xx,xxx thanks and threads with x,xxx and xxx thanks. I have over 30k registered users, regularly have a little over 400 users online at once, we generate about 1,000+ new posts daily and I have a vB "User Activity" statistic of a little over 6,000+ daily.

The Thanks hack is very popular and important to my community. I am not sure of the code design and queries involved so I was wondering if this hack could be contributing to my load issues with this amount of user, post and thanks activity?

You can disable (NOT UNINSTALL) the hack for a minute, and see if the load changes at all for a showthread page.

I dont see why it should cause a problem. This hack only uses 1 query per showthread load. It does not run any other queries besides if a user clicks on thanks.

project-Buckfas 11-10-2006 01:55 PM

Reserved

lolo? 11-10-2006 03:10 PM

I abe did you think it's possible to make a bump thread when a thanks are given like a post ?

ociosos 11-11-2006 06:04 AM

Abe1 I MADE A LITTLE MODIFICATION TO YOUR HACK.... IM SORRY IF I DIDNT ASK YOU...

IT JUST A LITTLE ONE CHECK IT OUT HERE LOOK FOR MY NAME... THANK YOU

I DID IT TO MAKE IT WORK WITH THE HIDE HACK THANK YOU AGAIN...

S O R R Y!!!! :)

PLZ FOLLOW THE LINK

https://vborg.vbsupport.ru/showthrea...=130887&page=5

xfaethorx 11-12-2006 07:09 AM

when i first installed this ages ago (3.5.X) i managed to move the thank you box from the BOTTOM of the post to the TOP instead. I prefer it at the top, however now I can't seem to 1. remember how i did it 2. see if its possible with this version so I'm lazily asking for a bit of assistance.

Can you easily change the position of the thank you box, I really don't like it at the bottom (this is the same for the groan hack too).

cheers.

Abe1 11-12-2006 11:37 AM

Quote:

Originally Posted by xfaethorx
when i first installed this ages ago (3.5.X) i managed to move the thank you box from the BOTTOM of the post to the TOP instead. I prefer it at the top, however now I can't seem to 1. remember how i did it 2. see if its possible with this version so I'm lazily asking for a bit of assistance.

Can you easily change the position of the thank you box, I really don't like it at the bottom (this is the same for the groan hack too).

cheers.

Sure. Just move the 3rd template edit for post_bit to the top of the post_bit.

xfaethorx 11-12-2006 02:36 PM

DOH!DOH!DOH!DOH!DOH!

how did i miss that ....*sits in the numpty corner*

lolo? 11-14-2006 01:33 PM

Quote:

Originally Posted by lolo? (Post 1114280)
I abe did you think it's possible to make a bump thread when a thanks are given like a post ?

and it's possible to increment the number of reply each time a member thanks a post ??


All times are GMT. The time now is 11:33 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.02754 seconds
  • Memory Usage 1,856KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (23)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