Hi,
I've read the thickbox site and found some suggestions on adding it to the image.php page... but it's still not working.
Here is what I'm trying:
<!-- The Image -->
<?php if (!checkForPassword()) { ?>
<div id="image">
" class="thickbox" target="_top" title="<?php echo getBareImageTitle();?>">
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
Comments
How to do to fix it?any help is appericated
2. Thickbox popups are not draggable.
<div id="image">
<img src="/cache/album1/Cosmos01.jpg_w580_h435.jpg" alt="Sternennebel Nummer 1" title="Sternennebel Nummer 1" />
</div>
<div id="image">
" class=\"thickbox\" title="<?php echo getBareImageTitle();?>">
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
`" class="thickbox" title="">" />`
Of course you need to include the Thickbox javascript in the head of your site, too.
<div id="image">
" title="<?php echo getBareImageTitle();?>">
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
Where in "" class="thickbox" title="<title>"><img src="<imagelink>" />"
does any of that appear?
I tried this:
<div id="image">
" class="thickbox" target="_top" title="<?php echo getBareImageTitle();?>"><img src="<?php echo htmlspecialchars(getFullImageURL());?>" />
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
And it prints out crazy characters in the thickbox window
The thickbox works only with the fullimage and that cannot be protected.