The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
|||
|
|||
Maybe this would work better:
PHP Code:
|
#3
|
||||
|
||||
Thanks for trying but i got this :dead:
Parse error: parse error, unexpected '<' in /home/urbandy/public_html/forums/member.php on line 1273 |
#4
|
|||
|
|||
PHP Code:
Note the ' instead of the ". If you use a ", PHP will think you close the if |
#5
|
||||
|
||||
Thanks again..............This time i did not get an error, however, the X still shows up when <img src=""> appears
|
#6
|
|||
|
|||
Ah, you are tring to replace <img src="">.
Then try this: PHP Code:
|
#7
|
||||
|
||||
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:
|
#8
|
|||
|
|||
Could you please explain that post again, I did not understand you...
|
#9
|
||||
|
||||
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
|
#10
|
||||
|
||||
This isn't the forum for vB/PHP questions, moved
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|