Old 09-18-2007   #1 (permalink)
Steven
 
Join Date: Jun 2005
Location: McAlester, OKlahaoma - United States
Posts: 21

BB Buttons

I'm guessing this would be the correct place in the forum to post this question?

I've added a few coding bb buttons to my phpbb template's bbcode.tpl. Now people may post code snippets similar to the way vbulletin users can.

What I was wondering is how vbulletin makes the php code snippets show up colorized with the red, blue, and green font colors. Similar to the way code looks in dreamweaver. If it is all in the css could someone please post the css that affects the php snippets? If it is something more than css could someone please tell me what exactly it is?

Thanks.
__________________
--
Steven

Last edited by basicwe; 09-19-2007 at 11:16 AM.
basicwe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-19-2007   #2 (permalink)
PHP Lover
 
Join Date: May 2007
Location: Zug, Switzerland
Posts: 84

Quote:
Originally Posted by basicwe View Post
I'm guessing this would be the correct place in the forum to post this question?

I've added a few coding bb buttons to my phpbb template's viewtopic_body.tpl. Now people may post code snippets similar to the way vbulletin users can.

What I was wondering is how vbulletin makes the php code snippets show up colorized with the red, blue, and green font colors. Similar to the way code looks in dreamweaver. If it is all in the css could someone please post the css that affects the php snippets? If it is something more than css could someone please tell me what exactly it is?

Thanks.
Hi Steven,

I'm not 100% sure how it's done in Vbulletin, but in phpbb it's more than just css. However, you can do this too with the following function:
highlight_string()

You just need to be careful of quotes and things, depending on the version you have, but you can overcome this with the addslashes() function.

The actual code coloring you can change in php.ini

Greg
Gjbphp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 09-19-2007   #3 (permalink)
Steven
 
Join Date: Jun 2005
Location: McAlester, OKlahaoma - United States
Posts: 21

Thanks.

Thanks, highlight_string() worked perfectly.
__________________
--
Steven
basicwe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glass look buttons??? FunkBoi Adobe Photoshop 2 02-21-2007 02:47 PM


All times are GMT +1. The time now is 01:17 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT