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)

jilly 05-30-2006 01:52 PM

Is there a way I can make an option in a member's user cp to choose whether to view the 'thanks' added to a post or not? Some of my members on slower connections are telling me on a post with a lot of thanks, it is slowing their page load down. So I'd like to give them the option to not view the thanks area.
Thanks!
jilly

Abe1 05-30-2006 02:53 PM

Quote:

Originally Posted by jilly
Is there a way I can make an option in a member's user cp to choose whether to view the 'thanks' added to a post or not? Some of my members on slower connections are telling me on a post with a lot of thanks, it is slowing their page load down. So I'd like to give them the option to not view the thanks area.
Thanks!
jilly

You can do it yourself.

1) Make a new profile option with a yes or no option.

2) open the post_thanks_postbit and put if tags around the whole thing.

jilly 05-31-2006 12:24 AM

Quote:

Originally Posted by Abe1
You can do it yourself.

1) Make a new profile option with a yes or no option.

2) open the post_thanks_postbit and put if tags around the whole thing.

Okay cool - I understand most, but I dont know exactly how to word the if statement - can you tell me what the if statement should be?

Abe1 05-31-2006 12:39 AM

Quote:

Originally Posted by jilly
Okay cool - I understand most, but I dont know exactly how to word the if statement - can you tell me what the if statement should be?

something like this.

<if condition="$bbuserinfo[userfieldxx]">

jilly 05-31-2006 12:53 AM

Okay I did that, but I set the profile field to be a single selection radio button, with a yes or no option to show 'thanks' on posts - and it works, but both options hide the thanks - when I set it to 'no', meaning to not show the thanks, it does not show them, then when I set it to 'yes' which means it should show the thanks, it still does not show them.

I guess I need some sort of==yes sort of thing in there - I just dont know enough about php to figure it out myself yet - thank you so much for helping me with this!

Abe1 05-31-2006 01:02 AM

Quote:

Originally Posted by jilly
Okay I did that, but I set the profile field to be a single selection radio button, with a yes or no option to show 'thanks' on posts - and it works, but both options hide the thanks - when I set it to 'no', meaning to not show the thanks, it does not show them, then when I set it to 'yes' which means it should show the thanks, it still does not show them.

I guess I need some sort of==yes sort of thing in there - I just dont know enough about php to figure it out myself yet - thank you so much for helping me with this!

No, you dont need the equalls. If the option is set to know, it should equal zero which will make the if not show.

putergirl 05-31-2006 02:32 AM

hello, I'm sorry to bother you with this, but I can't find MEMBERINFO in the styles to make the last change to this hack. Can someone please tell me where it is? Thanks. :)

jilly 05-31-2006 02:56 AM

oh i see - i need to make the option a one choice thing, not radio button - just one checkbox that can be cheked on or off - goin gto try that noe

putergirl, look in your main style, > edit templates > look for a list called Member Info Templates - expand that - MEMBERINFO should be the first option when in that group

putergirl 05-31-2006 08:36 PM

jilly thank you! I found it! :D

jilly 06-01-2006 03:05 PM

Okay Abe1, what am I doing wrong? It still does not show the thanks either way, if the option is set to yes or no - here's what I have set up:

Abe1 06-01-2006 03:39 PM

Quote:

Originally Posted by jilly
Okay Abe1, what am I doing wrong? It still does not show the thanks either way, if the option is set to yes or no - here's what I have set up:

Use the Radio buttons. Set one to yes and one to no.

use this if condition:

<if condition="$post['fieldXX'] == 'yes'">

magic168 06-02-2006 03:33 AM

Abe,

This hack is exactly what I need, but I don't want it to say "Thanks" but rather something like "I Installed" -- how many things will I have to change (I can change the button easily) so it doesn't say "Thanks!" And can you point me to all the things?

Abe1 06-04-2006 02:00 AM

Quote:

Originally Posted by magic168
Abe,

This hack is exactly what I need, but I don't want it to say "Thanks" but rather something like "I Installed" -- how many things will I have to change (I can change the button easily) so it doesn't say "Thanks!" And can you point me to all the things?

1) You can chenge the button.

2) You can edit the phrases.

Not hard at all to do.

jilly 06-04-2006 07:23 PM

Got a question about the postbit

It says "Thanks" x
Then right below it says
"Has been thanked x times in x posts".
Is the first "Thanks" how many thanks the person has given out?

Abe1 06-04-2006 07:33 PM

Quote:

Originally Posted by jilly
Got a question about the postbit

It says "Thanks" x
Then right below it says
"Has been thanked x times in x posts".
Is the first "Thanks" how many thanks the person has given out?

The first thanks is like posts. Just like posts shows the amout of posts a user posted, thanks shows how many thanks a user gave.

Brandon Sheley 06-04-2006 07:42 PM

the button didn't show for me ?

Abe1 06-04-2006 07:52 PM

Quote:

Originally Posted by Loco.M
the button didn't show for me ?

Did you look at some-one elses post or your own? It wont show on your own post.

SecTa 06-04-2006 08:14 PM

Greetings, Abe1. First of all, thank You for creating and constantly updating this wonderful hack!

I have couple of questions...
As far as i understood, reputation points given by "thanks" are separated from usergroup reputation premissions, ie: if user, who is not premitted tho add reputation points, press "thanks" button, author of thanked post will still get RP... Is that right?
When i enable x RP per "thanks" feature, users with lots of thanks still have no RP. Only "thanks" maded after enabling the feature are counted. How can i convert all existing users' thanks to reputation points?

Abe1 06-04-2006 08:25 PM

Quote:

Originally Posted by SecTa
Greetings, Abe1. First of all, thank You for creating and constantly updating this wonderful hack!

I have couple of questions...
As far as i understood, reputation points given by "thanks" are separated from usergroup reputation premissions, ie: if user, who is not premitted tho add reputation points, press "thanks" button, author of thanked post will still get RP... Is that right?
When i enable x RP per "thanks" feature, users with lots of thanks still have no RP. Only "thanks" maded after enabling the feature are counted. How can i convert all existing users' thanks to reputation points?

You can't just do this. You would have to use the count and give rep points and reasons. I can't realy help you with this.

SecTa 06-04-2006 08:37 PM

Mybe some sql query can handle this? eg, if i want users to gain 1 RP per "thanks" then run some query that will make user's "thanks" amount = to user's RP*1?

Abe1 06-04-2006 09:16 PM

Quote:

Originally Posted by SecTa
Mybe some sql query can handle this? eg, if i want users to gain 1 RP per "thanks" then run some query that will make user's "thanks" amount = to user's RP*1?

Like I said, it can be done. Just you need someone in your mysql to do it and make sure it works good. I don't have the time to do such a thing right now.

Murty 06-07-2006 03:00 AM

Hey, awesome mod :D i have installed it,

just an idea for the future, is it possible to somehow integrate it with the reputation system, so when you thank someone, it also gives them reputation, with the comment 'thanks'?

please let me know if you dont understand.

Abe1 06-07-2006 03:26 AM

Quote:

Originally Posted by Murty
Hey, awesome mod :D i have installed it,

just an idea for the future, is it possible to somehow integrate it with the reputation system, so when you thank someone, it also gives them reputation, with the comment 'thanks'?

please let me know if you dont understand.

AWSOME IDEA!

But, it's added already. Check the options in your ACP.

Murty 06-07-2006 03:05 PM

lol thanks

but i wander, if it can be set so if a user says 'thanks', instead of giving the reputation that is set, could it be set so is uses the reputation power from the user? if you comprende?

Abe1 06-07-2006 04:26 PM

Quote:

Originally Posted by Murty
lol thanks

but i wander, if it can be set so if a user says 'thanks', instead of giving the reputation that is set, could it be set so is uses the reputation power from the user? if you comprende?

I'll look into this.

redlabour 06-08-2006 03:55 PM

Will it work in the Future with vBulletin 3.6 ?

Abe1 06-08-2006 05:11 PM

Quote:

Originally Posted by redlabour
Will it work in the Future with vBulletin 3.6 ?

Will check it out in the comming days but it should work with it already.

stinger2 06-09-2006 09:39 AM

lets say i enabled add reputaion feature.....is there a way to include the old thanked in the reputation

for example...i had 300 thanked posts...so i enable add to reputation today...and i get 10 points ....you thank me 10 times ..i become 20 points...

is there a way to add the old thanked to make it 320??

am i making sense? lol

Abe1 06-09-2006 11:46 AM

Quote:

Originally Posted by stinger2
lets say i enabled add reputaion feature.....is there a way to include the old thanked in the reputation

for example...i had 300 thanked posts...so i enable add to reputation today...and i get 10 points ....you thank me 10 times ..i become 20 points...

is there a way to add the old thanked to make it 320??

am i making sense? lol

At the presant time, there is no way. I may have it work with the recount of reputations or a separate re-counter.

stinger2 06-09-2006 12:06 PM

thanks for considering that abe1

sybakaos 06-09-2006 04:22 PM

Is there a possibility to add a [img] filter? In such a case the thanks button only appears on posts where images are posted?

Thanks for the AJAX hack, it works superb. Clear coding also :).

IrPr 06-10-2006 02:35 PM

Abe1
didnt show Thanks and Thank button in showpost script?

IrPr 06-10-2006 03:51 PM

Edit: in fact is it possible to get this on showpost.php ?

Abe1 06-11-2006 12:49 AM

Quote:

Originally Posted by IrPr
Edit: in fact is it possible to get this on showpost.php ?

Right now, no. I may include it in later versions.

rogersnm 06-11-2006 06:37 AM

it works fine on my live 3.6 board - http://forums.perfectforce.com - but i did have to make one template edit and that was:

In post_thanks_postbit_legacy or post_thanks_postbit
FIND
Code:

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

and REMOVE
then FIND
Code:

</div>
$spacer_close

And REMOVE

and then it'll work.... well it worked in the first place it's just it messed up the table.

or just allow overide and import the xml file attached. I also linked it back to this thread.

IrPr 06-11-2006 09:30 AM

I'm waiting :)
Thanks ABE1

rogersnm 06-11-2006 09:31 AM

what exactly are you waiting for?

bairy 06-11-2006 10:34 AM

Quote:

Originally Posted by rogersnm
what exactly are you waiting for?



Quote:

Originally Posted by IrPr
in fact is it possible to get this on showpost.php ?

Quote:

Originally Posted by Abe1
Right now, no. I may include it in later versions.

That, probably.

Abe1 06-11-2006 11:47 AM

Quote:

Originally Posted by rogersnm
it works fine on my live 3.6 board - http://forums.perfectforce.com - but i did have to make one template edit and that was:

In post_thanks_postbit_legacy or post_thanks_postbit
FIND
Code:

$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

and REMOVE
then FIND
Code:

</div>
$spacer_close

And REMOVE

and then it'll work.... well it worked in the first place it's just it messed up the table.

or just allow overide and import the xml file attached. I also linked it back to this thread.

Thanks for the heads up. I hope to work on this hack for vb3.6 in the comming days.

Valter 06-13-2006 06:03 PM

I wish to invite "Post Thank You Hack" users to try out my "Advanced Forumhome Statistics" where "Most Thanked" members are included:
https://vborg.vbsupport.ru/showthread.php?t=118374


Regards,

Cyb


All times are GMT. The time now is 12:26 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.02311 seconds
  • Memory Usage 1,834KB
  • 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
  • (4)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
  • (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