News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

iFrame on post

Started by Metal_13, October 06, 2007, 10:10:45 PM

Previous topic - Next topic

Metal_13

Link to Mod

my second mod...hope you like it...

im not sure but there might be a security risk coz it will also allow non-administrators to use iframes in post
so use at your own risk.

Sample link:
http://www.getdota.com

BBC:
[iframe=400,400]http://www.getdota.com[/iframe]
[iframe=400,100%]http://www.getdota.com[/iframe]

demo:
[link removed]

screen shot:
[link removed]

SleePy

There is a possible security risk to allowing users to use iFrames in posts. Please use caution or only allow certain people to use this
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

OmenX

I get an error after it says 'installed successfully'

error appears at top right corner, and font gets enlarged all around

error is as follows:

$txt['iframe'] = 'iframe insert Number';

any help would be appreciated.

I am running 1.1.2 due to issues upgrading. hopefully there is a way to make it work with 1.1.2

OmenX


OmenX


karlbenson

open Themes/default/languages/Modifications.english.php

make sure <?php is at the very top and
make sure ?> to the very bottom

(eg move any strings in between them)
inc especially $txt['iframe'] = 'iframe insert Number';

falguni1

useful to put iframes but only by admins

OmenX

Quote from: karlbenson on October 13, 2007, 11:23:04 PM
open Themes/default/languages/Modifications.english.php

make sure <?php is at the very top and
make sure ?> to the very bottom

(eg move any strings in between them)
inc especially $txt['iframe'] = 'iframe insert Number';

I am not a coder, so this just flew over my head.

can you put it any simpler?

sorry to be a pain. thanks for the help :)

Metal_13

can i see ur site? what version are you using? sorry for the late reply..

JamesWC

Quote from: falguni1 on October 14, 2007, 09:16:25 AMuseful to put iframes but only by admins

I second this. We should be able to choose which groups have permission to use these tags, or at least restrict it to admins. Then it would be a great mod. Otherwise it's a total security risk and, unfortunately, not worth having.

karlbenson

Admins can use iframe html using [html] bbcode.

John S

Quote from: SleePy on October 06, 2007, 10:12:49 PM
There is a possible security risk to allowing users to use iFrames in posts. Please use caution or only allow certain people to use this

What's the risk?

endiZ


Metal_13



install custom bbc then paste the code, just enable it and hide the button... do that so other members wont know about the code... thats the only way if u need this...

<iframe allowtransparency="true" style="border: 0px solid rgb(0, 0, 0);" name="I1" frameborder="0" height="404" width="100%" src="{content}"> </iframe>

also make sure quotes are disabled on the board where u post...

rename and add numbers or something on ur bbc code name..... so it wont be easy to guess
sample:
[iframe] to [iframe342342]

Sudhakar Arjunan

I have tried to install on 2 beta 4.

Its shows error on post.template file.

/Themes/default/Post.template.php
Find: [Select]

         'flash' => array('code' => 'flash', 'before' => 'http://',%20'after'%20=>%20'', 'description' => $txt[433]),
Add After: [Select]

         'iframe' => array('code' => 'iframe', 'before' => '[iframe=425,350]', 'after' => '[/iframe]', 'description' => $txt['iframe']),

Line not found, any suggestions.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Impsat-1

Mmm... hey Guys can Upgrade this MOD for SMF 1.1.8 working? if can add the security option better, some like "permissions for ADMINS or MODERATORS" is good MOD but insecure... Please I need this MOD, thanks Metal_13 & Regards 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Sudhakar Arjunan

Quote from: Nahuel-1 on May 02, 2009, 03:10:27 AM
Mmm... hey Guys can Upgrade this MOD for SMF 1.1.8 working? if can add the security option better, some like "permissions for ADMINS or MODERATORS" is good MOD but insecure... Please I need this MOD, thanks Metal_13 & Regards 8).-

Yes it would be good, if there is a update to this mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Galedon

Hey

i search this mod for SMF 2.0 - or other mod to include html sites:
example:

http://spreadsheets.google.com/pub?key=t42f8TE3ADNBsj74OoRK0Sw&output=html

or iframe:
<iframe width='500' height='300' frameborder='0' src='http://spreadsheets.google.com/pub?key=t42f8TE3ADNBsj74OoRK0Sw&single=true&gid=0&output=html&widget=true'></iframe>


have some one idea ?



Advertisement: