Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues
Author Message
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1242

PostPosted: Sun Oct 10, 2010 11:41 am Reply with quote

How can I insert a script into my "messages" on the front page.

The script:
Quote:
<?php
$img_number = imagecreate(275,25);
$backcolor = imagecolorallocate($img_number,102,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number = " Your IP is $_SERVER[REMOTE_ADDR]";

Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/jpeg");
imagejpeg($img_number);
?>


Shows a graphical representation of the user's IP. When I add it via "source" it removes it when saved. I can't find a way ...

Cheers
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Oct 10, 2010 1:00 pm Reply with quote

You can not do this with the editor. It would have to be hard coded if it is PHP.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
dad7732
PostPosted: Sun Oct 10, 2010 1:15 pm Reply with quote

Palbin wrote:
You can not do this with the editor. It would have to be hard coded if it is PHP.


Sorta figured that but is there a way to get it to display in the "messages" ? Or even above or below the messages? Could do it in a block I think but I don't want that.

Thanks
 
Palbin
PostPosted: Sun Oct 10, 2010 2:31 pm Reply with quote

Start with the message_box function in mainfile.
 
dad7732
PostPosted: Sun Oct 10, 2010 3:40 pm Reply with quote

Palbin wrote:
Start with the message_box function in mainfile.


Who, me?? I have problems programming the TV but I'll have a look.

Thanks
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©