Results 1 to 4 of 4

Basic PHP Issue / syntax for custom addon.

This is a discussion on Basic PHP Issue / syntax for custom addon. within the General Discussion forums, part of the vBSEO SEO Plugin category; I am trying to fix an issue with zoints tags module to make it FULLY vbseo compatible. I know from ...

  1. #1
    rob
    rob is offline
    Senior Member rob's Avatar
    Real Name
    Rob
    Join Date
    Oct 2005
    Location
    Eastbourne, UK
    Posts
    982
    Liked
    2 times

    Basic PHP Issue / syntax for custom addon.

    I am trying to fix an issue with zoints tags module to make it FULLY vbseo compatible.

    I know from the vbseo functions that I can make a call to vbseo_any_url() to convert a url to a vbseo url. (i think i remembered that function name right)

    My trouble is, I have a massive long string of text and html - inside which are several urls...

    What would be the syntax to loop through each url (regexp maybe) and to pass each url through the vbseo function, and then put the replacement back into the text.

    Hope this makes sense, but I'm stuck.
    Rob - SEO Specialist

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Is this long string a html-formatted code part with <a> tags embedded or it is a plain text?

  3. #3
    rob
    rob is offline
    Senior Member rob's Avatar
    Real Name
    Rob
    Join Date
    Oct 2005
    Location
    Eastbourne, UK
    Posts
    982
    Liked
    2 times
    <a> tags and all
    Rob - SEO Specialist

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    in this case it would be better to use make_crawlable($text) function to rewrite them all

Similar Threads

  1. Some extreme issues need help on fixing.
    By pspcrazy in forum Troubleshooting
    Replies: 14
    Last Post: 03-14-2006, 03:40 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
  •