Slideshow module for opencart 1.2.9
Easy to install. Include full installation instructions. Compatible with OpenCart 1.2.9, but may work with 1.3.0 (although this hasn't been tested yet).
Easy to install. Include full installation instructions. Compatible with OpenCart 1.2.9, but may work with 1.3.0 (although this hasn't been tested yet).
Attachments
capture_11082009_093943.jpg (118.81 KiB) Viewed 11438 times
capture_11082009_093934.jpg (119.06 KiB) Viewed 11438 times
freelancer web designer
I have a couple of questions....
how many images can be in a slide show?
Whats the resolution of the images?
Can you only have one url link per slide show? or is it one url link per image?
I assume you can have multiple slide shows set up with one active and the rest inactive?
how many images can be in a slide show?
Whats the resolution of the images?
Can you only have one url link per slide show? or is it one url link per image?
I assume you can have multiple slide shows set up with one active and the rest inactive?
first:
how many images can be in a slide show?
answer:
many images, no limit
two:
Whats the resolution of the images?
answer:
500x196
three:
Can you only have one url link per slide show? or is it one url link per image?
answer:
for each slide there is a link, this means one link for image
four:
I assume you can have multiple slide shows set up with one active and the rest inactive?
answer:
you can add images, and can set their status, whether or not appear in slideshow
how many images can be in a slide show?
answer:
many images, no limit
two:
Whats the resolution of the images?
answer:
500x196
three:
Can you only have one url link per slide show? or is it one url link per image?
answer:
for each slide there is a link, this means one link for image
four:
I assume you can have multiple slide shows set up with one active and the rest inactive?
answer:
you can add images, and can set their status, whether or not appear in slideshow
freelancer web designer
OK, got it installed.
However, I have it set to 'Homepage' and I don't see anything. If I set it to text_left or right, I see part fo the banner, but it disappears behind the 'welcome' area of the homepage.
So, I'm guessing it's not pushing the centre area down but rather coming behind it or it's not there at all?
However, I have it set to 'Homepage' and I don't see anything. If I set it to text_left or right, I see part fo the banner, but it disappears behind the 'welcome' area of the homepage.
So, I'm guessing it's not pushing the centre area down but rather coming behind it or it's not there at all?
ad this cod on catalog\controller\common\home.php
after this line of cod
$this->data['welcome'] = html_entity_decode($this->config->get('config_welcome_' . $this->language->getId()));
// Homepage Modules
$module_data = array();
$this->load->model('checkout/extension');
$results = $this->model_checkout_extension->getExtensions('module');
foreach ($results as $result) {
if ($this->config->get($result['key'] . '_status')) {
$module_data[] = array(
'code' => $result['key'],
'position' => $this->config->get($result['key'] . '_position'),
'sort_order' => $this->config->get($result['key'] . '_sort_order')
);
}
$this->children[] = 'module/' . $result['key'];
}
$sort_order = array();
foreach ($module_data as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
array_multisort($sort_order, SORT_ASC, $module_data);
$this->data['modules'] = $module_data;
// End Homepage Modules
and on catalog\view\theme\default\template\common\home.tpl
after this line of cod
<div><?php echo $welcome; ?></div>
<!-- Modules inserted -->
<?php if (@$modules) { ?>
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'homepage') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
<?php } ?>
<!-- End Modules -->
try now if work
after this line of cod
$this->data['welcome'] = html_entity_decode($this->config->get('config_welcome_' . $this->language->getId()));
// Homepage Modules
$module_data = array();
$this->load->model('checkout/extension');
$results = $this->model_checkout_extension->getExtensions('module');
foreach ($results as $result) {
if ($this->config->get($result['key'] . '_status')) {
$module_data[] = array(
'code' => $result['key'],
'position' => $this->config->get($result['key'] . '_position'),
'sort_order' => $this->config->get($result['key'] . '_sort_order')
);
}
$this->children[] = 'module/' . $result['key'];
}
$sort_order = array();
foreach ($module_data as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
array_multisort($sort_order, SORT_ASC, $module_data);
$this->data['modules'] = $module_data;
// End Homepage Modules
and on catalog\view\theme\default\template\common\home.tpl
after this line of cod
<div><?php echo $welcome; ?></div>
<!-- Modules inserted -->
<?php if (@$modules) { ?>
<?php foreach ($modules as $module) { ?>
<?php if ($module['position'] == 'homepage') { ?>
<?php echo ${$module['code']}; ?>
<?php } ?>
<?php } ?>
<?php } ?>
<!-- End Modules -->
try now if work
freelancer web designer
is it possible to use this slideshow without a running the sql database? also can this be used with 1.34?
i tried to implement noobslide (specifically #2) but i cant seem to have any luck getting it to work with home.tpl. it works fine if you just upload it as a normal index.html webpage...but its quite difficult when trying to get it to work with opencart.
http://www.efectorelativo.net/laboratory/noobSlide/ the download is noobSlide (rev.19-06-08) para mootools 1.2 on the website.
http://www.efectorelativo.net/laboratory/noobSlide/ the download is noobSlide (rev.19-06-08) para mootools 1.2 on the website.
hi all, i am trying to get this to work with 1.3.2, but getting an error,
can anyone help?
Fatal error: Class 'HelperImage' not found in /home/catalog/controller/module/slideshow.php on line 23
can anyone help?
Fatal error: Class 'HelperImage' not found in /home/catalog/controller/module/slideshow.php on line 23
well, i just installed it on OC 1.3.2. i'd appreciate for any help...
removed "Class 'HelperImage' " code
I had to remove the code prevously causing the problem, as noted above, it now installs correctly, but all i get for the images is a white box with the cross though it instead of the image.
removed "Class 'HelperImage' " code
I had to remove the code prevously causing the problem, as noted above, it now installs correctly, but all i get for the images is a white box with the cross though it instead of the image.
okay startinh to slowly learn a thing or too... so started with this jobbie,
to make it work with 1.3.2 change the following:
<?php
class ControllerModuleSlideshow extends Controller {
protected function index() {
$this->load->model('catalog/slideshow');
$this->load->helper('image');
$this->data['slideshows'] = array();
foreach ($this->model_catalog_slideshow->getSlideshows() as $result) {
if ($result['image']) {
$image = $result['image'];
} else {
$image = 'no_image.jpg';
}
$this->data['slideshows'][] = array(
'title' => $result['title'],
'description' => html_entity_decode($result['description']),
'sort_order' => $result['sort_order'],
'href' => ('http://' . $result['href']),
'image' => image_resize($image, 500, 196),
);
}
$this->id = 'slideshow';
$this->template = $this->config->get('config_template') . 'module/slideshow.tpl';
$this->render();
}
}
?>
the original line reads:
'image' => HelperImage::resize($image, 500, 196),
so simply replace this single line of code with the bolded version above and you are all go.
located at
/catalog/controller/module/
hope this helps someone.
to make it work with 1.3.2 change the following:
<?php
class ControllerModuleSlideshow extends Controller {
protected function index() {
$this->load->model('catalog/slideshow');
$this->load->helper('image');
$this->data['slideshows'] = array();
foreach ($this->model_catalog_slideshow->getSlideshows() as $result) {
if ($result['image']) {
$image = $result['image'];
} else {
$image = 'no_image.jpg';
}
$this->data['slideshows'][] = array(
'title' => $result['title'],
'description' => html_entity_decode($result['description']),
'sort_order' => $result['sort_order'],
'href' => ('http://' . $result['href']),
'image' => image_resize($image, 500, 196),
);
}
$this->id = 'slideshow';
$this->template = $this->config->get('config_template') . 'module/slideshow.tpl';
$this->render();
}
}
?>
the original line reads:
'image' => HelperImage::resize($image, 500, 196),
so simply replace this single line of code with the bolded version above and you are all go.
located at
/catalog/controller/module/
hope this helps someone.
you also need to change the following:
if (isset($this->request->post['image'])) {
$this->data['preview'] = image_resize($this->request->post['image'], 100, 100);
} elseif (@$slideshow_info['image']) {
$this->data['preview'] = image_resize($slideshow_info['image'], 100, 100);
} else {
$this->data['preview'] = image_resize('no_image.jpg', 100, 100);
\admin\controller\catalog
once again the same code change is required, otherwise you obtain the same HelperImage error.
once this is complete, the admin side works perfectly... and so does the mod itself.
if (isset($this->request->post['image'])) {
$this->data['preview'] = image_resize($this->request->post['image'], 100, 100);
} elseif (@$slideshow_info['image']) {
$this->data['preview'] = image_resize($slideshow_info['image'], 100, 100);
} else {
$this->data['preview'] = image_resize('no_image.jpg', 100, 100);
\admin\controller\catalog
once again the same code change is required, otherwise you obtain the same HelperImage error.
once this is complete, the admin side works perfectly... and so does the mod itself.
okay need some help with this one, have everything working, but the upload of the image...
it doesn't seem to submit the image name to the database, however does submit everything else.
if i manually upload the image to the images folder and then manually add the image name into the database field then it works...
its as tho the submit or the upload of the image is not working correctly, so manybe a code change from 1.2.9 to 1.3.2
can anyone shine the light?
it doesn't seem to submit the image name to the database, however does submit everything else.
if i manually upload the image to the images folder and then manually add the image name into the database field then it works...
its as tho the submit or the upload of the image is not working correctly, so manybe a code change from 1.2.9 to 1.3.2
can anyone shine the light?
i downloaded the file, but can't open it, can somebody help me??
need this module so much...
need this module so much...
"I know that you cannot live on hope alone, but without it, life is not worth living." — Harvey Milk
Tikus Farm - Tikus Putih
Who is online
Users browsing this forum: No registered users and 49 guests