Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline Hellboy75  
#1 Posted : 17 April 2014 16:19:38(UTC)
Hellboy75


Rank: YAF Camper

Reputation:

Medals: Pro Customer: Supports the YAF.NET Project

Joined: 13/09/2013(UTC)
Posts: 24
Man
France

Thanks: 9 times
Was thanked: 2 time(s) in 2 post(s)
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:

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

Edited by moderator 18 April 2014 15:50:37(UTC)  | Reason: added syntax highlighting

thanks 1 user thanked Hellboy75 for this useful post.
francoz on 09/06/2014(UTC)
Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Similar Topics
BBCode Bug or i'm to stupid (YAF Issues & Bugs Discussion)
by TenEniunlsl 18/07/2018 13:58:01(UTC)
[img] BBCode does not work (YAF Issues & Bugs Discussion)
by tecman 06/02/2017 10:31:40(UTC)
Need help to make a BBCode... (YAF General)
by JP 14/01/2017 19:04:45(UTC)
YAF CKEditor pasted URL versus BBCode URL (YAF Installation/Setup)
by Mariette 31/08/2016 15:34:07(UTC)
Attached files show bbcode instead of rendering image or link (YAF Installation/Setup)
by paulcreedy 20/04/2015 17:09:29(UTC)
Can posts be formatted with tables? BBCodes? (YAF Issues & Bugs Discussion)
by QTLogic 03/02/2015 09:06:30(UTC)
test bbcode (YAF Installation/Setup)
by dotneter 15/05/2014 14:55:17(UTC)
BBCode-embedded images don't appear on Galaxy phones (YAF Issues & Bugs Discussion)
by captainspud 25/07/2013 06:36:47(UTC)
Upgrade BBcode checkbox is back (YAF Issues & Bugs Discussion)
by johnk 02/06/2013 05:55:28(UTC)
Signature BBCODE error (YAF Issues & Bugs Discussion)
by john-boy 01/04/2013 21:48:30(UTC)
BBCode: Format Code In Post (YAF Installation/Setup)
by baw02141 17/02/2013 16:46:32(UTC)
How do you create your own BBCodes? (YAF General)
by Trickstar 19/08/2012 01:06:13(UTC)
WYSWYG Yaf Standard YAFBBCODE Editor (YAF General)
by ngtrian 17/07/2012 02:56:39(UTC)
Issue with BBcode in postings (YAF Issues & Bugs Discussion)
by Trickstar 09/07/2012 04:36:44(UTC)
Problem with CKEditor(BBCode) (YAF Issues & Bugs Discussion)
by farbod.kain 13/04/2012 18:13:08(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error