Thread: BB Code Enhancements - BBCode SQL/MYSQL query highlighter
View Single Post
  #2  
Old 12-23-2009, 03:41 PM
smirnoff smirnoff is offline
 
Join Date: Aug 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

just found your code, very nice one, but still some "bug to correct"

like the ' into comment or request

or interaction with orthe BBCode like [b] or [url]

here is an exemple
[sql]
#Xevozz
update creature_template set ainame = 'EventAI' where entry = 29266;
DELETE FROM `creature_ai_scripts` WHERE `creature_id` =29266;
insert into `creature_ai_scripts` (`id`, `creature_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `.....`) values
('2926600', '29266','10','2','100','7','1','1','5000','8000',' 2','14','0','0','19','832','0','0','22','1','0','0 ','Xevozz - become attackable'),
('2926611', '29266', '4', '0', '100', '6', '0', '0', '0', '0', '1', '-292660', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - aggro'),
('2926601', '29266', '0', '0', '100', '3', '11000', '15000', '12000', '14000', '11', '54202', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Arcane Barrage Volley (normal)'),
('2926602', '29266', '0', '0', '100', '5', '11000', '15000', '12000', '14000', '11', '59483', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Arcane Barrage Volley (heroic)'),
('2926603', '29266', '0', '0', '100', '3', '8200', '9400', '22100', '24000', '11', '54226', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Arcane Buffet (normal)'),
('2926604', '29266', '0', '0', '100', '5', '8200', '9400', '22100', '24000', '11', '59485', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Arcane Buffet (heroic)'),
('9292605', '29266', '0', '0', '100', '3', '16000', '19500', '39700', '43400', '11', '54102', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Summon Ethereal Sphere (normal1)'),
('2926606', '29266', '0', '0', '100', '5', '16000', '19500', '39700', '43400', '11', '54137', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Summon Ethereal Sphere (heroic1)'),
-- here you can place a nice comment's and bad luck failed... with a lil URL link Clic here

('2926607', '29266', '0', '0', '100', '3', '10200', '11500', '20700', '24400', '11', '54138', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Summon Ethereal Sphere (normal2)'),
('2926608', '29266', '0', '0', '100', '5', '10200', '11500', '20700', '24400', '11', '61337', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'Xevozz - Summon Ethereal Sphere (heroic2)'),
('2926609', '29266', '7', '0', '100', '6', '0', '0', '0', '0', '2', '35', '0', '0', '0', '0', '0', '0', '22', '0', '0', '0', 'Xevozz - evade reset'),
('2926610', '29266', '6', '0', '100', '6', '0', '0', '0', '0', '2', '35', '0', '0', '1', '-292661', '0', '0', '22', '0', '0', '0', 'Xevozz - death');
[/sql]

and when you have more than 200 lignes of SQl request, it tae alot of time to parse and show the result
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01114 seconds
  • Memory Usage 1,767KB
  • 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)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