NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > General Marketplace > Web Development > Web Development Wanted
Reload this Page PHP help needed - small job rep only

Web Development Wanted Requests for websites, templates, custom programming, logos or graphics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 09-08-2008, 10:50 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
simonj's Avatar
Join Date: Jan 2005
Posts: 431
simonj is a jewel in the roughsimonj is a jewel in the roughsimonj is a jewel in the rough
 



PHP help needed - small job rep only


I need someone who is familiar with PHP to insert my affiliate code in a PHP page. I'm sure it's easily done but i don't know the correct syntax (i've tried it doesnt' work). Can someone plese lend a hand?

thanks
Simon
__________________
www.VWNG.com - Very Wise Name Generator
Last edited by simonj; 09-08-2008 at 10:55 PM. Reason: typo
simonj is offline  
Old 09-08-2008, 11:06 PM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
save as youraffiliatesite.php
PHP Code:
<?php $URL="http://youraffiliateurl.com/";
????: NamePros.com http://www.namepros.com/web-development-wanted/512153-php-help-needed-small-job-rep.html
header ("Location: $URL");
exit();
?>
__________________
Nabaza.com - Amaia
weblord is offline  
Old 09-09-2008, 12:05 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
simonj's Avatar
Join Date: Jan 2005
Posts: 431
simonj is a jewel in the roughsimonj is a jewel in the roughsimonj is a jewel in the rough
 



Thanks, but not quite what I had in mind. The page returns variables, which I need to incorporate into my affilliate link. Weblord if you want to take a look PM me, or if someone else can have a crack please let me know.

thanks
Simon

heh you can probably get an idea as to what I want by looking at teh site in my sig
__________________
www.VWNG.com - Very Wise Name Generator
simonj is offline  
Old 09-09-2008, 05:16 AM   #4 (permalink)
Member
 
Dotmainer's Avatar
Join Date: Mar 2007
Posts: 1,249
Dotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud of
 



without having code or that php-page its hard

but maybe something like this

PHP Code:
?>

put here your affiliate code

<?php
.
__________________


Dotmainer is offline  
Old 09-09-2008, 08:52 AM   #5 (permalink)
NamePros Member
Join Date: Dec 2007
Posts: 140
nityog is an unknown quantity at this point
 



Hello,
I m interested.
Please send me exact details of the work.
My Contact Details :
MSN : nityog@hotmail.com
Gmail : nityog@gmail.com
I m looking forward to work with you.
nityog is offline  
Old 09-09-2008, 07:21 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
simonj's Avatar
Join Date: Jan 2005
Posts: 431
simonj is a jewel in the roughsimonj is a jewel in the roughsimonj is a jewel in the rough
 



the line I'm having trouble with;

$mystring='<ahref="http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domainche ck&domain='.$prop;

$prop is a variable that needs appending to the end of the url, but how do I finish off the $mystring to include $prop</a> (the display text for the url)


any ideas?

thanks
Simon

ok half way there lol! got it working but it won't display in the textbox, it just displays the html instead of parsing it. sigh (got it running correctly at the bottom of the page though...WOOT! )
__________________
www.VWNG.com - Very Wise Name Generator
simonj is offline  
Old 09-09-2008, 09:53 PM   #7 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,927
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
PHP Code:
<?php
$mystring 
"<a href='http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domaincheck&domain="  $prop "</a>";
echo 
$mystring;
?>
-Nick- is offline  
Old 09-10-2008, 11:54 AM   #8 (permalink)
NP Maniacâ„¢
 
Phoenix's Avatar
Join Date: Apr 2004
Location: Nottingham, UK
Posts: 820
Phoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to behold
 




A corrected version of -Nick-'s code from above; which didn't end the <a> tag before closing it.

PHP Code:
<?php
????: NamePros.com http://www.namepros.com/showthread.php?t=512153
$mystring 
"<a href='http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domaincheck&domain=".$prop."'>Anchor Text</a>";
echo 
$mystring;
?>
__________________
PHP/MySQL Development offered: PM me for a quote.
47ideas.com - my freelancing portfolio.
Phoenix is offline  
Old 09-10-2008, 01:38 PM   #9 (permalink)
Member
 
Dotmainer's Avatar
Join Date: Mar 2007
Posts: 1,249
Dotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud of
 



i think Nicks code is ok ->
Quote:
$prop . "</a>";
__________________


Dotmainer is offline  
Old 09-10-2008, 02:32 PM   #10 (permalink)
NP Maniacâ„¢
 
Phoenix's Avatar
Join Date: Apr 2004
Location: Nottingham, UK
Posts: 820
Phoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to beholdPhoenix is a splendid one to behold
 




zoki:

PHP Code:
  <?php
$mystring 
"<a href='http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domaincheck&domain="  $prop "</a>";
echo 
$mystring;
?>
The above code would output (where $prop is an actual value):

Quote:
<a href='http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domainche ck&domain=$prop</a>
This would not be a proper tag as the opening <a> tag is not closed itself. Thus my small (very, very small) correction:

PHP Code:
  <?php
????: NamePros.com http://www.namepros.com/showthread.php?t=512153
$mystring 
"<a href='http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domaincheck&domain=".$prop."'>Anchor Text</a>";
echo 
$mystring;
?>
__________________
PHP/MySQL Development offered: PM me for a quote.
47ideas.com - my freelancing portfolio.
Last edited by Phoenix; 09-10-2008 at 03:17 PM.
Phoenix is offline  
Old 09-10-2008, 04:04 PM   #11 (permalink)
Member
 
Dotmainer's Avatar
Join Date: Mar 2007
Posts: 1,249
Dotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud ofDotmainer has much to be proud of
 



Phoenix: you are right havent seen that


.
__________________


Dotmainer is offline  
Old 09-10-2008, 06:19 PM THREAD STARTER               #12 (permalink)
NamePros Regular
 
simonj's Avatar
Join Date: Jan 2005
Posts: 431
simonj is a jewel in the roughsimonj is a jewel in the roughsimonj is a jewel in the rough
 



Thanks everyone, this is what I eventually came up with, which I'm kind of proud of as I have no PHP knowlege at all!

PHP Code:
$mystring='<a href="http://affiliates.moniker.com/pub/Affiliates?affiliate_id=2328&landingpage=domaincheck&domain='.$prop;
????: NamePros.com http://www.namepros.com/showthread.php?t=512153
$moniker=$mystring.'">'.$prop.'</a>'
cheers,
Simon
__________________
www.VWNG.com - Very Wise Name Generator
simonj is offline  
Old 09-10-2008, 08:37 PM   #13 (permalink)
I'll do it
 
-Nick-'s Avatar
Join Date: Dec 2005
Location: India
Posts: 6,927
-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness-Nick- Has achieved greatness
 


Member of the Month
September 2007
Adoption
Phoenix Thanks I think I missed out that " in end
-Nick- is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:59 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger