Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Sisterhood

Flash Tag

Recommended Posts

Wie ist es möglich kleine Flashfilme direkt im Post abzuspielen?

Das habe ich ON

Allow flash movies in posts and avatars?

Flash has a built in scripting language which may or may not compromise security. As flash gets more advanced the chances of it compromising your board increases. We recommend you leave this feature set to "no" unless you trust your community.

Die "anderen" scheinen auch nichts zu finden :)

I need to be able to post flash and HTML on my forums. I know there are security risks and all that, but I am the owner and the only admin. I want to be able to post it only with my account, not the users. I think I came across an option like this on the board, and I chose to allow posting of HTML for admins. It doesn't work. Right now, I need to post a small flash file.
Edited by mediapac

Share this post


Link to post

Ok beantworte meine Fragen selbst :-)

Aber für alle die es Wissen möchte, wie ich es gemacht habe:

---------------------------------------------------------

Log in to your ACP --> LOOK & FEEL --> click on the options button beside a skin

--> click Edit Template HTML --> click Post / PM Editor --> click ips_editor:

Find:

CODE

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_code"><img src="{$images_path}rte-code-button.png" alt="{$this->ipsclass->lang['js_rte_lite_code']}" title="{$this->ipsclass->lang['js_rte_lite_code']}"></div></td>

</tr>

Add below:

CODE

<tr><td><div class="rte-normal" id="{$editor_id}_cmd_insertyoutube"><img src="{$images_path}cool_media/youtube.gif" alt="{$this->ipsclass->lang['js_rte_lite_youtube']}" title="{$this->ipsclass->lang['js_rte_lite_youtube']}"></div></td>

<td><div class="rte-normal" id="{$editor_id}_cmd_insertgvideo"><img src="{$images_path}cool_media/gvideo.gif" alt="{$this->ipsclass->lang['js_rte_lite_gvideo']}" title="{$this->ipsclass->lang['js_rte_lite_gvideo']}"></div></td>

<td><div class="rte-normal" id="{$editor_id}_cmd_insertmedia"><img src="{$images_path}cool_media/media.gif" alt="{$this->ipsclass->lang['js_rte_lite_media']}" title="{$this->ipsclass->lang['js_rte_lite_media']}"></div></td>

<td><div class="rte-normal" id="{$editor_id}_cmd_insertflash"><img src="{$images_path}cool_media/flash.gif" alt="{$this->ipsclass->lang['js_rte_lite_flash']}" title="{$this->ipsclass->lang['js_rte_lite_flash']}"></div></td>

</tr>

Find:

CODE

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_code"><img src="{$images_path}rte-code-button.png" alt="{$this->ipsclass->lang['js_rte_lite_code']}" title="{$this->ipsclass->lang['js_rte_lite_code']}"></div></td>

Add below:

CODE

<td><div class="rte-normal" id="{$editor_id}_cmd_insertreal"><img src="{$images_path}cool_media/real.gif" alt="{$this->ipsclass->lang['js_rte_lite_real']}" title="{$this->ipsclass->lang['js_rte_lite_real']}"></div></td>

Save Templete Bit !

Open ./jscripts/ips_text_editor.js.

Find:

CODE

this.init();}function ips_editor_events(){}ips_editor_events.prototype.button_onmouse_event=function(e

Add before:

CODE

this.insertmedia=function(){var _text=this.get_selection();_text=_text.replace( /\n|\r|<br \/>/g,'');if(_text.match( /(<a href|\[media)/ig)){this.format_text(false);}else{var _url=prompt(ipb_global_lang['editor_media_autoplay'],'1');if(!_url||_url==null){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_media_url'],'http://');if(!_text||_text==null){return false;}this.wrap_tags('media',_url,_text);}};this.insertflash=function(){var _text=this.get_selection();_text=_text.replace( /\n|\r|<br \/>/g,'');if(_text.match( /(<a href|\[flash)/ig)){this.format_text(false);}else{var _url=prompt(ipb_global_lang['editor_flash_size'],'500');if(!_url||_url==null){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_flash_url'],'http://');if(!_text||_text==null){return false;}this.wrap_tags('flash',_url,_text);}};this.insertreal=function(){var _text=this.get_selection();_text=_text.replace( /\n|\r|<br \/>/g,'');if(_text.match( /(<a href|\[real)/ig)){this.format_text(false);}else{var _url=prompt(ipb_global_lang['editor_real_autoplay'],'1');if(!_url||_url==null){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_real_url'],'http://');if(!_text||_text==null){return false;}this.wrap_tags('real',_url,_text);}};this.insertyoutube=function(){var _text=this.get_selection();_text=_text.replace( /\n|\r|<br \/>/g,'');if(_text.match( /(<a href|\[youtube)/ig)){this.format_text(false);}else{var _url=prompt(ipb_global_lang['editor_youtube_size'],'400');if(!_url||_url==null){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_youtube_url'],'http://');if(!_text||_text==null){return false;}this.wrap_tags('youtube',_url,_text);}};this.insertgvideo=function(){var _text=this.get_selection();_text=_text.replace( /\n|\r|<br \/>/g,'');if(_text.match( /(<a href|\[gvideo)/ig)){this.format_text(false);}else{var _url=prompt(ipb_global_lang['editor_gvideo_size'],'400');if(!_url||_url==null){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_gvideo_url'],'Nhap id cua file Google Video Vao Day, Vi du: -7233445036972827652');if(!_text||_text==null){return false;}this.wrap_tags('gvideo',_url,_text);}};

Open ./cache/lang_cache/en/lang_editors.php:

Find:

CODE

<?php

$lang = array (

Add below:

CODE

// Media, Flash, Real, Google Video, YouTube (v1) in post, upgrade and code by zero84vn

'js_rte_lite_media' => "Insert your media",

'js_rte_lite_flash' => "Insert your Flash",

'js_rte_lite_real' => "Insert your Real",

'js_rte_lite_youtube' => "Insert your YouTube",

'js_rte_lite_gvideo' => "Insert your Goolge Video",

Open ./cache/lang_cache/en/lang_javascript.js:

Find:

CODE

// EDITORS

Add below:

CODE

// Media, Flash, Real, Google Video, YouTube (v1) in post, upgrade and code by zero84vn

'editor_media_autoplay' : 'AUTO PLAY MEDIA ? Yes: 1; No: 0',

'editor_media_url' : 'Insert MEDIA URL',

'editor_flash_size' : 'Insert FLASH SIZE',

'editor_flash_url' : 'Insert FLASH URL',

'editor_real_autoplay' : 'AUTO PLAY REAL ? Yes: 1; No: 0',

'editor_youtube_size' : 'Insert YouTube Size',

'editor_youtube_url' : 'Insert YouTube URL',

'editor_gvideo_size' : 'Insert Google Video SIZE',

'editor_gvideo_url' : 'Insert Google Video ID (Example: -7233445036972827652)',

Now it' time to add new BBcode. Log in to your ACP --> MANAGEMENT --> Add New BBCode:

MEDIA

Custom BBCode Title: Media

Custom BBCode Description: Insert Media in your post

Custom BBCode Example:

CODE

url

Custom BBCode Tag: media

Use Option in tag?: Yes

Custom BBCode Replacement:

CODE

<CENTER><OBJECT id=Player height=320 width=350

classid=clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6><PARAM NAME="URL" VALUE='{content}'>

<PARAM NAME="rate" VALUE="1">

<PARAM NAME="balance" VALUE="0">

<PARAM NAME="currentPosition" VALUE="1">

<PARAM NAME="defaultFrame" VALUE="">

<PARAM NAME="playCount" VALUE="1">

<PARAM NAME="autoStart" VALUE="{option}">

<PARAM NAME="loop" VALUE="-1">

<PARAM NAME="currentMarker" VALUE="0">

<PARAM NAME="invokeURLs" VALUE="-1">

<PARAM NAME="baseURL" VALUE="">

<PARAM NAME="volume" VALUE="100">

<PARAM NAME="mute" VALUE="0">

<PARAM NAME="uiMode" VALUE="full">

<PARAM NAME="stretchToFit" VALUE="0">

<PARAM NAME="windowlessVideo" VALUE="0">

<PARAM NAME="enabled" VALUE="-1">

<PARAM NAME="enableContextMenu" VALUE="0">

<PARAM NAME="fullScreen" VALUE="0">

<PARAM NAME="ShowDisplay" VALUE="0">

<PARAM NAME="ShowStatusBar" VALUE="0">

<PARAM NAME="SAMIStyle" VALUE="">

<PARAM NAME="SAMILang" VALUE="">

<PARAM NAME="SAMIFilename" VALUE="">

<PARAM NAME="captioningID" VALUE="">

<PARAM NAME="enableErrorDialogs" VALUE="0">

<PARAM NAME="_cx" VALUE="7938">

<PARAM NAME="_cy" VALUE="6482">

<embed type='application/x-mplayer2' src='{content}' height="400" width="450" autostart="{option}"></embed>

</OBJECT></CENTER>

(you can not use center tag)

Click Edit BBcode !

FLASH:

Custom BBCode Title: Flash

Custom BBCode Description: Insert Flash in your post

Custom BBCode Example:

CODE

url

Custom BBCode Tag: Flash

Use Option in tag?: Yes

Custom BBCode Replacement:

CODE

<center> <table border=1><tr><td><embed type='application/x-shockwave-flash' src='{content}' width='{option}' height='{option}'></embed></td></tr></table></center>

REAL

Custom BBCode Title: Real

Custom BBCode Description: Insert Real in your post

Custom BBCode Example:

CODE

[real=1]url[/real]

Custom BBCode Tag: real

Use Option in tag?: Yes

Custom BBCode Replacement:

CODE

<center><object classid='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6'>

<param name='url' value='{content}'><param name='volume' value='100'>

<param name='autostart' value='{option}'>

<embed type='audio/x-pn-realaudio-plugin' width='260' height='60' src='{content}' controls='all' autostart='{option}'></object></center>

YouTube

Custom BBCode Title: YouTube

Custom BBCode Description: Insert YouTube in your post

Custom BBCode Example:

CODE

url

Custom BBCode Tag: youtube

Use Option in tag?: Yes

Custom BBCode Replacement:

CODE

<center><object width="425" height="350"> <param value="{content}" name="movie"></param><param name="wmode" value="transparent"></param><embed src="{content}" type="application/x-shockwave-flash" wmode="transparent" width="{option}" height="{option}"></embed></object></center>

Google Video

Custom BBCode Title: Google Video

Custom BBCode Description: Insert Google Video in your post

Custom BBCode Example:

CODE

[gvideo=400]ID[/gvideo]

Custom BBCode Tag: gvideo

Use Option in tag?: Yes

Custom BBCode Replacement:

CODE

<center><object width="425" height="350"><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docid={content}" type="application/x-shockwave-flash" wmode="transparent" width="{option}" height="{option}"></embed></object></center>

Now download the folder "cool_media.zip" and unzip, then upload to ./style_images/1/folder_editor_images/

Edited by mediapac

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×