![]() |
Script To Replace Links Wanted 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:) |
Re: Script To Replace Links Wanted 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 |
Re: Script To Replace Links Wanted Hi, Thanks, I have just sent you a pm with some more information Bill:) |
Re: Script To Replace Links Wanted 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 |
| All times are GMT -6. The time now is 02:36 PM. |