Member
Member
geekless   2009-03-25, 19:13
#1
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">
<a>" class="thickbox" target="_top" title="<?php echo getBareImageTitle();?>">
[b]
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
[/b]
</a>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
Administrator
Administrator
acrylian   2009-03-25, 19:33
#2
Take a look at the zenpage-default theme for an example
Member
Member
sunix   2009-03-25, 19:46
#3
I use " class="thickbox" in the hyperlink to full image in image.php but the image always don't display in the center of window and the pop-out layer cannot be drag.

How to do to fix it?any help is appericated
Administrator
Administrator
acrylian   2009-03-25, 19:54
#4
1. No idea about the centering. Check that you installed thickbox the right way.
2. Thickbox popups are not draggable.
Member
Member
geekless   2009-03-25, 20:42
#5
This is what I see. Doesn't seem to relate though...

<div id="image">


<img src="/cache/album1/Cosmos01.jpg_w580_h435.jpg" alt="Sternennebel Nummer 1" title="Sternennebel Nummer 1" />
</div>
Member
Member
geekless   2009-03-25, 21:04
#6
How about this?

<div id="image">
<a>" class=\"thickbox\" title="<?php echo getBareImageTitle();?>">
[b]
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
[/b]
</a>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>
Administrator
Administrator
acrylian   2009-03-26, 10:33
#7
A thickbox link is setup as described on the THickbox website like this:
`">[img]<imagelink>[/img]`
Of course you need to include the Thickbox javascript in the head of your site, too.
Member
Member
geekless   2009-03-26, 15:57
#8
Sure, I understand that much... But here is what we (using the default template) are working with:

<div id="image">
<a>" title="<?php echo getBareImageTitle();?>">
[b]
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
[/b]
</a>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>

Where in "<a>" class="thickbox" title="<title>"><img src="<imagelink>" /></a>"
does any of that appear?

I tried this:

<div id="image">
<a>" class="thickbox" target="_top" title="<?php echo getBareImageTitle();?>"><img src="<?php echo htmlspecialchars(getFullImageURL());?>" />
[b]
<?php
if (function_exists('printUserSizeImage')) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
?>
[/b]
</a>
<?php if (function_exists('printUserSizeImage')) printUserSizeSelectior(); ?>
</div>

And it prints out crazy characters in the thickbox window
Administrator
Administrator
acrylian   2009-03-26, 17:23
#9
Please escape your code examples properly they are unreadable (use backticks, those used for accents).

The thickbox works only with the fullimage and that cannot be protected.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.