hi, i have a install of phpMyFAQ Version 1.4.3 RC1 and dont see subcategories only categories. how can i get it?
Thanks
newbe problem
Moderator: Thorsten
Hi,
just click on the "plus" button in the admin area and add a sub-category. Then you're in the frontend just click on the main category and the category tree will open.
bye
Thorsten
just click on the "plus" button in the admin area and add a sub-category. Then you're in the frontend just click on the main category and the category tree will open.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
the "plus" button isn't displayed. Could you please post the HTML source code from that screen shot?
bye
Thorsten
the "plus" button isn't displayed. Could you please post the HTML source code from that screen shot?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
hi
its original download not modificated.
<?php
/******************************************************************************
* File: category.main.php
* Description: list all categories
* Author: Thorsten Rinne <thorsten@phpmyfaq.de>
* Date: 2003-12-20
* Last change: 2004-07-26
* Copyright: (c) 2001-2004 Thorsten Rinne
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
******************************************************************************/
if ($permission["editcateg"]) {
print "<h2>".$PMF_LANG["ad_categ_existing"]."</h2>\n";
$tree = new Category;
$tree->buildTree();
foreach ($tree->catTree as $cat) {
$indent = "";
for ($i = 0; $i < $cat["indent"]; $i++) {
$indent .= " ";
}
print $indent."<strong style=\"vertical-align: top;\">· ".$cat["name"]."</strong> ";
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=addcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_kateg_add"]."\"><img src=\"images/add.gif\" width=\"17\" height=\"18\" alt=\"".$PMF_LANG["ad_kateg_add"]."\" title=\"".$PMF_LANG["ad_kateg_add"]."\" border=\"0\" /></a>";
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=editcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_kateg_rename"]."\"><img src=\"images/edit.gif\" width=\"18\" height=\"18\" border=\"0\" /></a>";
if (count($tree->getChilds($cat["id"])) == 0) {
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=deletecategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_delete"]."\"><img src=\"images/delete.gif\" width=\"17\" height=\"18\" alt=\"".$PMF_LANG["ad_categ_delete"]."\" title=\"".$PMF_LANG["ad_categ_delete"]."\" border=\"0\" /></a>";
}
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=cutcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_cut"]."\"><img src=\"images/cut.gif\" width=\"16\" height=\"16\" alt=\"".$PMF_LANG["ad_categ_cut"]."\" border=\"0\" title=\"".$PMF_LANG["ad_categ_cut"]."\" /></a>\n";
if ($cat["parent_id"] == 0) {
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=movecategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_move"]."\"><img src=\"images/move.gif\" width=\"16\" height=\"16\" alt=\"".$PMF_LANG["ad_categ_move"]."\" border=\"0\" title=\"".$PMF_LANG["ad_categ_move"]."\" /></a>\n";
}
print "<br />";
}
?>
<p><img src="images/arrow.gif" width="11" height="11" alt="" border="0"> <a href="<?php print $_SERVER["PHP_SELF"].$linkext."&aktion=addcategory"; ?>"><?php print $PMF_LANG["ad_kateg_add"]; ?></a></p>
<p><?php print $PMF_LANG["ad_categ_remark"]; ?></p>
<?php
}
else {
print $PMF_LANG["err_NotAuth"];
}
?>
thanks
<?php
/******************************************************************************
* File: category.main.php
* Description: list all categories
* Author: Thorsten Rinne <thorsten@phpmyfaq.de>
* Date: 2003-12-20
* Last change: 2004-07-26
* Copyright: (c) 2001-2004 Thorsten Rinne
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
******************************************************************************/
if ($permission["editcateg"]) {
print "<h2>".$PMF_LANG["ad_categ_existing"]."</h2>\n";
$tree = new Category;
$tree->buildTree();
foreach ($tree->catTree as $cat) {
$indent = "";
for ($i = 0; $i < $cat["indent"]; $i++) {
$indent .= " ";
}
print $indent."<strong style=\"vertical-align: top;\">· ".$cat["name"]."</strong> ";
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=addcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_kateg_add"]."\"><img src=\"images/add.gif\" width=\"17\" height=\"18\" alt=\"".$PMF_LANG["ad_kateg_add"]."\" title=\"".$PMF_LANG["ad_kateg_add"]."\" border=\"0\" /></a>";
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=editcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_kateg_rename"]."\"><img src=\"images/edit.gif\" width=\"18\" height=\"18\" border=\"0\" /></a>";
if (count($tree->getChilds($cat["id"])) == 0) {
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=deletecategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_delete"]."\"><img src=\"images/delete.gif\" width=\"17\" height=\"18\" alt=\"".$PMF_LANG["ad_categ_delete"]."\" title=\"".$PMF_LANG["ad_categ_delete"]."\" border=\"0\" /></a>";
}
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=cutcategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_cut"]."\"><img src=\"images/cut.gif\" width=\"16\" height=\"16\" alt=\"".$PMF_LANG["ad_categ_cut"]."\" border=\"0\" title=\"".$PMF_LANG["ad_categ_cut"]."\" /></a>\n";
if ($cat["parent_id"] == 0) {
print "<a href=\"".$_SERVER["PHP_SELF"].$linkext."&aktion=movecategory&cat=".$cat["id"]."\" title=\"".$PMF_LANG["ad_categ_move"]."\"><img src=\"images/move.gif\" width=\"16\" height=\"16\" alt=\"".$PMF_LANG["ad_categ_move"]."\" border=\"0\" title=\"".$PMF_LANG["ad_categ_move"]."\" /></a>\n";
}
print "<br />";
}
?>
<p><img src="images/arrow.gif" width="11" height="11" alt="" border="0"> <a href="<?php print $_SERVER["PHP_SELF"].$linkext."&aktion=addcategory"; ?>"><?php print $PMF_LANG["ad_kateg_add"]; ?></a></p>
<p><?php print $PMF_LANG["ad_categ_remark"]; ?></p>
<?php
}
else {
print $PMF_LANG["err_NotAuth"];
}
?>
thanks
Hi,
ist the image admin/images/add.gif not readable?
bye
Thorsten
ist the image admin/images/add.gif not readable?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
problem solved
i use Maxthon browser and this file (only this) fail, not view. At Internet Explorer works fine. Excuse for annoyances. thanks