Getting rid of [en]

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
sohmer
Posts: 2
Joined: Thu Nov 24, 2005 11:31 pm

Getting rid of [en]

Post by sohmer »

Hey folks-

On the show all categories page, I'm trying to get rid of the [en] that's next to each question.

I couldn't find the template file associated with this, so I'm not sure what to edit.

Any help would be appreciated!

Thank you,

sohmer
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

If you click "Show all categories" as a user you'll get a list of categories, each of them indicating the numer of faq classified in that category.

Maybe you're talking about:
a. the <select> populated wth all the categories: if yes, please open inc/category.php and search for the printCategoryOptions method and replace this line:

Code: Select all

$categories .= $indent.$cat['name']." (".$cat['lang'].")</option>\n";
whit this one:

Code: Select all

$categories .= $indent.$cat['name']."</option>\n";
b. the list of faq (title of -) obtained clicking upon a category: if yes, please open inc/functions.php and search for printThemes function and replace this lines:

Code: Select all

                $output .= "\t<li><a href=\"".$row->category_id."_".$row->id."_".$row->lang.".html\">".PMF_htmlentities(stripslashes($row->thema),ENT_NOQUOTES, $PMF_LANG['metaCharset'])."</a> [".$row->lang."]<br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
            } else {

                $output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->category_id."&id=".$row->id."&artlang=".$row->lang."\">".PMF_htmlentities(stripslashes($row->thema),ENT_NOQUOTES, $PMF_LANG['metaCharset'])."</a> [".$row->lang."]<br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
with these ones:

Code: Select all

                $output .= "\t<li><a href=\"".$row->category_id."_".$row->id."_".$row->lang.".html\">".PMF_htmlentities(stripslashes($row->thema),ENT_NOQUOTES, $PMF_LANG['metaCharset'])."</a><br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
            } else {

                $output .= "\t<li><a href=\"".$_SERVER["PHP_SELF"]."?".$sids."action=artikel&cat=".$row->category_id."&id=".$row->id."&artlang=".$row->lang."\">".PMF_htmlentities(stripslashes($row->thema),ENT_NOQUOTES, $PMF_LANG['metaCharset'])."</a><br /><div class=\"little\">(".$visits." ".$PMF_LANG["msgViews"].")</div></li>\n";
If not (a.) or (b.) please post the url of the page upon which you would introduce your custom behaviour :wink: [/i]
sohmer
Posts: 2
Joined: Thu Nov 24, 2005 11:31 pm

Post by sohmer »

It was B, and it worked perfectly!

Thanks for the help ;)
Post Reply