Articles Hierarchy
v7 | SEO friendly URL's for PHPfusion v7 Member Lookup
- 04 Sep 2008
- Tutorials
- 17175 Reads
- 6 Comments
This tutorial, written by wadday, will modify your members lookup URL's of PHP-Fusion so it's more Search Engine Friendly (SEO).
1. Download the code for seoname.php from Len Johnson's http://www.web-bu...?folder=15 CVS Browser (click the disk). If you expect unusual characters in article titles you can edit this.
2. Upload seoname.php to the includes directory of your PHP Fusion installation.
3. Make a backup copy of maincore.php.
4. Open maincore.php and find: which is at the bottom of the page
Open the user_online_panel.php file and search for the following code:
Around line 46:
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
and replace with:
echo "<a href='".BASEDIR."".seoname($member[1])."-profile-".$member[0].".php' class='side'>".$member[1]."</a>";
And search for (around line 57:
<a href='".BASEDIR."profile.php?lookup=".$data['user_id'].".php' class='side'>
And replace with:
<a href='".BASEDIR."".seoname($data['user_name'])."-profile-".$data['user_id'].".php' class='side'>
When done, save and re-upload.
SEO FOR FUSION v7 BY WADDAY:
http://www.wadday.com/blog/forum/viewthread.php?thread_id=35
MAKE SURE YOU BACKUP THE FILES YOU MODIFY!
1. Download the code for seoname.php from Len Johnson's http://www.web-bu...?folder=15 CVS Browser (click the disk). If you expect unusual characters in article titles you can edit this.
2. Upload seoname.php to the includes directory of your PHP Fusion installation.
3. Make a backup copy of maincore.php.
4. Open maincore.php and find: which is at the bottom of the page
4. Open maincore.php and find: which is at the bottom of the page
| ?> |
5. And add this code above the ?>
| // Search engine friendly URLs // http://www.web-bu...cms-c1.htm require_once INCLUDES."seoname.php"; |
Note: If you already added this for the photogallery SEO mod then you don't need to add it again!
Here is the lookup url re-write for SEO. I have done it so you don't have to worry about the coding just have to make a back up of the online_user_panel.
Create a .htaccess file or modify your already existing .htaccess. Add the code below:
I also modified the user_online_panel so it's SEO friendly.Create a .htaccess file or modify your already existing .htaccess. Add the code below:
| RewriteEngine On ##Profile RewriteRule ^(.*)-profile-([0-9]*).php$ profile.php?lookup=$2 [L] |
Open the user_online_panel.php file and search for the following code:
Around line 46:
echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
and replace with:
echo "<a href='".BASEDIR."".seoname($member[1])."-profile-".$member[0].".php' class='side'>".$member[1]."</a>";
And search for (around line 57:
<a href='".BASEDIR."profile.php?lookup=".$data['user_id'].".php' class='side'>
And replace with:
<a href='".BASEDIR."".seoname($data['user_name'])."-profile-".$data['user_id'].".php' class='side'>
When done, save and re-upload.
SEO FOR FUSION v7 BY WADDAY:
http://www.wadday.com/blog/forum/viewthread.php?thread_id=35
Post Comment
Please Login to Post a Comment.
Ratings


Information
Resources
Submit






Where can I find user_online_panel ?
Okay, Found it!
sorry Zachary i was away from office... any way.. glad you made it..
added code to have a problem maincore.php prevent the appearance of pictures photogallery.php (require_once INCLUDES. "seoname.php"


we have an complete PHP-Fusion modded to SEO URL see at www.2good4name.de
it includes also many Infusions
Please check back again soon.
BTW: Where can I find a download/tut for renaming news and articles?