WordPress.org

Ready to get started?Download WordPress

Forums

Image Safari - All Archives hack problem calling D (2 posts)

  1. Bedingfield
    Member
    Posted 10 years ago #

    Hi there,
    I have tried to install the hack that was on the Image Safari site (http://www.imagesafari.com), this hach would show all archives by date and month but although I have been able to get the page to view it does not connect to my DB.
    I get these errors:
    No Database Selected
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/rin/public_html/all_archives/jon_getarchives.php on line 12
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/rin/public_html/all_archives/jon_getarchives.php on line 66
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/rin/public_html/all_archives/jon_getarchives.php on line 68
    There were no instructions with this hack, has anyone else got it running? Hope you can advise :)
    Thanks
    Karl

  2. jonanhold
    Member
    Posted 10 years ago #

    Make sure you're including blog.header.php in your all_archives.php file..
    On my side, I created my own header/footer/etc pages that I include all over the place. This hack will _not_ drop in and work if you just grab my files and drop them on your webserver.
    The jon_getallarchives() function _should_ work if you just drop it onto a page.
    -j

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.