[Code][Challenge] Rainbow Text

phpBB3 and MOD challenges setup by the staff to test and challenge your phpBB3 coding skills.

Re: [Code][Challenge] Rainbow Text

Postby stitch626 » 11 Oct 2007, 19:03

Highway of Life wrote:
stitch626 wrote:I want that script :beg:

I provided it on the first post of this very topic. ;)
It has a problem though, I need to find another way to split by characters. str_split(); does not support UTF-8. :think:


So, what do I do with this script? How do I use it?
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Code][Challenge] Rainbow Text

Postby Highway of Life » 11 Oct 2007, 21:40

Do you have a localhost PHP/Apache setup?
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Code][Challenge] Rainbow Text

Postby stitch626 » 12 Oct 2007, 07:24

Highway of Life wrote:Do you have a localhost PHP/Apache setup?


Sure do :)
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [Code][Challenge] Rainbow Text

Postby Highway of Life » 12 Oct 2007, 08:58

Then save the code I sent you in a file called "rainbow_text.php"
Replace the "echo" line with $_GET['text'] or type in your own text in that line.
Then navigate to localhost/rainbow_text.php it will print out your BBCode for pasting in the forum.
If you used the $_GET['text'] option, you might want to build a small form field with an input box and type your text in there, which will then print it out in BBCode for pasting into a post.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Code][Challenge] Rainbow Text

Postby stitch626 » 12 Oct 2007, 19:35

Code you sent me? You didn't send me any code :scratch:
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [Code][Challenge] Rainbow Text

Postby Highway of Life » 12 Oct 2007, 21:37

stitch626 wrote:Code you sent me? You didn't send me any code :scratch:

Sorry, code in first post. :P
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Code][Challenge] Rainbow Text

Postby topdown » 19 Nov 2007, 01:37

CAN I GET IN THIS TOO, or is this a private party LOL! ... I want to party too!! Slick script Highway!! :)

I can get the font family to change on my machine preview, but not in the BBC. :scratch:
Guess I need to figure that out yet.
Do not PM me for Support unless I give permission in a post......PM's only help one, posts help everyone !
User avatar
topdown    
STG Styles Leader
STG Styles Leader
 
Posts: 3030
Joined: 01 Oct 2007, 22:56
Location: Handyman's harddrive
Favorite Team: STG Teams
Gender: Male
phpBB Knowledge: 9

Re: [Code][Challenge] Rainbow Text

Postby Owen » 02 Jan 2008, 09:06

[style].rainbow {font-family: Edwardian Script ITC, Lucida Calligraphy, Lucida Handwriting; font-size:200%;}[/style]Great little script, why cant bbcodes parse php out of the box
Owen    
Crewman
Crewman
 
Posts: 8
Joined: 05 Dec 2007, 13:52
Gender: Male

Re: [Code][Challenge] Rainbow Text

Postby stitch626 » 10 Feb 2008, 12:54

Hey Highway, have you figured out how to make the Scripted fonts show with this script?
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [Code][Challenge] Rainbow Text

Postby weirdpeople » 24 Jun 2008, 07:59

This is so cool this is the collest script ever :)
weirdpeople    
Crewman
Crewman
 
Posts: 3
Joined: 24 Jun 2008, 07:28
Gender: Male
phpBB Knowledge: 3

PreviousNext

Return to phpBB3 Challenges at phpBB Academy

Who is online

Users browsing this forum: No registered users and 2 guests