View Single Post
  #66  
Old 09-06-2011, 01:43 AM
NTMID8 NTMID8 is offline
 
Join Date: Feb 2004
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MagicThemeParks View Post
"Sorry, you are not allowed to 'Like' this post."

Wasn't the standard, "you've liked this guy's posts too much" message
Quote:
Originally Posted by BirdOPrey5 View Post
FYI to all- Paul has reported the bug preventing the "Liking" of articles here on vb.org is fixed. :up:
Any idea what Paul did to fix this error? I have a few users randomly reporting the same on my forum. (using v4.1.5)

Quote:
Originally Posted by Post Reader View Post
looks there is a problem when somone thanx the post the page needs to refresh again and AJAX feature is not working...
Has anyone figured out how to get AJAX working again? (using v4.1.5)

Quote:
Originally Posted by MagicThemeParks View Post
If you select the option to work with reputation points you can.
Probably right in front of me but I am not seeing it. Where do you set this up to work with reputation points?

--------------- Added [DATE]1315278204[/DATE] at [TIME]1315278204[/TIME] ---------------

Quote:
Originally Posted by BirdOPrey5 View Post
Glad it's working.

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)
Step 3- Edit the postbit_display_start plugin. Change the 1st Conditional to:
Code:
if ($vbulletin->userinfo['field29'] != "No" && !(defined('LOCATION_BYPASS')) && !(post_thanks_off($this->thread['forumid'], $this->post, $this->thread['firstpostid'], THIS_SCRIPT)))
Change "field29" in each to whatever field number is assigned to your custom profile filed... maybe field5 or field6, depends how many others you already have.

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.
Anyone know how to get this working under v4.1.5? I made the change to postbit_display_complete as shown above. There is no postbit_display_start in v4 but that line exists in postbit_display_complete so I made that edit there as well. Tested out and regardless of whether my option is set to No or Yes, I can still see the Like system.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01389 seconds
  • Memory Usage 1,781KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete