Results 1 to 2 of 2

Incorporating SEO links into custom PHP scripts

This is a discussion on Incorporating SEO links into custom PHP scripts within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi Guys, I have a custom PHP script I am using to grab the username and usergroup of particular members ...

  1. #1
    Junior Member
    Real Name
    John
    Join Date
    Jul 2008
    Location
    USA
    Posts
    23
    Liked
    0 times

    Incorporating SEO links into custom PHP scripts

    Hi Guys,

    I have a custom PHP script I am using to grab the username and usergroup of particular members for a customized memberlist. The script works great, but I don't know how to code in the vBSEO equivalent for the links to users profiles. Essentially what I have been doing is grabbing their userid and setting up older links in this format:

    member.php?u=X
    How can I call the vBSEO functions to change these links for me? Thanks for the help!
    GSPTruth - Game & Voice Server Reviews, News, & Coupons

  2. #2
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Hi,

    There are two methods to this, the first and more complex is you would actually need to add vBSEO extendibility talked about on our Wiki at vBSEO Extensibility - VBSEO Wiki

    The second option is you can use vBSEO Custom Rewrite Rules, but vBSEO can only rewrite information that is already in the URL, so if you only have the UserID in the current url vBSEO can't then add the username to it...

    So you could change
    member.php?u=135
    into
    custom-member135.html
    But in order to get a user like
    custom-member/ceri-may-135.html
    you would have to include the ceri-may part in the original URL so something like
    member.php?u=X&n=ceri-may

Similar Threads

  1. vbGallery Custom Links
    By CThiessen in forum Deutsch
    Replies: 2
    Last Post: 07-12-2009, 12:46 PM
  2. Can vbSEO work on custom scripts? If so how?
    By Antivirus in forum Pre-Sales Questions
    Replies: 8
    Last Post: 01-20-2008, 11:46 AM
  3. Custom Links ERRORS
    By banuchi in forum Troubleshooting
    Replies: 2
    Last Post: 01-01-2007, 12:35 PM
  4. Custom 'outgoing links' for google analytics external links tracking
    By Nick0r in forum Sitemap Features Archive
    Replies: 3
    Last Post: 06-16-2006, 08:52 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
  •