Pages (2): 1 2   
Member
Member
Al   2010-06-19, 17:31
#1
Hi, how can I do after the album itself opens and click on the photo itself to open it with my colorbox, not a single photo

10x
Administrator
Administrator
acrylian   2010-06-19, 17:37
#2
Use the iFrame method. Please see the Colorbox website for detailed info how to configure. (This would not really be SEO friendly.)
Member
Member
Al   2010-06-19, 20:11
#3
thanks, but I can not handle, do not know exactly what to do and what script to edit
Administrator
Administrator
acrylian   2010-06-20, 08:00
#4
I suggest to read the theming tutorial and look at the standard themes (zenpage theme for example uses Colorbox) to get familiar with Zenphoto themes.
Member
Member
Al   2010-06-20, 13:02
#5
yeah, I saw that this issue using colorbox, but not the way I had in mind when I want open and I go www.mygallery.com/al/ al gallery with pictures themselves that I upload, and when click on this photo to me with open colorbox, now when the photo was http://mygallery.com/al/dsc03254.jpg.php and click on it it opens with my colorbox-a

10x
Administrator
Administrator
acrylian   2010-06-20, 13:13
#6
You need to change your theme if you want to do it different. There are loads of threads about doing this with other "box" scripts
Member
Member
Al   2010-06-20, 14:12
#7
K, what themes would you suggest me to do it as I want.

Thanks a lot
Administrator
Administrator
acrylian   2010-06-20, 14:15
#8
It is possible with virtually every theme.
Member
Member
Al   2010-06-20, 15:09
#9
I will explain exactly how you do it?
Member
Member
dark_vidor   2010-06-20, 15:19
#10
i would like too create a slideshow with colobox plugin.

i have based my new design on zenpage theme : http://www.gtrs.fr/galerie/

so how can i integrate colobox slideshow for album and not only for a picture ?
Administrator
Administrator
acrylian   2010-06-20, 16:00
#11
I assume you have read the theming tutorial. So in short you have to change your theme's album.php to open the image in a colorbox instead of a new page. This has been covered several times on the forum (seach for "thickbox" or "lightbox").

Note that if you use pagination the colorbox will only work for the page you are on.
Member
Member
Al   2010-06-20, 16:46
#12
<head>
<?php zenJavascript(); ?>
<title><?php echo getBareAlbumTitle(); ?> | <?php echo getBareGalleryTitle(); ?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo getOption('charset'); ?>" />
<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" type="text/css" />
<?php require_once(SERVERPATH.'/'.ZENFOLDER.'/js/colorbox/colorbox_ie.css.php')?>
<script src="<?php echo FULLWEBPATH . "/" . ZENFOLDER ?>/js/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script type="text/javascript">
// <!-- <![CDATA[
$(document).ready(function(){
$(".colorbox").colorbox({inline:true, href:"#imagemetadata"});
$("a.thickbox").colorbox({maxWidth:"98%", maxHeight:"98%"});
});
// ]]> -->
</script>

<?php zenJavascript(); ?>
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>
<?php printZDRoundedCornerJS(); ?>
</head>
<body>

<div id="main">

<div id="header">
<h1><?php echo getGalleryTitle();?></h1>
<?php if (getOption('Allow_search')) {
$album_list = array($_zp_current_album->name);
printSearchForm(NULL, 'search', NULL, 'Search album', NULL, NULL, $album_list);
} ?>
</div>

<div id="content">

<div id="breadcrumb">
<h2><a>" title="<?php echo gettext('Index'); ?>"><?php echo gettext("Index"); ?></a> » <?php echo gettext("Gallery"); ?><?php printParentBreadcrumb(" » "," » "," » "); ?>[b]<?php printAlbumTitle(true);?>[/b]</h2>
</div>

<div id="content-left">
<div><p><?php printAlbumDesc(true); ?></p></div>
<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<div class="thumb">
<a>" title="<?php echo gettext('View album:'); ?> <?php getBareAlbumTitle();?>"><?php printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95); ?></a>
</div>
<div class="albumdesc">
<h3><a href="<?php echo
htmlspecialchars(getAlbumLinkURL());?>" title="<?php echo gettext('View album:'); ?> <?php echo getBareAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
<?php printAlbumDate(""); ?>
<p><?php echo truncate_string(getAlbumDesc(), 45); ?></p>
</div>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>

<div id="images">
<?php while (next_image(false, $firstPageImages)): ?>
<div class="image">
<div class="imagethumb"><a>" title="<?php echo getBareImageTitle();?>"><?php printImageThumb(getBareImageTitle()); ?></a></div>
</div>
<?php endwhile; ?>
<?php if(getOption("Use_thickbox")) {
$boxclass = " class=\"thickbox\"";
$tburl = getUnprotectedImageURL();
} else {
$thickboxclass = "";
$tburl = getFullImageURL();
}
if (!empty($tburl)) {
?>
<a>"<?php echo $boxclass; ?> title="<?php echo getBareImageTitle();?>">
<?php
}
printCustomSizedImageMaxSpace(getBareImageTitle(),580,580); ?>
<?php
if (!empty($tburl)) {
?>
</a>
<?php
}

</div>
well use this code album.php, but still will not work, where's my mistake I can not understand
Administrator
Administrator
acrylian   2010-06-20, 16:59
#13
Of course it does not. You can't copy just copy stuff and hope that it will work... You surely did not read the theming tutorial yet.
Member
Member
Al   2010-06-20, 17:12
#14
Now I understand that it will not help me change the code in album.php, I recommend you to use chililight2 but it gives many errors. Please if you can help me ...
Administrator
Administrator
acrylian   2010-06-20, 17:55
#15
You need to change the code on album.php. So last attempt: You have to change the image link within tne next_image() loop to point to the full image and attach the colorbox to that.
Member
Member
Al   2010-06-20, 18:13
#16
<?php while (next_image(false, $firstPageImages)): ?>
sorry but I do not know much about php

what code to use realy ?

i use zenpage themes
Administrator
Administrator
acrylian   2010-06-20, 18:21
#17
[i]sorry but I do not know much about php[/i]
Sorry, you then really need to learn some basics first. We won't teach those. Within that loop there is a image link (you know what a link is, right?), change that link to use `getFullImageURL()`.
Member
Member
dark_vidor   2010-06-20, 18:50
#18
Thank's for this explication Smile
Member
Member
Al   2010-06-21, 10:39
#19
trying all night and you are unable to do
Administrator
Administrator
acrylian   2010-06-21, 10:42
#20
Well, then this is probably above your knowledge, sorry.
Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.