Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Script To Replace Links Wanted (https://www.warriorforum.com/programming/91919-script-replace-links-wanted.html)

successpro 9th June 2009 07:49 PM

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:)

kellogg9 9th June 2009 09:07 PM

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

successpro 10th June 2009 01:18 PM

Re: Script To Replace Links Wanted
 
Hi,


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


Bill:)

rtrotter 17th June 2009 12:22 PM

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.