Thread: Major Additions - Yet Another Ranks System
View Single Post
  #24  
Old 07-02-2011, 12:14 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaspersku View Post
Oh dear, it can not be installed on vbb 4.1.4
When I installed the 4.1.4 database, then it fails, I try to install on localhost, it was like, you can explain ?
It looks like the installer did not add the rank table at your database.

Quote:
Originally Posted by TheLastSuperman View Post
I've only ran this on 4.1.3 and below per the info in the mod description: vB Version: 4.1.3
It shouldn't make any difference at all about the versions, mod database install wise I mean.

After taking a quick look at the xml file I noticed a few things that need correction. For example, at the below install code you have forgotten to include the TABLE_PREFIX part which has been included everywhere else. Because if a user is using a custom prefix at his/her database then it won't work. It will work only if no prefix has been used at all.

PHP Code:
<installcode><![CDATA[$db->reporterror 0;
$db->query_write("ALTER TABLE `rank` CHANGE `rank_desc` `rank_desc` TEXT  NOT NULL");
$db->query_write("ALTER TABLE `rank_user` CHANGE `issue_reason` `issue_reason` TEXT NOT NULL");
echo 
"<font size=\"1\">Alter table - 2.1.4</font><br />";
$db->reporterror 1;]]></installcode

Also you are using the depricated font size all over the place. It would be better, coding wise to use <span style instead.

Also it would be better to use:

PHP Code:
$vbulletin->db->query_write 
instead of:

PHP Code:
$db->query_write 
Other than that, great mod
Reply With Quote
Благодарность от:
TheLastSuperman
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01171 seconds
  • Memory Usage 1,783KB
  • 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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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