Thread: Miscellaneous Hacks - [AJAX] Thumbs Up?
View Single Post
  #21  
Old 07-19-2012, 11:04 AM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maki_69 View Post
I use 3.8.6 on localhost but in few minutes I install and check mod on my forum.

EDIT: On my forum I have the same problem (I use vBulletin 3.8.7 Patch Level 3).


URL:
Code:
http://localhost/vbulletin/thumbs.php?do=add&contenttype=post&thumb=-1&contentid=2&securitytoken=1342626612-cf8705a736092af96d2083ce350a15fff2c20d0f
Let's do some edits, just for testing.
1. Open file thumbs.php and delete the lines:
Quote:
// check security
if (!verify_security_token($securitytoken, $vbulletin->userinfo['securitytoken_raw'])) {
print_no_permission();
}
then try to use the system.
2. Open file includes/functions_sc_thumbs.php and find the function:
Quote:
function thumbed_already_check
change the line:
Quote:
return false;
to
Quote:
return true;
then try to use the system
3. On the same file, find the function:
Quote:
function is_in_banned_usergroup()
change the line:
Quote:
return false;
to
Quote:
return true;
then try to use the system
4. On the same file, find the function:
Quote:
function is_in_banned_list()
change the line:
Quote:
return false;
to
Quote:
return true;
then try to use the system
5. On the same file, find the function:
Quote:
function is_a_banned_forum($forumid)
change the line:
Quote:
return false;
to
Quote:
return true;
then try to use the system

Quote:
Originally Posted by 3raq4all View Post



Hello
How do I get on the variable for the number?
I want to add the number to the Post template
I hope to help
What exactly you want to do? These numbers refers the thumbs has been given on the whole site.

Quote:
Originally Posted by Fluke667 View Post
i want import from reputation system to thumbs up... howto do this?
I haven't check reputation system. will see.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01259 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
  • (1)bbcode_code
  • (16)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