Beginning

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
shotgun
Posts: 3
Joined: Mon Aug 24, 2009 2:36 pm

Beginning

Post by shotgun »

First off I'd like to say thanks, this is a very cool faq's and to be donated to all of us is top notch.
I'm using 2.0.16 and like it. I have a problem when selecting "Open questions", and by the way where are the titles to the links, "Advanced search, Add content, Open questions" etc stored? Anyways, after clicking "Open questions" all questions open, scrolled way down the page, with a couple inches gap before them. Where could I size the "Open questions view area, I think its just to wide so spaces under all else.
Not done yet :) , Is there a way to change "Top 10" latest views to "Top Viewed" or just "Top" and only show 2 or 3?
On a roll now... Can I turn off "The latest articles"? and can I turn off "Sitemap" or "Show all categories" or change menu on left at all?

Thanks again and in advance for any help,
shotgun
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: Beginning

Post by Markus-SSI »

Hi,
  • The number of list entries at the right can be changed in the /inc/constants.php file.

    Code: Select all

    /**
     * Number of records for the Top 10
     *
     * @var const   10
     */
    define('PMF_NUMBER_RECORDS_TOPTEN', 10);
    
    /**
     * Number of records for the latest entries
     *
     * @var const   5
     */
    define('PMF_NUMBER_RECORDS_LATEST', 5);
  • All the titles are saved in your language file, for example /lang/language_en.php. Just look for the text you'd like to change, so you can get easily to the right position.
  • To disable entries in the categories you have to look into the templates (/template/index.tpl). These are all the categories at the left hand side.

    Code: Select all

    <div id="categories">
    <ul>
       <li class="home">{backToHome}</li>
       <li>{allCategories}</li>
       {showCategories}
       <li>{showInstantResponse}</li>
       <li>{showSitemap}</li>
       </ul>
    </div>
  • To format the open questions in your way you can insert some lines into your /template/style.css. This is my style:

    Code: Select all

    .main-content table.openquestions { width: 100%; }
    .main-content table.openquestions th { border-bottom: 1px solid #ddd; padding-bottom: 0.5em; text-align: left;  }
    .main-content table.openquestions td { font-size: 0.9em; padding: 0.5em 0; border-bottom: 1px solid #ddd; }
    .main-content table.openquestions td a { border-bottom: 0; }
I hope this is helping you.
kind regards
Markus
- phpMyFAQ 2.6.2
shotgun
Posts: 3
Joined: Mon Aug 24, 2009 2:36 pm

Re: Beginning

Post by shotgun »

ahhh thank you many times over, questions looks beauty now. Can I add to the menu on the left, its not as easy as replacing {showSitemap} I'm sure but where is it given that as constant and where is link thrown, just so I can look if nothing else, thanks again.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Beginning

Post by Thorsten »

Hi,

sure, you can. Just add a HTML code like this:

Code: Select all

<li><a href="http://www.phpmyfaq.de/">Back to phpMyFAQ homepage</a></li>
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shotgun
Posts: 3
Joined: Mon Aug 24, 2009 2:36 pm

Re: Beginning

Post by shotgun »

:D it is that easy, thanks again.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Beginning

Post by Thorsten »

Hi,
shotgun wrote::D it is that easy, thanks again.
sometimes... ;-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply