2.8.x How to hide some parts of the main page

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

2.8.x How to hide some parts of the main page

Post by ubellavance »

Hi,

I just did an upgrade of my test install of 2.7 to 2.8.2 and I'm revisting problems that I had solved with 2.7. Any help would be appreciated:

Question 1 viewtopic.php?f=2&t=15320:

I'm looking for a way to disable certain tabs in phpMyFAQ... Actually, if I could just keep the main page it would be the best, but if it is not possible, here are the ones I'd like to see disappear from our setup, in order of importance):
  • Ask a question/Open questions
  • Contact
  • Add FAQ
  • I'm feeling lucky (since we enabled instant search on home page, not needed...)
  • Sitemap
Question 2: viewtopic.php?f=2&t=15321

How to disable tag cloud completely?

Thanks,

Ugo
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 2.8.x How to hide some parts of the main page

Post by Thorsten »

Hi,

the templates were moved from template/default/ to /assets/template/default/, then the old answers still work. :)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: 2.8.x How to hide some parts of the main page

Post by ubellavance »

That is another probem I got into. I followed the instructions at http://www.phpmyfaq.de/documentation.2.8.en.php#3.3, but when I copy my templates over the install's default, the page looks like there is no template. The page is white, with {loginBox} at top, {stickyRecordsHeader} near the bottom, and regular stuff in between. If I just do a fresh install, connect it to my 2.7 DB, then run the update screen, it looks OK but all my customizations are lost.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 2.8.x How to hide some parts of the main page

Post by Thorsten »

Hi,

you have to correct the paths to your CSS file, too

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: 2.8.x How to hide some parts of the main page

Post by ubellavance »

Sorry, is this step in the upgrade procedure? I don't remember that...

Thanks,
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 2.8.x How to hide some parts of the main page

Post by Thorsten »

Hi,

no.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ubellavance
Posts: 40
Joined: Fri Apr 05, 2013 7:46 pm

Re: 2.8.x How to hide some parts of the main page

Post by ubellavance »

Hi,

It was getting quite complex to edit all my old files to make it work OK, so I took some time to check index.tpl and edit it to implement what I had done in 2.7. It looks ok now except that the Online verification check doesn't work. I think it may be because this server doesn't have access to the internet, but if that is the case, the error message is erroneous. It should not say "phpMyFAQ version mismatch - no verification possible" but something like 2verification timed out, check your internet connection". Should I submit a bug?

Thanks,
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 2.8.x How to hide some parts of the main page

Post by Thorsten »

Hi,

the online verification check only checks PHP files.

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