![]() |
simple code modifying?
Im trying to make it so that if there's an <img src=""> then it wont just show as n X, and instead it wont show nothing. I came up with this code but it isn't working AT ALL..........anyone know what's wrong?
PHP Code:
|
Maybe this would work better:
PHP Code:
|
Thanks for trying but i got this :dead:
Parse error: parse error, unexpected '<' in /home/urbandy/public_html/forums/member.php on line 1273 |
PHP Code:
Note the ' instead of the ". If you use a ", PHP will think you close the if ;) |
Thanks again..............This time i did not get an error, however, the X still shows up when <img src=""> appears
|
Ah, you are tring to replace <img src="">.
Then try this: PHP Code:
|
i was doing "BADGES / AWARDS HACKETTE v1.0 By Kaelon of Alleria.com" but it wouldnt work for some reason so now i need to maek my own thing and what i did was i put <img src="$userinfo[field6"> and then with the ones with no badges it appears as <img src="">.........his code looked something like this
PHP Code:
|
Could you please explain that post again, I did not understand you...
|
I put <img src="$userinfo[field6"> in the getinfo template. The purpose of this is so that if field 6 has a link then the link will be posted as a pic. However, if that field is blank then it will show up as <img src="">. This is why i want to find a way to make it so that <img src=""> will just show up as nothing instead of an X
|
This isn't the forum for vB/PHP questions, moved :)
|
All times are GMT. The time now is 04:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|