I can't found the upper links at 1.6.4

Please report bugs here!

Moderator: Thorsten

7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

I can't found the upper links at 1.6.4

Post by 7akim »

i install version 1.6.4 , and i use the Arabic lang. , when i switch to arabic
i can't see the upper links like (ask Q ,open Q,help ........)
but when i switch to any other lang. i found it and every thing is ok

also i try to update my old version 1.4.1 and the same error , while it work ok at the old version
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
could you check it using PMF 1.6.5?
Besides I'm not able to reproduce it: have you checked for any difference between your template/index.tpl and the original file shipped with PMF 1.6.5?

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

i do it using 1.6.5 but the same problem , also i check the index.tpl .. i know the problem in this file cause i replace it with the old one used at 1.4.1 and the links appears , i try to modify the file to correct this problem but i failed , then i put the original one back but the problem still

i install 1.4.1 again and update it using 1.6.5 without change the old template/ directory , it work ok but with the old template and a lot of new functions doesn't appeared
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
Q1. could you check you index.tpl if there are these lines below?

Code: Select all

    <!-- start headers -->
    <div class="header" id="header">
        <h1><a title="{header}" href="{faqHome}">{header}</a></h1>
        <ul>
            <li>{msgContact}</li>
            <li>{msgHelp}</li>
            <li>{msgOpenQuestions}</li>
            <li>{msgQuestion}</li>
            <li>{msgAddContent}</li>
            <li>{msgSearch}</li>
        </ul>
    </div>
    <!-- end headers -->
Q2. Do the links disappear only when changing from English to Arabian?

Q3. Could you post the HTML of the page WHEN the links disappear? Just the lines between:

Code: Select all

    <!-- start headers -->
    ...
    <!-- end headers -->
We need to replicate the issue for fixing it or to understand how to help you without having access to your files.

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

Q1. could you check you index.tpl if there are these lines below?
yes, i check it and it's ok , exist and no change at the code


Q2. Do the links disappear only when changing from English to Arabian?
yes only at arabic

Q3. Could you post the HTML of the page WHEN the links disappear?
yes , the HTML code is

Code: Select all


<!-- start headers -->
    <div class="header" id="header">
        <h1><a title="phpMyFAQ" href="/shobhat/index.php">phpMyFAQ</a></h1>
        <ul>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=contact">إتصل بنا</a></li>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=help">مساعدة</a></li>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=open">الأسئلة المفتوحة</a></li>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=ask">طرح شبهة</a></li>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=add">إضافة سؤال</a></li>
            <li><a href="/shobhat/index.php?sid=1&lang=ar&action=search">Advanced search</a></li>
        </ul>
    </div>
    <!-- end headers -->

[/color]
any way you can check at
www.nasraneyat.com/shobhat/index.php
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

and also check that .... i found a lot of errors at the arabic lang translation and i correct it , and it work fine before and work fine for also 1.6.4

but now it work fine but it print some errors at start
see here the diffrence between the two pages

no errors
http://nasraneyat.com/shobhat/index.php?sid=18&lang=ar&

print errors
http://nasraneyat.com/shobhat/index.php
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
Now I've a more clear picture :)
You're falling into that error (headers already sent by) 'cause you saved the modified Arabian language using a BOM (precisely an UTF-8 BOM) prefix: see here. You need to remove that prefix.

Regarding to the broken encoding: you've correctly set UTF-8 as the charset for the Arabian language BUT probably, even if there is the BOM prefix the language file is not correctly UTF-8 encoded.

Regards,
Matteo

PS: after your reviewing the Arabian translation it would be nice if you could email us the new file to add it to the next PMF release :)
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

Hi matteo,
thank you very much for your support and your help , actual i solve the problem of the Arabic Lang file (The encoding problem) and it's ok now

BUT

I still have the problem of disappear of the upper like , the miss understand happened cause when you check the site , i was already change the index.php to this code which help me to solve the disappear problem but with bad design , i change it to

Code: Select all

    <!-- start headers -->
     <h1>   <a title="{header}" href="{faqHome}">  {header}   </a>    </h1>
<div  class="header" id="horizontalnav">
   
        <ul>
            <li>{msgContact}</li>
            <li>{msgHelp}</li>
            <li>{msgOpenQuestions}</li>
            <li>{msgQuestion}</li>
            <li>{msgAddContent}</li>
            <li>{msgSearch}</li>
        </ul>
    </div>
    <!-- end headers -->
This is the diff.

Code: Select all

id="horizontalnav">
so if you check the site now you can see the links at a horizontal view
but if i use the code

Code: Select all

id="header">
which exist in the original file the problem return again
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

i can see your links...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

hmmmmmmmmmm..............
i try to use Torpark browser and i can see it now ...yeh ..this is great ...
but why i can't see it using IE7 ..... so what sould be the problem and do you use IE or Firefox or what is your browser ???
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay, I can confirm this bug in IE6, it's working in Firefox 1.5 and Opera 9. I'll try to fix this.

Update: Please try the following:

Code: Select all

#header ul { width: 95%;}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

Hi,
can you tell me , where should i add this line ??
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just add it in template/style.css here:

Code: Select all

/**
* Main navigation
*/
#header ul {
   width: auto;
   position: absolute;
   bottom: 0;
   right: 0;
   margin: 0;
   padding: 0 15px 0 0;
   list-style: none;
   width: 95%;
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
7akim
Posts: 9
Joined: Sun Sep 24, 2006 3:25 am

Post by 7akim »

Hi,
thank you very much for your great support , it work and every thing is ok , really your program is very great :-)

and i think i will finish the Arabic translation today , and then i will send the file to update the ar lang file , because the one i correct is more customized for my site and you need some thing standard to add to the next PMF

Thanks again for you and matteo
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

thanks for that! :-)

I'll answer your e-mail as soon as possible.

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