Script To Replace Links Wanted

3 replies
Hi everyone,


I'm in the process of setting up my affiliates resource page
in my new membership site.


I'm looking for a script that will allow the affiliate to
enter their affiliate ID in a box at the top of the page,
press a button and have the script update all the affiliate
tools with their link....banner codes, solo ads, tell a
friend script etc.


Anyone have a suggestion?



Thanks in advance


Bill
#links #replace #script #wanted
  • Profile picture of the author kellogg9
    Doesnt sound very difficult to implement. But then i am not sure how comfortable you are as a programmer. I assume you are using PHP. By your having a web page already for me it wouldnt take more than 30-mins to have it all up....If i have time i will PM you my email addy and you can send me your page and i will upgrade it with the script
    {{ DiscussionBoard.errors[863009].message }}
    • Profile picture of the author successpro
      Hi,


      Thanks, I have just sent you a pm with some more information


      Bill
      {{ DiscussionBoard.errors[865421].message }}
  • Profile picture of the author rtrotter
    You can use something like this in a preg_match_all to pull out the links and then rebuild them.

    "'<*?href\s*=\s* # find <a href=
    ([\"\'])? # find single or double quote
    (?(1) (.*?)\\1 | ([^\s\>]+)) # if quote found, match up to next matching
    # quote, otherwise match up to next space
    'isx"

    Rodney
    Signature

    Ping All Your Feed On Auto-Pilot
    www.kping.com

    {{ DiscussionBoard.errors[888122].message }}

Trending Topics