Jump to content

calabiyau

Members
  • Posts

    272
  • Joined

  • Last visited

    Never

Posts posted by calabiyau

  1. I'm trying to delete a node from an xml file.  The xml file is structured as follows

    <pages>

    <page>

    <script_files>

    <script>

    <script_file></scriptfile>

    <script_name></script_name>

    </script>

    </script_files>

    </page>

    </pages>

     

    and the code i've been trying is

     

    <?php
    $new_page = $_POST['page'];
    $script_file = $_POST['script_file'];
    
    
    
    $xml = new DomDocument('1.0'); 
    $xml->load('../database/content_db.xml'); 
    
    
    $sub_doc = $xml->getElementsByTagName('page')->item($new_page);
    
    $scripts = $sub_doc->getElementsByTagName('script_files')->item(0);
    
    $spec_script = $scripts->getElementsByTagName('script')->item($script_file);
    
    
    
    $olduser = $scripts->removeChild($spec_script);  
    
    $xml->save("../database/content_db.xml"); 
    
    ?>
    
    
    

     

    Thing is I had this sort of working with similar code but have gotten lost along the way.  Anyone familiar with this sort of work that could send me in the right direction?  Thanks

  2. The one on the right, using an image...just create a div for the content block with a set width and set the image as background image no repeat.  Then use padding inside the content div to set your text inside the borders created by the image.

  3. I think it's pretty good actually.  The logo is great, but like others have said...redesign your menu system and get rid of the bevel emboss.  It really dates the look of your site.  Also the menu could be wider and the content area less wide.  Seems a bit out of balance.

  4. since all your columns are fixed width you can use the faux columns technique by creating an image that is the full width of your container div but only a few pixels tall and block out the colors to match the width of each column

     

    Say they are red, white, blue

     

    Your image would look like

     

    RRRRRRRRRRRRRRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWBBBBBBBBBBBBBBBBBBBBB

     

     

    Set that as the background image of your container div and set it to background-repeat: repeat-y

     

    Then make sure to clear your floated columns within the container div

    with something like

     

    <div style="clear: both;"></div>

     

     

  5. My own personal thoughts....why not have the orange hover links actually be orange before hover?  Would add a nice contrasting color.  also the header doesn't seem quite strong enough compared to some of the other elements.  The News and Articles rectangles...why not cut out a piece of the gradient from the header and use that as their background.  I think that would balance things out nicely.

  6. The dragon (if that's what it is) is very nicely done, but the overall green-ness of everything is kind of a turn off (ie.  not very attractive green).  Why not try contrasting with a deep blue?  Keep the main graphic as is, but make the rest of the page blues.  It will make your well done graphic stand out all the more.  I see you've added some animation features which are good.  I like the glowing eyes, but maybe you could come up with a few more taglines then just the three.  It gets a bit repetitive over and over, same words.

  7. Have you looked at your site in internet explorer 6.0, still a very popular browser?  Your page is shifted all the way over the right hand side of the screen.  And might I suggest arial or verdana font for your content?  Some hits of color wouldn't hurt either.  Just pick one, anything will go with your grey scheme.  And some cool images to go with each page.  Just go to

     

    http://www.sxc.hu/

     

    Tons of free cool images you can use to brighten up your site.

  8. Another idea that i've used recently and it google seems to follow the links just fine

     

    <a href="path/to/your/files." onclick="your_ajax_function(); return false;">Link</a>

     

    Since google ignores your javascript it "should" still follow the link in the href.(it has in my case).  All your normal users will get the ajax function and the return false tells js not to follow the link after executing the function.  But it will depend highly on what your content pages look like.  And you must remember that if google is indexing the page via the hard link, then a person may stumble upon your site that way as well, and can they still use/navigate your site...?

  9. Something like below should get you on the right path

     

    if ($handle = opendir('path/to/folder'))
    {
    while (false != ($file=readdir($handle)))
    {
    
    if ( ($file != ".") && ($file != "..") )
    {
    $array = explode( '.' , $file );
    
    //ABOVE ASSUMES THERE IS ONLY ONE FILE EXTENSION
    //WOULD NOT WORK FOR THINGS LIKE file.inc.php
    
    echo "FILENAME:" . $array[0];
    echo "EXTENSION:". $array[1];
    $created = filectime($file);
    echo "CREATED ON: " . date("l, dS F, Y @ h:ia", $created);
    
    //THERE ARE OTHER WAYS YOU CAN FORMAT THE DATE
    //IF YOU SEARCH AROUND A BIT
    }
    
    }
    
    
    
    
    }
    
    
    
    
    
    

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.