News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom BBCode

Started by Sarke, March 03, 2007, 02:40:26 PM

Previous topic - Next topic

Sarke

Ah I see what you're saying now.  It wouldn't be too hard to pull of.  I should be able to do that for the next version (a little busy today, but maybe tomorrow).

My MODs          Please don't PM me for support, post in the appropriate topic.

TrueSatan

 Thanks...much appreciated. I know all too well the time pressures helping here puts on one so I won't hassle you about it.

[Lucien]

#42
Great mod!! Using it right now, very cool  8)

But how can i find out custom bbc codes for example: Myspace video's?

Thnx :)

I tried to add the code within this mod:

<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=1280088108&type=video&cp=1" type="application/x-shockwave-flash" width="430" height="346"></embed><

But when i take out this part:

flashvars="m=1280088108&type=video&cp=1"

it gives a error when i try to play a video...&nbsp; ???


What should i modify to make it work?

Edit//

It works!! Add the following code as a custom bbc:

<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m={content}&type=video"" type="application/x-shockwave-flash" width="430" height="346"></embed>

Me so silly  >:(
I'm using SMF 2.0.2 and SimplePortal 2.3.4

debatepro

I am unable to get the Custom BBCode MOD to work. Here is my scenario:

SMF 1.1.2

Settings:
Tag Name: GoogleIMG
Description: Find Google Images
_______________________________
Tag type: [tag]content[/tag]
Parse enclosed BBCode: content only
Trim whitespace: (no trim)
Block level: uncheck
_______________________________
The HTML used for the tag:
<a href="http://images.google.com/images?q={content}" target="_blank">{content}</a>



The post in the forum is:
[GoogleIMG]Fish[/GoogleIMG]

Result:
hxxp:images.google.com/images?q=fish [nonactive]


The link works but the link name will not show the word "Fish".


I could be missing something totally obvious...any thoughts?

Sarke

debatepro, change "Parse enclosed BBCode" to "(no parsing)".

My MODs          Please don't PM me for support, post in the appropriate topic.

debatepro

You don't know how many combinations I tried with all the settings to figure out what I was doing wrong.  Thank you so much!  World class support!!! Even for user error!!!

weightman

#46
QuoteHow would I used this mod to simply wrap an embed code in BBC html codes,  or something else that would work?

I would like for my members to simply be able to copy and past embed code in, highlight it, and click a button.

Thanks

EDIT: NO NEED FOR THIS NOW THANKS TO KARLBENSON'S AUTO-EMBED VIDEO CLIP MOD

Sarke

Quote from: weightman on July 05, 2007, 10:32:05 PM
How would I used this mod to simply wrap an embed code in BBC html codes,  or something else that would work?

I would like for my members to simply be able to copy and past embed code in, highlight it, and click a button.

Thanks
Are you sure you want to do that?  It opens a big can of worms because members could post all sorts of nasty code.

My MODs          Please don't PM me for support, post in the appropriate topic.

JaGuR123

#48
I think it would be a great idea for people to donate their costum BBC Codes and buttons.

I'll Start
Windows Media Palyer
<center><object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">

<param name="filename" value="{content}">
<param name="Showcontrols" value="True">
<param name="autoStart" value="True">

<embed type="application/x-mplayer2" src="{content}" name="MediaPlayer" width=320 height=240></embed>

</object></center>


YouTube 
<center><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{content}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{content}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></center>

Farmacija

from error log
Quote8: Undefined index: customBBCode_tabtitle
Datoteka: /home/farmaceu/public_html/forum/Sources/ModSettings.php
Line: 148

www.farmaceuti.com
www.farmaceuti.com/tekstovi

mage

Great Mod... I needed something to link items from the curse gaming site.
I was able to use this mod with the following
<script type="text/javascript" src="http://www-en.curse-gaming.com/feeds/tooltips/7/{content}/tooltip.js"></script>

Thanks!!  8)

Matthew Schenker

#51
I assume this works for 1.1.3? I'm running the default theme.
Thanks!

ishy

I can't get either of the spoiler mods to work with 1.1.3, so I wrote it with Custom BBCode and it works great.

Here's what I did.

I inserted this into the CSS of the skin I am using:

/* A spoiler. */
.spoiler
{
   color: #F1F1F1;
   background-color: #F1F1F1;
   border: 1px solid #000000;
   margin: 1px;
   padding: 1px;
   font-size: x-small;
   line-height: 1.4em;


Then I put this in the BBCode creation area:
Tag name: spoiler

HTML:
<div class="quoteheader">Spoiler</div><div class="spoiler">{content}</div>

TrueSatan

Quote from: Matthew Schenker on July 19, 2007, 10:35:45 AM
I assume this works for 1.1.3? I'm running the default theme.
Thanks!

It does indeed Matthew!

ivo2296

Hello,

Can anyone give me an example how to add iframe tag like [iframe]www.any-link[/iframe].



Thank you!

JaGuR123

#55
This is what i did for my Iframe

<table width="100%" cellspacing="0" cellpadding="0" style="height:650px"><tr valign="top"><td> <IFRAME SRC="{content}" WIDTH=100% HEIGHT=600>&nbsp;</IFRAME></P></td></tr></table>

ivo2296

Quote from: JaGuR123 on August 04, 2007, 06:19:01 PM
This is what i did for my Iframe

<table width="100%" cellspacing="0" cellpadding="0" style="height:650px"><tr valign="top"><td> <IFRAME SRC="{content}" WIDTH=100% HEIGHT=600>&nbsp;</IFRAME></P></td></tr></table>

Just Perfect - thanks a lot!

perro88

I added the blink tag
<blink>{content}</blink> :-*

perro88

#58
a gif  ;D

Moif

Hi,

I think I have this installed correctly :) I'm interested in trying to get Gametrailers movies to show up on my site. The following is the code they give you to embed:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=23277"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=23277" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object>

But I'm unsure on how to go about this. From what I can work it 23277 is the unique number for the movie but all my attempts so far haven fallen flat on their face.

This movie is the top selection on this page:

http://www.gametrailers.com/game/4131.html

Any help appreciated.

Thanks



Advertisement: