+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 19

Thread: Problem with BB Code

  1. Join Date
    Jul 2005
    Posts
    13

    Problem with BB Code

    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

  2. Join Date
    Aug 2004
    Posts
    781

    Problem with BB Code

    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).

  3. Join Date
    Jul 2005
    Posts
    13

    Problem with BB Code

    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:

    [doHTML]
    <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>
    [/doHTML]

    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.

  4. Join Date
    Aug 2004
    Posts
    781

    Problem with BB Code

    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.

  5. Join Date
    Jul 2005
    Posts
    5

    Problem with BB Code

    I want this too and [php] that make highlight in php codes

  6. Join Date
    Aug 2004
    Posts
    781

    Problem with BB Code

    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?

  7. Join Date
    Aug 2004
    Posts
    781

    Problem with BB Code

    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:

    [doHTML]
    <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>
    [/doHTML]

    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...)
    Attached Files

  8. Join Date
    Jul 2005
    Posts
    13

    Problem with BB Code

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

  9. Join Date
    Aug 2004
    Posts
    781

    Problem with BB Code

    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?

  10. Join Date
    Jul 2005
    Posts
    13

    Problem with BB Code

    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.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts