How to SEO memberlist URLs in addons?

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

How to SEO memberlist URLs in addons?

Postby Beagleman » Wed Apr 02, 2008 6:19 pm

In this boards I found snippets to SEO viewtopic URLs and viewforum URLs in addons.

But I don't know how to SEO a memberlist URL like
'memberlist.php?mode=viewprofile&u=4'.

I hope you can help. Thanks! :)



I think it would be great to make a sticky thread with snippets like this.
Beagleman
 
Posts: 6
Joined: Wed Apr 02, 2008 5:26 pm

Advertisement

Postby MathieuM. » Wed Apr 02, 2008 6:27 pm

Hi,

It's in your ACP > phpBB SEO settings :


Code: Select all
Profiles and groups injection:
You can here chose to inject nicknames, group names and user message page (optional see below) in their URLs instead of the default static rewriting, phpBB/nickname-uxx.html instead of phpBB/membrexx.html.
Please Note
Changing this option requires and .htaccess update

Profiles ID removing:
When Profiles and groups injection is activated, you can here chose to use example.com/phpBB/member/nickname instead of the default example.com/phpBB/nickname-uxx.html. phpBB Uses an extra, but light, SQL query on such pages without user id.
Please Note
Special characters won't be hadled the same by all browser. FF always urlencodes (urlencode()), and as it seems using Latin1 first, when IE and Opera do not. For advanced urlencoding options, please read the install file.
Changing this option requires and .htaccess update


Choose "Yes" for both.


Mathieu.
Tennis et Actualité du tennis sur lemondedutennis.com ;)
User avatar
MathieuM.
phpBB SEO Team
phpBB SEO Team
 
Posts: 1473
Joined: Sun Feb 10, 2008 9:33 pm
Location: Rhône-Alpes

Postby Beagleman » Wed Apr 02, 2008 7:11 pm

Thank you for your reply, but you have me missanderstood. The SEO mods are working fine on my sites.

I have a portal (Board3) and the URLs shown in the portal aren't modified. I can fix the viewtopic URLs and the viewforum URLs with the snippets found here.
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( empty($phpbb_seo->seo_url['topic'][$topic_id]) ) {
   $phpbb_seo->seo_censored[$topic_id] = censor_text($topic_title);
   $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($phpbb_seo->seo_censored[$topic_id]);
}
if ( empty($phpbb_seo->seo_url['forum'][$forum_id]) ) {
   $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->set_url($forum_name,$topic_data['forum_id'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END


But I don't know how to fix the member URLs from
'memberlist.php?mode=viewprofile&u=4'
to
'USERNAME-u4.html'
like my other phpbb3 sites.
Beagleman
 
Posts: 6
Joined: Wed Apr 02, 2008 5:26 pm

Postby Beagleman » Fri Apr 04, 2008 5:42 pm

Can't beleave that I'm the only one with this question.

Maybe my english isn't good enough to explain that. :?
Beagleman
 
Posts: 6
Joined: Wed Apr 02, 2008 5:26 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: YandexBot [Bot] and 29 guests