Well that's really strange, I tested it on the default style and it worked, so went back to my modified style and it was still working, I made no other changes whatsoever, really odd, oh well, it's working now, I don't know how or why, lol. Thanks for the help and for this mod.
Joe, pretty please Joe :p, I noticed on your site that you give your users the option to switch off this hack in their usercp. Would you mind sharing how to do that? Thanks.:) |
Quote:
Step 1- Make new user profile field, single selection radio box, options: No Yes Step 2- Edit the postbit_display_complete plugin. Change the 2nd Conditional to: Code:
if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post) && $vbulletin->userinfo['field29'] != "No" && $post['userid'] != 0) Code:
if ($vbulletin->userinfo['field29'] != "No" && !(defined('LOCATION_BYPASS')) && !(post_thanks_off($this->thread['forumid'], $this->post, $this->thread['firstpostid'], THIS_SCRIPT))) Note: Putting the "No" before the "Yes" and checking for "No" in the code is important so that it's active for everyone EXCEPT those who specifically opt-out of it. |
Thanks Joe, much appreciated. :)
|
Great tutorial. I was able to follow it all the way through for both the LIKE and DISLIKE buttons.
Nice job Joe! |
Quote:
Quote:
Quote:
Quote:
--------------- Added [DATE]1315278204[/DATE] at [TIME]1315278204[/TIME] --------------- Quote:
|
|
Quote:
However, I did fix my AJAX problem by going back and having a second look. For my site, the design of the Like box is all contained within the template post_thanks_postbit. Therefore the contents of my template post_thanks_box was simply: PHP Code:
PHP Code:
|
Quote:
PHP Code:
As for your earlier question about what Paul did- it doesn't matter, the vb.org like system is completely custom and has nothing to do with the mod this article is based on- so nothing Paul did here is relevant. |
Hope you will release this article for vB4 soon :)
|
Quote:
|
All times are GMT. The time now is 12:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|