Hello:: I have a new install of Hawaii 1.0 (i know I should upgrade) with Php 4.4.2 on a Linux server. I installed Album via the Module Manager. I have set the template to Thickbox under Content:Photo Albums:Properties and have uploaded several jpg images. Added the default photo album to the menu and also created a new content page and put in the {cms_module module='album'} call. The default works ok on both pages but when I switch to thickbox, nothing happens on the page. It is like the javascript is not working correctly. Tested in Firefox and IE6 on a PC and Firefox on a Mac. I also went to someone's cms page that had Album and their thickbox effect works for me.
Any thoughts as to what I might do?
Robert
Thickbox not working in Album
Thickbox not working in Album
RJ
Running 1.0.2 Maui | Php 4.3.2 | MySql 3.23
Running 1.0.2 Maui | Php 4.3.2 | MySql 3.23
Re: Thickbox not working in Album
Are you loading the Javascript? Thickbox should be set in Album admin on the gallery you want - in options I think. If this fails can you post you template code.
Russ
Russ
Re: Thickbox not working in Album
I found that I had to put the loading of the javascript files directly in the template to get thickbox to work consistently.
In the head section of your template
In the head section of your template
Code: Select all
<!--Thickbox stuff-->
<__script__ type="text/javascript" src="modules/Album/templates/db/js/jquery.js"></__script>
<__script__ type="text/javascript" src="modules/Album/templates/db/js/thickbox.js"></__script>
Greg
Re: Thickbox not working in Album
To be honest I load them in my main tempalte and use it for other no-album stuff as well. So this seems like a good idea.
Russ
Russ
Re: Thickbox not working in Album
This is what I have found:
1. In Content>>Photo Albums in the Templates tab and edit the Thickbox template:
2. I added the js lines of code to the page template and confirmed they were there in the published page source, BUT the effect still does not work in Firefox on a Mac. Others pages do work ie. http://jquery.com/demo/thickbox/
??
1. In Content>>Photo Albums in the Templates tab and edit the Thickbox template:
So the 2 js references are there and the paths are correct. I have the photo albums set to the Thickbox template. BUT, when I look at the page source of the published page, they are not.{* Include JS files. You can move this to the head of your page template if you want *}
{* Album List *}
{if !$album}
{foreach from=$albums item=album}
link}">
thumbnail}" alt="{$album->name}" title="{$album->name} - {$album->comment}" />
{$album->name}
({$album->picturecount} images)
{$album->comment}
{/foreach}
{else}
{* Photo List *}
{$album->name}
{$album->comment}
Click on a thumbnail to view a larger image. Click on the larger image, to close it. {if $returnlink}Return to the album index page{/if}
{if $pagecount>1}
<<
{if $link.page.previous}< {/if}
page {$pagenumber}/{$pagecount}
{if $link.page.next} >{/if}
>>
{/if}
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
picture}" class="thickbox" title="{$onepicture->name} - {$onepicture->comment}"> thumbnail}" alt="{$onepicture->name} - {$onepicture->comment}" title="{$onepicture->name} - {$onepicture->comment}" />
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
{if $picturecount==0}No image{/if}
{/if}
{if $picture->id>0}
{/if}
2. I added the js lines of code to the page template and confirmed they were there in the published page source, BUT the effect still does not work in Firefox on a Mac. Others pages do work ie. http://jquery.com/demo/thickbox/

RJ
Running 1.0.2 Maui | Php 4.3.2 | MySql 3.23
Running 1.0.2 Maui | Php 4.3.2 | MySql 3.23
Re: Thickbox not working in Album
It works here...
http://www.multiintech.com/CMSMSDemo/admin/login.php
login:
Name: adman
Password: adman
http://www.multiintech.com/CMSMSDemo/admin/login.php
login:
Name: adman
Password: adman
Last edited by Anonymous on Fri Dec 15, 2006 12:29 pm, edited 1 time in total.
Re: Thickbox not working in Album
Which version of Thickbox are you using?
Russ
Russ