| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Auteur |
Message |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14403
|
|
| Revenir en haut de page |
|
 |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
Posté le: Sam Nov 03, 2007 1:07 pm Sujet du message: Re: [ADD ON] mx SiteMaps : Auto Link Pour phpBB |
|
|
Je pence donc que c'est comme sa, avec la modif de ErnadoO :
| Code: |
##############################################################
## MOD Title: mx Sitemaps Auto link Add on pour phpBB Version mod Rewrite
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: Cet Add On ajoute des liens dynamiques vers vos plans de site mx Sitemaps.
## MOD Version: 0.0.1
##
## Installation Level: Facile.
## Installation Time: 1 Minutes.
##
## Files To Edit: 2,
## includes/page_tail.php
## templates/subSilver/overall_footer.tpl
##
## Included Files: 0
##
## 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 :
## Cet add on ajoutera des liens vers vos plans de site mx Sitemaps en pied de page de votre forum.
## Un lien vers L'index des Plans de Site et un lien vers le plan des forums sont ajoutés à chaque page.
## Quand vous explorez un forum, un lien supplémentaire est ajouté, pointant vers le plan de ce forum.
##
##
## NOT tested with EasyMod, but should work :-)
##############################################################
## MOD History:
##
## 2006-04-21 - Version 0.0.1
## - This is the first version.
## Fully tested working, no known bugs so far.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Cette version du Add On est faite pour phpBB.
Vous DEVEZ activer le mod Rewrite des plans de site dans l'ACP de mx Sitemap.
Vous devrez également installer correctement les règles rewriterules dans votre fichier .htacess pour
pouvoir utiliser les liens.
Cela requiert que votre site soit hébergé sur un serveur Apache avec le mod_Rewrite activé.
Un fichier .htaccess générique se trouve dans le dossier contrib/ du package mx Sitemaps.
Pour plus de détails, rendez vous @ http://forums.phpbb-seo.com/mods-phpbb-seo-vf30/
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
//
// Show the overall footer.
//
#
#-----[ BEFORE, ADD ]------------------------------------------
# Note : Vous pouvez également modifier les titres des liens ici. ;-)
# Assurez vous de remplacer "URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED" par l'URL menant au dossier dans lequels se trouve
# le fichier sitemaps.php.
//Begin mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
$mx_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]) )? intval($HTTP_GET_VARS[POST_FORUM_URL]) : 0;
$root_url = 'http://URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . $phpbb_seo->format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html');
$mx_sitemap_link = '<a href="'.$mx_link_tmp.'" class="copyright" title="'.$link_title.'">'.$link_title.'</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
//End mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]------------------------------------------
#
'U_SITEMAPS' => $mx_sitemap_link,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
</span></div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
</span><br />{U_SITEMAPS}<br /></div>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
Pour les personnes qui voudrais juste la mise à jours :
| Code: |
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
//Begin mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
$mx_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]) )? intval($HTTP_GET_VARS[POST_FORUM_URL]) : 0;
$root_url = 'http://URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . 'forum-map' . $mx_forum_id . '.html');
$link_title = $forum_row['forum_name'].' - Map';
$mx_sitemap_link = '<a href="'.$mx_link_tmp.'" class="copyright" title="'.$link_title.'">'.$link_title.'</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
//End mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
|
Remplacé par :
| Code: |
# Note : Vous pouvez également modifier les titres des liens ici. ;-)
# Assurez vous de remplacer "URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED" par l'URL menant au dossier dans lequels se trouve
# le fichier sitemaps.php.
//Begin mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
$mx_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]) )? intval($HTTP_GET_VARS[POST_FORUM_URL]) : 0;
$root_url = 'http://URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED/';
if ( $mx_forum_id != 0 )
{
$mx_link_tmp = append_sid($root_url . $phpbb_seo->format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html');
$mx_sitemap_link = '<a href="'.$mx_link_tmp.'" class="copyright" title="'.$link_title.'">'.$link_title.'</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'forum-map.html').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.html').'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
//End mx_Sitemaps Auto link Add On http://www.phpbb-seo.com/
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
|
_________________ Besoin d'une aide psychologique ? psychologie entraide est la !
Anu gratis link, annuaire gratuit avec liens en durs
 |
|
| Revenir en haut de page |
|
 |
dcz Administrateur - Site Admin

Inscrit le: 28 Avr 2006 Messages: 14403
|
|
| Revenir en haut de page |
|
 |
wythi PR2

Inscrit le: 06 Déc 2006 Messages: 211 Localisation: Belgique
|
|
| Revenir en haut de page |
|
 |
|
| Navigation |
Autres sujets de discussion |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |