#1
|
|||
|
|||
Html in content?
Hi, hopefully I can explain this well enough.
I'd like to use html in the content updates. To cut a long story short, I'd like the image of a character on every page (eg. Character X on the welcome page, text beside him, Character Y on the extra page, text beside him, etc.). However, whilst the layout works fine on a testing html document, I can't actually get the script to accept the img src tag on the different pages. Is there a way to do this? So far, I've only been able to do it on the adopt page. If I haven't explained it well enough, let me know. Thanks for any help. |
#2
|
|||
|
|||
RE: Html in content?
img src is what I have alot of trouble with as well. Try this:
Code:
<img src='image url here' alt='alternative text here' border='border width here'> |
#3
|
|||
|
|||
RE: Html in content?
Nope, didn't work :( In fact, now that I double check, I can't get the article section to accept any html tags at all.
|
#4
|
||||
|
||||
RE: Html in content?
You have to use the BBCode tags, it doesn't accept HTML tags.
Code:
[img]your.image.address[/img] |
#5
|
|||
|
|||
RE: Html in content?
Thank you for that. Is there any way to align an image to the left at all? Sorry, I don't use BBCodes that much.
|
#6
|
|||
|
|||
RE: Html in content?
Quote:
Here's a BBCode list, with HTML equivelents: Code:
$text = preg_replace('|\[b\](.+?)\[\/b\]|i', '<strong>$1</strong>', $text); $text = preg_replace('|\[i\](.+?)\[\/i\]|i', '<em>$1</em>', $text); $text = preg_replace('|\[u\](.+?)\[\/u\]|i', '<u>$1</u>', $text); $text = preg_replace('|\[img\](.+?)\[\/img\]|i', '<img src="$1" border="0">', $text); $text = preg_replace('|\[url=(.+?)\](.+?)\[\/url\]|i', '<a href="$1" target="_blank">$2</a>', $text); $text = preg_replace('|\[color=(.+?[^;])\](.+?)\[\/color\]|i', '<span style="color:$1;">$2</span>', $text); $text = preg_replace('|\[size=(.+?[^;])\](.+?)\[\/size\]|i', '<span style="font-size:$1;">$2</span>', $text); $text = preg_replace('|\[left\](.+?)\[\/left\]|i', '<span style="text-align: left;">$1</span>', $text); $text = preg_replace('|\[right\](.+?)\[\/right\]|i', '<span style="text-align: right;">$1</span>', $text); $text = preg_replace('|\[center\](.+?)\[\/center\]|i', '<center>$1</center>', $text); |
#7
|
|||
|
|||
RE: Html in content?
Thanks for that, fixed the problem!
|
#8
|
|||
|
|||
RE: Html in content?
Oh, this is for article content. If you want HTML, just get rid of the BBCode Parse. That's what I did.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content Manager | Nemesis | Other Chat | 14 | 07-12-2012 12:22 AM |
Letting admins see certain content on a page? | rickasawr | Questions and Supports | 2 | 05-22-2011 12:01 PM |
Change Content | Rozel | Questions and Supports | 6 | 05-11-2011 09:47 AM |
Editing Content | Rozel | Questions and Supports | 4 | 01-29-2011 12:14 PM |
Index content on levelup pages? | Tequila | Questions and Supports | 6 | 02-27-2010 03:03 PM |
What's New? |
What's Hot? |
What's Popular? |