[MODDB] Search Engine Friendly (SEO) URLs 1.0.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Locked
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

[MODDB] Search Engine Friendly (SEO) URLs 1.0.0

Post by Handyman` »

Classification: Mod
phpBB Part: Forum
MOD Name: Search Engine Friendly (SEO) URLs
MOD Version: 1.0.0 RC4
Author: Handyman
MOD Description: This mod changes viewforum and viewtopic links to be SEO Friendly

Works with:
  • phpBB 3.0.0 RC7
  • All styles
Language: English

Licence: GNU General Public License v2

Installation Level: Intermediate
Installation Time: ~15 Minutes
Format: MODX
Download File: http://startrekguide.bountysource.com/downloads
Bug Tracker: http://startrekguide.bountysource.com/development

Demo: http://startrekguide.com browse around to see it all. (Demo is not running RC4)

Do not post bug reports in this topic. Link for bug reports is posted right above the demo link

If you like my mods, please donate to StarTrekGuide

Note: Your server must be able to support mod_rewrite.
To test, do the first part of the installation only (.htaccess)
and put in a url like this -> forum/test-t1.html
if it shows topic does not exist or shows the topic, then you may continue installing this mod.
If it doesn't work, you will have to setup your apache to work with mod_rewrite before installing this mod

What's new in this version:
  1. URLs now look like this : forum/myforum-f1.html forum/search-engine-friendly-topic-t1.html
  2. Older format urls now have a 301 redirect to preserve any previous pagerank.
  3. Now uses MOD Version Check
Note: even though it has been requested many times to remove accented characters, it causes problems for other languages, so it has been removed in this version… also new browsers (Safari Windows/Mac) are starting to support UTF-8 characters, so might as well stay on the cutting edge.

My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507

to upgrade from RC1-RC3 to RC4
OPEN viewforum.php
FIND

Code: Select all

'U_LAST_POST'            => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],  
REPLACE WITH

Code: Select all

'U_LAST_POST'            => format_url($row['topic_title'], 'p' . $row['topic_last_post_id']),  
And copy over the files from the zip replacing the old ones.

Make sure to download MOD Version Check so you will be able to see when an update is available.
Last edited by Handyman` on Wed Oct 10, 2007 2:11 pm, edited 16 times in total.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
snider
Registered User
Posts: 43
Joined: Mon May 21, 2007 7:30 pm

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by snider »

I would be interested in the updated version, let me know !!
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Handyman` »

ugh! it's driving me nuts… I have it ready to go, I just need to install it and do a little more testing and package it… just takes more time than I've had available the last week :|
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
ac_roma
Registered User
Posts: 321
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by ac_roma »

its great

thanks :)
Afrael
Registered User
Posts: 4
Joined: Sat May 26, 2007 9:48 am

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Afrael »

Hi. :)
I have a problem with this mod. :) When I'm installing it I can't find this line:

Code: Select all

$subforums_list .= '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id) . '">' . $subforum_row['name'] . '</a>';
in includes/functions_display.php
Is everything ok or it's my fault?
Greetings.
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Handyman` »

hmm… seems I missed that part on my updated.
It's fixed in my latest version though… but I haven't had time to package it since I've had so much immediate demand for 2 other mods in development.

So here is the fix for that line:
FIND

Code: Select all

'link'        => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),  
REPLACE WITH

Code: Select all

'link'        => append_seo_sid("{$phpbb_root_path}f{$subforum_id}" . format_url($subforum_row['name'])),  
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
Afrael
Registered User
Posts: 4
Joined: Sat May 26, 2007 9:48 am

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Afrael »

Big thanks for you. :) I'm going to testing it. :)
Greetings.

Edit.
mod_rewrite is ok but when i try to "click" on any link I have 404. :(
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Handyman` »

Afrael wrote:Big thanks for you. :) I'm going to testing it. :)
Greetings.

Edit.
mod_rewrite is ok but when i try to "click" on any link I have 404. :(
what do your links look like? can you post one here?
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
Afrael
Registered User
Posts: 4
Joined: Sat May 26, 2007 9:48 am

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Afrael »

yes, of course, one link look like:

Code: Select all

http://localhost/~for/f2-test_forum_1.html
Greetings.
SNNteh1st
Registered User
Posts: 8
Joined: Thu Jul 13, 2006 4:26 am

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by SNNteh1st »

Does anyone have a .htaccess made for lighttpd for this MOD?

Thanks,
SNN
dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by dcz »

Interesting.

That's funny we both choose the same name for the format_url() function, I see webmedic did inspire some of us :D

keep up the good work!

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Handyman` »

format_url? I didn't know somebody was using that already :lol:
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
dcz
Registered User
Posts: 787
Joined: Sun Feb 13, 2005 5:37 am
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by dcz »

No kidding :lol:
The funniest thing is I always wondered myself why I named my own version of the function this way, since it's more about title formatting than URL itself, but now, I'm convinced I did right, two brain cannot be wrong :mrgreen:

++

phpBB SEO || phpBB3 SEO Premod || SEO phpBB3
GYM Sitemaps & RSS for phpBB3: GYM Sitemaps & RSS
User avatar
ac_roma
Registered User
Posts: 321
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by ac_roma »

ok dcz please realease your mod and dont forget thr simple :D
Afrael
Registered User
Posts: 4
Joined: Sat May 26, 2007 9:48 am

Re: [BETA] Search Engine Friendly (SEO) URLs

Post by Afrael »

Does somebody know how I can install this mod? :) It can by my apache fault? (I use a pack: http://www.WebServ.pl).
Locked

Return to “[3.0.x] MODs in Development”