Guest beautyie Posted September 27, 2011 Share Posted September 27, 2011 I need to add several new boxes in CC5 as I done previously in cc4. I know I need to update the main.php in the skins folder but I can't seem to locate the point where I define the new variable {$location} is the new box I need to add, where do I define {$location} $location is not just html it will also need to include php code so I cna't just add the box directly into main.php. Quote Link to comment Share on other sites More sharing options...
Homar Posted September 27, 2011 Share Posted September 27, 2011 I need to add several new boxes in CC5 as I done previously in cc4. I know I need to update the main.php in the skins folder but I can't seem to locate the point where I define the new variable {$location} is the new box I need to add, where do I define {$location} $location is not just html it will also need to include php code so I cna't just add the box directly into main.php. What kind of box do you want to add? Do you just want to display some static content? If so, you don't need to mess around with the PHP. Simply use the existing markup as a template. If you want to display some dynamic content (i.e. content that is generated through the administration panel or from store information), then this is more involved. Quote Link to comment Share on other sites More sharing options...
Guest beautyie Posted September 27, 2011 Share Posted September 27, 2011 I need to add several new boxes in CC5 as I done previously in cc4. I know I need to update the main.php in the skins folder but I can't seem to locate the point where I define the new variable {$location} is the new box I need to add, where do I define {$location} $location is not just html it will also need to include php code so I cna't just add the box directly into main.php. What kind of box do you want to add? Do you just want to display some static content? If so, you don't need to mess around with the PHP. Simply use the existing markup as a template. If you want to display some dynamic content (i.e. content that is generated through the administration panel or from store information), then this is more involved. It will need to be to be dynamic content and some static. For example the website will show different contact numbers depending on the time of day. Not very complex but essential. In cc4 I had to update the indec.inc.php with require_once"includes".CC_DS."boxes".CC_DS."find.inc.php"; $body->assign("FIND",$box_content); require_once"includes".CC_DS."boxes".CC_DS."support.inc.php"; $body->assign("SUPPORT",$box_content); where o where do I do this in cc5 Quote Link to comment Share on other sites More sharing options...
Guest Posted September 27, 2011 Share Posted September 27, 2011 You'd need to add to / edit the /classes/gui.class.php file. Hope this helps! :w00t: Quote Link to comment Share on other sites More sharing options...
Guest beautyie Posted September 27, 2011 Share Posted September 27, 2011 You'd need to add to / edit the /classes/gui.class.php file. Hope this helps! OK, getting closer but I guess I'll need to more digging if I look in gui.class then I still don't find a reference to any of the standard boxes such as {$MAIL_LIST}, if I can find where that is defeined then I'm sure it will be plain sailing.......... :) Quote Link to comment Share on other sites More sharing options...
Guest lazerstar888 Posted December 15, 2011 Share Posted December 15, 2011 You'd need to add to / edit the /classes/gui.class.php file. Hope this helps! OK, getting closer but I guess I'll need to more digging if I look in gui.class then I still don't find a reference to any of the standard boxes such as {$MAIL_LIST}, if I can find where that is defeined then I'm sure it will be plain sailing.......... I am trying to do something similar - did you find where {$MAIL_LIST} is defined? Quote Link to comment Share on other sites More sharing options...
Big Spender Posted December 28, 2011 Share Posted December 28, 2011 You'd need to add to / edit the /classes/gui.class.php file. Hope this helps! OK, getting closer but I guess I'll need to more digging if I look in gui.class then I still don't find a reference to any of the standard boxes such as {$MAIL_LIST}, if I can find where that is defeined then I'm sure it will be plain sailing.......... I am trying to do something similar - did you find where {$MAIL_LIST} is defined? See my guide @ 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.