|
|
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo
|
|
Any Chance of getting this to work with przemo ? |
Autor |
Wiadomość |
riverkqj
Posty: 115
|
Wysłany: 23-01-2007, 21:10 Any Chance of getting this to work with przemo ?
|
|
|
Is there anychance some one could get this youtube mod to work with przemo ?
http://www.phpbb.com/phpB...ghlight=youtube
Thanks for any help |
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
azwel

Pomógł: 41 razy Posty: 402
|
Wysłany: 23-01-2007, 22:15
|
|
|
There is a YouTube mod for Przemo's version.
Kod: | ##############################################################
## Files to edit : - includes/bbcode.php,
## - templates/{Your_template}/bbcode.tpl,
## - images/jsscripts.js
##
#
#-----[ OPEN ]---------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = $bbcode_tpl['youtube'];
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/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(
#
#-----[ IN-LINE, FIND ]---------------------------------
#
'[url]','[/url]'
#
#-----[ IN-LINE, AFTER, ADD ]---------------------------------
#
,'[youtube]','[/youtube]'
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
|
_________________ Bezpłatnie pomagam na forum. Jeśli to za mało to zapraszam do skorzystania z płatnych usług. |
|
|
|
 |
riverkqj
Posty: 115
|
Wysłany: 24-01-2007, 00:39
|
|
|
cool thanks alot azwel |
|
|
|
 |
petekin74
Posty: 79
|
Wysłany: 24-01-2007, 06:24
|
|
|
I already installed this and never got the [youtube] button to appear in the reply window. I just doubled checked and I did everything the mod says. Any Idea why it wouldnt be showing up? |
|
|
|
 |
azwel

Pomógł: 41 razy Posty: 402
|
Wysłany: 24-01-2007, 17:22
|
|
|
petekin74, clear cache? |
_________________ Bezpłatnie pomagam na forum. Jeśli to za mało to zapraszam do skorzystania z płatnych usług. |
|
|
|
 |
petekin74
Posty: 79
|
Wysłany: 25-01-2007, 01:52
|
|
|
I deleted my browser cache and still no youtube buttons. Is there a way to delete the forum cache? and is it wise to do so? |
|
|
|
 |
azwel

Pomógł: 41 razy Posty: 402
|
Wysłany: 25-01-2007, 10:08
|
|
|
Yes. You can erase everything from cache folder manually or use "Reset Cache: SQL & templates" in Admin Index. |
_________________ Bezpłatnie pomagam na forum. Jeśli to za mało to zapraszam do skorzystania z płatnych usług. |
|
|
|
 |
petekin74
Posty: 79
|
Wysłany: 25-01-2007, 14:19
|
|
|
OK, I cleared all my caches and still no [youtube] buttons. If i manually enter the code around my links, the mod works. I just cant get the buttons to show up when you create a post or reply.
I have attached my 3 mod files. If somebody could check them out, I would appreciate it. Thanks
Archive.zip bbcode.php, jsscripts.js, bbcode.tpl |
Pobierz Plik ściągnięto 288 raz(y) 15,91 KB |
|
|
|
|
 |
riverkqj
Posty: 115
|
Wysłany: 25-01-2007, 21:17
|
|
|
Hi yeah im having the same problem ?
What should i do ? |
|
|
|
 |
petekin74
Posty: 79
|
Wysłany: 28-01-2007, 15:41
|
|
|
azwell, any ideas?
[ Added: 03-02-2007, 19:13 ]
or anybody? |
|
|
|
 |
riverkqj
Posty: 115
|
|
|
|
 |
Gadatliwa Kasia
|
|
|
|
petekin74
Posty: 79
|
Wysłany: 04-03-2007, 16:06
|
|
|
nope, i havent seen any resolve. I have b een watching for it also. |
|
|
|
 |
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach Możesz załączać pliki na tym forum Możesz ściągać załączniki na tym forum
|
Dodaj temat do Ulubionych Wersja do druku
|
Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!
Powered by phpBB modified by Przemo © 2003 phpBB
| Strona wygenerowana w 0,51 sekundy. Zapytań do SQL: 10 | |
 |
|