View Full Version : Changing BBCode & HTML output?
Tequila
02-04-2009, 06:55 PM
How do you change the BBCode & HTML output to only display the image of the adoptable and so it won't give you an error afterward?
I tried to do it, but only got error messages before I reuploaded the original file.
I want the output to do something like this, so that there is less code to place for the users.
adoptable.url (adopt.level.url)
BMR777
02-04-2009, 07:20 PM
Try changing:
$article_content = $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">http://www.".$dname."".$spath."/get.php?id=".$cid."
Creature Name: ".$name."
Level this creature up! Click Here! (http://www.".$dname."".$spath."/levelup.php?id=".$cid.")</textarea><br>";
To:
$article_content = $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">http://www.".$dname."".$spath."/get.php?id=".$cid." (http://www.".$dname."".$spath."/levelup.php?id=".$cid.")
</textarea><br>";
See if that works better. That should just make a clickable image that leads directly to the levelup page. :)
Tequila
02-05-2009, 07:48 AM
That worked! Now I'll have to mimic it for the HTML. Thanks!
LilPixie
02-09-2009, 06:50 PM
Can you use this same thing to change the HTML output?
I tried doing the same thing and changeing it from the default to
$article_content = $article_content."<b>HTML:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\"><a href=\"http://www.".$dname."".$spath."/levelup.php?id=".$cid."\"><img src=\"http://www.".$dname."".$spath."/get.php?id=".$cid."\"></a><br>
Level this creature up! Click Here!</a></textarea>";
and it didn't change on the website.
EDIT: LOL woops, r dumb. Fixed.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.