|
Unofficial modifications nieoficjalne modyfikacje for?w phpBB by Przemo |
|
Pomoc dla modyfikacji - Spider Friendly i Meta tag
PayLOADer - Pią 29 Cze, 2007 Temat postu: Spider Friendly i Meta tag Search META tags jak go zainstalowa??
Cytat | ##############################################################
## MOD Title: Search META tags
## MOD Author: RustyDragon < dev@RustyDragon.com > (n/a) http://www.phpbbhacks.com
## MOD Author: Crack < piotrprz@gmail.com > (Piotr Przybylski) http://www.crackpl.eu
## MOD Description: Adds two configurable META tags to your board header:
## <META description> and <META keywords>
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 10 Minutes
## Files To Edit: 5
## admin/admin_board.php
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/overall_header.tpl
## includes/page_header.php
## language/lang_english/lang_admin.php
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## 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:
## (Crack)
##
## EN
## The only changes that I've made to this mod are polish translation and
## repairing mod instruction so that it works correctly with EasyMOD.
##
## PL
## Jedyne zmiany jakie wprowadzi?em do tego moda to dodanie polskiego
## t?umaczenia i zmiana instrukcji tak by dzia?a?a z EasyMODem.
##
## Instalacja polskiej wersji j?zykowej znajduje si? w pliku
## lang_polish.txt
##############################################################
## 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 phpbb_config (config_name, config_value) VALUES ('meta_keywords', '' );
INSERT INTO phpbb_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 ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Meta tags mod
$lang['Meta_keywords'] = 'META Keywords';
$lang['Meta_keywords_explain'] = 'Keywords in HTML tag <meta keywords>.';
$lang['Meta_description'] = 'META Description';
$lang['Meta_description_explain'] = 'Description in HTML tag <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 |
Jak mam w SQL to sprawdi??
a po drugie w includes/page_header.php NIE MA WPISU: 'SITE_DESCRIPTION' => $board_config['site_desc'],
prosze o w miar? szybka odpowied?.
I czy w og?le ten meta tag jest potrzebny do instalacji moda Spider friendly?
Marcin - Pią 29 Cze, 2007
PayLOADer, ale to jest chyba tylko do pbpBB2 (czystego) bo w by Przemo to ju? jest
PayLOADer - Pią 29 Cze, 2007
Znacyz sie meta tag tak ? no wi?c w?asnie tez tak sadze oto sie ustaiwa w PA ->> KONFIGURACJA ->> DODATOWKE
ok ale co do spider friendly czemu:
Kod | #-----[ SQL ]--------
# make sure that you are using correct prefix for table
INSERT INTO phpbb_config (config_name, config_value) VALUES ('meta_keywords', '' );
INSERT INTO phpbb_config (config_name, config_value) VALUES ('meta_description', '');
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'SITE_DESCRIPTION' => $board_config['site_desc'],
|
Tego nei mog? znale??:
Kod | 'SITE_DESCRIPTION' => $board_config['site_desc'], |
Oraz jak mam w SQL sprawdzi? czy uzywam:
Kod |
INSERT INTO phpbb_config (config_name, config_value) VALUES ('meta_keywords', '' );
INSERT INTO phpbb_config (config_name, config_value) VALUES ('meta_description', ''); |
|
|