Results 1 to 9 of 9

Username Rewrite / Profile

This is a discussion on Username Rewrite / Profile within the General Discussion forums, part of the vBulletin SEO Discussion category; I would like my members to be able to type in mysite.com/membername and it bring them to there profile. instead ...

  1. #1
    Junior Member
    Real Name
    Kevin
    Join Date
    Aug 2006
    Posts
    12
    Liked
    0 times

    Username Rewrite / Profile

    I would like my members to be able to type in mysite.com/membername and it bring them to there profile.

    instead of
    mysite.com/forum/members/membername
    mysite.com/members/membername
    profiles.mysite.com/membername
    etc

    how can I do this ?




    Heres how I have the Member Profile URLs set up.

    Rewrite Member Profile URLs? Yes No
    Set this option to "Yes" to have profile URLs rewritten.
    Member Profile URL Format
    Select a member profile URL format or create a custom layout using the field provided.
    NOTE: Since vBulletin does not allow for duplicate usernames, it is safe not to use the [user_id] variable.
    Sample custom string:
    u[user_id].html
    members/[user_name].html
    members/[user_id].html
    member-[user_name].html
    Custom:

    But what do I put in the custom field ?

    Doing it this way as opposed at mysite.com/members/membername effect anything else. Links would just need the trailing slash, correct, as well as make sure a folder and such isnt the same as a membername?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello Kevin,

    to avoid conflicts between member profile URL and other URLs at your site, there should be something unique in URL format, as specified in custom format examples:u[user_id].html
    members/[user_name].html
    members/[user_id].html
    member-[user_name].html

    Also, with vBSEO you can setup member profile as members.domain.com/username ( Can VBSEO do this? If so then I will buy it TODAY ) or even as username.domain.com ( sub-domains for members username ).

  3. #3
    Junior Member
    Real Name
    Kevin
    Join Date
    Aug 2006
    Posts
    12
    Liked
    0 times
    i would still like

    mysite.com/membername

    if this cant be done with the rest of vbseo options working then please point me in the direct of getting a refund.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    This can be achieved with the following modifications.

    1. Set member profile URL format in vbseocp to:
    membersurl/[user_name]

    2. Modify vBSEO's global_complete plugin code in vB admincp. Add this to the bottom:
    PHP Code:
    $output str_replace('membersurl/'''$output); 
    3. Add this in .htaccess right after "RewriteEngine on" line:
    Code:
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]+)$ membersurl/$1
    Refund requests are processed via support system.

  5. #5
    Junior Member
    Real Name
    Kevin
    Join Date
    Aug 2006
    Posts
    12
    Liked
    0 times
    By going to VB Admincp > Plugins & Products > Plugin Manager >

    I only have " vbSEO Global Hook " & " vbSEO Global Start ".

    Not seeing a vbSEO global_complete like you mention.

    Im running vb 3.6.1 and vbSEO 3.0.0 RC5 - Zend

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Plugin title is "vbSEO Global Hook" (global_complete is a hook name). However, since your vB is located in forums/ folder, it should be even easier to do.
    1. Define member profile URL format:
    Code:
    http://www.yourdomain.com/[user_name]
    2. Create .htaccess in domain root:
    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]+)$ forums/vbseo.php?vbseourl=http://www.yourdomain.com/$1 [L]

  7. #7
    Member
    Real Name
    sinucello
    Join Date
    Apr 2006
    Posts
    58
    Liked
    0 times
    Blog Entries
    1
    Hello,
    Quote Originally Posted by kevnj View Post
    Heres how I have the Member Profile URLs set up.
    Rewrite Member Profile URLs? Yes No
    Set this option to "Yes" to have profile URLs rewritten.
    Member Profile URL Format
    sorry for digging out this old thread but I need to change this very setting but I can`t find the option in my vbseocp.php. Could someone send me the line for the config_vbseo.php or tell me how to make the option visible in my vbseocp?

    Thank you - all the best,
    Sacha

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    You should click "+" in URL Rewrites section to expand URL formats.

  9. #9
    Member
    Real Name
    sinucello
    Join Date
    Apr 2006
    Posts
    58
    Liked
    0 times
    Blog Entries
    1
    Hi,

    *bangs head on table* thank you very much, I just didn`t see it ;-).

    all the best,
    Sacha

Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 33
    Last Post: 02-10-2011, 08:49 PM
  2. oh oh. username profile link conflict
    By profound in forum General Discussion
    Replies: 24
    Last Post: 04-20-2008, 04:27 PM
  3. Member profile page rewrite?
    By trana in forum General Discussion
    Replies: 2
    Last Post: 04-18-2006, 01:02 AM
  4. Profile with username I_luv_HP&trq returns no user exists
    By BamaStangGuy in forum Bug Reporting
    Replies: 1
    Last Post: 11-11-2005, 05:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •