Hi,
phpMyFAQ is incredible..have spent the last 5 days customizing it and love the fact that it can be changed so extensively because of the separation of content and formatting.
I am using 2.0.1 and have customized it quite a bit by updating the index.tpl, main.tpl, css files and other .tpl files. I have a couple of changes I am unable to make and hoping someone can help me.
1. How do I remove the "(XX Views)" under each question in a category? After going through other articles in the forums, I looked for printThemes ($category) in functions.php but could not find it? Has this changed with phpMyFAQ 2.x?
2. I would like to change the style of the questions list under a category. How do I do that? Have tried changing a bunch of things in style.css and colors.css but I am unable to change the indentation/left margin for the question list. Which class/id do i need to modify?
Thanks in advance.
Regards,
Rahul
Removing "Views" + Formatting "Questions"
Moderator: Thorsten
Re: Removing "Views" + Formatting "Questions&
Hi,
bye
Thorsten
you have to remove this in the file inc/Faq.php in the function getTopTen().1. How do I remove the "(XX Views)" under each question in a category? After going through other articles in the forums, I looked for printThemes ($category) in functions.php but could not find it? Has this changed with phpMyFAQ 2.x?
You can change the layout of this list with the CSS classes2. I would like to change the style of the questions list under a category. How do I do that? Have tried changing a bunch of things in style.css and colors.css but I am unable to change the indentation/left margin for the question list. Which class/id do i need to modify?
Code: Select all
.main-content .phpmyfaq_ulThorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Thanks a ton!!
I made the following changes :
1. Removing (XX Views)
Original Code in faq.php:
Changed to:
2. Formatting "Questions".
I madea couple of changes to give me a little more flexibility as it helps me drill down in css
First I changed faq.php :-
Original Code:
Changed Code:
Next I created definitions for #qlist in styles.css and colors.css. Removed styles made redundant.
Categories page now is perfect for my reqs. Havent gone through the entire app yet to see if I screwed up anything. Will update if any. Again thanks!
I made the following changes :
1. Removing (XX Views)
Original Code in faq.php:
Code: Select all
$listItem = sprintf('<li>%s<br /><span class="little">(%d %s)</span></li>'Code: Select all
$listItem = sprintf('<li>%s</li>'I madea couple of changes to give me a little more flexibility as it helps me drill down in css
First I changed faq.php :-
Original Code:
Code: Select all
$output .= '<ul class="phpmyfaq_ul">';Code: Select all
$output .= '<ul id="qlist">';Categories page now is perfect for my reqs. Havent gone through the entire app yet to see if I screwed up anything. Will update if any. Again thanks!