vBulletin Modifications

Instructions on using <?php ?> in custom bbcodes

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 06-18-2006, 04:40 PM   #1
vB Newbie
Join Date: Jun 2006
Amadeus is on a distinguished road

Default Instructions on using <?php ?> in custom bbcodes

I'm rather new to the whole vbulletin thing, but really want to add custom tags to my bbcodes that will allow for highlighting and so forth. I found a nice php package for syntax highlighting in 'geshi'; however, I cannot figure out how to make it work within the 'replacement' aspect of the custom bbcode entry dialog.

Of course, perhaps it's not possible But, just in case it is, this is "basically" what I want to put in my custom bbcode:

You must first be a registered member to view any code.
Anyway, as you can probably imagine, it's not really working.

If anyone has any ideas on how to fix this...or if anyone has links to a freely available syntax highlighter for c++ (or mod for vbulletin that uses geshi), please let me know.

Thanks!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06-19-2006, 10:44 AM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

You can't use a the built in bbcode system, you'll have to create your own bbcode using the plugin system.

Have a look around here and/or at vb.org for a hack which adds a custom bbcode using the plugin system.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2006, 02:57 PM   #3
vB Newbie
Join Date: Jun 2006
Amadeus is on a distinguished road

Default

Ok, I'm going to start the search process here on this site of going through each posting (searching didn't help very much with such a vague idea of what I'm looking for). But, if anyone reads this and remembers a specific thread, please let me know! thanks!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-19-2006, 03:07 PM   #4
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

so, waht is it exactly your after, whats geshi?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-20-2006, 12:42 AM   #5
vB Newbie
Join Date: Jun 2006
Amadeus is on a distinguished road

Default

Well, what I want is exactly what's in my initial posting in this thread (given that it were 'possible' for it to work). Basically if you have geshi installed, the code I gave would have echoed whatever you gave it as a {param} with the code properly highlighted.

Geshi can be found at http://qbnz.com/highlighter/

But, in short, what I'm wanting is [c++] [/c++] tags and then be able to make custom ones that will work for the scripting language used by the software that I support.

Thanks!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -3. The time now is 01:29 AM.


SEO by vBSEO 3.1.0 ©2007, Crawlability, Inc. (Patent Pending)