| | Yup, I enter the above link as image. For example, CODE [img]http://buffalohelp.net/dev/random_quotes.png[/img] and this is what it looks like ![]() I guess displaying text as a graphic isn't really working for any forum... |
|
i think in order to display the php to run on here you would have to put the <?php insert "http://buffalohelp.net/dev/random_quotes.png" ?> something like that (coding is a bit off but you get the idea)
if you can work the php to something like that it might work then. In http://www.moody.trap17.com/public_html is a folder named sig.png. In that folder is a file named index.php It has this code: CODE <?php Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); Header("Pragma: no-cache"); Header("Content-Type: image/gif"); srand((double)microtime()*1000000); $randnum = rand(0,1,2,3); if($randnum == 0) { readfile("http://img398.imageshack.us/img398/8074/siggymoody2copy7ff.jpg"); } else if($randnum == 1) { readfile("http://img8.imageshack.us/img8/7831/siggymoody3copy7rm.jpg"); } else if($randnum == 2) { readfile("http://img109.imageshack.us/img109/6484/moodysig9pd.gif"); } else if($randnum == 3) { readfile("http://img109.imageshack.us/img109/9291/moodysig23bl.png"); } ?> The images are uploaded and in my CP is this: CODE [img]http://moody.trap17.com/sig.png[/img] Gift sigs recieved from: truefusion, mayank It gives a 'user posted image' error
Try this code:
CODE <?php
Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); Header("Pragma: no-cache"); Header("Content-Type: image/gif"); srand((double)microtime()*1000000); $randnum = rand(0,3); if($randnum == 0) { readfile("http://img398.imageshack.us/img398/8074/siggymoody2copy7ff.jpg"); } else if($randnum == 1) { readfile("http://img8.imageshack.us/img8/7831/siggymoody3copy7rm.jpg"); } else if($randnum == 2) { readfile("http://img109.imageshack.us/img109/6484/moodysig9pd.gif"); } else if($randnum == 3) { readfile("http://img109.imageshack.us/img109/9291/moodysig23bl.png"); } ?> QUOTE(Moody @ Sep 24 2005, 05:15 AM) Yeah, no problem.And if you don't want to waste bandwidth, then you can try this shorter code: CODE <?php Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); Header("Pragma: no-cache"); Header("Content-Type: image/gif"); // Header info, forces no cache and image type of GIF $sigs = file("http://sang.trap17.com/sig.png/list.txt"); //replace the URL inside with your list.txt $blah = $sigs[rand(0, count($sigs) - 1)]; $blah = substr($blah, 0, strlen($blah) - 1); readfile($blah); ?> What that does is it finds a list.txt inside your sig.png folder, picks a random line, and displays it. Your list.txt file is basically a list of all the URLs to your sigs...one per line. Just check out mine if you don't know what I'm talking about: http://sang.trap17.com/sig.png/list.txt This is good if you don't want to waste your own webspace and bandwidth.
Hi,
I'm using the code above but it never displays the last image on my list and occasionaly nothing displays at all. CODE <?php Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); Header("Pragma: no-cache"); Header("(anti-spam-content-type:) image/png"); // Header info, forces no cache and image type of GIF $sigs = file("http://www.cjb.cc/members/xtrasux/gift.jpg/list.txt"); //replace the URL inside with your list.txt $blah = $sigs[rand(0, count($sigs) - 1)]; $blah = substr($blah, 0, strlen($blah) - 1); readfile($blah); ?> CODE [url=http://img175.imageshack.us/img175/2914/crossnames0hf.png]http://img175.imageshack.us/img175/2914/crossnames0hf.png[/url] [url=http://img.photobucket.com/albums/v240/pistons50/present4staff.png]http://img.photobucket.com/albums/v240/pis...esent4staff.png[/url] [url=http://i21.photobucket.com/albums/b287/ScottGfx/GfxsectorStaffSig.png]http://i21.photobucket.com/albums/b287/Sco...torStaffSig.png[/url] [url=http://img399.imageshack.us/img399/9938/staffpresent8tr.png]http://img399.imageshack.us/img399/9938/staffpresent8tr.png[/url] Link do I need to change something, or is it something to do with my host?
change this
CODE $sigs = file("http://www.cjb.cc/members/xtrasux/gift.jpg/list.txt"); //replace the URL inside to that CODE $sigs = file("http://www.cjb.cc/members/xtrasux/gift.png/list.txt"); //replace the URL inside
Recent Queries:-
Keywords : make, sig, rotator, people, multiple, sigs
Windows XP (17) Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be easy to implement (0) In case you haven't noticed, I have a different Avatar display on the Forum each time the page Create dynamic sigs for multiple users using .htaccess and RewriteRule (0) Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create (0) How to Group Multiple Sets of Data in Microsoft Excel 2007 Sometimes you may open several How to do that (0) Hi everyone, Ok before I start, I want to let you guys know the meanings of some of the you can use more than one at a time (8) Multiple Classes in Css Styles Classes are used in html pages to give certain defined (Easier, and more Efficient) (7) Hey Trap, It's Mr. Panda, and I'm introducing a signature rotator script I came across This is a script that doesnt requre SQL (3) first off make a login.html page Code: QUOTE Admin Login Username: Password: randomly rotate images (6) First, It's really confusing. Do you know any tutorials on Image Manipulation on PHP? Looking for make, sig, rotator, people, multiple, sigs
|
![]() How To Make A Sig Rotator - for people with multiple sigs |