Thread: FAQ Manager

Results 1 to 10 of 369

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Traralgon
    Posts
    56
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Andrew,

    Your suggested change did fix the problem. This module now works perfectly.

    Thankyou very much for your help!

    Also thanks to everyone who has developed, tested, and argued about this contrib.

    Cheers
    Reuben

  2. #2
    Join Date
    Feb 2005
    Location
    Lochgelly :: Fife :: Scotland :: UK
    Posts
    441
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Finally a Solution!

  3. #3
    Join Date
    Feb 2005
    Location
    Lochgelly :: Fife :: Scotland :: UK
    Posts
    441
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Thanks Andrew, i have updated the package and provided a mention on that very line for you.

    Thanks Again

    Derek

  4. #4
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: FAQ Manager

    Hi Derek,
    It not the correct decision. Correctly to do so:
    tpl_faqs_new_default.php, tpl_faq_categories.php, new_faqs.php
    Code:
      switch (true) {
        case (SHOW_NEW_FAQS_LIMIT == '0'):
          $display_limit = '';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '1'):
          $display_limit = " and date_format(p.faqs_date_added, '%Y%m') >= date_format(now(), '%Y%m')";
          break;
        case (SHOW_NEW_FAQS_LIMIT == '30'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 30';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '60'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 60';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '90'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 90';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '120'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 120';
          break;
      }
    replace by
    Code:
      switch (true) {
        case (SHOW_NEW_FAQS_LIMIT == '1'):
          $display_limit = " and date_format(p.faqs_date_added, '%Y%m') >= date_format(now(), '%Y%m')";
          break;
        case (SHOW_NEW_FAQS_LIMIT == '30'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 30';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '60'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 60';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '90'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 90';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '120'):
          $display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.faqs_date_added) <= 120';
          break;
        case (SHOW_NEW_FAQS_LIMIT == '0'):
        default:
          $display_limit = '';
          break;
      }

  5. #5
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: FAQ Manager

    Also would be correct to result a code in conformity with zen-cart ideology.
    Remove strange open-operations directory, don't edit any zen-cart core files, and so on.
    I have no time for this.

  6. #6
    Join Date
    Feb 2005
    Location
    Lochgelly :: Fife :: Scotland :: UK
    Posts
    441
    Plugin Contributions
    0

    Default Re: FAQ Manager

    Quote Originally Posted by a_berezin View Post
    Also would be correct to result a code in conformity with zen-cart ideology.
    Remove strange open-operations directory, don't edit any zen-cart core files, and so on.
    I have no time for this.

    Yes i agree with this too, although i also do not have time.

    This is a contribution for the community if someone else wants to do it thats great, it was Dave at Open Operations that originally developed it so i would also think that it's fair to leave some form of mention to Dave on there, and since this is also the way of the GNU/GPL licence.

    Derek

  7. #7
    Join Date
    Jan 2007
    Location
    Bellingham, Wa
    Posts
    174
    Plugin Contributions
    0

    Default Re: FAQ Manager

    So is it safe to try this mod again?

 

 

Similar Threads

  1. FAQ manager
    By louisapple in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 8 Apr 2009, 03:08 PM
  2. FAQ Manager error
    By tpascubarat in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Jan 2008, 12:48 PM
  3. FAQ Manager ?
    By winky3d in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 26 Jul 2007, 02:33 PM
  4. Faq Manager Character Limit
    By jaywhy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 May 2007, 05:28 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