Page 1 of 1

help review my new site, all comments appreciated :)

Posted: Tue Mar 31, 2009 11:34 am
by dead leprachorn
Pnawn Da,
im just about done with the design and layout of a new site, focused primarily on displaying photo galleries, but with some text entries also (text content atm is all just random). It is my first XML project so comments not related to visual design also very much appreciated.

http://dlp.endofinternet.net/deadleaves

i deleted IE from my puter in an act of protest so if the site views correctly in IE it is entirely incidental. i will get round to sorting it out in IE at some point, but for now, if anyone is using IE, please don't :D

Much appreciated.
P.L

Re: help review my new site, all comments appreciated :)

Posted: Tue Mar 31, 2009 11:57 am
by tanja
Your site is downloading slowly in FF3.0 Try to rebuild smth in database or do changes in content

Re: help review my new site, all comments appreciated :)

Posted: Tue Mar 31, 2009 12:48 pm
by dead leprachorn
righty, converted everything i could to jpeg format.
My index page is pretty slim actually, almost no content is loaded from the database. Just for a reference here is the code. It simply loads pages if they exist and creates them if they dont (atm all pages should exist, and are at max 3kb) must be a server issue - unless you are loading a gallery as some of the images are quite large.

Code: Select all

if(!file_exists("menu.html")) 
      new objMenu("menu", "subject", "page");
  
      $body = DOMDocument::loadHTMLFile("basic_frame.html");
      
        $bodyNode = $body->getElementById('body');
        $contentContainer = $body->getElementById('content');
        $menu = DOMDocument::loadHTMLFile("menu.html"); 
        
        if($_SESSION['admin']) {
          
          $driveScript = $body->getElementbyId('drive_js');
            $newScript = $driveScript->setAttribute('src','js/admin.js');
          $image = $menu->getElementsByTagName("img")->item(0);
            $image->setAttribute("title","processor.php?menu=true");
            $image->setAttribute("onclick","loadInBody(this)");
          
              
        }   
          $menuRoot = $menu->getElementsByTagName('div')->item(0);
          $menuRoot = $body->importNode($menuRoot, true);
        $login = DOMDocument::loadHTMLFile("login.html");
          $container = $login->getElementsByTagName('div')->item(0);
          $container = $body->importNode($container, true);
          $contentContainer->parentNode->replaceChild($container,$contentContainer);
          $bodyNode->insertBefore($menuRoot, $bodyNode->firstChild);
           
       if(!$_SESSION['admin']) {
           
          $newsFeed = $body->getElementById('newscontainer');
          $navigation = new objTabs("menu","subject","page");
            $navigation->pageType = "content";
            $navigation->identValue = $navigation->pageName = "headline";
             
            $navigation->pageLevel = "feed";
        
        if($navigation->processQuery())  
            $newsBody   = DOMDocument::loadHTMLFile("pages/".$navigation->fileName.".html");
              $newsRoot = $newsBody->getElementsByTagName('div')->item(0);
              $newsRoot = $body->importNode($newsRoot, true);
                $newsFeed->parentNode->replaceChild($newsRoot, $newsFeed); }
 
 

Re: help review my new site, all comments appreciated :)

Posted: Mon Apr 06, 2009 8:45 am
by tanja
Fine site! I like it!