[advanced search]
 

Go Back   NamePros.com > Marketplace > Web Development > Web Development Wanted

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


Closed Thread
 
LinkBack Thread Tools
Old 09-08-2008, 09:50 PM   #1 (permalink)
NamePros Regular
 
simonj's Avatar
 
Join Date: Jan 2005
Posts: 382
96.00 NP$ (Donate)

simonj has a spectacular aura aboutsimonj has a spectacular aura aboutsimonj has a spectacular aura about


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
__________________
Very Wise Name Generator - Scan blogs, news articles, or websites for potential Domain Names - VWNG.com

Last edited by simonj; 09-08-2008 at 09:55 PM. Reason: typo
simonj is offline  
Old 09-08-2008, 10:06 PM   #2 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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/";
header ("Location: $URL");
exit();
?>
weblord is offline  
Old 09-08-2008, 11:05 PM   #3 (permalink)
NamePros Regular
 
simonj's Avatar
 
Join Date: Jan 2005
Posts: 382
96.00 NP$ (Donate)

simonj has a spectacular aura aboutsimonj has a spectacular aura aboutsimonj has a spectacular aura about


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
__________________
Very Wise Name Generator - Scan blogs, news articles, or websites for potential Domain Names - VWNG.com
simonj is offline  
Old 09-09-2008, 04:16 AM   #4 (permalink)
NamePros Regular
 
zoki's Avatar
 
Join Date: Mar 2007
Posts: 888
222.43 NP$ (Donate)

zoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to behold

Ethan Allen Fund
without having code or that php-page its hard

but maybe something like this

PHP Code:
?>

put here your affiliate code

<?php
.
__________________
Patience is your best friend in this business! (© by Gene)
zoki is offline  
Old 09-09-2008, 07:52 AM   #5 (permalink)
NamePros Member
 
Join Date: Dec 2007
Posts: 96
0.00 NP$ (Donate)

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, 06:21 PM   #6 (permalink)
NamePros Regular
 
simonj's Avatar
 
Join Date: Jan 2005
Posts: 382
96.00 NP$ (Donate)

simonj has a spectacular aura aboutsimonj has a spectacular aura aboutsimonj has a spectacular aura about


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! )
__________________
Very Wise Name Generator - Scan blogs, news articles, or websites for potential Domain Names - VWNG.com
simonj is offline  
Old 09-09-2008, 08:53 PM   #7 (permalink)
I'll do it

Technical Services

 
-Nick-'s Avatar
 
Join Date: Dec 2005
Location: India
Posts: 6,434
5,169.80 NP$ (Donate)

-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute

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, 10:54 AM   #8 (permalink)
NP Maniac™
 
Phoenix's Avatar
 
Join Date: Apr 2004
Location: East Midlands, UK
Posts: 786
10.58 NP$ (Donate)

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 behold


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

PHP Code:
<?php
$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, 12:38 PM   #9 (permalink)
NamePros Regular
 
zoki's Avatar
 
Join Date: Mar 2007
Posts: 888
222.43 NP$ (Donate)

zoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to behold

Ethan Allen Fund
i think Nicks code is ok ->
Quote:
$prop . "</a>";
__________________
Patience is your best friend in this business! (© by Gene)
zoki is offline  
Old 09-10-2008, 01:32 PM   #10 (permalink)
NP Maniac™
 
Phoenix's Avatar
 
Join Date: Apr 2004
Location: East Midlands, UK
Posts: 786
10.58 NP$ (Donate)

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 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
$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 02:17 PM.
Phoenix is offline  
Old 09-10-2008, 03:04 PM   #11 (permalink)
NamePros Regular
 
zoki's Avatar
 
Join Date: Mar 2007
Posts: 888
222.43 NP$ (Donate)

zoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to beholdzoki is a splendid one to behold

Ethan Allen Fund
Phoenix: you are right havent seen that


.
__________________
Patience is your best friend in this business! (© by Gene)
zoki is offline  
Old 09-10-2008, 05:19 PM   #12 (permalink)
NamePros Regular
 
simonj's Avatar
 
Join Date: Jan 2005
Posts: 382
96.00 NP$ (Donate)

simonj has a spectacular aura aboutsimonj has a spectacular aura aboutsimonj has a spectacular aura about


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;
$moniker=$mystring.'">'.$prop.'</a>';
cheers,
Simon
__________________
Very Wise Name Generator - Scan blogs, news articles, or websites for potential Domain Names - VWNG.com
simonj is offline  
Old 09-10-2008, 07:37 PM   #13 (permalink)
I'll do it

Technical Services

 
-Nick-'s Avatar
 
Join Date: Dec 2005
Location: India
Posts: 6,434
5,169.80 NP$ (Donate)

-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:43 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85