The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Displaying html code within posts

2 posters

Go down

Displaying html code within posts Empty Displaying html code within posts

Post by pinkspoons April 6th 2009, 4:53 pm

I've been trying to display standard html code for an image hyperlink within my post using the [code] tag, but every time I click 'send' the forum automatically changes the html to conform to BBCode formating, thus making it useless. I've also tried it without the tags and with html and/or BBCode disabled for the post.

So what should read, for example:

< img src="http://www.ooooo.oo/oo.gif" border="0" alt="View Forum">

Becomes (without the spaces):

< img src="[url=http://www.ooooo.oo/oo.gif]http://www.ooooo.oo/oo.gif[ /url]" border="0" alt="View Forum">

Is there an alternative tag I can use, or a possible workaround?

Thanks in advance.
avatar
pinkspoons
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

Displaying html code within posts Empty Re: Displaying html code within posts

Post by Carryn April 6th 2009, 5:14 pm

Did you allow HTML code for messages?

(Admin panel>General tab> messages and email >configuration>allow HTML)

You may also have to activate it in your profile>preferences: always allow HTML
avatar
Carryn
Active Poster

Female Posts : 1399
Reputation : 86
Language : none.
Location : somewhere not on the support forum

Back to top Go down

Displaying html code within posts Empty Re: Displaying html code within posts

Post by pinkspoons April 6th 2009, 5:24 pm

Hello, and thanks for the reply.

Yup - they were both set to 'yes'.
avatar
pinkspoons
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

Displaying html code within posts Empty Re: Displaying html code within posts

Post by Carryn April 6th 2009, 6:20 pm

Code:
<a href="URL website"><img src="URL of image"></a>
avatar
Carryn
Active Poster

Female Posts : 1399
Reputation : 86
Language : none.
Location : somewhere not on the support forum

Back to top Go down

Displaying html code within posts Empty Re: Displaying html code within posts

Post by pinkspoons April 6th 2009, 6:27 pm

This is the actual code I'm trying to display... and I've just noticed that it doesn't seem to be doing it on here - so it must be a set-up issue on the forum I'm on!

Code:

<!-- 20th Century Forum -->
<table border="0" cellpadding="10" cellspacing="0" align="center">
<tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('http://www.20thcenturyforum.com');">
<img src="http://www.zeitgeist-i.com/c20/banner1.gif" border="0" alt="View the 20th Century Forum"></a></td></tr>
</table>
<!-- 20th Century Forum -->

On my board it automatically changes to:

Code:

<!-- 20th Century Forum -->
<table border="0" cellpadding="10" cellspacing="0" align="center">
<tr><td align="center"></td></tr>
<tr><td align="center"><a href="#" onclick="javascript:window.open('http://www.20thcenturyforum.com');">
<img src="[url=http://www.zeitgeist-i.com/c20/banner1.gif]http://www.zeitgeist-i.com/c20/banner1.gif[/url]" border="0" alt="View the 20th Century Forum"></a></td></tr>
</table>
<!-- 20th Century Forum -->

How frustrating!
avatar
pinkspoons
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum