Results 1 to 5 of 5

Thread: Mass HTML Update Question

  1. #1
    Join Date
    Mar 2009
    Posts
    74
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Mass HTML Update Question

    Hi everybody,

    I have a custom page I built on my website about 3 years ago. I have thousands of sports players names linked to videos of them on my website.

    I want them to resolve in search engines by keyword. But this is something I've never done before.

    This is the link structure

    Code:
    <li><a href="http://www.mysite.com/index.php?do=search&mstr=bob+Smith&page=0" title="Bob Smith">Smith, Bob</a></li>
    The links are all categorized in alphabetical order by last name/first name.
    I would like to add into everybody's title like below:

    Code:
    title="Bob Smith Baseball Player">
    This way when somebody enters "Bob Smith Baseball Player" into google The links will be populate.

    I'd like to add "Baseball Player" to everybody's links at once editing the HTML.

    Is this possible?

    Thank you
    Last edited by igotregistered; 11-30-2011 at 01:22 PM. Reason: resolved prefix add

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you have an editor that can use regular expressions you could search on something like:

    Code:
     title="([^"]+)">
    and replace it with something like:

    Code:
     title="\1 Baseball Player">
    Without regular expressions you could try:

    Code:
    ">
    replace with:

    Code:
     Baseball Player">
    With either method, a global replace might not be the best idea. It would take longer, but you might want to go through them one by one anyway. If you know the exact number, and your editor can count the matches, and they equal the number that you have, then a global replace should be OK.

    Also, if these links are only in a certain section or sections, many editors will allow you to perform a global replace only within a highlighted area of the text.

    Whatever you do, you should back up the file first in case the replaced version becomes unusable.

    If this is online and you can give me a link to it or you can attach a zipped version of the file to a post here, I'll see what I can do with it.
    Last edited by jscheuer1; 11-30-2011 at 03:57 PM. Reason: Format
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2009
    Posts
    74
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Sorry got stuck in a meeting.

    Great info. I appreciate the help. Do you think adding the key word reference in there will help in SEO. That is basically the main reason I am doing this.

    Thank you

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, I do.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2009
    Posts
    74
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by jscheuer1 View Post
    Yes, I do.
    Brilliant!

    Worked. Thank you very much, sir.

Bookmarks

Posting Permissions

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