A few quick questions regarding spacing...

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Damo
Posts: 12
Joined: Wed May 11, 2011 8:06 am

A few quick questions regarding spacing...

Post by Damo »

How can I add another blank line between FAQ's.

When they display, they display like this:

This is a FAQ
(2 Views)
This is another FAQ
(3 Views)
This is another FAQ
(23 Views)

But I want them to display like:

This is a FAQ
(2 Views)

This is another FAQ
(3 Views)

This is another FAQ
(23 Views)

I can't work out which file I need to modify.

Also, at the bottom of the main page, it says: There are XXX FAQs online. Which file do I need to look at to delete / modify this?

Many thanks.
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: A few quick questions regarding spacing...

Post by jason102178 »

To Edit the line and add a space like you want to you need to edit the filed /template/ default/startpage.tpl

then if you want to edit or modify There are XXX FAQs online, you need to modify file template/default/main.tpl and go to line 13 and you can delete or modify it...


Hope that helps


Cheers,

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Damo
Posts: 12
Joined: Wed May 11, 2011 8:06 am

Re: A few quick questions regarding spacing...

Post by Damo »

Regarding the line spacing, I don't think that is correct. The startpage template file only seems to deal with the top 10 menu. I want to change the spacing on the page you see after you click on a category... this part of the page falls within

Code: Select all

<div class="main-content">
.

Also, on the main page, how can I remove the date and archived news link?
jason102178
Posts: 200
Joined: Tue Nov 02, 2010 9:08 am
Location: United States-Ohio
Contact:

Re: A few quick questions regarding spacing...

Post by jason102178 »

Oh ok sorry about that, then the file you need to edit is /inc/Faq.php line 445 it should look like this

Code: Select all

$listItem = sprintf('<li>%s<span id="viewsPerRecord"><br /><span class="little">(%s)</span>%s</span></li>',

This should be what your looking for. hope this helps.

Cheers,

Jason
phpMyFAQ Quality Assurance / Forum Moderator
Amazon.com Wishlist
Post Reply