Results 1 to 11 of 11

Problem with member.php rewrite for Admin Log in as User Plugin

This is a discussion on Problem with member.php rewrite for Admin Log in as User Plugin within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I use the Admin Log in as user plugin. The vBSEO rewrite is "chopping off" some code on the end ...

  1. #1
    Member
    Real Name
    Rich
    Join Date
    Sep 2007
    Location
    Stafford, VA
    Posts
    44
    Liked
    0 times

    Problem with member.php rewrite for Admin Log in as User Plugin

    I use the Admin Log in as user plugin. The vBSEO rewrite is "chopping off" some code on the end of URL that is needed to log in and out of a user's profile.

    PHP Code:
    http://www.domain.com/member.php?u=userid&admin_log_in_as_user 
    is being re-written as

    PHP Code:
    http://www.domain.com/members/username/ 
    where it should look like:

    PHP Code:
    http://www.domain.com/members/username/&admin_log_in_as_user 
    Why is it stripping out the amprestand during re-write?

    Here is what the template looks like:

    PHP Code:
    <div id="admin_log_in_as_user" class="block">
        <
    div class="admin_log_in_as_user">
            <
    div class="blockbody">
                <
    div class="blockrow">
                    <
    a href="member.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}&amp;admin_log_in_as_user={vb:raw userinfo.userid}" rel="nofollow">{vb:rawphrase log_in_as_user}</a>
                </
    div>
            </
    div>
        </
    div>
    </
    div
    Rich, USMC Officer, WebsiteMaven

  2. #2
    Member
    Real Name
    Rich
    Join Date
    Sep 2007
    Location
    Stafford, VA
    Posts
    44
    Liked
    0 times
    Anyone?
    Rich, USMC Officer, WebsiteMaven

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I do not believe this will function correctly with vbseo.

    One workaround would be to copy the member.php script to something else, say admember.php, add that script to vbseo's excluded script list in vbseoCP, and then change the plugin to link to that page instead of member.php. You should also robots.txt out the new script so bots don't duoble index the member pages.

  4. #4
    Member
    Real Name
    Rich
    Join Date
    Sep 2007
    Location
    Stafford, VA
    Posts
    44
    Liked
    0 times
    I can't do that as it is a custom script. I tried adding this to Excluded Pages in the settings:

    HTML Code:
    ^member\.php\?u=(\d+)&amp;admin_log_in_as_user
    Did I type it correctly to exclude this re-write?
    Rich, USMC Officer, WebsiteMaven

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    you can't block member.php from rewriting like that. it's tied to the rules.

    and why can't you copy it?

  6. #6
    Member
    Real Name
    Rich
    Join Date
    Sep 2007
    Location
    Stafford, VA
    Posts
    44
    Liked
    0 times
    Oh...now I get it. Sorry I'm so dense. That's a great idea.
    Rich, USMC Officer, WebsiteMaven

  7. #7
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    hehe No problem.

  8. #8
    Member
    Real Name
    Rich
    Join Date
    Sep 2007
    Location
    Stafford, VA
    Posts
    44
    Liked
    0 times
    BTW, this did solve the problem.
    Rich, USMC Officer, WebsiteMaven

  9. #9
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    great, glad it was an easy fix.

  10. #10
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    Don't really see why it's a problem to make vbSEO NOT strip custom URL parameters. It works as expected in forumdisplay, allowing custom parameters there. My style chooser links don't work on member.php currently because of this.

    Sure, as mentioned, creating a member.php clone for extra actions is a viable work-around, but should not be necessary in the first place.
    - the makers of VaultWiki

  11. #11
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    This CAN be custom coded to be accounted for if you wish to dive into the core vbseo code, however, it is currently not supported (nor do we have a code sample available), so duplicating the script is the simplest fix for customers at this time.

Similar Threads

  1. Member Page Rewrite problem
    By chrisstinson in forum Troubleshooting
    Replies: 5
    Last Post: 11-16-2010, 05:28 PM
  2. Rewrite problem in Member Page
    By nikosb in forum Troubleshooting
    Replies: 4
    Last Post: 11-27-2009, 05:34 PM
  3. Rewrite problem with member names ending in punctuation marks
    By Coop1979 in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 09-26-2009, 05:17 PM
  4. Problem with User name (profile) rewrite
    By Fred. in forum Troubleshooting
    Replies: 2
    Last Post: 09-20-2007, 12:35 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
  •