Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 43
  1. #31
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Doug,

    I was able to finally see my define_main_page_lower. Probably the main reason is that I was so convinced it was correctly done, because you provided your references to bunyip's instructions and also so generously provided your actual template in another thread which was more helpful than the one just above this post. I was pretty sure what I had done was correct.

    By accident this morning, I was working on getting categories to show on my centerbox, and had installed Niminix's Centerbox Categories module which wasn't working, and which is controlled in Index Listing in Admin. I was in Layout Settings, and learned that Admin->Layout Settings->Main page - opens with category set to BLANK allowed my define_main_page_lower text to then show. I also found that the Centerbox Categories module worked once this "Main page - opens with category" was set to BLANK.

    So with this setting I both have the categories pictures and the text below the categories.

    As an aside, I also learned that this can be achieved without the Centerbox Categories module, if one only wants to list one category, by setting the Admin->Layout Settings->Main page opens with category to the category number one wants to show. If one has a category description, that description will appear below the category picture, and sort of achieve the objective of text below a picture on the main page.

    I feel so fortunate that you took the time to help with this problem, and can't thank you enough.

    Soon my findings on my WAMP test server will be transferred to my live site at http://www.riverfrontsouth.com., and it will be a great improvement.

  2. #32
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Glad it finally worked out.
    Doug

  3. #33
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Hi. Before I leave this lower main page issue, I just realized that on comparing files with the files Doug originally provided as examples, there was a change.

    I am not spending the time I should to find the references again, but when I compared with the original, there was no includes/extra_data_files/main_page_definitions.php in the example file.

    Instead there was an includes/languages/english/extra_definitions/main_page_definitions.php file. That is something I also changed that obviously contributed to making the define_main_page_lower text work.

    There was a time lag between doing that and making it work by making the Admin->Layout Settings->Main page opens with category=BLANK, so I forgot to add that to these comments, but that was a pretty significant change.

    So before I am hastening to add this to the discussion above before I move on. Thanks, Doug and Bunyip.

  4. #34
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Well, I'm back again.

    My Captcha with TTF and GD stopped working.

    What stops it from working is the "main_page_definitions.php" file:

    <?php
    define("FILENAME_DEFINE_MAIN_PAGE_LOWER', 'define_main_page_lower');
    ?>
    bunyip's instructions (earlier in this thread) were to place the above in includes/extra_datafiles/main_page_definitions.php

    but I also found instructions to place in:

    includes/languages/English/extra_definitions/main_page_definitions.php

    I had taken the "extra_definitions" location from an "includes" file provided by pdxdoug at this thread location:

    http://http://www.zen-cart.com/forum...+center&page=3

    In troubleshooting why my Captcha stopped working, it came down to this file. I have a backup with Captcha working, and it works until I add this code. It completely stops showing the Captcha picture whether I place this code in the extra_datafiles or the extra_definitions location.

    I found that it made both my WAMP zencart and my online site able to show both the upper and the lower define_main_page files. My online site is here, where both upper and lower text is working, but the captcha is not working:

    http://www.riverfrontsouth.com

    Oddly, if I added the file in the extra_datafile location it completely broke my online site, although my WAMP would still work and just not show the define_main_page_lower.

    At the moment, my captcha is working on my backup site as long as I do not place this file in either location.

    As a secondary problem, I cannot get the define_main_page_lower to show on this backup site, even if I add the define_main_page_lower in the extra_definitions location that still works on my online site and more recent WAMP site. Two of the files (tpl_index_default.php annd define_main_page_lower) needed to be placed both in the default and my custom template to work, but I do not see an override location where this main_page_definitions.php file could be tried.

    In trying to see a potential conflict, I see there is a captcha.php in the extra_definitions location which looks like this:

    [QUOTE]<?php
    /**
    * captcha.php CAPTCHA class
    *
    * @package captcha
    * @copyright Copyright 2004-2007 AndrewBerezin
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: zen_captcha_img.php 1 26.02.2007 8:01 AndrewBerezin $
    */

    define('INTRO_CAPTCHA', 'In our effort to combat email spamming, we now require all contact emails to include verification. Please type the letters and numbers shown below into the verification code field.');
    define('TEXT_CAPTCHA_REDRAW', '(If this image is unclear, click the redraw button.)');

    define('TITLE_CAPTCHA', 'Enter verification code shown above:');
    define('TEXT_CAPTCHA', '* (case insensitive)');
    define('ERROR_CAPTCHA', 'You did not enter the validation code correctly. Please, try again.');
    define('BUTTON_IMAGE_CAPTCHA_REDRAW', 'button_redraw.gif');
    define('BUTTON_IMAGE_CAPTCHA_REDRAW_ALT', 'Redraw Capture Image');
    define('BUTTON_IMAGE_CAPTCHA_REDRAW_TEXT', 'If the image text is not readable use this button to redisplay it');
    define('IMAGE_CAPTCHA_ALT', 'Enable this picture');

    define('ERROR_CAPTCHA_GD', 'CAPTCHA Error: There is no GD-Library enabled. The CAPTCHA cannot be used!');
    define('ERROR_CAPTCHA_GIF', 'CAPTCHA Error: GD-Library does not support GIF. The CAPTCHA cannot be used!');
    define('ERROR_CAPTCHA_PNG', 'CAPTCHA Error: GD-Library does not support PNG. The CAPTCHA cannot be used!');
    define('ERROR_CAPTCHA_JPG', 'CAPTCHA Error: GD-Library does not support JPG. The CAPTCHA cannot be used!');
    define('ERROR_CAPTCHA_SESSION', 'CAPTCHA Error: Session not started. The CAPTCHA cannot be used!');
    ?>/QUOTE]

    (You will see some added text at the top of this file which is from "chrx" from the thread "How to add the Captcha to Ask A Question" I believe)

    I do not know whether this issue should be posted in a Captcha forum or here, so for now, I will post here, and if no one can help, I will post a much reduced question in a Captcha thread. Hopefully that would not be considered a double post.

    Thanks for any suggestions.

  5. #35
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Last update, I think. In my post above I noticed a typing error, placing a " where a ' should have been.

    I decided to really scrutinize the file in question and compare it with other files in my "extra_definitions" files. Although I thought there was no space at the end, because when I backspaced the entire line was deleted, there were actually 2 spaces at the end which I found by comparison with the other files, and by using the "delete" key and not the backspace key.

    Once those two spaces were deleted, my Captcha shows again, along with my define_main_page_lower.

    I didn't quite get my backup to show the define_main_page_lower, but my test WAMP and online site do work now, so that will just be an investigation to pursue for a learning exercise.

    I hope these exploits in mistakes really serve to help someone in the future and really appreciate the help received here.

    I think a lot of mistakes just come from sheer fatigue at the long process of trouble-shooting, and it just takes a little rest and looking at things from more of a distance to see these things. I really thought I would never solve this one, but I just kept remembering what others had gone through and found, and it turned out that I had that same extra spaces error others had spoken of that I hadn't seen before.

  6. #36
    Join Date
    Apr 2010
    Location
    UK
    Posts
    150
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Doug, notageek, I am a newbie but I tried your advice and I successfully installed main_lower_page and it works
    I also had a problem but, like notageek did, I set "Main page -opens with category" to blanc and it works!

    Thanks a lot!

  7. #37
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Ekele,

    It makes all the time and effort seem worth it when someone benefits from the dialog working out problems. I know I couldn't have made the main_page_lower module work without Doug's help. It is really a great add-on and I am glad you were able to make it work.

  8. #38
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    This define_main_page_lower feature is so useful to me that I put it into a module based on the foregoing advice. It works fine on my new install of Zencart version 1.3.9d (as well as on 1.3.8a), not only with the main_page_lower in the define pages menu in Admin, but also with the SQL patch placing it into the configuration menu to turn on or off.

    It is not packaged as an Add-on as I have not (1) placed it in a zip file (though I might be able to figure out how to do that) (2) with instructions, or (3)created an uninstall, and (4) I could not even begin to support it, since it is derived from Bunyip's and Doug's advice as well as that of another Zenner who provided the instructions to create the SQL patch, from another thread. It would really be beyond me to explain and analyze the code or troubleshoot related problems for others.

    Nevertheless, I would love to "give back" to the Zen Cart community in this way, saving someone else the enormous time expenditure it cost me.

    If anyone wants to email me for this module, it will be necessary to ask to be allowed through my spam filter at [email protected].

    If I should submit it, I hope the Zen Cart Team will let me know.

    Notageek

  9. #39
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    It should be mentioned with regard to the Define_Main_Page_Lower system that one cannot show categories on the main page with this module, since admin->configuration-layout settings must place the "show categories on main page" setting at blank, or zero which works with Zen Cart version 1.3.9d. I tried this out and when I placed the "show categories on main page" setting to show the categories, the lower define page disappeared.

    Therefore, to show categories on the main page with this module, Numinix's Centerbox Categories module is great, plus with that module you can select some categories to show and not others. There may be other centerbox categories that might work with the Define_Main_Page_Lower system, for example the module that places categories in the grid might work with this.

    This information seems important for any future use of the Define_Main_Page_Lower system, so this information is just a clarification for the record.

    Notageek

  10. #40
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    If I should submit it, I hope the Zen Cart Team will let me know.
    Submitting it to the downloads would make life easier for you, not having to have people email you for the addition.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. So screwed up the Admin page somehow...
    By Serious in forum Basic Configuration
    Replies: 5
    Last Post: 18 Feb 2011, 05:53 AM
  2. SSU gone bad!
    By NBordeau in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 1 Jun 2010, 05:05 AM
  3. Replies: 8
    Last Post: 6 Dec 2008, 01:18 AM
  4. Screwed up my admin somehow??
    By Baloo in forum General Questions
    Replies: 14
    Last Post: 7 Jul 2008, 01:37 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