vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [SQL] - vB Code (https://vborg.vbsupport.ru/showthread.php?t=59904)

Xenon 01-07-2004 10:00 PM

[SQL] - vB Code
 
This hack is more or less Selfexplaining as we use it since a long time on vb.org :).
Credits go to Chen Avinadav for the original version for vBulletin 2.

It allows you and your users to use [ SQL] Tags to highlight special SQL Tags and so on.
example:
[SQL]
SELECT *
FROM user
LEFT JOIN userfield USING(userid)
[/sql]

most of the queries are working perfectly, just nested quotes can make problems, i'll try to fix these, soon :)

Enjoy

MindTrix 01-08-2004 04:09 PM

Yay i wondered where that was :) Cheers Xenon!! Im guessing you got Chen's permission :p lol

Xenon 01-08-2004 08:14 PM

Quote:

Originally Posted by MindTrix
Yay i wondered where that was :) Cheers Xenon!! Im guessing you got Chen's permission :p lol

Yeah, even myself has to ask, and i have asked :)
(but as i have rewritten it strongly for vb.org and vb3, that was just a formality, the code itself is more or less in my brain now ;))

NTLDR 01-08-2004 08:41 PM

Thanks for releasing this Xenon, its somthing I've wanted for a while now :)

Xenon 01-08-2004 09:21 PM

:)

i know there are not that much boards out which need this hack, but if at least one can use it i'm glad :)

Xenon 01-08-2004 10:05 PM

i've uploaded a slightly modificated version as it seems, the old one made problems with newreply and the newer vb-versions..

Boofo 01-09-2004 03:59 PM

This works perfect, sir! ;) Thank you.

I finally figured out what the problem was when you and I tried to get this to run on vB2 (remember the nightmare?). The variable $bbuserinfo I was using in the if statement wasn't made global. Once I did that with this version of your hack, I can use my block code hack with it.

Xenon 01-09-2004 04:31 PM

:)

i use a different block code hack now ;)
but yeah i remember that nice conversation ;)

Chris M 01-09-2004 11:44 PM

Hmmm - Nice:)

Now that you have been so kind, make a [disable] tag :p

Satan

Boofo 01-10-2004 02:19 AM

How would we add a button in the editor for this?

A disable tag would be excellent! I really miss that one. ;)


All times are GMT. The time now is 09:53 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.01075 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete