To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - BBCode Youtuber Mod v1.0

riverkqj - 09-05-2007, 16:12
Temat postu: BBCode Youtuber Mod v1.0
Anyone got a Youtube Mod that works ? When i installed the one posted here a couple of months ago , you do not get the YOUTUBE BBcode button and when you do a system check in the Admin pannel it says them files are now corrupt...

Can anyone help me ?

The only other Mod i have is Spider Friendly and im running 1.12.5

oh and Inline ad Mod

maniek.a - 09-05-2007, 18:04

Try this http://mody.lastinn.info/...utube-t968.html or http://www.przemo.org/php...t=34154,start,0
riverkqj - 10-05-2007, 15:09

Thats great thanks , but is there any in English im affraid i can not read Polish :oops:
zuraw2006 - 10-05-2007, 15:21

riverkqj, hello ;) do you remember me :?:

Translate:

Kod:
Otwórz/Zamknij => Open/Close
Zapisz => Save
Dodaj => Add
Zamień => Replace with
Dodaj za/pa => After Add
Dodaj przed => Add before

maniek.a - 10-05-2007, 15:31

Ok i translate 1st
Kod:
##############################################################
## MOD name : BBCode Youtuber Mod v1.0, modified and tested on Phpbb2, ver. '1.12.5 by Przemo'.
## Author MOD : michaeltripp < iamdrscience@hotmail.com > (Mike) http://itsbeenconfirmed.com
## Modified by: zuarw2006 < zuraw2006@gmail.com> (Mariusz Ż.) http://phpmg.bee.pl
## MOD Description:  It add new bbCode. With this mod you can watching youtube at forum.
## MOD Version:1.5.0
##############################################################
## Installation Level: Easy
## Installation Time: 8 minutes
## Files To Edit:
## - templates/template/bbcode.tpl
## - templates/template/posting_body.tpl
## - includes/bbcode.php
## - images/jsscripts.js
## - posting.php
## - privmsg.php
## - language/lang_polish/lang_main.php
## - language/lang_english/lang_main.php
##
## Included Files: None
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]--------------------------------------------------
#   
          $bbcode_tpl['code_open'] = str_replace('{L_CODE}', $lang['Code'], $bbcode_tpl['code_open']);

#
#-----[ AFTER ADD ]-------------------------------------------
#
          $bbcode_tpl['youtube_open'] = str_replace('{L_YouTube}', $lang['youtube_link'], $bbcode_tpl['youtube_open']); // youtube tag

#
#-----[ FIND ]------------------------------------------
#

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);

#
#-----[ AFTER ADD ]------------------------------------------
#

$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']); //YouTube Tag
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']); //YouTube Tag

#
#-----[ FIND ]------------------------------------------
#

$replacements[] = $bbcode_tpl['email'];

#
#-----[ AFTER ADD ]------------------------------------------
#

$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is"; //YouTube Tag
$replacements[] = $bbcode_tpl['youtube']; //YouTube Tag

 
#
#-----[ OPEN ]------------------------------------------
#

templates/NAME SKIN/bbcode.tpl

#
#-----[ FIND ]------------------------------------------
#

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->

#
#-----[ AFTER ADD ]------------------------------------------
#

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

 
#
#-----[ OPEN ]---------------------------------
#

images/jsscripts.js

#
#-----[ FIND ]---------------------------------
#

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[stream]','[/stream]','[fade]','[/fade]','[scroll]','[/scroll]','[swf width= height=]','[/swf]','[center]','[/center]','[hide]','[/hide]'

#
#-----[ DODAJ ZA ]---------------------------------
#

,'[youtube]','[/youtube]'

 
#
#-----[ OPEN ]---------------------------------
#
 
 templates/template/posting_body.tpl

#
#-----[ FIND ]------------------------------------------

var f_help = '{L_BBCODE_F_HELP}';

#
#-----[ AFTER ADD ]---------------------------------
#

var yt_help = '{L_BBCODE_YT_HELP}'; <!-- YouTube tag -->

#-----[ FIND ]------------------------------------------

{BUTTON_B}{BUTTON_I}{BUTTON_U}{BUTTON_Q}{BUTTON_C}

#
#-----[ AFTER ADD ]---------------------------------
#

{BUTTON_YT}

#-----[ FIND ]------------------------------------------

<select class="post" name="addbbcode30" onChange="bbfontstyle('[color=' + this.form.addbbcode30.options[this.form.addbbcode30.selectedIndex].value + ']', '[/color]'); this.form.addbbcode30.value='444444';" onMouseOver="helpline('s')">

#
#-----[ REPLACE WITH ]---------------------------------
#

<select class="post" name="addbbcode32" onChange="bbfontstyle('[color=' + this.form.addbbcode32.options[this.form.addbbcode32.selectedIndex].value + ']', '[/color]'); this.form.addbbcode32.value='444444';" onMouseOver="helpline('s')">

#
#-----[ FIND ]------------------------------------------

<select name="addbbcode32" onChange="bbfontstyle('[size=' + this.form.addbbcode32.options[this.form.addbbcode32.selectedIndex].value + ']', '[/size]'); this.form.addbbcode32.value='12';" onMouseOver="helpline('f')">

#
#-----[ REPLACE WITH ]---------------------------------
#

<select name="addbbcode36" onChange="bbfontstyle('[size=' + this.form.addbbcode36.options[this.form.addbbcode36.selectedIndex].value + ']', '[/size]'); this.form.addbbcode36.value='12';" onMouseOver="helpline('f')">

#-----[ OPEN ]---------------------------------
#

posting.php

#
#-----[ FIND ]------------------------------------------
#

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

#
#-----[ AFTER ADD ]------------------------------------------
#

'L_BBCODE_YT_HELP' => $lang['bbcode_yt_help'], // YouTube Tag

#-----[ FIND ]-------------------------------------------------
#
    'BUTTON_Q' => ($board_config['button_q']) ? '<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline(\'q\')" /> ' : '',

#
#-----[ AFTER ADD ]------------------------------------------
#
    'BUTTON_YT' => '<input type="button" class="button" accesskey="yt" name="addbbcode30" value="YouTube" style="width: 60px" onClick="bbstyle(30)" onMouseOver="helpline(\'yt\')" /> ',


#-----[ OPEN ]---------------------------------
#

privmsg.php

#
#-----[ FIND ]------------------------------------------
#

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

#
#-----[ AFTER ADD ]------------------------------------------
#

'L_BBCODE_YT_HELP' => $lang['bbcode_yt_help'], // YouTube Tag

#-----[ FIND ]-------------------------------------------------
#
    'BUTTON_Q' => ($board_config['button_q']) ? '<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline(\'q\')" /> ' : '',

#
#-----[ AFTER ADD ]------------------------------------------
#
    'BUTTON_YT' => '<input type="button" class="button" accesskey="yt" name="addbbcode30" value="YouTube" style="width: 60px" onClick="bbstyle(30)" onMouseOver="helpline(\'yt\')" /> ',

#-----[ Open ]-------------
#

language/lang_polish/lang_main.php

#-----[ FIND ]-------------------------------------------------
#
$lang['Code'] = 'Kod';

#
#-----[ AFTER ADD ]------------------------------------------
#
$lang['youtube_link'] = "YouTube"; // YouTube Tag

#
#-----[ FIND ]-------------------------------------------------
#
$lang['bbcode_f_help'] = 'Rozmiar czcionki: [size=x-small]mały tekst[/size] Rada: zaznacz tekst i wybierz rozmiar';

#
#-----[ AFTER ADD ]------------------------------------------
#
$lang['bbcode_yt_help'] = "Umie&#182;ć link do filmiku między tagami: [youtube][/youtube]"; // YouTube Tag

#-----[ Open ]-------------
#

language/lang_english/lang_main.php

#-----[ FIND ]-------------------------------------------------
#
$lang['Code'] = 'Code'; // comes before bbcode code output.

#
#-----[ AFTER ADD ]------------------------------------------
#
$lang['youtube_link'] = "YouTube"; // YouTube Tag

#
#-----[ FIND ]-------------------------------------------------
#
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';

#
#-----[ AFTER ADD ]------------------------------------------
#
$lang['bbcode_yt_help'] = Add link at tag: [youtube][/youtube]"; // YouTube Tag

#-----[ SAVE/CLOSE ]------------------------------------------
#
# EoM
I'm late :(

riverkqj - 10-05-2007, 15:59

That's fantastic thanks to both of you :mrgreen:
lvzifer - 25-02-2008, 01:06

after these instalation I got this error msg ? what could be wrong ??

Parse error: syntax error, unexpected T_STRING in /home/enterwar/public_html/forum/language/lang_english/lang_main.php on line 371

koziolek - 25-02-2008, 08:42

lvzifer, show me 5 lines before and 5 lines after line 371 from file language/lang_english/lang_main.php ;)
lvzifer - 25-02-2008, 15:36

I have to revert this mode .. becaus my forum was down at a moment .. I' ll post it tonite ..
evilmc - 28-06-2008, 11:23

I want same thing but for this new version 1.12.6?
Tavaro - 28-06-2008, 11:44

evilmc, it works with 1.12.6 as well as with .5 :)


Powered by phpBB modified by Przemo © 2003 phpBB Group