Loaded Commerce Community

Banner


Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: affiliate build link :?:
PostPosted: Thu Sep 09, 2004 10:23 pm 
Offline
CRE Addict
User avatar

Joined: Thu Sep 18, 2003 12:00 am
Posts: 165
Location: Michigan
Hello all,

Ok, I have searched the forum and I have been unable to find anything regarding my problem, so I hope that someone can help me.

In the affiliate program, under affiliate banners it has the build a link there. The first problem I have is that you have to know the product number, not the model … is there a way to change this to the model number as that shows on my site?

Second, once I learned how to find the product number and click build link I get a missing image. I thought it was because I didn’t add a banner for that image, but even when I do, I still get that red x image.

Any ideas on what I could be doing or did wrong?

Many thanks to all here, you are awesome!!
DreamWolf


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 10:44 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Not really, though I think the Affiliate module is a good candidate for most under utilized contribution in Loaded 6.

Have you tried checking the properties on the red X to see where it is looking for the graphics??

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 10:51 pm 
Offline
CRE Addict
User avatar

Joined: Thu Sep 18, 2003 12:00 am
Posts: 165
Location: Michigan
Hello David,

Yes I have checked the properties :( and it shows the same path as the other banners I have added under the affiliate section in admin, however there is no actual image name. It just stops at images/.

Oh well, I'll keep checkin and workin on it.

Thanks :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 10:57 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Now, where have I heard that before??

Looks like either a configuration problem -- or a programming bug.

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 11:02 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Well, looking at my system it does appear that the banner would be placed loose in the catalog/images directory. Wonder if this is a permissions problem? I'll try to have a look at it tomorrow...

David


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 09, 2004 11:12 pm 
Offline
CRE Addict
User avatar

Joined: Thu Sep 18, 2003 12:00 am
Posts: 165
Location: Michigan
LOL it is probably something that I have done, knowing me. But I do not remember changing anything with the affiliate program outside of turning it off and then on again.

When I uploaded the images all was well and appeared to be successful, but who knows what the computers really read.

Thanks again for help :)

Sleep well


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 2:19 pm 
Offline
CRE Addict
User avatar

Joined: Thu Sep 18, 2003 12:00 am
Posts: 165
Location: Michigan
ok, I have figured out one part of my problem ... instead of linking to a general banner for the build a link I changed it to link to the actual product image by doing the following:

templates/content/affiliate_banners.tpl.php

change

Code:
$link = '<a href="' . HTTP_SERVER . DIR_WS_HTTP_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';


to this


Code:
$link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['products_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '"></a>';



You will also have to change the following twice on the page

Code:
$link = '<a href="' . HTTP_SERVER . DIR_WS_HTTP_CATALOG . FILENAME_DEFAULT . '?ref=' . $affiliate_id . '&affiliate_banner_id=' . $ban_id . '" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $affiliate_banners['affiliate_banners_image'] . '" border="0" alt="' . $affiliate_banners['affiliate_banners_title'] . '"></a>';


to

Code:
$link1 = '<center><a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['products_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '">' . '<br>' . $affiliate_pbanners['products_name'] . '</a></center>';


Now all I have to figure out is how to build a link using the modle number and not the product number, as I mine do not match and I do not want to have my affiliates confused.

_________________
DreamWolf

WolfTranceDesign
"Your success is only defined by the boundaries you create" by Jo Walker


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 4:47 pm 
Offline
CRE Legend

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7301
Location: Baconton, GA USA
Let me think about that one.

Ok, how about this?

Code:
$link = '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['products_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . $affiliate_pbanners['products_model'] . '"></a>';


and

Code:
$link1 = '<center><a href="' . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_PRODUCT_INFO . '?ref=' . $affiliate_id . '&products_id=' . $individual_banner_id . '&affiliate_banner_id=1" target="_blank"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . $affiliate_pbanners['products_image'] . '" border="0" alt="' . $affiliate_pbanners['products_name'] . '">' . '<br>' . $affiliate_pbanners['products_name'] . $affiliate_pbanners['products_model']'</a></center>';


Which would at least get the model number in the alt text for the image.

You may have to change code elsewhere to assure that products_model is pulled in the database query as needed.

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Board index » Web Design and Development » Contribution Garage

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 9:37 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy