Changing BBCode & HTML output?

Forum
Last Post
Threads / Messages

Tequila

The Grim One
Staff member
Dev Staff
Joined
Jan 21, 2009
Messages
1,312
Points
0
Location
Souther Tier, New York State
Mysidian Dollar
68,306
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.
Code:
[url=adopt.level.url][img]adoptable.url[/img][/url]
 
Try changing:

PHP:
	$article_content = $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">[img]http://www.".$dname."".$spath."/get.php?id=".$cid."[/img]
	Creature Name: ".$name."
	[url=http://www.".$dname."".$spath."/levelup.php?id=".$cid."]Level this creature up!  Click Here![/url]</textarea><br>";

To:

PHP:
	$article_content = $article_content."<b><br><br>BBCODE:</b><br><textarea name=\"textarea\" cols=\"50\" rows=\"4\">[url=http://www.".$dname."".$spath."/levelup.php?id=".$cid."][img]http://www.".$dname."".$spath."/get.php?id=".$cid."[/img][/url]
</textarea><br>";

See if that works better. That should just make a clickable image that leads directly to the levelup page. :)
 
Can you use this same thing to change the HTML output?
I tried doing the same thing and changeing it from the default to

Code:
$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.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top