Title |
Adding a custom attach url field |
Description |
linking an image on a detail page |
Message Text |
My premium link posters are going to have a custom image on their detail page. Works great. But suppose they would like to promote a coupon with a url to their promotion page, instead of a static picture.
I created a new field in the attachments table called 'fileurl'
Here is my code on the detail page:
<IF {LINKFILEFIELD}> <!-- BEGIN LINK ATTACHMENTS --> <IF {ATTACHISIMAGE}><a href="download.php?id={LINKID}&attachid={ATTACHID}&field={ATTACHFILEURL}" target="_blank"><img src="download.php?id={LINKID}&attachid={ATTACHID}&width=300&height=250" alt="{ATTACHFILETITLE}" border="0"></a> </IF> <!-- END LINK ATTACHMENTS --> </IF>
The url when clicked on is: www.mysite.com/dir/links/de...6&field=www.msn.com
It's pulling the right url from the field I created, unfortunately I'm trying to get it to go to www.msn.com... and it's not seeing this as an external link. Possibly download.php isn't really set up for this extra feature? |
Rating |
0/5 based on 0 votes.
|
Ownership |
RedstoneMG |
Views |
565 views. Averaging 0 views per day. |
Similar Topics |
|
Submission Date |
Mar 18, 2006 - 11:27 AM |