2011-09-30, 00:05:17
n00dles101 Wrote:@theNo, sorry about that forgot to state in was for 3.1 only...
@n00dles101: no problem. Was easy to find.
grs84pl Wrote:test.silesia-studio.pl - has fancyURL's turned off & works fine.
wycieczkielka.pl - has fancyURL's turned on & also works fine.
(both GS 3.0 & .htaccess not modyfied )
@grs84pl: well, than I need to do some more detailed testing... something about the item-list is not working, as soon as I use the configuration without fancy URL... fixed it for me, by altering the following functions in the display-items.php
Code:
function im_list_categories() {
global $SITEURL, $item_file_url;
if(file_exists(ITEMSFILE))
{
$category_file = getXML(ITEMSFILE);
foreach($category_file->categories->category as $the_fed)
{
$category = $the_fed;
if ($PRETTYURLS == 1) {
$url = $SITEURL.$item_file_url."/?category=$category";
} else {
$url = $SITEURL."index.php?id=".$item_file_url."&category=$category";
}
echo "<li><a href=\"$url\">$category</a></li>";
}
if ($PRETTYURLS == 1) {
echo '<li><a href="'.$SITEURL.$item_file_url.'/">View All Categories</a></li>';
} else {
echo '<li><a href="'.$SITEURL."index.php?id=".$item_file_url.'/">View All Categories</a></li>';
}
}
}
Note: I removed the <br>
and in the function print_search_results ($page) I replaced the line:
Code:
$url = $SITEURL.$item_file_details."/?item=$url";
Code:
if ($PRETTYURLS == 1) {
$url = $SITEURL.$item_file_details."/?item=$url";
} else {
$url = $SITEURL."index.php?id=".$item_file_details."&item=$url";
}