How do I show the title from the a href as plain text....

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
theohoutman
Posts: 4
Joined: Mon Jun 08, 2009 6:50 pm

How do I show the title from the a href as plain text....

Post by theohoutman »

When I list all the catagories there is no description unless I hover the link and get a tooltip

How can I show the tooltip text as normal text?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How do I show the title from the a href as plain text....

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
theohoutman
Posts: 4
Joined: Mon Jun 08, 2009 6:50 pm

Re: How do I show the title from the a href as plain text....

Post by theohoutman »

The latest stable release
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How do I show the title from the a href as plain text....

Post by Thorsten »

Hi,

okay, that's possibe. Where should the describtion appear?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
theohoutman
Posts: 4
Joined: Mon Jun 08, 2009 6:50 pm

Re: How do I show the title from the a href as plain text....

Post by theohoutman »

Prefered under the link. When possible it would be best if the links don't show up as a bulletlist. I have verry little php knowledge so I dunno how to do this myself..
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How do I show the title from the a href as plain text....

Post by Thorsten »

Hi,

open the file inc/Category.php and go to line 632. Change this line from

Code: Select all

$num_entries = sprintf(' (%d %s)', $number[$parent], $PMF_LANG['msgEntries']);
to

Code: Select all

$num_entries = sprintf(' (%d %s)<br />%s', $number[$parent], $PMF_LANG['msgEntries'], $description);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
theohoutman
Posts: 4
Joined: Mon Jun 08, 2009 6:50 pm

Re: How do I show the title from the a href as plain text....

Post by theohoutman »

Works like a charm! Thorsten, You're the best!
Post Reply