Current location: Hot Scripts Forums » Programming Languages » PHP » Hide (Rename) Affiliate Link


Hide (Rename) Affiliate Link

Reply
  #1 (permalink)  
Old 11-13-04, 01:22 PM
arnoldot arnoldot is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hide (Rename) Affiliate Link

Hey there

This is my first post here, i hope you guys can help me out

I have a business directory script, which works great for regular listings except for affiliates since it will display the entire url link (http://affiliate.if.com/jh23948293489.id=4) and i cant find the way to use tags.

Im using PHP/MySQL

Of course, there is a field where you enter the url, however... for some reason the tags seem not to be accepted

if i enter:
<a href="http://www.whateversitenotexisten.com/">WIll i ever learn PHP?</a>

and then save it, it will show like this..

<a>Will i ever learn PHP?</a>

NOTE: YES, i know those are HTML tags, but i posted that so you have an idea of how the script/database is reading the info

So, i can not post any <a href></a> tags, because they will be visible, and even tho the outcome is a link, i will take you no where; 404 Code

I did a code search on my files to see where the www field? was listed to see if there was something wrong, but i wouldnt know if is wrong or not since i dont know php, hopefully you guys will be able to help me on this

my users.php file (only two lines with www in it)

echo "<tr><td bgColor=$def_form_back_color align=right>$def_webpage: &nbsp;&nbsp;<input type=text name=www size=50 value=\"$f[www]\" maxlength=100></td></tr>";

and

echo "<tr><td align=right valign=middle width=\"30%\" bgcolor=\"$def_form_back_color\">$def_webpage:</td><td align=left valign=middle width=\"70%\" bgcolor=\"$def_form_back_color\">&nbsp;<a href=\"$f[www]\" target=\"_blank\">$f[www]</a></td></tr>";

reg.php
$def_webpage: $www\n

<?php echo "$def_webpage"; ?>: &nbsp;&nbsp;
<input type="text" name="www" value="http://" size="50" maxlength="100">


print.php
if ( ( !empty ( $f[www] ) ) and ( $f[www] != "http://" ) )

echo "<tr>
<td align=\"right\" valign=\"middle\" width=\"35%\" bgcolor=\"$def_form_back_color\">
$def_webpage:
</td>
<td align=\"left\" valign=\"middle\" width=\"65%\" bgcolor=\"$def_form_back_color\">
&nbsp;<a href=\"out.php?ID=$f[selector]\" target=\"_blank\">$f[www]
</a>
</td>

index.php
if ( ( !empty ( $f[www] ) ) and ( $f[www] != "http://" ) )
{
echo "<tr>
<td align=\"right\" valign=\"middle\" width=\"35%\" bgcolor=\"$def_form_back_color\">
$def_webpage:
</td>
<td align=\"left\" valign=\"middle\" width=\"65%\" bgcolor=\"$def_form_back_color\">
&nbsp;";

if ($def_rewrite == "YES")
echo "<a href=\"$def_mainlocation/out-$f[selector].html\" target=\"_blank\">";
else
echo "<a href=\"out.php?ID=$f[selector]\" target=\"_blank\">";

echo "$f[www]
</a>

im not sure if that line of code would help on any way

I just dont know what to do, im not sure if is something on MySQL, PHP or what... i would think there is a way to display the tags i need, but i have no knowledge about php

I hope the information i posted is enough for you to see whats wrong, if not, please let me know what you need to know, i really need to have this figured out.

thanks a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-13-04, 02:26 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
i think your problem would be fixed by putting this function Html_Special_chars(); before the variable which contains the link !

but your lines aren't usefull for me at all

My Regards,,
__________________
Email : write2shadi at gmail dot com
MSN : write2shadi at gmail dot com
Aim : shadiaim7
Skype: shadi_skype
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-13-04, 04:49 PM
arnoldot arnoldot is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Variables..?
what do they look like?

im sorry.. as i said on the original post i have no knowledge in php, but if you want to help i can do a search for any term you need to find in order to see the variables you mentioned.

thanks tho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-13-04, 05:58 PM
shadi's Avatar
shadi shadi is offline
Wannabe Coder
 
Join Date: Aug 2004
Location: EGY
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
check the name of the page which contains the url text filed(the field you want to enter html tags in) , send it to me .. i'll modify it for you

My regards,,
__________________
Email : write2shadi at gmail dot com
MSN : write2shadi at gmail dot com
Aim : shadiaim7
Skype: shadi_skype
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 11-13-04, 06:03 PM
arnoldot arnoldot is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, but im not even sure what you mean about that...

i have about 6 php files that make refference of URL

the ones listed on my post, you need any of those files?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wanted : OSC Affiliate modifications nimitz_1061 Job Offers & Assistance 0 08-09-04 02:15 PM
how to link to insert pages samkry ASP 0 06-14-04 12:14 AM
Hide link fs22 JavaScript 0 05-04-04 05:11 PM
Automate download delivery, create your own affiliate program with Pixie & Paypal listenmirndt General Advertisements 1 03-15-04 07:16 PM
$ in http:// link via email? GG Dart PHP 2 01-15-04 12:23 PM


All times are GMT -5. The time now is 06:48 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.