Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BBCode SQL/MYSQL query highlighter Details »»
BBCode SQL/MYSQL query highlighter
Version: 1.00, by vbenhancer vbenhancer is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 12-20-2009 Last Update: Never Installs: 14
Uses Plugins Auto-Templates
 
No support by the author.

There is a missing bbcode for coders, highlighting SQL queries... and while i have the only one in hands for vBulletin, i provide it right away...

Simply upload that product. The usage is quite simple... you use the [SQL] or [MYSQL] bbcodes to wrap your sql queries, and the result will look like this:

if you are willing to change the highlight colors, they are located in the function nex_fetch_mysql_colors() inside the product file. I do not base my colors to the ini_set hightlight colors, like most of the other guys, because these colors are horrible.

btw, this is for SQL queries, if you insert your sql queries in PHP code, use the [PHP] bbcode instead, because the highlight is working on sql queries, not code, as it is supposed to be...

Download Now

File Type: zip nex_bbcode_sql.zip (3.2 KB, 68 views)

Screenshots

File Type: jpg nex_bbcode_sql.jpg (25.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #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
  #3  
Old 12-23-2009, 05:16 PM
vbenhancer's Avatar
vbenhancer vbenhancer is offline
 
Join Date: Dec 2009
Location: Qu?bec city, Canada
Posts: 740
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, you are right with the " ' "... will edit the release. for the parsing, i use vBulletin protocol for doing so, not my fault if it looks complex and long...
Reply With Quote
  #4  
Old 12-24-2009, 10:36 PM
yahooooh yahooooh is offline
 
Join Date: Nov 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there update to fix what smitnoff wrote
Reply With Quote
  #5  
Old 12-25-2009, 01:33 AM
vbenhancer's Avatar
vbenhancer vbenhancer is offline
 
Join Date: Dec 2009
Location: Qu?bec city, Canada
Posts: 740
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after christmas time there will be updates on each release done here.
Reply With Quote
  #6  
Old 09-15-2012, 09:18 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbenhancer View Post
after christmas time there will be updates on each release done here.
Did you update this one after 3 years? Or its still not updated?

Waiting for a reply befor I can go on and download..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04054 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete