XxWickedxX Posted May 16, 2007 Share Posted May 16, 2007 The banner manager currently offers dates to show a banner from or allows you to show it a certain number of times or impressions.. I would like to have the option so that banners display per click.. For example I could set a banner to expire after 50 clicks.. Anyone know how to do this or have some feedback? Quote Link to comment Share on other sites More sharing options...
XxWickedxX Posted May 19, 2007 Author Share Posted May 19, 2007 The banner manager currently offers dates to show a banner from or allows you to show it a certain number of times or impressions.. I would like to have the option so that banners display per click.. For example I could set a banner to expire after 50 clicks.. Anyone know how to do this or have some feedback? If no one is interested in doing this then at least any advise on how I could do it myself.. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 19, 2007 Share Posted May 19, 2007 yes the code is in catalog\includes\functions\banner.php See function tep_expire_banners, check the code flow for "impressions" Basically you need to replace it with the banner_clicked Quote Link to comment Share on other sites More sharing options...
XxWickedxX Posted May 20, 2007 Author Share Posted May 20, 2007 Ok and then I would need to integrate that into the admin panel as an option.. Where would I need to go to do that and how.. I can do the other thing but I dont know if i can link it to the admin panel or not. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2007 Share Posted May 20, 2007 (edited) then you add a configuration switch (an sql statement) with a 'true'/'false' handler. The osc core has the stock sql file with plenty of examples. Then in the catalog\includes\functions\banner.php file you check the switch if it's on you use the banner_clicked otherwise you use the stock behavior. (the impressions) And the switch itself will be available from your osc admin. Just assign the group (1 is for the MyStore configuraiton) Edited May 20, 2007 by enigma1 Quote Link to comment Share on other sites More sharing options...
XxWickedxX Posted June 12, 2007 Author Share Posted June 12, 2007 Instead of re creating a whole new function would it not be easier just to modify the existing impressions function to clicks instead.. Would that not cut the days work in half? If so what would be the only thing needed then? 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.