Jump to content

How to add new boxes in CC5


Guest beautyie
 Share

Recommended Posts

Guest beautyie

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest beautyie

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

Link to comment
Share on other sites

Guest beautyie

You'd need to add to / edit the /classes/gui.class.php file. Hope this helps!

:w00t:

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.......... :)

Link to comment
Share on other sites

  • 2 months later...
Guest lazerstar888

You'd need to add to / edit the /classes/gui.class.php file. Hope this helps!

:w00t:

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?

Link to comment
Share on other sites

  • 2 weeks later...

You'd need to add to / edit the /classes/gui.class.php file. Hope this helps!

:w00t:

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 @

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...