removing [en] - language-tags

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

removing [en] - language-tags

Post by jofel »

First of all, let me start to thank you for this terriffic product. Very nice job you've done.

Then, my question(s). I have been doing some tweaking in the css and language file, deleting some things in the template files to integrate it in my site more.

Question 1: is it possible to remove the [en]-tags behind every question? I'll probably use one language anyway and don't want to bother my users with it; it looks nicer without htem too. I have done some searching in files but could not find it.

Question 2: in the main menu, you have the following structure:

Home
Show all categories
Category 1
Category 2
Category x
Sitemap

Is it possible to get some sort of placeholder between the items, so the categories might stick out more:

Home
Show all categories
-----------
Category 1
Category 2
Category 3
----------
Sitemap

Or any other way to get a better visualization of the real categories.

any help appreciated :)

thnx in advanced :)
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: removing [en] - language-tags

Post by Thorsten »

Hi,
jofel wrote:First of all, let me start to thank you for this terriffic product. Very nice job you've done.
thanks for using it!
jofel wrote:Question 1: is it possible to remove the [en]-tags behind every question? I'll probably use one language anyway and don't want to bother my users with it; it looks nicer without htem too. I have done some searching in files but could not find it.
sure, look for the function printThemes() in the file inc/functions.php and remove in the following code there:

Code: Select all

[".$row->lang."]
jofel wrote:Question 2: in the main menu, you have the following structure:

Home
Show all categories
Category 1
Category 2
Category x
Sitemap

Is it possible to get some sort of placeholder between the items, so the categories might stick out more:

Home
Show all categories
-----------
Category 1
Category 2
Category 3
----------
Sitemap

Or any other way to get a better visualization of the real categories.
Just add in the index.tpl file the following where you'll find the category menu:

Code: Select all

<!-- start categories -->
                <div class="content">
                    <div id="categories">
                    <ul>
                        <li class="home">{backToHome}</li>
                        <li>{allCategories}</li>
                    </ul>
                    <ul>
                        {showCategories}
                    </ul>
                    <ul>
                        <li>{showSitemap}</li>
                    </ul>
                    </div>
                </div>
                <!-- end categories -->
This is just a example!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

Thanks a lot, I read your reply and gonna try it as soon as possible (some priorities prohibit me to try immediately lol).

I'll post my results later!
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

It all works nice, just added two more <ul>'s and added a font-weight:bold; at the style.css at #categories ul ul ul a.

that's pretty much I wanted to accomplish :)

Additional questions.

Where do I have to look if I want to remove the amount of views in the list of the questions?

Sorry for this load of questions :) I appreciate it much.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
jofel wrote:Where do I have to look if I want to remove the amount of views in the list of the questions?
which list do you mean?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

Just when you have clicked on a category in the menu :)

but I think I saw a solution here:
viewtopic.php?t=1360&highlight=removing+views

I assume there is no way of seeing in the backend how many views an item got and at the same time hidden on the frontend?

Because it would be interesting to see how many views an item got, just don't want to bother the people on the frontend with it.

If not, I'm considering a dirty trick to make the font-color of the views white, so people don't see it at first site, but you'll be still able to see it when selecting it.

Any other ideas/suggestions?
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you cannot see the views in the admin section, yet...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

Okay, thanks anyway :)

Will try the dirty trick then lol :P

Keep up the good work!
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

I feel like a newbie, but I might need some help... how do I get the font color of the views white when having a list of questions from a category?
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you have to add a

Code: Select all

<span style="color: white;">...</span>
in the function printThemes() above...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
jofel
Posts: 12
Joined: Thu Nov 03, 2005 4:07 pm

Post by jofel »

Lol I tried that before but didn't work;

first got an error but realized had to escape the " with backslashes.

Still the text was black, later I saw another line after that... removed the divs and added the spans and now it's perfect.

Thanks for your help Thorsten :)
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

no problem! :-)

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