Results 1 to 10 of 347

Hybrid View

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

    Default Re: Editable Home Page Centerboxes

    After looking at all the pieces of code to handle sideboxes, I was able to rethink the process and greatly simplify it. With the sidebox filename in middlebox_filenames.php (replacing 'define_middlebox_x' with 'best_sellers'), the controller can handle them each appropriately. Making that one edit renders the corresponding define file irrelevant, as the sidebox will be called in its place during middlebox group processing. I still have to test it to make sure there isn't some other bump in the road (like Zen Cart define pages editor looking for a best_sellers define file and throwing an error??) which may require alternate coding...

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes

    Quote Originally Posted by gjh42 View Post
    After looking at all the pieces of code to handle sideboxes, I was able to rethink the process and greatly simplify it. With the sidebox filename in middlebox_filenames.php (replacing 'define_middlebox_x' with 'best_sellers'), the controller can handle them each appropriately. Making that one edit renders the corresponding define file irrelevant, as the sidebox will be called in its place during middlebox group processing. I still have to test it to make sure there isn't some other bump in the road (like Zen Cart define pages editor looking for a best_sellers define file and throwing an error??) which may require alternate coding...
    I think I could kiss you Glenn!!! This is exciting news.. I am ANXIOUSLY waiting to see the final code.. You are beyond awesome!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Editable Home Page Centerboxes

    I have just gotten this working to display a sidebox in a middlebox group. I had the outline working, but ran into the fact that anything called from a function loses page variables unless they are explicitly declared "global"... which obviously is not acceptable for universal use. I had to rework the function into a module file (a bit more cumbersome to insert the call into the tpl_index_ files), but once I did that it worked like a charm.
    I also bypassed the question of renaming FILENAME_DEFINE_ constants by putting the filename call into admin. Now you can set each middlebox location and whether you want a particular sidebox to appear in its place.

    I need to migrate the working files back to the mod folder and do a few more tweaks, and then I can send out beta testing zips to anybody who wants to try it (Diva:).

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes

    Quote Originally Posted by gjh42 View Post
    I have just gotten this working to display a sidebox in a middlebox group. I had the outline working, but ran into the fact that anything called from a function loses page variables unless they are explicitly declared "global"... which obviously is not acceptable for universal use. I had to rework the function into a module file (a bit more cumbersome to insert the call into the tpl_index_ files), but once I did that it worked like a charm.
    I also bypassed the question of renaming FILENAME_DEFINE_ constants by putting the filename call into admin. Now you can set each middlebox location and whether you want a particular sidebox to appear in its place.

    I need to migrate the working files back to the mod folder and do a few more tweaks, and then I can send out beta testing zips to anybody who wants to try it (Diva:).
    Heck yeah I wanna try this!!!! Do you still have my e-mail address???
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Editable Home Page Centerboxes

    It took a bunch of debugging for "minor" issues, but I think I now have it stable and tested for various configurations. Please try to break it so any remaining bugs can be worked out before submitting.
    Diva, I have sent you a copy. Anybody else who wants one, please send me your e-mali address (broken up so the forum software doesn't xxxx it out).

    Examples:
    Click image for larger version. 

Name:	middle-sideboxes1.jpg 
Views:	74 
Size:	19.8 KB 
ID:	11300Click image for larger version. 

Name:	middle-sideboxes2.PNG 
Views:	62 
Size:	18.4 KB 
ID:	11301

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes

    Quote Originally Posted by gjh42 View Post
    It took a bunch of debugging for "minor" issues, but I think I now have it stable and tested for various configurations. Please try to break it so any remaining bugs can be worked out before submitting.
    Diva, I have sent you a copy. Anybody else who wants one, please send me your e-mali address (broken up so the forum software doesn't xxxx it out).

    Examples:
    Click image for larger version. 

Name:	middle-sideboxes1.jpg 
Views:	74 
Size:	19.8 KB 
ID:	11300Click image for larger version. 

Name:	middle-sideboxes2.PNG 
Views:	62 
Size:	18.4 KB 
ID:	11301
    ***Does the happy dance!!*** Glenn you are the BEST!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Editable Home Page Centerboxes

    just to let you know ive installed the beta and everything installed without a problem

    quickly put 3 boxes on my front page at bottom, nice addon

    www.catchagrip.co.uk

    thanks
    bn

 

 

Similar Threads

  1. v154 Editable Invoices & Packing Slips [Support]
    By dbltoe in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Oct 2015, 11:44 PM
  2. Admin-Editable Sidebox - Support Thread
    By kuroi in forum Addon Sideboxes
    Replies: 331
    Last Post: 29 Oct 2014, 04:15 AM
  3. Move Define Page Text to bottom of page, below centerboxes
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jul 2011, 02:13 AM
  4. Editable Home Page Centerboxes click-able links
    By colhemm in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Feb 2011, 09:04 PM
  5. Image above centerboxes on main page
    By direwolf in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2008, 06:40 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