View Full Version : Problem with BB Code
Bryan
07-04-2005, 02:51 PM
Hey anyone,
On the news script, it does not execute the "doHTML" tag, although it does of course on the forums. I am using IPB 1.3 and have the latest version of the script and I would be glad if anyone could help me with this.
Thanks
Patrick
07-04-2005, 05:28 PM
Hmm, I meant to put this functionality in a long time ago.
Could you give me an example of what dohtml does? (Post some example code).
Bryan
07-04-2005, 08:41 PM
The doHTML just allows you to type html code (which the forum executes) when it's inside the tags.
e.g. - If I wanted a table, I put in the doHTML tags:
<TABLE BORDER="1" BORDERCOLOR="red">
<TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR><TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR>
</TABLE>
and the forum will show it as a table...(i'm sure you've caugh on long ago!)
It has to be enabled in the forum permissions.
Patrick
07-05-2005, 12:38 AM
Yeah, that is what I thought it did. I just needed to make sure. I will see if I can come up with something real quick.
testebr
07-06-2005, 11:59 AM
I want this too and [php] that make highlight in php codes
Patrick
07-06-2005, 05:09 PM
I want this too and [php] that make highlight in php codes
That functionality already exists. What version are you using of the forum-news script?
Patrick
07-06-2005, 05:29 PM
The doHTML just allows you to type html code (which the forum executes) when it's inside the tags.
e.g. - If I wanted a table, I put in the doHTML tags:
<TABLE BORDER="1" BORDERCOLOR="red">
<TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR><TR>
<TD>Cell Data</TD>
<TD>Cell Data</TD>
</TR>
</TABLE>
and the forum will show it as a table...(i'm sure you've caugh on long ago!)
It has to be enabled in the forum permissions.
Here you go, place this file in forum-news/classes/sources/Forums/ folder. It will overwrite your old Invision 1.3 class file with one that contains the updated changes.
Tell me how works out, as I have only tested it in theory, not with the feature actually enabled in Invision Board.
(Right click, save target as...)
Bryan
07-09-2005, 05:21 PM
OK, thanks...
I'll try it out and post back soon. :)
________________________________________
Post Back:
It works ok - but it has one problem that i found, it does not display images.
EXAMPLE:
<img src="http://domain.com/image.jpg">
You just get a broken image with some of the code displayed after it. I did check the image.
Patrick
07-09-2005, 06:02 PM
It would be helpful if you could give me a URL to test this out on. Where exactly do you enabled this in invision anyway?
Bryan
07-11-2005, 02:21 PM
You enable the "doHTML" in the settings for a forum. You can change the settings or do it when you create a new forum. It's under the heading: Postable Forum Settings.
Patrick
07-11-2005, 02:33 PM
It looks like that is a invision board protection or bug involving the img tags.
This topic: http://www.dev-forums.com/index.php?showtopic=171
Is suppose to have an image in it, but for some reason invision removed it completely. It has the text that was between the doHTML tags but not the <img> tag.
Can you confirm that you are receiving the same results on your forum? If you are receiving different results, I would love to have a look at your forum (just PM me the URL if you do want it publicly available).
Bryan
07-11-2005, 03:12 PM
On my forum, the image still displays in the forum post using the <img> tag.
Patrick
07-11-2005, 04:01 PM
Well, it doesn't on mine and I have no way to test it since you refuse to provide me with any URL.
Until then this will just remain an open issue as I am unable to test the matter.
Bryan
07-11-2005, 04:10 PM
I can give you a URL ... sure.
Here is my site (on which I'm using the script): http://gtaireland.com
Patrick
07-11-2005, 06:09 PM
Which news post has the image?
Bryan
07-12-2005, 10:09 AM
Oh, sorry :( - I had just put the post as normal so the image would display. I'll show you the post now which is where the problem...
http://gtaireland.com/index.php?id=news#230
(The one about SA-MP.)
Thanks
Patrick
07-12-2005, 12:03 PM
That is about what I expected.
The script avoids conflicts by parsing data in a specific order.
I will see if I can come up with some kind of fix.
What is happening specifically is that the URL parsing feature is picking up on the http:// of your image source.
Bryan
07-18-2005, 08:40 AM
Hey, thanks for your help. You've done pretty much what you could. I appreciate it!
I was just wondering if it would be possible to edit the IPB 2 source for me like you did with the IPB 1.3. My forums got hacked, so I upgrade to IPB 2. In IPB 2, it allows you to type HTML straight into the post without any tags (if it's enabled). Could you do this for me. HTML is not executed again.
You don't have to go to the trouble if you don't want to, just a request.
Thanks, Forum News Script is awesome!
lasersight202
09-11-2005, 03:53 AM
would it at all be possible for a similar BBcode translate for [HTML] and [ /HTML]? I'm using phpbb2, which does support straight HTML if enabled, however I prefer using the (custom add-on) of the html tags, that when HTML is between them it uses it. Any help would be much, much appreciated :)
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.