Poszukiwania - [dodatek] Kosz!
zXc^ - 07-09-2010, 12:10 Temat postu: [dodatek] Kosz! Kosz!
xlesiu - 07-09-2010, 12:16
A ten mod nie jest w paczce SpiderFriendly?
Mario14125 - 07-09-2010, 12:20
Chyba właśnie nie ma
xlesiu - 07-09-2010, 12:25
Jest w katalogu contrib/search_meta_tags
szresi - 07-09-2010, 12:27
a dla leniwych:
Kod: | ##############################################################
## MOD Title: Search META tags
## MOD Author: RustyDragon <dev@RustyDragon.com> www.phpbbhacks.com
## MOD Description: Adds two configurable META tags to your board header -
## <META description> and <META keywords>
## MOD Version: 1.0.0
##
## Installation Level: (moderate)
## Installation Time: 10 Minutes
## Files To Edit: board_config_body.tpl, includes/page_header.php, lang/lang_polish/lang_admin.php,
## admin/admin_board.php, templates/subSilver/overall_header.tpl
## Included Files: n/a
##############################################################
## Author Notes:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#-----[ SQL ]--------
# make sure that you are using correct prefix for table
INSERT INTO config ( config_name, config_value) VALUES ('meta_keywords', '' );
INSERT INTO config ( config_name, config_value) VALUES ('meta_description', '' );
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'SITE_DESCRIPTION' => $board_config['site_desc'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'META_DESC' => '<META NAME="Keywords" content="' . $board_config['meta_keywords'] .'"><META NAME="Description" content="' . $board_config['meta_description'] .'">',
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
"L_ENABLE_PRUNE" => $lang['Enable_prune'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_META_KEYWORDS" => $lang['Meta_keywords'],
"L_META_KEYWORDS_EXPLAIN" => $lang['Meta_keywords_explain'],
"L_META_DESCRIPTION" => $lang['Meta_description'],
"L_META_DESCRIPTION_EXPLAIN" => $lang['Meta_description_explain'],
#
#-----[ FIND ]------------------------------------------
#
"PRUNE_NO" => $prune_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"META_KEYWORDS" => $new['meta_keywords'],
"META_DESCRIPTION" => $new['meta_description'],
#
#-----[ OPEN ]------------------------------------------
#
lang/lang_polish/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Meta tags mod
$lang['Meta_keywords'] = 'META Keywords';
$lang['Meta_keywords_explain'] = 'Słowa kluczowe w tagu HTML <meta keywords>.';
$lang['Meta_description'] = 'META Description';
$lang['Meta_description_explain'] = 'Opis w tagu HTML <meta description>.';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_META_KEYWORDS}<br /><span class="gensmall">{L_META_KEYWORDS_EXPLAIN}</span></td>
<td class="row2"><input type="text" maxlength="255" name="meta_keywords" value="{META_KEYWORDS}" /></td>
</tr>
<tr>
<td class="row1">{L_META_DESCRIPTION}<br /><span class="gensmall">{L_META_DESCRIPTION_EXPLAIN}</span></td>
<td class="row2"><input type="text" maxlength="255" name="meta_description" value="{META_DESCRIPTION}" /></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<meta http-equiv="Content-Style-Type" content="text/css">
#
#-----[ AFTER, ADD ]------------------------------------------
#
{META_DESC}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
Mario14125 - 07-09-2010, 12:32
xlesiu, i to ma coś polepszyć
xlesiu - 07-09-2010, 12:36
Mi to się wydaje, że to jest już standardowo w PA - Ogólne - Dodatkowe
Mario14125 - 07-09-2010, 12:50
xlesiu, z ciekawości zobaczę sobie w plikach
zXc^ - 07-09-2010, 12:54
Kosz!
|
|
|