November 21 2008 01:57:43 Home | Mod Downloads v6 | Mod Downloads v7 | Support Forum | Useful Resources | Articles | Dev log
 
Navigation
Home
Home
Articles
Search

Community
Mod Downloads v6
Mod Downloads v7
Support Forum
Contact Us

Information
News Categories
Useful Resources
Photo Gallery
Dev log
Site Map
Last Seen Users
GhostRider2007Online
samaritean00:13:09
DogMaster00:20:26
rUMENcho00:23:35
madsoft00:42:28
akurudayi00:47:14
MaWe458500:52:18
Sport2401:00:43
Xessive01:01:11
scathing01:03:52

Guests Online: 0
Registered Members: 2,574
Newest Member: madsoft
Latest Articles
Admin Control Panel Protection
How to Secure Your Importan...
Show Content by Default Use...
v7 | Add social bookmark to...
v7 | Custom MySQL error mes...
How To: A PM after registra...
v7 | SEO friendly URL's for...
v7 | SEO friendly URL's for...
Comments Advanced View and ...
Auto-redirect to the page v...
A tour through PHP-Fusion v...
Upgrading to PHP-Fusion v7 ...
SEO | Improve your PHP-Fusi...
Advertisements in article f...
Improving your photogallery...

View all articles
Downloads v7
Currently popular Downloads

Professional Downloa... 344
Extended Profile 330
Photoalbum Mass Upload 297
Photo in Profile 289
FusionBoard 4 278
HighSlide Gallery In... 274
Avatar Studio 259
Wap Mod 235
VArcade 1.7 226
Download System mSF 220

Latest Downloads


PHP-Fusion v7 Bosnia... 1
Memberlist with avatar 25
Orders script 9
Unactivated Users li... 6
Forum Ad Bot Agent 14
catsbyR5 news catego... 5
Qrmiz new category i... 3
Qrmiz news category ... 1
Clean set of news ca... 1
News Category Images... 0
Downloads v6
Currently popular Downloads

EXTboard 322
Video Gallery 302
Extreme Theme Editor 280
Icon Package 2.0 233
Fuzed Shoutbox 225
News.php 225
Tabbed welcome panel 221
Extended Profile 2.20 217
Header Banner System 177
Seoname.php 165

Latest Downloads


ExtBoard 1.1 67
Forum Attachment Admin 1
Extended User Search 1
CCMail Infusion 1
Advanced Search 92
Expose Photogallery 80
Who is online | Admin 110
Mark Threads As Read 2 10
Forum look without s... 46
Banner System v2.0.4 165
Provider
PHPfusion-mods.net is hosted at:

Security System 1.8.5 © 2006 by BS-Fusion Deutschland
CTracker - cback.de


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 .





Article Tags
SEO mods URL friendly pre-modded web-bureau.com
Comments
Diemux on June 29 2008 03: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.
upitnik on June 28 2008 00:51:33
is this going to be by default in V7?
frix on June 25 2008 17:50:38
Maby there is some SEO optimization for the profile?
frix on June 25 2008 17:46:17
Thanks for the mod.
Diemux on June 23 2008 22:55:33
hehe true. Not really forgot it as this is for the pages only. But never thought of the panels Thanks for the modification!
webadmin88 on June 19 2008 13: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
Diemux on June 18 2008 23: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
webadmin88 on June 18 2008 20:36:26
Also, is there some SEO optimization for the downloads or comments? Thanks
webadmin88 on June 18 2008 20: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!
Diemux on May 17 2008 01:24:21
Hmm I see, however on http://www.underground3k.com 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.
geo on May 16 2008 12:11:58
Amazing Mod but SEO friendly links for Photogallery.php has 2 wrongs. If you see in your photogallery each photo with this code have a url like www.domain.com/-r(1,2...).htm with this code and not www.domain.com/photo title-r(1,2...).htm.

I hope this help you.

You can fix this problem if you find
around line 53
Code:
<a href='".FUSION_SELF."?photo_id=$photo_id'>

and don't replace with
Code:
<a href='".seoname($data['album_title'])."-r".$data['photo_id'].".htm'>

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

and around line 126
Code:
<a href='".FUSION_SELF."?photo_id=".$data['photo_id']."'>

don't replace with
Code:
<a href='".seoname($hold_album_title)."-r".$data['photo_id'].".htm'>

but with
Code:
<a href='".seoname($data['photo_title'])."-r".$data['photo_id'].".htm'>


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.
PHP-Fusion Coders
Andrean Rashkov
Georgios
Diemux
Donate

Affiliates:


Shoutbox
You must login to post a message.

bullet Diemux 
20/11/2008 20:59
@sathishIPL: - I thought you meant the article (pm after registration). Anyhow, I have commented at the download.

bullet elyn 
20/11/2008 19:38
lol. diemux seems like an operator here. user : *dialed 1515-phpfusion-MODs operator (diemux) : for any enquiries.. please press 1 ... for *user press 1 operator(diemux) : for.. and it

bullet sathishIPL 
20/11/2008 15:29
I cant find .... as u said in article

bullet Diemux 
20/11/2008 12:32
Check the article comment please

bullet sathishIPL 
20/11/2008 10:35
Hi Diemux, The Mod Pm after Registration works for me...but i want to add the from ...where i can add thr from

Bullet Display More Shouts Bullet

bullet Diemux 
20/11/2008 02:12
@samaritean: - Check the "Orders script" in v7 downloads under Miscellaneous.

bullet Diemux 
20/11/2008 02:11
@gozoc, ratings is fixed, thanks . Couldn't find anything wrong with comments or redirect?

bullet samaritean 
19/11/2008 21:02
There is a infusion for sell cars ?To add cars in the forum as Infusion.

bullet gozoc 
19/11/2008 20:07
...and fix your redirect after post a shout to the download overview

bullet gozoc 
19/11/2008 20:06
diemux, please fix your download-ratings

Advertiser
One-click Translation

Powered by Google