ich habe follgenden MOD gefunden aber ein paar Probleme damit:
Mein Problem ist das ich für diese Mod den Multiple BBCode MOD installiert haben muss.##############################################################
## MOD Title: Google Search BBCode
## MOD Author: wGEric < eric@egcnetwork.com > (Eric) http://eric.best-1.biz
## MOD Author, Secondary: LifeIsPain <brian@orvp.net> (Brian Evans)
## MOD Description: Adds a new bbcode. Allows you to make strings in your post
## links to search for those strings at Google.
## ([google]string to search for[/google])
## MOD Version: 1.1.1
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: - posting.php
## - includes/bbcode.php,
## - langugage/lang_english/lang_main.php,
## - templates/subSilver/bbcode.tpl,
## - templates/subSilver/posting_body.tpl
## Included Files: n/a
##############################################################
## Author Notes:
## You must have Multiple BBCode MOD installed for this to work.
## Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
##
## example:
## [google]string to search for[/google]
##
##############################################################
## MOD History:
##
## 2003-07-28 - Version 1.1.1
## - Fixed bug that would escape ", Thanks to LifeIsPain
##
## 2003-07-24 - Version 1.1.0
## - Added Button
## - Minor Changes
##
## 2003-07-18 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------
#
posting.php
#
#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'d'
#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'55'
#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'Google'
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
# 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
'L_BBCODE_F_HELP' =>
#
#-----[ AFTER, ADD ]--------------------------------
#
'L_BBCODE_D_HELP' => $lang['bbcode_d_help'],
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$bbcode_tpl['google'] = '\'' . $bbcode_tpl['google'] . '\'';
$bbcode_tpl['google'] = str_replace('{STRING}', "' . str_replace('\\\"', '\"', '\\1') . '", $bbcode_tpl['google']);
$bbcode_tpl['google'] = str_replace('{QUERY}', "' . urlencode(str_replace('\\\"', '\"', '\\1')) . '", $bbcode_tpl['google']);
#
#-----[ FIND ]------------------------------------------
#
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [google]string for search[/google] code..
$patterns[] = "#\[google\](.*?)\[/google\]#ise";
$replacements[] = $bbcode_tpl['google'];
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
$lang['bbcode_f_help'] =
#
#-----[ AFTER, ADD ]---------------------------------
#
$lang['bbcode_d_help'] = "Google: [google]String to search for[/google] (alt+d)";
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN google --><a href="http://www.google.com/search?q={QUERY}" target="_blank">{STRING}</a><!-- END google -->
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#f_help = "{L_BBCODE_F_HELP}";
#
f_help =
#
#-----[ AFTER, ADD ]---------------------------------
#
d_help = "{L_BBCODE_D_HELP}";
#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(
#
#-----[ IN-LINE FIND ]---------------------------------
#
'',''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[google]','[/google]'
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Gibt es eine Möglichkeit das Teil so umzuschreiben, das man den Multiple BBCode MOD nicht braucht?
Achja und wenn ich das richtig gelesen hab, verwendet dieser Mod die google.com HP.
Wäre gut wenn er auf google.de suchen würde!
Ich bin leider ein absoluter nOOb was das PHP Proggen angeht, sonnst hätte ich mich selber daran gesetzt.
Das Ganze ins Deutsche zu übersetzen sollte kein Probelm sein, das bekomm ich hin.
Hoffe auf Hilfe und cu.
Weby