Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   now playing script! (http://forums.winamp.com/showthread.php?t=130553)

xe-cute 1st April 2003 18:19

now playing script!
 
I wanna change the following script i got off someone here to show all info/strings on one line in the display and not under each other and i have tried everything i can think of to position it this was but with no luck can anyone help?

this is the section giving me grief:

// positioning below
$px = (imagesx($im)-5*strlen($string1))/2;
ImageString($im,1,$px,5,$string1,$text_color1);
// (image,font (from 1 to 5),starting x position, y position,line of text,color)
$px = (imagesx($im)-5*strlen($string2))/2;
ImageString($im,1,$px,20,$string2,$text_color2);
$px = (imagesx($im)-5*strlen($string3))/2;
ImageString($im,1,$px,30,$string3,$text_color2);
$px = (imagesx($im)-5*strlen($string4))/2;
ImageString($im,1,$px,45,$string4,$text_color1);
ImagePng($im);

thanks in advance for any help!

FesterHead 2nd April 2003 02:47

code:
ImageString($im,1,1,0,$string1.$string2.$string3.$string4,$text_color1);
ImagePng($im);


xe-cute 2nd April 2003 12:55

Thankyou so much that is spot on :) :up:


All times are GMT. The time now is 17:05.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.