Results 1 to 5 of 5

Where is the code for the members page?

This is a discussion on Where is the code for the members page? within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I need to modify the code for the members' page, of this type: http://example.com/forum/members/sillyUserName.html Where to find the code for ...

  1. #1
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times

    Where is the code for the members page?

    I need to modify the code for the members' page, of this type:
    http://example.com/forum/members/sillyUserName.html

    Where to find the code for this page? There is no ~/forum/members.php file, and from looking in .htaccess it looks to me that the code is being parsed by vbseo.php:
    Code:
    [root@example forum]# cat .htaccess 
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|someIrrelevantPage.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images|someIrrelevantPage)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Now going through vbseo.php is quite an adventure. I cannot find the string "members" in that file. Furthermore, in the database I see the string "members" only in the "phrase" and "modification_searchlog" tables, neither of which seem relevant.

    Please, where might I find this file, or where else should I look?

    Thanks!

  2. #2
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    I found that the file ~/forum/member (no trailing 's') is the correct file. I cannot imagine why this file does not have the same name as the URL.

    Going through it, I cannot find the code that writes the "Post Message" form. I would like to add a Javascript function to the submit event on that form. Where is it?

    Thanks.

  3. #3
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello,

    Quote Originally Posted by MediaHound View Post
    I found that the file ~/forum/member (no trailing 's') is the correct file. I cannot imagine why this file does not have the same name as the URL.
    Your forum URLs not necessarily need to match with the vB's script names. You can customize 'Member Profile' setting within your vBSEO CP to match your desired format:

    vBSEO CP -> URL Rewrite Settings -> 'Member Profile URLs' -> 'Advanced Settings' tab -> Member Profile (and any other related settings).


    Quote Originally Posted by MediaHound View Post
    Going through it, I cannot find the code that writes the "Post Message" form. I would like to add a Javascript function to the submit event on that form. Where is it?

    Thanks.
    That is a vB-related question. You can head over at: vBulletin.org

    They will assist you better with that.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  4. #4
    Junior Member
    Real Name
    MediaHound
    Join Date
    Jan 2008
    Posts
    23
    Liked
    0 times
    Quote Originally Posted by Andrés Durán Hewitt View Post
    Hello,
    Your forum URLs not necessarily need to match with the vB's script names. You can customize 'Member Profile' setting within your vBSEO CP to match your desired format:

    vBSEO CP -> URL Rewrite Settings -> 'Member Profile URLs' -> 'Advanced Settings' tab -> Member Profile (and any other related settings).
    Thanks.

    That is a vB-related question. You can head over at: vBulletin.org

    They will assist you better with that.
    Thanks, asked here:
    Add JS event to Visitor Messages post - vBulletin.org Forum

  5. #5
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    You're welcome!.

    Good luck with your other question
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


Similar Threads

  1. SEO - BB code page vs template page in vBadvanced CMPS
    By len backus in forum General Discussion
    Replies: 7
    Last Post: 01-12-2011, 08:27 AM
  2. Problem with my Members Page
    By amitash in forum URL Rewrite Settings
    Replies: 4
    Last Post: 03-25-2010, 08:54 AM
  3. vBulletin 3.x Members Profiles - White Page
    By Ky! in forum Troubleshooting
    Replies: 3
    Last Post: 01-16-2010, 06:05 AM
  4. Rewrite members page to new members page
    By Formula in forum URL Rewrite Settings
    Replies: 9
    Last Post: 07-21-2009, 12:12 PM

Posting Permissions

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