Member
Member
MarB   2009-10-13, 08:53
#1

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

Administrator
Administrator
acrylian   2009-10-13, 09:23
#2
  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).

Member
Member
MarB   2009-10-13, 09:48
#3

I suggest you mean this:
`

    " class="thickbox" rel="image" title="">

`

But this still doesn't work. When I click at the thumb, it opens me new blank page just with the image.

Member
Member
MarB   2009-10-13, 09:51
#4

Part of the code just dissapeard. This is the missing piece:
`

`

Member
Member
MarB   2009-10-13, 09:53
#5

Well...

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

hope it'll be fine this time.

Administrator
Administrator
acrylian   2009-10-13, 10:04
#6

That should work. Calling the sized image directly with the Thickbox does not realy work reliable (whyever that is)

Member
Member
MarB   2009-10-13, 10:11
#7

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.

Administrator
Administrator
acrylian   2009-10-13, 10:35
#8

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)

Member
Member
MarB   2009-10-13, 10:45
#9

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.