| :: |
| Author |
Message |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3117
|
Posted: Fri Apr 21, 2006 12:53 pm Post subject: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
mx Sitemaps Auto link Add on for phpBB
Module name : mx Sitemaps Auto link Add on for phpBB
Module author : dcz / www.phpBB-SEO.com
MOD Description: This Add on mod creates Dynamic links to your mx_sitemaps Site Maps.
Module version : v0.1
Installation Level : Easy.
Installation Time : 2 Minutes.
Author's Notes :
This is the phpBB version. mxBB Portal users will prefer Auto Link Add On For mxBB.
You must install mx SiteMaps Module prior to use this Add On.
This code change will output links to your Site Map Index in your Forum's footer.
It will output a link to the Site Map Index as well as a link to the Forum Map.
When browsing a specific forum, an extra link to the specific forum map will be additionaly outputted.
This Add On will enhance your site map as far as Search Engine Optimization. Bots will crawl upon those links and stick to the sitemap, discovering tons of new links to your pages.
Supported Languages :
Demo :
Download File :
Current Features :
While Browsing Forum :
Will output a link to the Site Map Index as well as a link the the Forum Map in the footer.
While Browsing a Forum :
Will add to the previous two an extra link to the specific forum's Map.
Planned features :
More type of outputs :
Plan to add more types of outputs, for example to be able to auto link in the header also.
Support :
English Support On this Thread. If you need some specific adaptation, please start a new thread in this Forum.
Support Francophone |
_________________
Last edited by SeO on Mon May 01, 2006 9:51 pm; edited 4 times in total |
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3117
|
Posted: Mon May 01, 2006 6:53 pm Post subject: mx Sitemaps Auto link Add On for phpBB Vanilla Url Ver |
|
|
mx Sitemaps Auto link Add On for phpBB : "Vanilla Url Version"
This version of the Add On is ment to be used with phpBB.
The proper set up for mx Sitemaps with this Add On version is when Mod Rewrite are set to "NO".
With this Add On, Sitemap's Url will be :
-http://www.example.com/phpBB/sitemaps.php => Site Map Index
-http://www.example.com/phpBB/sitemaps.php?fim => Forum Index Map
-http://www.example.com/phpBB/sitemap.php?fmp=xx => Forum xx Map
| Code: | ##############################################################
## MOD Title: mx Sitemaps Auto link Add on for phpBB
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: This Add on mod creates Dynamic links to your mx_sitemaps Site Maps.
## MOD Version: 0.0.1
##
## Installation Level: Easy.
## Installation Time: 3 Minutes.
##
## Files To Edit: 2,
##
## 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:
## This code change will output links to your Site Maps in your Forum's footer.
## It will output the link to the Site Maps as well as the link to the
## Forum Map.
## When browsing a specific forum, an extra link to the specific forum map
## Will be outputed as well.
##
## 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
############################################################## |
This one goes like this :
For the php part, one file to edit :
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
//
// Show the overall footer.
//
#
#-----[ BEFORE, ADD ]------------------------------------------
# Note : You can here change links titles also ;-)
# Make sure to change here "URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED" with the actual URL to the folder.
//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 . 'sitemaps.'. $phpEx .'?fmp='. $mx_forum_id);
$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 . 'sitemaps.'. $phpEx . '?fim').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.'. $phpEx).'" class="copyright" title="'.$board_config['sitename'].' : Site Map">Site Map</a>';
}
else
{
$mx_sitemap_link = '<a href="'.append_sid($root_url . 'sitemaps.'. $phpEx . '?fim').'" class="copyright" title="Forum Map">Forum Map</a>';
$mx_sitemap_link .= '<br /><a href="'.append_sid($root_url . 'sitemaps.'. $phpEx).'" 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, |
In this part you have to make sure to put the proper url to your sitemap's folder (the folder in which stands the sitemaps.php file).
And the Template part :
| Code: | #
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
</span></div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
</span><br />{U_SITEMAPS}<br /></div>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
Which you can change upon your needs. {U_SITEMAPS} Stands for the complete html link to the sitemap, you can use it where you want in the overall_footer.tpl. |
_________________
Last edited by SeO on Mon May 01, 2006 9:32 pm; edited 4 times in total |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3117
|
Posted: Mon May 01, 2006 8:59 pm Post subject: mx Sitemaps Auto link Add On for phpBB Mod Rewrite |
|
|
mx Sitemaps Auto link Add On for phpBB : "mod Rewrite Version"
This version of the Add On is ment to be used with phpBB.
The proper set up for mx Sitemaps with this Add On version is when Mod Rewrite are set to "YES".
You will need to properly set up the rewrite rules in your .htaccess in order to be able to use the outputed links.
This Require Being hosted on an Apache Server With mod_Rewrite loaded.
Have a look in the mx Sitemap contrib/ folder for a sample .htacess file.
The links will be pointing to your Site Map file.
With this Add On, Sitemap's Url will be :
-http://www.example.com/phpBB/sitemaps.html => Site Map Index
-http://www.example.com/phpBB/forum-map.html => Forum Index Map
-http://www.example.com/phpBB/forum-mapxx.html => Forum xx Map
| Code: | ##############################################################
## MOD Title: mx Sitemaps Auto link Add on for phpBB Mod Rewrite Version
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: This Add on mod creates Dynamic links to your mx_sitemaps Site Maps.
## MOD Version: 0.0.1
##
## Installation Level: Easy.
## Installation Time: 3 Minutes.
##
## Files To Edit: 2,
##
## 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:
## This code change will output links to your Site Maps in your Forum's footer.
## It will output the link to the Site Maps as well as the link to the
## Forum Map.
## When browsing a specific forum, an extra link to the specific forum map
## Will be outputed as well.
##
## 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
############################################################## |
This one goes like this :
For the php part, one file to edit.
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
//
// Show the overall footer.
//
#
#-----[ BEFORE, ADD ]------------------------------------------
# Note : You can here change links titles also ;-)
# Make sure to change here "URL_TO_THE_FOLDER_WHERE_YOUR_SITEMAP_IS_INSTALLED" with the actual URL to the folder.
//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/
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]------------------------------------------
#
'U_SITEMAPS' => $mx_sitemap_link, |
In this part you have to make sure to put the proper url to your sitemap's folder (the folder in which stands the sitemaps.php file).
And the Template part :
| Code: |
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
</span></div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
</span><br />{U_SITEMAPS}<br /></div>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
Here too, you can change the links upon your needs. {U_SITEMAPS} Stands for the complete html link to the sitemap, you can use it where you want in the overall_footer.tpl. |
_________________
Last edited by SeO on Thu May 04, 2006 2:50 pm; edited 2 times in total |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
hedgehog
Joined: 29 Apr 2006 Posts: 15
|
Posted: Wed May 03, 2006 9:22 pm Post subject: Re: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
works! nice
Thanks |
|
|
| Back to top |
|
 |
hedgehog
Joined: 29 Apr 2006 Posts: 15
|
Posted: Wed May 03, 2006 9:42 pm Post subject: Re: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
err, i thought it was working.. it added the 3 links forum/sitemap, but the
forum-map# is giving me errors,
the
forum-map.html
sitemaps.html
are working fine...
I think it is a rewrite thing, as per other forum.. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Wed May 03, 2006 9:57 pm Post subject: Re: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
erf, it's because of another typo in the rewriterule, dev stage is being usefull
use these instead :
| Code: | RewriteRule ^sitemaps([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^forum-m\ap([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum-m\ap([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L] |
And zip updated too
Have you tryed the sitemapindex features ?
You can also add last active topics listing in other pages.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon May 29, 2006 1:31 pm Post subject: Title Injection : Mixed & Advanced phpBB SEO mod Rewrite |
|
|
Title Injection : Mixed & Advanced phpBB SEO mod Rewrite
mod phpBB SEO Advanced mod Rewrite & phpBB SEO Advanced mod Rewrite, user will have to apply the following code changes. Title will thus be injected in mx sitemaps links.
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$mx_link_tmp = append_sid($root_url . 'forum-map' . $mx_forum_id . '.html');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$mx_link_tmp = append_sid($root_url . format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html'); |
Here are the Rewriterules you will have to use :
| Code: | #########################################################
# MX SITEMAPS REWRITE RULES ADVANCED #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/04/28
########################################################
RewriteRule ^sitemaps([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
#########################################################
# END SITEMAPS REWRITE RULES #
######################################################### |
Or, if phpBB is installed in a sub folder :
| Code: | #########################################################
# MX SITEMAPS REWRITE RULES ADVANCED #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/04/28
########################################################
RewriteRule ^phpbb/sitemaps([0-9]+)\.html$ /phpbb/sitemaps.php?c=$1 [QSA,L]
RewriteRule ^phpbb/sitemaps\.html$ /phpbb/sitemaps.php [QSA,L]
RewriteRule ^phpbb/forum-m\ap\.html$ /phpbb/sitemaps.php?fim [QSA,L]
RewriteRule ^phpbb/.+-fmp([0-9]+)-([0-9]+)\.html$ /phpbb/sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^phpbb/.+-fmp([0-9]+)\.html$ /phpbb/sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^phpbb/.+-sc([0-9]+)\.html$ /phpbb/sitemaps.php?c=$1 [QSA,L]
#########################################################
# END SITEMAPS REWRITE RULES #
######################################################### |
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning of "phpbb/".
Make sure to change phpbb/ with the actual folder name where phpBB is installed. |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Wed Aug 09, 2006 11:05 am Post subject: Re: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
Another sub forum matter
Try this simple one if enough, will only work here because you are already using the 0.0.3 mod rewrite core with the UTF-8 version we just achieved :
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$mx_link_tmp = append_sid($root_url . format_url($forum_row['forum_name']) . '-fmp' .$mx_forum_id . '.html');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$mx_link_tmp = append_sid($root_url . $seo_forum_name . '-fmp' .$mx_forum_id . '.html'); |
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Thu Aug 10, 2006 6:08 am Post subject: Re: [ADD ON] mx SiteMaps : Auto Link For phpBB |
|
|
something is wrong
i have this part of code in my page_tail.php
i couldn't find that part of code
| Code: | //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/ |
|
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
|
|