Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need an easy install photo gallery


a1mihai

Recommended Posts

Hi there...I've spent my entire day looking for a simple yet nice photo galley to install on my oscommerce local site...but couldn't find one...any sugestions for an easy install photo gallery?

 

Also do you know how to install a text editor into the admin area? to describe the product...

 

Thanks in advance

 

Michael

Link to comment
Share on other sites

Need an easy install photo gallery

you will not find it, as it's require to add additional code and modify the mysql table.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

There's Simple Image Gallery for one. There are a couple of older Addons as well, but those might need more modification to work with osC 2.3.1. Just search the Addons section for "gallery".

 

I recommend CK Editor for the text editor. there's an Addon for that as well.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 4 months later...

Hi,

 

Can anyone help please?

 

I have osC2.3.1 installed running with PHP5.3.10 and Apache 2.2.21 via WAMP.

 

With Simple photo gallery, somehow I made the gallery_user working but

I have error message when I tried to upload the photo with .jpg format, the error message are as below:

 

 

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(C:\Program Files 2\wamp\tmp\phpDC19.tmp) is not within the allowed path(s): (C:/Program Files/wamp/www/xxx/catalog/) in C:\Program Files 2\wamp\www\MicksGripping\catalog\gallery_user.php on line 76

 

 

Warning: getimagesize(C:\Program Files\wamp\tmp\phpDC19.tmp) [function.getimagesize]: failed to open stream: Operation not permitted in C:\Program Files 2\wamp\www\xxx\catalog\gallery_user.php on line 76

 

 

I had modified the table, maybe this made the errors? my gallery.php code are as below:

<?php

/*

Photo Gallery for osCommerce version 0.6

 

$Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce Released under the GNU General Public License

Site design by www.micrographx.be

*/

require('includes/application_top.php');

require('includes/template_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_GALLERY);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_GALLERY));

 

//require(DIR_WS_LANGUAGES . $language . '/gallery.php');

//$breadcrumb->add(NAVBAR_TITLE, tep_href_link('gallery.php'));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<script type="text/javascript" src="<?php echo HTTP_SERVER ?>/highslide/highslide.js"></script>

<script type="text/javascript">

<?php if (isset($_GET['autoload'])) {?>

hs.addEventListener(window, "load", function() {

// click the element virtually:

document.getElementById("autoload<?php echo $_GET['autoload'];?>").onclick();

});

<?php } ?>

hs.registerOverlay({

overlayId: 'closebutton',

position: 'top right',

fade: 2 // fading the semi-transparent overlay looks bad in IE

});

hs.graphicsDir = '/highslide/graphics/';

//hs.padToMinWidth = true;

//hs.minWidth = 400;

</script>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="ext/jquery/ui/mg6/jquery-ui-1.8.19.css" />

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php //require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<td width="100%" valign="top">

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_INFORMATION; ?></td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

</table>

</td>

 

<?php

$gallery_query_raw ="select id, cID, pID, comment, title, description from ". TABLE_GALLERY ." order by pID desc";

$gallery_split = new splitPageResults($gallery_query_raw, MAX_GALLERY_PICS);

if (($gallery_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {

?>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText"><?php echo $gallery_split->display_count(TEXT_DISPLAY_NUMBER_OF_PHOTOS); ?></td>

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $gallery_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

</table>

</td>

<?php

}

?>

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main">

<table width="100%">

<?php

$aantal_kol = 3;

$rij = 1;

$kolom = 1;

//aantal foto's in elke map bepalen

$dir = "gallery/";

//$sql = mysql_query("SELECT * FROM gallery");

$sql = tep_db_query($gallery_split->sql_query);

while($fotos = tep_db_fetch_array($sql)){

$file = $fotos['cID']."_".$fotos['pID'].".jpg";

$auteur = mysql_fetch_array(mysql_query("SELECT customers_firstname,customers_lastname FROM customers WHERE customers_id=".$fotos['cID']));

if ($kolom == 1) {echo "\n".'<tr>';}

echo "\n".'<td align="center" class="main"><a id="autoload'.$fotos['cID'].$fotos['pID'].'" href="' . tep_href_link($dir.$file) . '" class="highslide" onclick="return hs.expand(this,{headingText: \''.htmlentities($fotos['title']).'\'})">'.tep_image($dir . $file, '', 150, 150, 'hspace="5" vspace="5"').'</a><br>'.stripslashes($fotos['title']);

echo '<div class="highslide-caption"><div style="text-align:center;margin-top:-2px;">'.AUTEUR.' '.$auteur['customers_firstname']." ".$auteur['customers_lastname']."</div><p>";

 

if ($fotos['description'] != '') {

echo '<div style="font-style:italic;border:1px solid #666666;background:#ffffcc">'.stripslashes($fotos['description']).'</div><p>';

}

 

//bestaande commentaar uitlezen

$comment = explode('<-->',$fotos['comment']);

if ($fotos['comment'] != '') {

foreach ($comment as $val) {

$commentaar = explode ('///',$val);

echo '<b>'.stripslashes($commentaar[0]) . "</b>: ".stripslashes($commentaar[1]).'<hr style="border:0;height:1px;color:#666666;background:#666666;">';

}

} else {

echo TEXT_NO_COMMENTS.'<hr style="border:0px;border-top:1px solid #666666;">';

}

 

//leave a comment

if (tep_session_is_registered('customer_id')) {

echo '<b>'.TEXT_PLACE_COMMENT.'</b><br>';

echo '<form name="form'.$fotos['cID'].$fotos['pID'].'" action="gallery_process.php" method="POST">';

echo '<input type="text" name="comment_naam" value="'.TEXT_NAME.'" onClick="this.value=\'\'">';

echo '<input type="hidden" name="cID" value="'.$fotos['cID'].'">';

echo '<input type="hidden" name="pID" value="'.$fotos['pID'].'">';

echo '<textarea name="comment_tekst" onClick="this.value=\'\'">'.TEXT_COMMENT.'</textarea>';

echo '<input type="submit" name="action" value="ok"></form>';

}else{

echo '<b>'.TEXT_PLACE_COMMENT_NOTLOGIN.'</b><br>';

}

 

echo '</div></td>';

if ($kolom == $aantal_kol) {

echo '</tr>';

$kolom = 0;

}

$rij ++;

$kolom ++;

}

if ($kolom <= $aantal_kol) {echo '</tr>';}

?>

<div id="closebutton" class="highslide-overlay closebutton" onClick="return hs.close(this)" title="Close"></div>

</table>

<p><?php echo TEXT_LINK; ?></p>

</td>

</tr>

</table>

</td>

<?php

if (($gallery_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {

?>

<td><br>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText"><?php echo $gallery_split->display_count(TEXT_DISPLAY_NUMBER_OF_PHOTOS); ?></td>

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $gallery_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

</table>

</td>

<?php

}

?>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

<tr>

<td>

<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main" valign="center" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'.TEXT_CONTINUE; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

</td>

</table>

</body>

</html>

<?php

require(DIR_WS_INCLUDES . 'template_bottom.php');

require(DIR_WS_INCLUDES . 'application_bottom.php');

?>

 

 

many thanks in advance.

 

Lyn

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...