amciotola Posted October 8, 2005 Share Posted October 8, 2005 One of my friends, whom I've skined cube cart for, would like a counter to be displayed on the front page. While I've tried to talk her out of it, she really wants one. Any suggestions on how I can add one. I've tried adding a php based text counter. The only place I can get it to show is under the cubecart/devellion copyright. http://www.laurachristian.com/shop/index.php Quote Link to comment Share on other sites More sharing options...
Guest tbladecki Posted October 8, 2005 Share Posted October 8, 2005 Where do you want it?? You can put it anywhere with a little bit of work, (maybe), but need a little more info Quote Link to comment Share on other sites More sharing options...
amciotola Posted October 8, 2005 Author Share Posted October 8, 2005 Hi there, By the front page, I meant the homepage. I guess I'm not putting the code in the correct file. I also thought that maybe I need to add another content box just for the counter. Thanks for any information that can be provided. Annette Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 9, 2005 Share Posted October 9, 2005 Look at template styleTemplates/global/index.tpl under your prefered skin folder, open it and modify, add code below after {CATEGORIES} <div class="boxTitleRight">Counter</div> <div class="boxContentRight"> Add you script for the counter here </div> <div class="boxFootRight"> </div> Hope this works :whistle: Quote Link to comment Share on other sites More sharing options...
Guest woodbtreasures Posted October 9, 2005 Share Posted October 9, 2005 Look at template styleTemplates/global/index.tpl under your prefered skin folder, open it and modify, add code below after {CATEGORIES} <div class="boxTitleRight">Counter</div> <div class="boxContentRight"> Add you script for the counter here </div> <div class="boxFootRight"> </div> Hope this works Works Like a charm I put mine on the right side, but you got me to the right place! Thanks Quote Link to comment Share on other sites More sharing options...
Guest mig6 Posted October 9, 2005 Share Posted October 9, 2005 woodbtreasures, cam you please show me your code for the counter, im not a programmer & i wishh to add a counter to my cart. hoppe cn help me with this, Thnaks Quote Link to comment Share on other sites More sharing options...
Guest woodbtreasures Posted October 9, 2005 Share Posted October 9, 2005 woodbtreasures, cam you please show me your code for the counter, im not a programmer & i wishh to add a counter to my cart. hoppe cn help me with this, Thnaks Well the script that I'm using for my counter is offered through my webhost, so it won't reallly work for you. However if you go to http://www.sitemeter.com/ and sign up for one of their free accounts then it would work great. Just follow the insrtuctions provided above and you should be in good shape! :w00t: Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 10, 2005 Share Posted October 10, 2005 You are welcome woodbtreasures :( Quote Link to comment Share on other sites More sharing options...
amciotola Posted October 11, 2005 Author Share Posted October 11, 2005 Thanks for the help. I get the counter box, but when I add <?php require "../../../counter/phpcounter.php"; ?> (I'm actually using the full absolute path .. it's working on www.acpcrepair.com) it does not show up. Annette Quote Link to comment Share on other sites More sharing options...
convict Posted October 11, 2005 Share Posted October 11, 2005 Look at template styleTemplates/global/index.tpl under your prefered skin folder, open it and modify, add code below after {CATEGORIES} <div class="boxTitleRight">Counter</div> <div class="boxContentRight"> Add you script for the counter here </div> <div class="boxFootRight"> </div> Hope this works vrakas, you are realy success with this piece of code moderator? wow, cong. since ....... ? amciotola it does not show upbecause php code inside tpl is NOT parsed. Generally - any script 'inserted' by include or require is running in folder where father script file resides - that means, if inserted sript resides in different folder than father script, relative paths within both directs to different place. Finnaly - *.tpl isnt default extension for php parser (parse tpl with php parser is NOT recomended), template is html like, with template variables. if you want to display final counter, you have to write your own code, parsing your counter into template {VARAIBLE}. Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted October 12, 2005 Share Posted October 12, 2005 @convict vrakas, you are realy success with this piece of code. moderator? wow, cong. I have good Proffesors (only the best and they are in this forum) Thanks for the cong :) Quote Link to comment Share on other sites More sharing options...
Guest silence1 Posted October 14, 2005 Share Posted October 14, 2005 Can you people put a code of a php counter in here please? thanks in advance :w00t: 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.