Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2009, 04:33 PM
Sora Sora is offline
Member
 
Join Date: Jan 2009
Posts: 6
Credits: 1,091
Sora
Default 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.
Reply With Quote
  #2  
Old 04-18-2009, 04:47 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,059
Ashje
Default 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'>
That seems to work for me.
Reply With Quote
  #3  
Old 04-18-2009, 05:25 PM
Sora Sora is offline
Member
 
Join Date: Jan 2009
Posts: 6
Credits: 1,091
Sora
Default 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.
Reply With Quote
  #4  
Old 04-18-2009, 06:15 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,151
Tequila is on a distinguished road
Default RE: Html in content?

You have to use the BBCode tags, it doesn't accept HTML tags.
Code:
[img]your.image.address[/img]
Reply With Quote
  #5  
Old 04-18-2009, 06:41 PM
Sora Sora is offline
Member
 
Join Date: Jan 2009
Posts: 6
Credits: 1,091
Sora
Default 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.
Reply With Quote
  #6  
Old 04-18-2009, 06:52 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,693
BMR777 is on a distinguished road
Default RE: Html in content?

Quote:
Originally Posted by Sora
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.
Try wrapping it in a tag.

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);
Reply With Quote
  #7  
Old 04-21-2009, 02:34 PM
Sora Sora is offline
Member
 
Join Date: Jan 2009
Posts: 6
Credits: 1,091
Sora
Default RE: Html in content?

Thanks for that, fixed the problem!
Reply With Quote
  #8  
Old 04-21-2009, 05:57 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,059
Ashje
Default 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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 04:19 PM.

Currently Active Users: 600 (0 members and 600 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636