View Full Version : Anyone tell me how to do this? Maybe Kevin - TubeDogg
Hooper
Fri 7th Nov '03, 12:22am
Hey Kevin or whomever might assist,
How do I get this image,
<img src="images/arrowr.gif" width="7" height="7">
To show up in this string before it shows the thread?
echo("<td bgcolor=\"$bc\" style=\"font-family:$f; font-size:$fs; color:$tc;\" align=\"center\"><a href=\"$url/member.php?action=getinfo&userid=$threads[userid]\" style=\"color: $lc;\">$threads[lastposter]</a></td>\n");
I can't get the image to echo to the page. It barfs.
Thanks
Hooper
DirectPixel
Fri 7th Nov '03, 1:34am
echo("<img src=\"images/arrowr.gif\" width=\"7\" height=\"7\">\n");
Just add that before your echo()... should work...
Hooper
Fri 7th Nov '03, 2:57am
Thank you,
Appreciate that. It doesn't show the image but it's not barfing either. :D
Thats closer for sure.
Faruk
Fri 7th Nov '03, 9:35am
Echoing an image in front of a <td> tag will not work, as that is an invalid place for content (ie. you may not put images or text there). Either put it in front of the <table> tag, or inside the <td> tag (ie. <td blablabla><img src="..."></td>)
Xenon
Fri 7th Nov '03, 11:01am
echo("<img src=\"images/arrowr.gif\" width=\"7\" height=\"7\">\n");
Just add that before your echo()... should work...
it's not needed to escape the quotes, just use singel quotes to start the string:
echo '<img src="images/arrowr.gif" width="7" height="7">';
austin.p
Fri 7th Nov '03, 2:23pm
Right click on the red x if one is displayed, click properties and verify that the path is correct to the image.
If there is no red x, then you should try placing it in a cell/row/colonm/whatever.
Hooper
Sat 8th Nov '03, 10:32am
Hi gentleman,
I have it working it seems you all were right. What DP wrote was correct and what KuraFire wrote fixed the remaining issue. It works now.
Thank you,
Hooper
Faruk
Sat 8th Nov '03, 5:32pm
you're welcome, glad you got it to work :)
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.