Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding a new sidebox

    How exactly is it screwing up? Can you select the sidebox to display? Does it give a white screen, or cut off output at that sidebox, or...?

    The filenames of the files you describe are tpl_welcome.php and welcome.php? And you have a file like /includes/languages/english/extra_definitions/your_template/welcome_defines.php where BOX_HEADING_WELCOME is defined?

  2. #2
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding a new sidebox

    I can turn the sidebox on--it's on now so you can see what it did to my site.


    ...as far as tpl_welcome.php and welcome.php I'm not sure that I have these files at all, I just copied the code from a tutorial I was reading to learn how to add an extra box

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding a new sidebox

    You have to have /includes/modules/welcome.php for the new sidebox to be selectable in admin, and you have to have /includes/templates/your_template(or template_default)/sideboxes/tpl_welcome.php for it to display.

    When you turn the sidebox on, what is the name you are selecting?

  4. #4
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding a new sidebox

    the sidebox is called checkitout.php

  5. #5
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding a new sidebox

    ohh...I just looked and don't seem to have tpl_welcome.php under my custom template sideboxes.

    So I guess that's the problem?

    I don't seem to have any files in that folder actually besides the one I created a little while ago.

  6. #6
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding a new sidebox

    do I create this file or copy it from somewhere else?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding a new sidebox

    The code you posted is looking for a particular filename:

    require($template->get_template_dir('tpl_welcome.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_welcome.php');

    If your module file is named checkitout.php, the sidebox tpl file should logically be named tpl_checkitout.php, and you can change the require accordingly.

    require($template->get_template_dir('tpl_checkitout.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_checkitout.php');

  8. #8
    Join Date
    Mar 2011
    Posts
    65
    Plugin Contributions
    0

    Default Re: Adding a new sidebox

    Okay, I got it to appear, now how can I add other categories under it, and change the box color white like the others?

 

 

Similar Threads

  1. adding a new sidebox
    By gabstero in forum General Questions
    Replies: 4
    Last Post: 18 Oct 2012, 05:16 PM
  2. Adding a new sidebox
    By DannyVarley in forum General Questions
    Replies: 5
    Last Post: 7 Sep 2012, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg