Thread: Add-On Releases - [BFC] Applicator
View Single Post
  #31  
Old 05-20-2009, 04:21 AM
sargatanas sargatanas is offline
 
Join Date: Mar 2009
Location: Land of the Dead
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrEyes View Post
There is a "bug" in the current product file:

On install you get the following error:

Code:
Database error in vBulletin 3.8.0:

Invalid SQL:
CREATE TABLE IF NOT EXISTSapplicator_app (
`appid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`appname` VARCHAR( 100 ) NOT NULL DEFAULT 'Name',
`appactive` TINYINT( 1 ) NOT NULL DEFAULT '1',
`appperms` VARCHAR( 150 ) NOT NULL DEFAULT '0',
UNIQUE (
`appid`
)
);

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EXISTSapplicator_app (
`appid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`appname` V' at line 1
Error Number  : 1064
Request Date  : Tuesday, May 19th 2009 @ 10:37:40 PM
Error Date    : Tuesday, May 19th 2009 @ 10:37:40 PM
Script        : http://www.wibble.com/admincp/plugin.php
Referrer      : http://www.wibble.com/admincp/plugin.php?do=productadd
IP Address    : 90.213.65.43
Username      : Wibble
Classname     : vB_Database
MySQL Version : 5.0.45-community-nt
This is becuase of a missing space in the product XML, the following line:

Code:
$vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS".TABLE_PREFIX."`applicator_question` (
Should be:
Code:
$vbulletin->db->query_write("CREATE TABLE IF NOT EXISTS ".TABLE_PREFIX."`applicator_question` (
Notice the space after EXISTS

Also there is a bug in the navbits, at the moment navbits is set using this code:

Code:
$navbits[$parent] = $vbphrase['bs_newbattle'];
and that phrase doesn't exists and isn't created by the product install, for now I have changed this to:

Code:
$navbits[$parent] = 'Applications'
However it would be better if this was the name of the application being viewed.

Also, I need to ask some fairly long questions but the question DB field is only 150 characters, so I have changed this to MEDIUMTEXT

And finally, if a user submits an application and then tries to resubmit another they get a standard (unphrased) "Error while posting application. Please try again." message - if the user has already submitted then it should really display their current submission and remove the submit button - or even better have a config value for each application that sets whether the user can resubmit.

Looks like a fantastic mod, but need a little polish before it is ready to go on live sites.
very well said. :up:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 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
  • (5)bbcode_code
  • (1)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