Listcontent.php /stylesheet problem resolved!
Posted: Sat Dec 30, 2006 6:09 pm
Hi,
This problem seems to be resolved now
Please see below!
What finally resolved this problem was that I uploaded listcontent.php from the installation package to /ADMIN/.
In the, what seems to be a working piece of code, the HasChildren function/procedure call read like this:
So, when I edited the listcontent.php at the server, I must have messed up the haschildren calls.
In conclusion: if you don't know what you're doing, just - please! - DON'T do it
Cheers,
Jussi
EDIT: Code etc.
[gelöscht durch Administrator]
This problem seems to be resolved now
I have a problem now, please see attached picture.
I was playing around with style sheets last night, and now listcontent.php is not working.
Silly me: I deleted log files, because everything seemed to be working just fine.
I have double checked file and folder permissions. My ISP guy told me that there are no changes in servers.
Did try the "has_children" patch - nothing.
I'm running the "Maui" version of CMSMS.
Any help would be greatly appreciated,
Cheers,
Jussi
What finally resolved this problem was that I uploaded listcontent.php from the installation package to /ADMIN/.
In the, what seems to be a working piece of code, the HasChildren function/procedure call read like this:
Code: Select all
foreach ($all as $thisitem)
{
if ($thisitem->[b]HasChildren[/b]())
{
$cs .= $thisitem->Id().'=1.';
}
}
set_preference($userid, 'collapse', $cs);
}
Code: Select all
#Check for children
if ($contentobj->[b]HasChildren[/b]())
{
$_GET['error'] = 'errorchildcontent';
}
Code: Select all
if ($display != 'none')
{
$thelist .= "<tr id="tr_".$one->Id()."" class="$currow" onmouseover="this.className='".$currow.'hover'."';" onmouseout="this.className='".$currow."';">\n";
$thelist .= "<td>";
if ($root->[b]hasChildren[/b]())
{
if (!in_array($one->Id(),$openedArray))
{
Code: Select all
$hierarchy = &$hierManager->getRootNode();
if ($hierarchy->[b]hasChildren[/b]())
{
$pagelist = array();
foreach ($hierarchy->getChildren() as $child)
In conclusion: if you don't know what you're doing, just - please! - DON'T do it
Cheers,
Jussi
EDIT: Code etc.
[gelöscht durch Administrator]