Custom BBCodes [Deprecated]

Get help developing custom BBCodes or request one.
vipersgarden
Registered User
Posts: 14
Joined: Sat May 09, 2009 8:06 am
Location: Salzburg, Austria
Contact:

Re: Custom BBCodes

Post by vipersgarden »

by dumdum1974 » Fri Sep 21, 2007 8:52 am

Windows Media player embeded

BBcode:


Code: Select all
[Embed]{TEXT}[/Embed]

HTML replacement:


Code: Select all
<div align="center"><embed src="{TEXT}" width="320" height="240" autostart="0" showcontrols="1" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"> </embed></div>

You can change some setting as you wish aotostart,showcontrols size etc etc
dumdum1974
I use this in my Forum and it works perfect.

But:
The video starts to load (not play), when the topic is opened?!
My problem: Some users want to show videos, 40 to 60 MB large, sometimes even larger. Maybe some users didnt want to look to the videos.
Is it possible to start loading by a separate button?

You may look here: http://fieldherping.eu/Forum/viewtopic.php?f=18&t=117

Thanks for help!

Mario
some blind fool
Registered User
Posts: 409
Joined: Sat Aug 19, 2006 5:28 pm

Re: Custom BBCodes

Post by some blind fool »

nono_kaki wrote:How can a make URL that linked to some ID/NAME (HTML Attribute) on the same page??
Thanks before...
try http://www.phpbb.com/community/viewtopi ... 5#p4510255
please do not PM me to ask for help. thanks.
robthemanbob
Registered User
Posts: 2
Joined: Tue Jul 07, 2009 12:21 am

Re: Custom BBCodes

Post by robthemanbob »

Hi Everyone

I am trying to make a custom code however it seems like the custom code is not working here is what I am doing

BBC Usage

Code: Select all

[weaponitem]{SIMPLETEXT}[/weaponitem]
HTML Replacement

Code: Select all

<A href=”http://lorebook.lotro.com/wiki/Weapon:{SIMPLETEXT}”>{SIMPLETEXT}</A>

please let me know if something is wrong.

Thanks

Rob B
flint0131
Registered User
Posts: 4
Joined: Sun Jul 05, 2009 2:46 pm

Re: Custom BBCodes

Post by flint0131 »

How can i make this BB Code?

Code: Select all

[script=LINK OF THE JAVASCRIPT][/script]

Code: Select all

<script src="LINK OF THE JAVASCRIPT"></script>

I tried,

Code: Select all

[script={URL}][/script] and
<script src="{URL}" type="text/javascript"></script>
I also used {SIMPLETEXT} and {IDENTIFIER}.. :(
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Custom BBCodes

Post by ameeck »

Look for a [anchor] or [goto] BBCode in this topic.
robthemanbob
Registered User
Posts: 2
Joined: Tue Jul 07, 2009 12:21 am

Re: Custom BBCodes

Post by robthemanbob »

I finally got it to work, and one problem I am having is the BB is adding more HREF info into the URL


I am getting

Code: Select all

 http://www.domain.com/forums/ <A href=”http://lorebook.lotro.com/wiki/Weapon:{SIMPLETEXT}”>{SIMPLETEXT}</A> 

Is there any way to remove this?







ameeck wrote:Look for a [anchor] or [goto] BBCode in this topic.
Snuka7
Registered User
Posts: 11
Joined: Fri Jul 03, 2009 6:01 am

Re: Custom BBCodes

Post by Snuka7 »

Does anybody know about the tables BBCode for php forums? It's an important Code. Like:

Code: Select all

[table border="1"][tr][td][/td][/tr][/table]
I have this for HMTL, but I won't work:

Code: Select all

<table border="{NUMBER}">
<tr>
<td>{TEXT}</td>
</tr>
</table>
And, how do you "Name" the BBcodes on the posting page, they come up like this: "flash" instead of "Flash", not a big difference, but it could be better, right?
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Custom BBCodes

Post by keith10456 »

DJ Andre wrote:Here is my media player -- If you have been working on your own version, when you install this one you gotta make sure to post it again with this new [stream] code, so the post in the SQL database refreshes and adds the new code for this to work.. I get a lot of questions when they tell me why it doesn't work when they refresh their old posted messages with media players --hopefully this isn't the case here.

BBCode usage

Code: Select all

[stream]{URL}[/stream]
HTML replacement

Code: Select all

<object id="MediaPlayer1" width=300height=230
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="{URL}">
<param name="AutoStart" value="False">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">

<!-- BEGIN PLUG-IN HTML FOR FIREFOX-->
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="{URL}" align="middle"
width=300
height=230
autostart" value="false"
defaultframe="rightFrame"
showstatusbar=true>
</embed>
<!-- END PLUG-IN HTML FOR FIREFOX-->

</object>
<!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER -->

<br>
<a href="{URL}">Download</a>
Help line

Code: Select all

Description: Insert your music audio URL
See attachment below:
media_player.jpg
In FF 3.5 the audio "auto-starts" regardless of the setting.

The code is setup so that autostart is "false"... but it auto-starts anyway (in FF 3.5)... Which is a HUGE problem when you have more than one stream in a post.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: Custom BBCodes

Post by keith10456 »

keith10456 wrote:
DJ Andre wrote:Here is my media player -- If you have been working on your own version, when you install this one you gotta make sure to post it again with this new [stream] code, so the post in the SQL database refreshes and adds the new code for this to work.. I get a lot of questions when they tell me why it doesn't work when they refresh their old posted messages with media players --hopefully this isn't the case here.

BBCode usage

Code: Select all

[stream]{URL}[/stream]
HTML replacement

Code: Select all

<object id="MediaPlayer1" width=300height=230
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..."
type="application/x-oleobject" align="middle">
<param name="FileName" value="{URL}">
<param name="AutoStart" value="False">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">

<!-- BEGIN PLUG-IN HTML FOR FIREFOX-->
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="{URL}" align="middle"
width=300
height=230
autostart" value="false"
defaultframe="rightFrame"
showstatusbar=true>
</embed>
<!-- END PLUG-IN HTML FOR FIREFOX-->

</object>
<!-- END GENERIC ALL BROWSER FRIENDLY HTML FOR WINDOWS MEDIA PLAYER -->

<br>
<a href="{URL}">Download</a>
Help line

Code: Select all

Description: Insert your music audio URL
See attachment below:
media_player.jpg
In FF 3.5 the audio "auto-starts" regardless of the setting.

The code is setup so that autostart is "false"... but it auto-starts anyway (in FF 3.5)... Which is a HUGE problem when you have more than one stream in a post.
I found the solution.

Change this line:

Code: Select all

autostart" value="false"
To this:

Code: Select all

autostart=0
nono_kaki
Registered User
Posts: 52
Joined: Fri Apr 17, 2009 11:37 am
Location: Indonesia

Re: Custom BBCodes

Post by nono_kaki »

some blind fool wrote:
nono_kaki wrote:How can a make URL that linked to some ID/NAME (HTML Attribute) on the same page??
Thanks before...
try http://www.phpbb.com/community/viewtopi ... 5#p4510255
Thanks a lot some blind fool...
Silverback420
Registered User
Posts: 155
Joined: Sat Jun 20, 2009 11:01 pm

Re: Custom BBCodes

Post by Silverback420 »

I want to add a flash game directly into a forum page, I have the html coding but am not sure how to make it work.

Anyone know?
User avatar
Talonos
Registered User
Posts: 51
Joined: Tue Jul 08, 2008 2:43 pm

Re: Custom BBCodes

Post by Talonos »

i'm trying to make a bbcode called links

Code: Select all

[links]{text}[/links]
html replace text:

Code: Select all

<u><b>Character Links</b></u><br>

		
		<img border="0" src="http://heroes-of-warcraft.eu/roster/imba.gif" width="20" height="20"><a href="http://be.imba.hu/?zone=EU&realm=stormrage&character={text}">Be.imba.hu</a><br/>
		<img border="0" src="http://heroes-of-warcraft.eu/roster/wowjuju.gif" width="20" height="20"><a href="http://www.wowjuju.com/index.php?page=6#EU_stormrage_{text}">Wowjuju</a><br>
		<img border="0" src="http://heroes-of-warcraft.eu/roster/heroes.gif" width="20" height="20"><a href="http://www.wow-heroes.com/index.php?zone=eu&server=Stormrage&name={text}">Wow-Heroes</a><br>
		<img border="0" src="http://heroes-of-warcraft.eu/roster/warcrafter.gif" width="20" height="20"><a href="http://stormrage-eu.warcrafter.net/{text}">Warcrafter</a><br>
		<img border="0" src="http://heroes-of-warcraft.eu/roster/wow.gif" width="20" height="20"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Stormrage&n={text}">Blizzard 
Armory</a><br>
but for some reason i cant get it working, can anybody help me rectifiy this please

Talonos
Creating a world of warcraft website? check the sites out below for board3 compatable mods
Talonos: Pretereo Guild on stormrage EU
some blind fool
Registered User
Posts: 409
Joined: Sat Aug 19, 2006 5:28 pm

Re: Custom BBCodes

Post by some blind fool »

Talonos,
the tokens need to be in all CAPS - {TEXT}. :)
also, using the text token in a url is a huge security risk. see if you can use a different token.
please do not PM me to ask for help. thanks.
User avatar
Talonos
Registered User
Posts: 51
Joined: Tue Jul 08, 2008 2:43 pm

Re: Custom BBCodes

Post by Talonos »

ok i changed the tags to {SIMPLETEXT} and it works fine now thanks
Creating a world of warcraft website? check the sites out below for board3 compatable mods
Talonos: Pretereo Guild on stormrage EU
videosilva
Registered User
Posts: 89
Joined: Tue Sep 13, 2005 6:42 pm

How to add / embed FLV

Post by videosilva »

www.videosilva.com/manuelaugusto.flv

How would add add / embed that file ?
Locked

Return to “Custom BBCode Development and Requests”