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


Rank: YAF Camper

Reputation:

Medals: Pro Customer: Supports the YAF.NET Project

Joined: 9/13/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 Friday, April 18, 2014 7:50:37 AM(UTC)  | Reason: added syntax highlighting

thanks 1 user thanked Hellboy75 for this useful post.
francoz on 6/8/2014(UTC)
Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Similar Topics
[img] BBCode does not work (YAF Issues & Bugs Discussion)
by tecman 2/6/2017 3:31:40 AM(UTC)
Need help to make a BBCode... (YAF General)
by JP 1/14/2017 12:04:45 PM(UTC)
YAF CKEditor pasted URL versus BBCode URL (YAF Installation/Setup)
by Mariette 8/31/2016 7:34:07 AM(UTC)
Attached files show bbcode instead of rendering image or link (YAF Installation/Setup)
by paulcreedy 4/20/2015 9:09:29 AM(UTC)
Can posts be formatted with tables? BBCodes? (YAF Issues & Bugs Discussion)
by QTLogic 2/3/2015 2:06:30 AM(UTC)
test bbcode (YAF Installation/Setup)
by dotneter 5/15/2014 6:55:17 AM(UTC)
BBCode-embedded images don't appear on Galaxy phones (YAF Issues & Bugs Discussion)
by captainspud 7/24/2013 10:36:47 PM(UTC)
Upgrade BBcode checkbox is back (YAF Issues & Bugs Discussion)
by johnk 6/1/2013 9:55:28 PM(UTC)
Signature BBCODE error (YAF Issues & Bugs Discussion)
by john-boy 4/1/2013 1:48:30 PM(UTC)
BBCode: Format Code In Post (YAF Installation/Setup)
by baw02141 2/17/2013 9:46:32 AM(UTC)
How do you create your own BBCodes? (YAF General)
by Trickstar 8/18/2012 5:06:13 PM(UTC)
WYSWYG Yaf Standard YAFBBCODE Editor (YAF General)
by ngtrian 7/16/2012 6:56:39 PM(UTC)
Issue with BBcode in postings (YAF Issues & Bugs Discussion)
by Trickstar 7/8/2012 8:36:44 PM(UTC)
Problem with CKEditor(BBCode) (YAF Issues & Bugs Discussion)
by farbod.kain 4/13/2012 10:13:08 AM(UTC)
BBCode cursor position (YAF Feature Requests)
by Zero2Cool 4/5/2012 8:27:47 AM(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