vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Change font color for php syntax (https://vborg.vbsupport.ru/showthread.php?t=112631)

imported_infitech 04-09-2006 09:00 PM

Change font color for php syntax
 
Add this code at the top of showthread.php
PHP Code:

 <? 
ini_set('highlight.string', '#FFFFFF'); 
ini_set('highlight.comment', '#FFFFFF'); 
ini_set('highlight.keyword', '#FFFF00'); 
ini_set('highlight.bg', '#FFFFFF'); 
ini_set('highlight.default', '#FFFFFF'); 
ini_set('highlight.html', '#FFFFFF'); 
?>


DrewM 04-10-2006 09:55 AM

what does this do? And Why not use plugins?

puertoblack2003 04-10-2006 10:24 AM

need more info or a screen shot

imported_infitech 04-10-2006 12:13 PM

Quote:

Originally Posted by Larrysw
what does this do? And Why not use plugins?

It changes the color of the php syntax highlight since it is an automatic serverside setting set in the php.ini file on your server.

Snake 04-10-2006 05:27 PM

Not bad, well done! ;)

Mystics 04-12-2006 08:31 AM

Just use the plug-in hook bbcode_create :)
PHP Code:

ini_set("highlight.bg","#CCCCCC");
ini_set("highlight.comment","#DDCCCC");
ini_set("highlight.default","#9393F2");
ini_set("highlight.html","#000000");
ini_set("highlight.keyword","#5DC95D");
ini_set("highlight.string","#F35B5B"); 



All times are GMT. The time now is 08:14 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.01405 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete