[ADD ON] mx SiteMaps : Auto Link For phpBB

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators


[ADD ON] mx SiteMaps : Auto Link For phpBB

Postby SeO » Fri Apr 21, 2006 12:53 pm

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 :
    English, French.

Demo :

Download File :

Current Features :
    While Browsing Forum :
    :arrow: 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 :
    :arrow: Will add to the previous two an extra link to the specific forum's Map.

Planned features :
    More type of outputs :
    :idea: 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.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm

Advertisement

mx Sitemaps Auto link Add On for phpBB Vanilla Url Ver

Postby SeO » Mon May 01, 2006 6:53 pm

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: Select all
##############################################################
## 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: Select all
#
#-----[ 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: Select all
#
#-----[ 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.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm

mx Sitemaps Auto link Add On for phpBB Mod Rewrite

Postby SeO » Mon May 01, 2006 8:59 pm

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: Select all
##############################################################
## 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: Select all
#
#-----[ 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: Select all
#
#-----[ 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.
SeO
Admin
Admin
 
Posts: 6035
Joined: Wed Mar 15, 2006 9:41 pm

Postby dcz » Wed May 03, 2006 9:10 am

Support follows ;)

Here we are :D
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Postby hedgehog » Wed May 03, 2006 9:22 pm

works! nice


Thanks
hedgehog
 
Posts: 15
Joined: Sat Apr 29, 2006 10:12 pm

Postby hedgehog » Wed May 03, 2006 9:42 pm

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..
hedgehog
 
Posts: 15
Joined: Sat Apr 29, 2006 10:12 pm

Postby dcz » Wed May 03, 2006 9:57 pm

erf, it's because of another typo in the rewriterule, dev stage is being usefull ;)


use these instead :

Code: Select all
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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Title Injection : Mixed & Advanced phpBB SEO mod Rewrite

Postby dcz » Mon May 29, 2006 1:31 pm

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: Select all
#
#-----[ 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: Select all
#########################################################
# 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: Select all
#########################################################
# 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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Wed Aug 09, 2006 5:40 am

hello again

first congratulation, the new template is very beautiful

i found a bug in this addon with simple subforum
see this picture

Image

the link is not belong to that title
and see this one

Image

:wink:
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby dcz » Wed Aug 09, 2006 11:05 am

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: Select all
#
#-----[ 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 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Thu Aug 10, 2006 6:08 am

something is wrong :?

i have this part of code in my page_tail.php
i couldn't find that part of code

Code: Select all
//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/
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby dcz » Thu Aug 10, 2006 11:07 am

Well, you missed this part I think ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Sat Aug 12, 2006 8:45 am

some part of problem are solved
but now there is problem exactly like this problem

http://boards.phpbb-seo.com/phpbb-mod-r ... .html#1211
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Postby dcz » Sat Aug 12, 2006 10:40 am

If the site is on line I'd appreciate a Link to nderstand faster.

What's happening, when in a sub forum, you see the parent forum name injected ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 19930
Joined: Fri Apr 28, 2006 9:03 pm

Postby AmirAbbas » Sun Aug 13, 2006 9:03 am

unfortunately my forum is not online
i must solve all problem and after that i will install my forum in my new domain.

i want to explain the problem again
after that fix you offered. the destination of the link are correct but the link in address bar and in status bar is not correct

for example
you have autolink in this forum

for this address

http://boards.phpbb-seo.com/phpbb-seo-toolkit-vf31/

you have this title in autolink in footer of the page

phpBB SEO TooLKit - Map

when you put your mouse pointer on this title you will see this link

http://www.phpbb-seo.com/phpbb-seo-toolkit-bm31.html

in your forum everything is correct but for me.
when i put my mouse on that title (imagine this forum is for mine and i have installed advance rewrite mod (utf-8 version) with outolink addon )
i will see this link in status bar

http://www.phpbb-seo.com/phpbb-seo-mods-bm32.html (link of first subforum)

as you can see this link is not belong to that title

when i click on that title i will go to correct page i mean i go to this page

http://www.phpbb-seo.com/phpbb-seo-toolkit-bm31.html

but the link in address bar is not correct. the link in address bar is this link
http://www.phpbb-seo.com/phpbb-seo-mods-bm32.html :shock:
User avatar
AmirAbbas
phpBB SEO Team
phpBB SEO Team
 
Posts: 534
Joined: Thu May 11, 2006 3:30 pm
Location: IRAN

Next

Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest


 
cron