January 07 2009 22:04:00
Navigation
Last Seen Users
elynOnline
Joe KrizOnline
gamemasterOnline
bredgaardOnline
JanileinOnline
Diemux< 5 mins
Wildformovies< 5 mins
napster< 5 mins
assault14< 5 mins
cdv< 5 mins

Guests Online: 0
Registered Members: 3,672
Newest Member: Janilein
Downloads v7
Currently popular Downloads

Professional Down... 553
Extended Profile 511
FusionBoard 4 486
Photoalbum Mass U... 479
Avatar Studio 465
HighSlide Gallery... 418
Photo in Profile 404
VArcade 1.7 396
Wap Mod 365
Who Is Online Adm... 345

Latest Downloads


Virus Scan Panel 1
Translate Panel 11
Profile Tabs 11
EbayList 2
Navigation Panel 9
User Stat Panel 3
Avatar Studio 465
Advanced Forum Threa... 19
Custom Panel Control 200
Online Users Extend ... 9
Downloads v6
Currently popular Downloads

Video Gallery 380
EXTboard 363
Extreme Theme Editor 344
Icon Package 2.0 292
Banner System v2.0.4 284
Tabbed welcome panel 283
Fuzed Shoutbox 278
Extended Profile ... 276
News.php 266
Header Banner System 221

Latest Downloads


Login Redirect 1
Mod "index.php + mod... 2
Base Games 2
Banner exchange system 3
Poll with comments a... 91
Media Streamer 5
v6.01.18 FULL 16
v6.01.16 - v6.01.17 44
v6.01.15 - v6.01.16 2
v6.01.17 - v6.01.18 9
Provider
PHPfusion-mods.net is hosted at:

110MB
Online Stats
Guests online: 6
Members online:
bredgaard, [elyn], Janilein, Joe Kriz

registered members: 3672
newest member: Janilein

user today: 1633
user online: 10
Max. onlinerecord: 43
Max. per day: 5705
user yesterday: 4296
user month: 34111
Entire users: 107894

last 24h:
























SEO Friendly URL's for PHP-Fusion
In this tutorials I want to explain how you can optimize search engine results by using SEO friendly URL's for articles, news and the photogallery. Based on the SEO mod by web-bureau.com we can easily transform the ugly readarticle.php?article_id=x URL's.

With this tutorial you can implant the SEO friendly URL mod to your articles, news and photogallery. I will explain how to convert your files OR you can simply download the pre-modded files. (located in the article footer)

If you are going to install all SEO mods, you only have to do step 1 and 3 once.

If you run in any problems, take a look here.

<b>Requirements:</b>

- Seoname.php
- PHP-Fusion 6.01.10 or higher. (probably works on lower version too but only tested with this version and higher)
- .htaccess support on your server.

SEO friendly links for Articles.php (example: http://www.underground3k.com/articles.php )

Step 1
Download Seoname.php and upload that file to your includes folder.


Step 2
Create a new .htaccess file OR open yours if you already got one and paste the following code in it:

## SEO friendly URL by web-bureau.com
## Provided by PHPfusion-mods.net
## Use this if Fusion is installed in your root directory
RewriteBase /
## Use the following if Fusion is not installed on your root directory
## RewriteBase /<fusion_path>/
RewriteEngine On

## Articles
RewriteRule ^(.*)-a([0-9]*).htm$ readarticle.php?article_id=$2 [L,NC]

## Article categories
RewriteRule ^(.*)-d([0-9]*).htm$ articles.php?cat_id=$2 [L,NC]

If your Fusion isn't in the root, replace 'RewriteBase' to 'RewriteBase /<fusion_path>/' (where <fusion_path> is the folder name).


Step 3
Open Maincore.php and find:

'?>'

Above, add the following:

// Search engine friendly URLs
// http://www.web-bureau.com/php-fusion-cms-c1.htm
require_once INCLUDES."seoname.php";


Step 4
Open articles.php (original one) and search for: (line 27)

<a href='".FUSION_SELF."?cat_id=".$data['article_cat_id']."'>".$data['article_cat_name']."</a>

Replace with:

<a href='".seoname($data['article_cat_name'])."-d".$data['article_cat_id'].".htm'>".$data['article_cat_name']."</a>

Find:

<a href='readarticle.php?article_id=".$data['article_id']."'>".$data['article_subject']."</a>


And replace with:

<a href='".seoname($data['article_subject'])."-a".$data['article_id'].".htm'>".$data['article_subject']."</a>

Save articles.php and upload it.


End

Everything should work now, if you run in trouble, recheck the steps above. If you still have problems, see the support thread .



SEO friendly links for Photogallery.php (example: http://www.underground3k.com/photogallery.php )

Step 1
Download Seoname.php and upload that file to your includes folder.


Step 2
Create a new .htaccess file OR open yours if you already got one and paste the following code in it:

## SEO friendly URL by web-bureau.com
## Provided by PHPfusion-mods.net
## Use this if Fusion is installed in your root directory
RewriteBase /
## Use the following if Fusion is not installed on your root directory
## RewriteBase /<fusion_path>/
RewriteEngine On

## Photogallery Albums
RewriteRule ^(.*)-c([0-9]*).htm$ /photogallery.php?album_id=$2 [L,NC]

## Photogallery Photo's
RewriteRule ^(.*)-r([0-9]*).htm$ /photogallery.php?photo_id=$2 [L,NC]

If your Fusion isn't in the root, replace 'RewriteBase' to 'RewriteBase /<fusion_path>/' (where <fusion_path> is the folder name).


Step 3
Open Maincore.php and find:

'?>'

Above, add the following:

// Search engine friendly URLs
// http://www.web-bureau.com/php-fusion-cms-c1.htm
require_once INCLUDES."seoname.php";


Step 4
Open photogallery.php (original one) and search for: (around line 52)

<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>

Replace with:

<a href='".seoname($data['album_title'])."-c".$data['album_id'].".htm'>

Find: (around line 53)

<a href='".FUSION_SELF."?photo_id=$photo_id'>


And replace with:

<a href='".seoname($data['album_title'])."-r".$data['photo_id'].".htm'>

Find: (around line 119)

<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>


And replace with:

<a href='".seoname($data['album_title'])."-c".$data['album_id'].".htm'>

Find: (around line 126)

<a href='".FUSION_SELF."?photo_id=".$data['photo_id']."'>


And replace with:

<a href='".seoname($hold_album_title)."-r".$data['photo_id'].".htm'>

Find: (around line 162)

<a href='".FUSION_SELF."?album_id=".$data['album_id']."'>


And replace with:

<a href='".seoname($data['album_title'])."-c".$data['album_id'].".htm'>


Save photogallery.php and upload it.


End

Everything should work now, if you run in trouble, recheck the steps above. If you still have problems, see the support thread .



SEO friendly links for News.php

First: Download the new news.php .

Step 1
Download Seoname.php and upload that file to your includes folder.


Step 2
Create a new .htaccess file OR open yours if you already got one and paste the following code in it:

## SEO friendly URL by web-bureau.com
## Provided by PHPfusion-mods.net
## Use this if Fusion is installed in your root directory
RewriteBase /
## Use the following if Fusion is not installed on your root directory
## RewriteBase /<fusion_path>/
RewriteEngine On

## News categories
RewriteRule ^(.*)-nc([0-9]*).htm$ news_cats.php?cat_id=$2 [L,NC]

## News articles
RewriteRule ^(.*)-rn([0-9]*).htm$ news.php?readmore=$2 [L,NC]
RewriteRule ^(.*)-rn([0-9]*)$ news.php?readmore=$2 [L,NC]

If your Fusion isn't in the root, replace 'RewriteBase' to 'RewriteBase /<fusion_path>/' (where <fusion_path> is the folder name).


Step 3
Open Maincore.php and find:

'?>'

Above, add the following:

// Search engine friendly URLs
// http://www.web-bureau.com/php-fusion-cms-c1.htm
require_once INCLUDES."seoname.php";


Step 4
Open theme.php and find:

echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);

Replace with:

echo openform("N",$info['news_id']).newsposter($info," ·")
.seonewsopts($info,"·").closeform("N",$info['news_id']);



Step 5
Upload the news.php which you downloaded in the beginning of the tutorial.


End

Everything should work now, if you run in trouble, recheck the steps above. If you still have problems, see the support thread .



Comments
#11Diemux on June 29 2008 02:07:31
No, it doesn't seem that v7 has build in SEO. I am currently working on a v7 tutorial for SEO friendly links.
#10upitnik on June 27 2008 23:51:33
is this going to be by default in V7?
#9frix on June 25 2008 16:50:38
Maby there is some SEO optimization for the profile?
#8frix on June 25 2008 16:46:17
Thanks for the mod.
#7Diemux on June 23 2008 21:55:33
hehe true. Not really forgot it as this is for the pages only. But never thought of the panels Big Smile Thanks for the modification!
#6webadmin88 on June 19 2008 12:13:01
Diemux I think you forgot only one thing- the modification for the Latest_articles_panel

On line 23 replace with:

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".seoname($data['article_subject'])."-a".$data['article_id'].".htm' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";


I see you have done it correctly here but it is not in the tutorial Wink
#5Diemux on June 18 2008 22:25:20
News:

Find:

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);

Add below:

// Seo mod begin
$seoSubject = stripslashes($data['news_subject']);
// Seo mod end

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data['news_cat_name'])."-nc".$data['news_cat_id'].".htm'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Find:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$ncount++;
} else {

Add below:

$news_info['news_subject'] = $seoSubject;

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data2['news_cat_name'])."-nc".$data2['news_cat_id'].".htm'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Done!

Regarding the downloads/comments, haven't seen one yet. Will see whats possible Wink
#4webadmin88 on June 18 2008 19:36:26
Also, is there some SEO optimization for the downloads or comments? Thanks Smile
#3webadmin88 on June 18 2008 19:23:37
I want to ask for Only one thing, since my news.php is edited, what are the codes that have to be optimized. Pls if any ideas write. Thanks for the rest Diemux and Geo, nice work!Laughing!
#2Diemux on May 17 2008 00:24:21
Hmm I see, however on http://www.underg... it does show the photo title. I use a modified version 6.01.10 on there so I think they made some changes to the latest Fusion where my code isn't working like it should.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 0% [No Votes]
Very Good Very Good 0% [No Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 100% [1 Vote]
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Rizald 'Elyn' Maxwell
Diemux
Donate

Affiliates:
Venue

Shoutbox
You must login to post a message.

07/01/2009 03:37
issue solved on thread list..

07/01/2009 03:20
error on advanced thread list panel ...

07/01/2009 02:28
Thanks diemux! no bugs on my online extend panel?

06/01/2009 19:10
Oh ye, I forgot it's name. Thanks

06/01/2009 19:05
Download here.

06/01/2009 18:54
where is that infusion for welcome tabs panel like on this site?

06/01/2009 18:43
@Diemux: PM for you.

06/01/2009 18:37
just infused doesn't work... rc1 or rc2..

06/01/2009 18:36
Done Smile

06/01/2009 17:56
@diemux: plz update v7_00-custom-panel
s-control >> http://www.phpfus...p;pid=
3412

Advertiser
One-click Translation
Translate This Site

Render time: 0.28 seconds 483,055 unique visits