michellez1 Posted February 7, 2003 Share Posted February 7, 2003 Glad to hear it worked out Ryan! Isn't it funny how just the most simple mistep makes you want to pull your hair out? I swear sometimes that it's just dumb luck I ever get anything to work right the first time. :wink: Hope you still have your hair... Regards, Michelle michelle, found the problem, i am such a dork. it wasn't the date, -1 for testing purposes works fine. you actually have to send it first though. doh! thanks. i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this? Thanks for all your help Ryan Quote Link to comment Share on other sites More sharing options...
michellez1 Posted February 7, 2003 Share Posted February 7, 2003 Oops, overlooked this part...I'm not sure what module the "login module" is. I've not implemented this so I'm not sure about the coding -- but try setting your cookie lifetime higher in your admin control panel...under Configuration. i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this?Ryan Quote Link to comment Share on other sites More sharing options...
henri Posted February 7, 2003 Author Share Posted February 7, 2003 i seem to be having one more problem from the affiliate side. i get logged out when i am logged in as an affiliate and click build link, or go to send a message. i am using the auto login module. would that affect this? Don't know this login module. But getting logout i know too. Not sure about why... I figured out one way: cookies deactivated, you go to affiliate_banner und click on a banner. This opens a new window and starts a new session (cause in these banners are no sessionids. If you go bach to the affiliate yourelogged out. I think this behavier is all right. Quote Link to comment Share on other sites More sharing options...
envy2000 Posted February 7, 2003 Share Posted February 7, 2003 henri That makes sense, but it also happens when i do a fresh login to affiliate, and then go to contact and try to send a contact letter. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 for some reason it's doubling up on the image path. see here http://www.huntseek.net/gearstore/catalog/...ate_banner_id=2 Quote Link to comment Share on other sites More sharing options...
henri Posted February 8, 2003 Author Share Posted February 8, 2003 @Hunter And whats the problem? The debuginfo should be clear. You have one gearsTone to much. Look at the configure.php and remove it. (I would say, that at DOCUMENT_ROOT but don't know your configuration exactly) Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 I've looked at everything and cannot figure out where it's picking the extra gearstore from. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 Heres what my config file has. define('HTTP_SERVER', 'http://www.huntseek.net'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.huntseek.net'); define('HTTPS_CATALOG_SERVER', 'https://www.huntseek.net'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/huntseek/public_html/gearstore'); // where the pages are located on the server define('DIR_WS_ADMIN', '/gearstore/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/huntseek/public_html/gearstore/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/gearstore/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/huntseek/public_html/gearstore/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); Quote Link to comment Share on other sites More sharing options...
henri Posted February 8, 2003 Author Share Posted February 8, 2003 It looks for a imagae under this Adress: DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_IMAGES . $banner DIR_FS_DOCUMENT_ROOT and DIR_WS_CATALOG have gearstore in it, so you have two. I think document root shouldn't have it. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 When I removed the extra gearstore references it screwed up the main cart. It was not then able to find anything. Quote Link to comment Share on other sites More sharing options...
michellez1 Posted February 8, 2003 Share Posted February 8, 2003 Why not try changing the paths in affiliate_show_banner.php lines: $pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . DIR_WS_IMAGES . $banner; to: $pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_IMAGES . $banner; and if (!is_file($pic)) $pic=DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . '/' . DIR_WS_IMAGES . $banner; to: if (!is_file($pic)) $pic=DIR_FS_DOCUMENT_ROOT . '/' . DIR_WS_IMAGES . $banner; When I removed the extra gearstore references it screwed up the main cart. It was not then able to find anything. Quote Link to comment Share on other sites More sharing options...
michellez1 Posted February 8, 2003 Share Posted February 8, 2003 Of course, Henri is right...and I think I know what your problem is...you posted your ADMIN config file...and not your catalog config file...look in there. define('DIR_WS_CATALOG', '/gearstore/catalog/'); // absolute path required should be define('DIR_WS_CATALOG', '/catalog/'); // absolute path required When I removed the extra gearstore references it screwed up the main cart. It was not then able to find anything. Quote Link to comment Share on other sites More sharing options...
michellez1 Posted February 8, 2003 Share Posted February 8, 2003 Here's what my admin/includes/configure.php file looks like: define('HTTP_SERVER', 'https://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html/catalog'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/mysite/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/mysite/public_html/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); And in my catalog/includes/configure.php define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html'); define('DIR_FS_CATALOG', '/home/mysite/public_html/catalog/'); Compare these to yours and see what you find...make sure you note all forward slashes in the areas where needed and not needed. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 finally got all tht correct as you can see here http://www.huntseek.net/gearstore/catalog/...ate_banner_id=6 but the only problem is that I have the debug set to false and the debug is still showing up. by the way thanks to henri for all his help. Quote Link to comment Share on other sites More sharing options...
henri Posted February 8, 2003 Author Share Posted February 8, 2003 You used this: define('AFFILIATE_SHOW_BANNERS_DEBUG', 'false'); in catalog/includes/affiliate_configure.php Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 Yes i have. Quote Link to comment Share on other sites More sharing options...
henri Posted February 8, 2003 Author Share Posted February 8, 2003 Then it shouldn't show the debug information You can outkomment the funktion call in affiliate_show_banner.php // DebugModus // if (AFFILIATE_SHOW_BANNERS_DEBUG=='true') affiliate_debug($banner,$sql) Quote Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2003 Share Posted February 8, 2003 commenting it out did the trick. thanks for all the help. great script. Quote Link to comment Share on other sites More sharing options...
Snowman Posted February 9, 2003 Share Posted February 9, 2003 Ive just sent thru some new code to Henri tolook at which is the basis for a radical change to the layout of the acatalog side of the affiliate program. Changes in these files are: Banners Centre Banners are now split into 4 seperate pages, Banners, Products, Build a Link and Text Links. This will make it less congested if you have lots of banners and products inserted into the program. Reports Centre I have modified the boxes/affiliate.php file to allow for a reporting centre which will house the current reports such as the sales report etc. I am currently enhancing those reports and willhave the code ready shortly. I have also sent thru files to clean up the signup and affiliate details pages to make them look the same as the rest of oscommerce. I have also included the changes to the affiliate welcome email to change it back to the way we had it in Alpha 2.0 If you want to have a look at the changes http://www.snowtechsports.com/new/default.php Enjoy :) Quote Link to comment Share on other sites More sharing options...
loxly Posted February 9, 2003 Share Posted February 9, 2003 Snowman, you and Henri are my new idols :) Only Tim and Linda even come close! Looking forward to the new code, going to look at your site now! Debbie Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
loxly Posted February 9, 2003 Share Posted February 9, 2003 Love it, I went through the affiliate sign up process and it worked like a breeze, thanks for adding the State box back in. Steve, I like some of the custom boxes on your site, are they all available as contributions somewhere or did you design them yourself? I really like the PayPal box, looks very professional. And the Gift Voucher box, and the newsletter sign up box,.... Debbie Quote [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
Snowman Posted February 9, 2003 Share Posted February 9, 2003 Debbie they are all from contributions here at osCommerce. The site you have just looked at is my own "Loaded version" which i supply to my hosting and reseller customers. It features almost everything bar the kitchen sink :) Quote Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2003 Share Posted February 9, 2003 snowman - liked the breakup of the banners. but is it possible also to break up the banners by size? Is this code available? Quote Link to comment Share on other sites More sharing options...
Snowman Posted February 9, 2003 Share Posted February 9, 2003 I guess some sort of implementation could be looked at for breaking up the banners by size or type, but that would need a fair bit or recoding at this stage. Will keep it in mind for a future release however. :) As for the availability of the code... Im just waiting for Henri to give it the once over and if its ok we'll get it into the CVS. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2003 Share Posted February 9, 2003 I've just tested a sale throught the affiliate program and it is not recording the sale. where can I look to find and fix this problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.