Poprzedni temat «» Następny temat
Autor Wiadomość
BBCode Forumssearch
maniek.a

Posty: 2
Postawił 3 piw(a)
Wysłany: Sob 21 Kwi, 2007   BBCode Forumssearch
   Adres forum: evolutiongt.yoyo.pl


Mod tworzy nowy tag kt?ry tworzy link do wyszukiwarki.
Instrukcja
Kod
##############################################################
## MOD Title: BBCode Forumssearch
## MOD Author: neoscheff < neoscheff@cback.de > (Bernhard Jaud) http://neoscheff.cback.de
## MOD Convert to phpbb by przemo: maniek.a < maniek.a@wp.pl > (Milosz) http://evolutiongt.yoyo.pl
## MOD Description: A useful BBcode for Support Forums. Adds a [search]xxx[/search] Tag that creates a link to the
## Forumssearch to find xxx. Nice if you want to answer frequently asked questions.
## MOD Version: 1.0.0
##
##Demo: http://www.driftfighers.yoyo.pl/ (jest on tam tylko w szybkiej odpowiedzi)
## Installation Level: Intermediate
## Installation Time: 15 min
## Files To Edit: 6
## includes/bbcode.php
## posting.php
## language/lang_english/lang_main.php
## language/lang_polish/lang_main.php
## templates/subSilver/bbcode.tpl
## templates/subSilver/posting_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php


#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['img'] = str_replace('{URL}', '\\1', $bbcode_tpl['img']);


#
#-----[ AFTER, ADD ]------------------------------------------
#
//BBCode Search Mod
$bbcode_tpl['search'] = str_replace('{KEYWORD}', '\\1', $bbcode_tpl['search']);


#
#-----[ FIND ]------------------------------------------
#
$patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['img'];


#
#-----[ AFTER, ADD ]------------------------------------------
#
//BBCode Search Mod
$patterns[] = "#\[search:$uid\](.*?)\[/search:$uid\]#si";
$replacements[] = $bbcode_tpl['search'];


#
#-----[ FIND ]------------------------------------------
#
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(array(' ', '&amp;'), array('%20', '&'), '\\3') . '[/img:$uid]'", $text);


#
#-----[ AFTER, ADD ]------------------------------------------
#
//BBCode Search Mod
$text = preg_replace("#\[search\](.*?)\[/search\]#si", "[search:$uid]\\1[/search:$uid]", $text);


#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],


#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BBCODE_R_HELP' => $lang['bbcode_r_help'],


#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php


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


#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_r_help'] = "Boardsearch for text: [search]text[/search]";



#
#-----[ OPEN ]------------------------------------------
#
language/lang_polish/lang_main.php


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


#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_r_help'] = "Wyszukaj tekst na forum: [search]tekst[/search]";



#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl


#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN img --><img src="{URL}" resizemod="on" onload="rmw_img_loaded(this)" border="0" alt="" /><!-- END img -->

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN search --><a href="search.php?search_keywords={KEYWORD}"/>{KEYWORD}</a><!-- END search -->


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


#
#-----[ FIND ]------------------------------------------
#
var f_help = '{L_BBCODE_F_HELP}';

#
#-----[ AFTER, ADD ]------------------------------------------
#
var e_help = '{L_BBCODE_E_HELP}';


#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN button_ur -->
<input type="button" class="button" accesskey="w" name="addbbcode18" value="URL" style="text-decoration: underline; width: 40px" onclick="namedlink(this.form,'URL')" onMouseOver="helpline('w')" />
<!-- END button_ur -->


#
#-----[ AFTER, ADD ]------------------------------------------
#
<input type="button" class="button" accesskey="r" name="addbbcode18" value="Search" style="text-decoration: underline; width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('r')" />


#
#-----[ 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 name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]'); this.form.addbbcode30.value='444444';" onMouseOver="helpline('s')">


#
#-----[ FIND ]------------------------------------------
#
</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">


#
#-----[ REPLACE WITH ]------------------------------------------
#
</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Guzik do Szybkiej Odpowiedzi
Kod
##############################################################
## MOD Title: Search imput in Quickreply
## MOD Author: maniek.a < maniek.a@wp.pl > (Milosz) http://evolutiongt.yoyo.pl
## MOD Description: Dodaje button search w szybkiej odpowiedzi
## MOD Version: 0.0.0
##
## Installation Level: Easy
## Installation Time: 3 minutes
## Files To Edit: templates/subSilver/quick_reply.tpl
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
## Generator: Phpbb.ModTeam.Tools
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Je?li chcesz aby napis search si? zmie?ci? to zmie? liczbe 38 na wi?ksz?. (tylko w tej linijce)
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/quick_reply.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN button_q -->
<tr>
<td>&nbsp;<input type="button" class="button" value="Quote" style="width: 38px; text-indent: -3px;" onclick="bbcode('[quote]', '[/quote]')" /></td>
</tr>
<!-- END button_q -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td>&nbsp;<input type="button" class="button" value="Search" style="width: 38px; text-indent: -3px;" onclick="bbcode('[search]', '[/search]')" /></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Postaw piwo autorowi tego posta
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
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
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  



Za treść postów administracja nie odpowiada. W przypadku naruszenia prawa, wszelkie zgromadzone dane o osobie łamiącej prawo, zostaną przekazane odpowiednim władzom. Kopiowanie elementów graficznych oraz rozwiązań technologicznych zastosowanych na niniejszej witrynie surowo wzbronione.
Strona wygenerowana w 0,07 sekundy. Zapytań do SQL: 32