![]() |
|
printMostRatedAlbums in sidebar zpFocus - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: printMostRatedAlbums in sidebar zpFocus (/thread-10407.html) |
printMostRatedAlbums in sidebar zpFocus - reneesanguinetti - 2012-09-14 Hello, 'if (($zpfocus_showrandom) != 'none') {
I set the option for rotator. I am using zenPhoto version 1.4.3.1 [10646] (Official build). I rated an album with 5 stars to test. But after I change the sidebar.php, all I get is the menu at the top of a page everything else is blank. What confuses me is that the code I used above worked just fine with the previous version of zenPhoto and zpFocus. I have always cleared the browser cache and history, even used different browsers still the same result. I even tried printLatestAlbums (the same result). All I really want is to print the first image from selected albums in the sidebar and that image to link to the associated album. printMostRatedAlbums seemed to be the best solution, but I don't know what else to change to have it work with this version of zpFocus. This function is very important to the design of my sight. If there is another function that you know would obtain my goal or if you can show me what code to alter, it would be very much appreciated! printMostRatedAlbums in sidebar zpFocus - sbillard - 2012-09-14 I would suggest you find your PHP error file and see what error you are generating. printMostRatedAlbums in sidebar zpFocus - acrylian - 2012-09-14 Just to ask the obvious: Did you enable the image_album_statistics plugin? printMostRatedAlbums in sidebar zpFocus - reneesanguinetti - 2012-09-14 Hello, I also tried duplicating sidebar.php and renaming. Same results. Yes the image_album_statistics plugin is enabled. I have always used this. printMostRatedAlbums in sidebar zpFocus - acrylian - 2012-09-14 That error indicates that in the theme page some brackets are not closed or nested correctly. If it worked with the original page your change is the culprit..:-) A quick look at your code example seems to tell that the first if seems not to be closed. printMostRatedAlbums in sidebar zpFocus - reneesanguinetti - 2012-09-17 Amazing thing: The PHP error log! I should have reviewed that first. Could have saved so much time! Thank-you for your assistance. Renee |