Hellboy75
  •  Hellboy75
  • 65.2% (Friendly)
  • YAF Camper Topic Starter
2014-04-17T14:19:38Z
Hi, i have added two bbcode for special needs !

1 - Embed HTML: load url into iframe. Possible enhancement : auto fit to content (height)
2 - Custom IMG : Show image in topic with it's real size

XML list:

<YafBBCodeList>
  <YafBBCode>
    <Name>EMBEDHTML</Name>
    <Description>[EMBEDHTML]url[EMBEDHTML]</Description>
    <OnClickJS />
    <DisplayJS />
    <EditJS />
    <DisplayCSS />
    <SearchRegex>\[embedhtml\](?&lt;inner&gt;.+?)\[/embedhtml\]</SearchRegex>
    <ReplaceRegex>&lt;iframe id="contents" width="100%" height="800px" frameborder="0" scrolling="auto" marginheight="0" marginwidth="0" src="${inner}"&gt;&lt;/iframe&gt;</ReplaceRegex>
    <Variables />
    <UseModule>false</UseModule>
    <ModuleClass />
    <ExecOrder>1</ExecOrder>
  </YafBBCode>
  <YafBBCode>
    <Name>CUSTOMIMG</Name>
    <Description>[CUSTOMIMG]url[CUSTOMIMG]</Description>
    <OnClickJS />
    <DisplayJS />
    <EditJS />
    <DisplayCSS />
    <SearchRegex>\[customimg\](?&lt;inner&gt;.+?)\[/customimg\]</SearchRegex>
    <ReplaceRegex>&lt;img src="${inner}"/&gt;</ReplaceRegex>
    <Variables />
    <UseModule>false</UseModule>
    <ModuleClass />
    <ExecOrder>1</ExecOrder>
  </YafBBCode>
</YafBBCodeList>
Sponsor

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved