ok, no more problem....
in function showCategory($row, $subcats, $photos, $pageNav, $params) part,
claim $eg_original_path
add javascript to heading part, don't know which one, but i add them all
$mainframe->addCustomHeadTag('<leasygallery/slimbox/css/slimbox.css"
$mainframe->addCustomHeadTag('<scy/slimbox/js/mootools.js"></script>');
$mainframe->addCustomHeadTag('<scry/slimbox/js/slimbox.js"></script>');
$mainframe->addCustomHeadTag('<lallery/style.css" rext/css" />');
the about code is not correct(just part of them), please just copy from other part in the same file, no changes need to made
final, instead of link the photo to image <a href=<php echo $link locate this part, change to
<a href="javascript:void(0);" onclick="Lightbox.show('<?php echo $mainframe->getCfg('live_site') . $eg_original_path . '/' . $photo->path; ?>','<?php echo $photo->name; ?>');"> <****image source here, no nned to change******>
detail:
extract your zip file before install the component, modify "easygallery.html.php" and repack then install. or you can modify the file then upload the file to the server seperately...it should be located in somewhere like component->easygallery
here is how you make the change:
1) about line 33
looks like this:
global $option, $eg_original_path, $mainframe, $eg_thumbnail_path, $eg_thumbnail_width, $Itemid, $eg_thumbnail_rows, $eg_thumbnails_per_row, $my;
add "$eg_original_path":
global $option, $eg_original_path, $eg_original_path, $mainframe, $eg_thumbnail_path, $eg_thumbnail_width, $Itemid, $eg_thumbnail_rows, $eg_thumbnails_per_row, $my;
2) line 35~38, add below, if duplicated, remove the duplicated line.
$mainframe->addCustomHeadTag('<link href="'. $mainframe->getCfg('live_site') . '/components/com_easygallery/style.css" rel="stylesheet" type="text/css" />');
$mainframe->addCustomHeadTag('<link rel="stylesheet" href="components/com_easygallery/slimbox/css/slimbox.css" type="text/css" media="screen" />');
$mainframe->addCustomHeadTag('<script type="text/javascript" src="components/com_easygallery/slimbox/js/mootools.js"></script>');
$mainframe->addCustomHeadTag('<script type="text/javascript" src="components/com_easygallery/slimbox/js/slimbox.js"></script>');
3) around lin 108 which looks like : <a href="<?php echo $link ?>
change to
<a href="javascript:void(0);" onclick="Lightbox.show('<?php echo $mainframe->getCfg('live_site') . $eg_original_path . '/' . $photo->path; ?>','<?php echo $photo->name; ?>');">