phpBB URL For User Profile www.domain.com/User Name

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

phpBB URL For User Profile www.domain.com/User Name

Post by Blue Blood »

URL For User Profile http://www.domain.com/User Name
This will allow the user profile link to be the users name

Code: Select all

http://www.projectblueblood.com/memberlist.php?mode=viewprofile&u=2
Will now be

Code: Select all

http://www.projectblueblood.com/Blue Blood
Open
.htaccess

At the end of the file add

Code: Select all

RewriteEngine on
Rewriterule ^([^/\.]{3,})$ ./memberlist.php?mode=viewprofile&un=$1
Open
includes/functions_content.php

Find:

Code: Select all

$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace(array('={USER_ID}', '=%7BUSER_ID%7D'), '=' . (int) $user_id, $_profile_cache['base_url']);
After Add

Code: Select all

$profile_url = generate_board_url() . '/' . $username;
Last edited by Blue Blood on 06 Dec 2012, 00:29, edited 1 time in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by Stoker »

Open
includes/functions_content.php
Find does not exist.
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by martin123456 »

Closest i can find is

Code: Select all

$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace(array('={USER_ID}', '=%7BUSER_ID%7D'), '=' . (int) $user_id, $_profile_cache['base_url']);
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

phpBB URL For User Profile www.domain.com/User Name

Post by Blue Blood »

martin123456 wrote:Closest i can find is

Code: Select all

$profile_url = ($custom_profile_url !== false) ? $custom_profile_url . '&u=' . (int) $user_id : str_replace(array('={USER_ID}', '=%7BUSER_ID%7D'), '=' . (int) $user_id, $_profile_cache['base_url']);
This is it...

The edits were for phpBB 3.0.8

I updated the edit!!
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by martin123456 »

Confirmed and works nice edit blueblood
2012-12-05_224504.png
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by Solidjeuh »

Nice! Now I can use short link to profiles in Prochatrooms!
Thank you :D
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by Solidjeuh »

This is also replacing the url in the Arcade mod
So we cannot click on a user to see his game statistics..
it leads directly to their profile..
Anyway ti fix this please?

http://phpbbarcade.jatek-vilag.com/viewtopic.php?p=4
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
Blue Blood
BBCoder II
BBCoder II
Posts: 20
Joined: 19 Oct 2011, 01:31
BBCodes: 12

phpBB URL For User Profile www.domain.com/User Name

Post by Blue Blood »

Solidjeuh wrote:This is also replacing the url in the Arcade mod
So we cannot click on a user to see his game statistics..
it leads directly to their profile..
Anyway ti fix this please?

http://phpbbarcade.jatek-vilag.com/viewtopic.php?p=4
I will check it out tonight!!

EDIT:

See if this works


Replace this

Code: Select all

$profile_url = generate_board_url() . '/' . $username;
With this

Code: Select all

$profile_url = append_sid($phpbb_root_path . $username);
Its really should be

Code: Select all

append_sid
instead of

Code: Select all

generate_board_url
this could possibly log users out any way

This probably wont fix the problem but this code is better then the original line.

I will have to look at the Arcade code...
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

phpBB URL For User Profile www.domain.com/User Name

Post by Solidjeuh »

No this changes nothing .. still the same problem :)
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
Blackwolf
BBCoder IV
BBCoder IV
Posts: 272
Joined: 04 Dec 2010, 12:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia

phpBB URL For User Profile www.domain.com/User Name

Post by Blackwolf »

I tried it & got my default self modified 404 page..... :|
Ultimate Edition, Ultimate Edition Oz, Oz Unity

“We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.”
Locked