Separate news on Index and Thickbox problem

Hi everyone,
I'm making my own theme and have two problems witch i can't figure out by myself.

1. I want to have two news sections on my Index page. First one where will be news about the web (I use news loop from ZenPage news.php) and other one with news where will be the new pictures from. Is it possible to separate news by using different category? Or is there another way how to do this? I really don't want to use something like hard coding into gallery.php...

2. Thickbox is not working. I call the Thickbox.js from head (also tried to copy paste from webpage where it is working to make sure I've linked the right file. I also call thickbox.css from head. I added "class="thickbox"" to the images and added also "rel="pict"" to the picture loop (I skipped the images.php and added the picture loop to album.php from where I want to display big pictures with thickbox). I also tried to link "autor.php" which i created with thickbox and it just doesn't work and open new page. I'm using some other javascript (scrollable), but that shouldn't make problem.

Thank you very much for any hints. I'm a newbie to php so please be patient.

MarB

Comments

  • acrylian Administrator, Developer
    1. Not on the same page. Alternatives:
    a) Using CombiNews mode with the news loop that shows image mixed between normal posts as if they were posts.
    b) Using news loop and the image_album_statistics latestimages functions
    c) Using the lastestimages and the latestnews function.

    2. You have to change the links to display either the sized image or the full size image directly. The normal image loop points to the image.php page which the thickbox is not able to display direclty (if not using the iFrame etc mode).
  • I suggest you mean this:
    `



    `

    But this still doesn't work. When I click at the thumb, it opens me new blank page just with the image.
  • Part of the code just dissapeard. This is the missing piece:
    `



    `
  • Well...

    inside the "href=" is this: echo htmlspecialchars(getFullImageURL());?>"

    hope it'll be fine this time.
  • acrylian Administrator, Developer
    That should work. Calling the sized image directly with the Thickbox does not realy work reliable (whyever that is)
  • Thats the thing. It doesn't. I hoped it'll display the code on the third attempt... I'm calling thickbox.js from (http://jquery.com/demo/thickbox/thickbox-code/thickbox.js) for sure. But it seems that it ignores thickbox at all. Other jquery scripts are working fine for me. I'm running it on MAMP local server.
  • acrylian Administrator, Developer
    Thickbox is included in the Zenphoto package. No need to call from a site. See the zenpage-default themes image.php which uses it for the full image (if the option is set)
  • I switched to zenpage-default theme and tried to display fullimage. Didn't work. I think i messed it up. I'll reinstall zenphoto, this should definitely work.

    Thanks for help
Sign In or Register to comment.