How to edit articles in 1.6 version ?

Please report bugs here!

Moderator: Thorsten

SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

How to edit articles in 1.6 version ?

Post by SaNkA »

Hello.

I don't understand what happens.

Since I upgraded to 1.6 version, and when I try to edit an article, I can't do it.

Please, see screenshot below :
Image

Thank you for help.

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

Post by matteo »

Hi,
you could be able to expand the categories by clicking e.g. on "Dico" and you could be able to find your faq entries just below the expanded category
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

Good evening matteo and thank you for reply.

But I tested before start this topic :P

The problem is that I can't expand any category and faq entries aren't showed !

Thank's
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Oopss... :oops:
I've checked your screenshot again and the other strange thing is that the "Dico" category is underlined. According to the default template the category name must be bold and the faq titles must be underlined.
Could you try to delete your browser cache?
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

matteo wrote:...
Could you try to delete your browser cache?
Sure.

But it's not the problem :(
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

So, just to summarize for trying to replicate your issue:
  1. You've upgraded PMF to 1.6.0 starting from which version of PMF?
  2. "Dico" is a category, right?
  3. Do you have only one "root" category?
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

matteo wrote:You've upgraded PMF to 1.6.0 starting from which version of PMF?
1.5.8
"Dico" is a category, right?
Yes.
Do you have only one "root" category?
No.
Actually, there are 7 root (main) categories.

Thank you.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
thanks for the info.
SaNkA wrote:
matteo wrote:You've upgraded PMF to 1.6.0 starting from which version of PMF?
1.5.8
Do you receive any error during the running of the update stage (http://<hostname>/path/to/yourPMF/install/update.php)?

Could you check the HTML source of the page and search for Dico? You should find something like the HTML code below, with a <tr>...</tr> block, one for each faq under this category:

Code: Select all

    <!--<a name="cat_7" />--><div class="categorylisting"><a href="#cat_7" onclick="showhideCategory('category_7');"><img src="../images/more.gif" width="11" height="11" alt="" /> Dico</a></div>
    <div id="category_7" class="categorybox" style="display: none;">
    <table class="listrecords">
    <tbody>
    <tr>
    ...
    </tr>
    <tr>
    ...
    </tr>
    </table>
    </div>
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

I've checked source code and it seems ok. I can see faq entries in HTML Code.
But I can't yet view them on page...

I reupload entire admin directory but problem persists !

When I click on category to try to expand it, link is like this :

.../admin/index.php?uin={session ID}&aktion=view#cat_12

Well...
I saw it's JS system :

Code: Select all

div class="categorylisting"><a href="#cat_12" onclick="showhideCategory('category_12');">...
It is possible problem may be caused by JS problem ?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

do you get any JS errors? If yes, what errors?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

Hi Thorsten.

No.

But I can't yet edit article. When I click on link it happens nothing...
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you post your inc/functions.js file here?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

Ok :)

Code: Select all

...
* under the License.
*/

function Picture(pic,title,width,height)
{
    popup = window.open(pic, title, 'width='+width+', height='+height+', toolbar=no, directories=no, status=no, scrollbars=no, resizable=yes, menubar=no');
    popup.focus();
}

function checkAll(checkBox)
{
    var v = checkBox.checked;
    var f = checkBox.form;
    for (var i = 0; i < f.elements.length; i++) {
        if (f.elements[i].type == "checkbox") {
            f.elements[i].checked = v;
            }
        }
}

function addEngine(uri, name, ext, cat)
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
        window.sidebar.addSearchEngine(uri+"/"+name+".src", uri+"/images/"+name+"."+ext, name, cat);
    } else {
        alert('Mozilla Firefox, Mozilla or Netscape 6 or later is needed to install the search plugin!');
    }
}

function focusOnUsernameField()
{
    if (document.forms[0] && document.forms[0].elements["faqusername"]) {
        document.forms[0].elements["faqusername"].focus();
    }
}

/**
 * showhideCategory()
 *
 * Displays or hides a div block
 *
 * @param    string
 * @return   void
 * @access   public
 * @since    2006-03-04
 * @author   Thorsten Rinne <thorsten@phpmyfaq.de>
 */
function showhideCategory(id)
{
    if (document.getElementById(id).style.display == 'none') {
        document.getElementById(id).style.display = 'block';
    } else {
        document.getElementById(id).style.display = 'none';
    }
}
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the file is correct... du you have JS enabled?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

Thorsten wrote:du you have JS enabled?
Sure :o
Always...

I've tried with IE and Opera too (I use Firefox - 1.5.0.2 - in normal time) and... same problem : nothing is expanded. I'm desperated... lol
Post Reply