Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 46
  1. #21
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rhaught View Post
    So the file in extra_definitions would have to be changed to (for my case) blank_sidebox_defines_coming_soon? Want to create three boxes for coming soon, events and samples
    ..just change the next files to what you like.

    blank_sidebox_defines_events

  2. #22
    Join Date
    Nov 2008
    Location
    New York City
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Within the file this is what I did. Correct or not?
    define('BOX_HEADING_COMING_SOON_SIDEBOX', 'Blank Sidebox Header');
    define('TEXT_COMING_SOON_SIDEBOX', 'Replace this text with your HTML content.

  3. #23
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rhaught View Post
    Within the file this is what I did. Correct or not?
    define('BOX_HEADING_COMING_SOON_SIDEBOX', 'Blank Sidebox Header');
    define('TEXT_COMING_SOON_SIDEBOX', 'Replace this text with your HTML content.
    Yes, that's correct! Just change the names with each and every sidebox you need to upload.

  4. #24
    Join Date
    Nov 2008
    Location
    New York City
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rooisnor View Post
    Yes, that's correct! Just change the names with each and every sidebox you need to upload.
    Ok, removed it from my files to do over. So the files themselves just add the name at the end but within the file do as I did above? This is the fourth time to try to get it to show.

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

    Default Re: Add a new Sidebox?

    Zen Cart uses a system to automatically use the right headings, files. etc. for every sidebox. You need to keep the sidebox name the same everywhere you use it, with standard modifications like all caps for constant names. So
    BOX_HEADING_COMING_SOON_SIDEBOX
    would correspond to a file named coming_soon_sidebox.php, for example.

  6. #26
    Join Date
    Nov 2008
    Location
    New York City
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Ok, just did it and everything went blank when I turned it on. No products are showing or anything just the header image, breadcrumbs at the top and the category links under the image and these even show just that when you click on them. When I turn it off everything is back to normal.

  7. #27
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rhaught View Post
    Ok, removed it from my files to do over. So the files themselves just add the name at the end but within the file do as I did above? This is the fourth time to try to get it to show.
    ..if you rename your files to 'blank_sidebox_defines_coming_soon' before uploading it you MUST keep the same string when you edit inside the files.

    Rename blank to whatever you want to name it... keep the rest of the string because Zen Cart needs to know which files to reconize

    You'll then have coming_soon_sidebox_defines

    Rename and edit all the files by replacing the word 'blank'

  8. #28
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rhaught
    everything went blank when I turned it on.
    Check your edited files and if you are not - ONLY use a PLAIN TEXT editor. You can search for blank page but what you will find is that possible extra spaces/lines, usually at the end of a file, are the major cause of this and php does not tolerate them

  9. #29
    Join Date
    Nov 2008
    Location
    New York City
    Posts
    95
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Used Crimson Editor to do the changes. Replaced Blank if file names to coming_soon and did the same with in the files. Do not see where the code is wrong since I didn't mess with anything but just the blank sections.

  10. #30
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Add a new Sidebox?

    Quote Originally Posted by rhaught View Post
    Used Crimson Editor to do the changes. Replaced Blank if file names to coming_soon and did the same with in the files. Do not see where the code is wrong since I didn't mess with anything but just the blank sections.
    How many boxes have you added by now? Is your first custom box showing? Did you activate the boxes in your admin?

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Add New Sidebox To BetterCategories
    By rrzc in forum Addon Sideboxes
    Replies: 0
    Last Post: 24 Jun 2011, 08:28 PM
  2. Add Photo to New Sidebox
    By brighteyedbambam in forum Basic Configuration
    Replies: 0
    Last Post: 11 Aug 2009, 03:03 PM
  3. how to add three new sidebox for...
    By giuly in forum Addon Sideboxes
    Replies: 2
    Last Post: 21 Jan 2009, 10:20 PM
  4. How do I add a new link to sidebox?
    By windrising in forum Basic Configuration
    Replies: 1
    Last Post: 16 Feb 2007, 10:42 PM
  5. how to add a new empty sidebox??
    By zc-newbie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Aug 2006, 03:51 AM

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