It is currently Sat Apr 27, 2024 8:52 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post Post subject: [PHP] BBCode
 
Offline
Godlike Poster
Godlike Poster
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Sun Oct 16, 2005 9:42 am
Posts: 8798
Karma: 17

Location: Imagine in your mind a posh country club
Steam Login Name: azcn2503
Does this plugin/module exist still? If so, it would be really nice to have it for the syntax highlighting in the programming section of user forums.

_________________
Follow your heart and live the dream <3


Mon Dec 15, 2008 5:38 pm 
 Profile E-mail  
 
 Post Post subject: Re: [PHP] BBCode
 
Offline
Top Gun (Admin)
Top Gun (Admin)
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar

Joined: Mon Sep 12, 2005 6:48 am
Posts: 23428
Karma: 11

Location: This forum.
Steam Login Name: Skillers1990
Erm, it kinda exists, but it's not too good;

Code:
[code=php]<?php

echo "hello world";

IF($skillers == 1337)
  {
  echo "
Congratulations, that is right!";
  mysql_query("INSERT INTO pros (user_name, user_powerlevel) VALUES (Skillers, 9001)");
  }
ELSE
  {
  echo "
You're wrong, noobs";
  mysql_query("INSERT INTO failuers (user_name, user_powerlevel) VALUES ($currentuser, -1000)");
  }

?>[/code]


Gives;

Code:
<?php

echo 
"hello world";

IF(
$skillers == 1337)
  {
  echo "<br />Congratulations, that is right!";
  mysql_query("INSERT INTO pros (user_name, user_powerlevel) VALUES (Skillers, 9001)");
  }
ELSE
  {
  echo "<br />You're wrong, noobs";
  mysql_query("INSERT INTO failuers (user_name, user_powerlevel) VALUES ($currentuser, -1000)");
  }

?>


If you know how to improve this syntax highlighting, it woul probably be implemented. I have a feeling it may be the colour scheme, I'll see what ProSilver gives later.

_________________
I was getting bored of this sig, and I realised I actually prefer small sigs ><
Join us on IRC! | TheSkillers.co.uk is under construction (still)!
Games: Steam | XFire | GFWL


Mon Dec 15, 2008 5:45 pm 
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y