Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
Locked
User avatar
Armstrong
Registered User
Posts: 99
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: Custom BBCodes

Post by Armstrong »

This is impressive information.

But the forum I am working on
http://www.iclonetutorials.co.uk/iclone ... /index.php
Needs the inclusion of IFRAME so that I can enter a simple URL and have that page called in as a web page effectively.

This was in PHPBB2 with an addon script for the advanced editor but I do not understand the BB code implementation and It isnt making sense to me, sorry.

I hope this isnt too stupid, but how can I add a button that allows me to put in a URL which sets up an IFRAME so that I can include tutorials animations for this forum.

The URL has to call on an external folder.
REASON: Because I use FLV. And this is embedded in an SWF player holder. If the path is local to the page it will work. If I call on this SWF from another folder the SWF tries to call on the FLV and subtitile settings local to ITSELF. It wont work.
So, I need this old way of making an IFRAME which calls on the page. Thereafter the SWF calls on the FLV local to itself and VOILA, the video plays.
Examples can be seen in the old forum PHPBB2 at
http://www.iclonetutorials.co.uk

This is crucial if the forum is to go live.

Many thanks in advance.

Armstrong.
User avatar
Armstrong
Registered User
Posts: 99
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: Custom BBCodes

Post by Armstrong »

Well, actually it seems Ive worked it out for myself....
That just DOESNT happen.
:)

The BBCODE I used is

Code: Select all

[vid]{SIMPLETEXT}[/vid]
And the html replacement is

Code: Select all

<object width="417" height="166"><param name="movie" value="http://www.iclonetutorials.co.uk/iclonetutorialsforum3/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.iclonetutorials.co.uk/iclonetutorialsforum3/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="417" height="166"></embed></object>
This has allowed me to put the bbcode in the explanatory of each forum and embed an intro movie in there.
It looks so damned sexy and I love PHPBB3 and didnt want to revert to 2.

See
[link removed] - please don't link to your site without a good reason (error message, etc.) Thanks.

I'll make the rest this week.
Armstrong.
Last edited by pentapenguin on Wed Oct 31, 2007 6:22 pm, edited 1 time in total.
Reason: Spam removed
Robertof_italian
Registered User
Posts: 7
Joined: Mon Oct 08, 2007 1:34 pm

Re: Custom BBCodes

Post by Robertof_italian »

Hi, i have created a Popup BBCode :)
This is the code:
BBCODE:

Code: Select all

[popup={TEXT}]{TEXT2}[/popup]
HTML TRASFORMATION:

Code: Select all

<a href="javascript:void(0)" onclick="la=window.open('',''); la.document.write('{TEXT2}');">{TEXT}</a>
Help:
[popup=Open Popup]Popup text[/popup]
Test:
[popup=Open The popup]INSERT POPUP TEXT[/popup]
Bye Bye :)
User avatar
zahid44
Registered User
Posts: 45
Joined: Sun Aug 12, 2007 11:33 am
Location: Dhaka, Bangladesh
Contact:

Re: Custom BBCodes

Post by zahid44 »

saaiberke wrote:*removed*[/code]

and HTML replacement:

Code: Select all

*removed*
dimensions can be adjusted

Grtz,


Nic
ok but this page dosent shows correctly > please tell me why

the code is > [iframe]http://zahid-choudhury.tk[/iframe]
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Custom BBCodes

Post by ameeck »

What does "page isn't showed correctly mean", could you be more specific?
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: Custom BBCodes

Post by saaiberke »

zahid44 wrote:ok but this page dosent shows correctly > please tell me why

the code is > [iframe]http://zahid-choudhury.tk[/iframe]
Has nothing to do with the BBcode, the server has a problem. Even out of the ifram the page doesn't load :)

Nic
gettingbuilt
Registered User
Posts: 38
Joined: Sat Jan 07, 2006 2:30 am

Re: Custom BBCodes

Post by gettingbuilt »

Chromeman wrote:This is the version of the YouTube tag I am using on my site. It handles the regular links (http://www.youtube.com/) in addition to links where someone drops the www in the link (http://youtube.com/) and also country-spesific sites like http://de.youtube.com/.

BBCode usage:

Code: Select all

[youtube]http://{TEXT1}youtube.com/watch?v={TEXT2}[/youtube]
HTML Replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="http://{TEXT1}youtube.com/v/{TEXT2}"></param><param name="wmode" value="transparent"></param><embed src="http://{TEXT1}youtube.com/v/{TEXT2}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
This worked PERFECTLY! Thank you
IlanF
Registered User
Posts: 7
Joined: Fri Nov 02, 2007 2:27 pm

Re: Custom BBCodes

Post by IlanF »

how to make "show" button to the spoiler tag?

Code: Select all

[spoiler]{TEXT}[/spoiler]

Code: Select all

<table><th>Spoiler - <a href=#>show</a></th><tr><td style="background:#000000; color: #000000">{TEXT}</td></tr></table>
the link (show) should make the text white. when it pressed again, it will make the text black.
Alterno
Registered User
Posts: 218
Joined: Thu Apr 19, 2007 8:25 pm

New [Spoiler] bbcode for phpbb3

Post by Alterno »

Well I didn't like the bbcode for spoiler at custom bbcode sticky, so sI decided to try most of the bbcodes of others forums, but they didn't work at all. Then I decided to modify one of them with 100% sucess. The original code was posted by DChapman, but the credit for adapting it to phpbb3 is mine, altought it where small modificactions.

In bbcode usage add:

Code: Select all

[spoiler]{TEXT}[/spoiler]
In HTML replacement add :

Code: Select all

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler!</b> : <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';		this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{TEXT}
</div>
</div>
</div>
See it working:
http://arcanus.byethost32.com/forums/vi ... f=26&t=200

Enjoy!!!
User avatar
Armstrong
Registered User
Posts: 99
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: Custom BBCodes

Post by Armstrong »

Iframe with full parameters.

*removed*
Last edited by Noxwizard on Thu Dec 15, 2011 4:58 pm, edited 1 time in total.
Reason: Removed unsafe iframe bbcode
IlanF
Registered User
Posts: 7
Joined: Fri Nov 02, 2007 2:27 pm

Re: New [Spoiler] bbcode for phpbb3

Post by IlanF »

Alterno wrote:Well I didn't like the bbcode for spoiler at custom bbcode sticky, so sI decided to try most of the bbcodes of others forums, but they didn't work at all. Then I decided to modify one of them with 100% sucess. The original code was posted by DChapman, but the credit for adapting it to phpbb3 is mine, altought it where small modificactions.

In bbcode usage add:

Code: Select all

[spoiler]{TEXT}[/spoiler]
In HTML replacement add :

Code: Select all

<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler!</b> : <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';		this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{TEXT}
</div>
</div>
</div>
See it working:
http://arcanus.byethost32.com/forums/vi ... f=26&t=200

Enjoy!!!
really nice... thanks for sharing :D
User avatar
Armstrong
Registered User
Posts: 99
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: Custom BBCodes

Post by Armstrong »

If I want to include the Googleplayer in an upper Table frame, and then have a title in a lower table frame, what command do I put in the second <TR><TD>{HERE!!??}</TD></TR> if I include one?

BBCODED USAGE

Code: Select all

[googlevid]http://video.google.{IDENTIFIER}/videoplay?docid={SIMPLETEXT}[/googlevid]
HTML REPLACEMENT

Code: Select all

<center><table width="805" height="495" border="1" cellpadding="10" cellspacing="10" BGCOLOR="#000000" BORDERCOLORLIGHT="#5F0000" BORDERCOLORDARK="#70FFF6"><TR>
<TD>
<embed style="width:800px; height:480px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.{IDENTIFIER}/googleplayer.swf?docId={SIMPLETEXT}" flashvars=""> </embed></TD></TABLE></center>
This is just a tarted up box round the previous Google Video BBCODE. Its not my work, I just added the table. ;)
Alterno
Registered User
Posts: 218
Joined: Thu Apr 19, 2007 8:25 pm

Re: New [Spoiler] bbcode for phpbb3

Post by Alterno »

IlanF wrote: really nice... thanks for sharing :D
You are welcome :mrgreen:
User avatar
Armstrong
Registered User
Posts: 99
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: Custom BBCodes

Post by Armstrong »

Just a cute centered 3px HRule trio. Might save someone new to this a little bnother. :) ;)

BBcode useage

Code: Select all

[hr]{TEXT}[/hr]
HTML Replacement

Code: Select all

<HR WIDTH="90%" ALIGN="Center" SIZE="3" title="{TEXT}" />
<HR WIDTH="60%" ALIGN="Center" SIZE="3" title="{TEXT}" />
<HR WIDTH="30%" ALIGN="Center" SIZE="3" title="{TEXT}" />
Horizontal Rule Trio.
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Custom BBCodes

Post by ameeck »

Maybe use XHTML and CSS since prosilver won't validate like this :)

Code: Select all

<hr style="height: 3px; text-align: center; width: 90%;" title="{TEXT}" />
<hr style="height: 3px; text-align: center; width: 60%;" title="{TEXT}" />
<hr style="height: 3px; text-align: center; width: 30%;" title="{TEXT}" />
Locked

Return to “Custom BBCode Development and Requests”