Media, Flash, Real, Youtube, Google Video In Your Post |
Lütfen Dikkat!
![]() ![]() |
Media, Flash, Real, Youtube, Google Video In Your Post |
07.02.2007, 05:45:52
İleti
#1
|
|
|
Üye
Grup: Grup: Üye
İleti: 42 Açtığı Konu Sayısı:10 Mod Upload: 1 Katılım: 08.12.2006 Nereden: VietNam Skin: IPBAccess v2.5 NJ2 Üye No: 2,348
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x |
Description: Allows you to insert Media, Flash, Real, YouTube, Google Video (wma, wmv, mp3, swf, rm, ...) with buttons in your post.
Compatibility: IPB v2.2.x By : my friend --------------------------------------------------------- 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==n**l){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_media_url'],'http://');if(!_text||_text==n**l){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==n**l){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_flash_url'],'http://');if(!_text||_text==n**l){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==n**l){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_real_url'],'http://');if(!_text||_text==n**l){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==n**l){return false;}_text=_text?_text:prompt(ipb_global_lang['editor_youtube_url'],'http://');if(!_text||_text==n**l){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==n**l){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==n**l){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 [media="1"]url[/media] 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 [Flash="500"]url[/Flash] 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 [youtube=400]url[/youtube] 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/ That's All. Have a nice day ! If you like it, plz give me a thank ! lol
Yüklenen Dosya(lar)
|
|
|
|
07.02.2007, 08:12:36
İleti
#2
|
|
|
O Şimdi Asker...
Grup: Grup: IPB-Pro
İleti: 353 Açtığı Konu Sayısı:85 Mod Upload: 34 Katılım: 04.11.2006 Nereden: İstanbul Skin: IPBAccess v2.5 NJ2 Üye No: 1,864
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
Gerçekten Güzel Çalışma Teşekkürler... (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/xyxthumbs.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...default/xyxthumbs.gif |
|
|
|
07.02.2007, 09:36:21
İleti
#3
|
|
|
Yeni Üye
Grup: Grup: Üye
İleti: 10 Açtığı Konu Sayısı:1 Mod Upload: 0 Katılım: 06.02.2007 Skin: IP.Board Pro Üye No: 3,351
Sunucu OS: Linux
IPB Sürüm: IPB 2.2.x |
çok sağol bir numara bir paylaşım olmuş
|
|
|
|
07.02.2007, 09:37:31
İleti
#4
|
|
|
IPB-User
Grup: Grup: IPB-User
İleti: 191 Açtığı Konu Sayısı:21 Mod Upload: 0 Katılım: 20.01.2007 Skin: IPBAccess v2.5 NJ2 Üye No: 3,104
Sunucu OS: Linux
IPB Sürüm: IPB 2.1.x |
Çok Thank You Ediyorum Arkadaşım 2.2 kullananlar için 1 numara paylaşım olmuş...
|
|
|
|
07.02.2007, 10:11:10
Son düzenleme tarihi : 07.02.2007 12:11 (Oscar)
İleti
#5
|
|
|
IPB-Staff
Grup: Grup: IPB-Staff
İleti: 6,300 Açtığı Konu Sayısı:805 Mod Upload: 219 Katılım: 16.09.2005 Nereden: Trabzon Skin: IPBAccess v2.5 NJ2 Üye No: 1
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
Thank you KID_SAITO for share. (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/xyxthumbs.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...default/xyxthumbs.gif |
|
|
|
07.02.2007, 20:31:01
İleti
#6
|
|
|
IPB-User
Grup: Grup: IPB-User
İleti: 54 Açtığı Konu Sayısı:10 Mod Upload: 0 Katılım: 01.11.2006 Nereden: /home/kedinet Skin: IPBAccess v2.5 NJ2 Üye No: 1,848
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x |
Open ./jscripts/ips_text_editor.js. Bunda hata veriyor yoksa benmi yanlış yaptım (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/huh.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...icons/default/huh.gif |
|
|
|
10.02.2007, 13:21:54
İleti
#7
|
|
|
O Şimdi Asker...
Grup: Grup: IPB-Pro
İleti: 353 Açtığı Konu Sayısı:85 Mod Upload: 34 Katılım: 04.11.2006 Nereden: İstanbul Skin: IPBAccess v2.5 NJ2 Üye No: 1,864
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
Gercekten Çok Güzel Bir Çalışma Tek Seferde Hatasız Kurdum Thank you KID_SAITO
|
|
|
|
10.02.2007, 14:54:35
İleti
#8
|
|
|
Moderatör
Grup: Grup: IPB-Pro
İleti: 698 Açtığı Konu Sayısı:96 Mod Upload: 15 Katılım: 06.05.2006 Nereden: Ankara Skin: IPBAccess v2.5 NJ2 Üye No: 1,042
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x |
En kısa zaman da 2.2.x e geçmek lazım (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/biggrin.gif)
Thank you kid saito
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...s/default/biggrin.gif |
|
|
|
10.02.2007, 16:33:55
İleti
#9
|
|
|
IPB-User
Grup: Grup: IPB-User
İleti: 191 Açtığı Konu Sayısı:21 Mod Upload: 0 Katılım: 20.01.2007 Skin: IPBAccess v2.5 NJ2 Üye No: 3,104
Sunucu OS: Linux
IPB Sürüm: IPB 2.1.x |
Arkadaşlar bende media zaten ayarlıydı forumda imzamdaki forumda fakat şu yabancı arkadaşın vermiş olduğu kodu deniyeyim dedim 2.1.7 için yine sorunsuz çalıştı bilginiz olsun. 2.1.7 benim gibi kullananlar varsa bu media kodu sorunsuz çalışıyor...
|
|
|
|
12.02.2007, 14:31:29
İleti
#10
|
|
|
IPB-Moderatör
Grup: Grup: IPB-Pro
İleti: 995 Açtığı Konu Sayısı:90 Mod Upload: 18 Katılım: 25.10.2005 Nereden: Plovdiv Skin: IPBAccess v2.5 NJ2 Üye No: 102
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x Ülke :
|
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...cons/default/wink.gif |
|
|
|
13.02.2007, 19:20:35
İleti
#11
|
|
|
Üye
Grup: Grup: Üye
İleti: 42 Açtığı Konu Sayısı:10 Mod Upload: 1 Katılım: 08.12.2006 Nereden: VietNam Skin: IPBAccess v2.5 NJ2 Üye No: 2,348
Sunucu OS: Linux
IPB Sürüm: IPB 2.3.x |
nothing. We have fun (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/smile.gif)
but, pls say English (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/biggrin.gif) , i do'nt know your lang (IMG:http://www.ipbaccess.com/forum/style_emoticons/default/wink.gif)
Diğer bağlantılar ve kaynak sayfalar :
http://www.ipbaccess.com/forum...ons/default/smile.gif http://www.ipbaccess.com/forum...s/default/biggrin.gif http://www.ipbaccess.com/forum...cons/default/wink.gif |