Hi there,
i've placed the XML in the folder "YOUR_STORE/vqmod/xml/BannerLanguage.xml" as instructed and did put the "&install" after the URL when having navigated to the Banners.
Still, i don't see any change and only have one banner for all languages. Any hint what i might have done wrong?
Best wishes,
Nic
i've placed the XML in the folder "YOUR_STORE/vqmod/xml/BannerLanguage.xml" as instructed and did put the "&install" after the URL when having navigated to the Banners.
Still, i don't see any change and only have one banner for all languages. Any hint what i might have done wrong?
Best wishes,
Nic
log says:
In the file "admin/controller/design/banner.php" there is no
instead it seems that it is called
I've changed the search to 'preview', and i'm progressing. The vqmod now loads, but promts an error at the place for the image:
But it seems to work as it should otherwise. I was able to upload a banner for each language and it shows as it should. Yay, thanks for your work! If there is any help to fix this error it would be appreciated.
Code: Select all
---------- Date: 2013-03-19 13:31:48 ~ IP : 79.110.95.2 ----------
REQUEST URI : /admin/index.php?route=design/banner&token=4564564564563464z44h4eg46f4564f56456456
MOD DETAILS:
modFile : /home/<user>/<opencart>/vqmod/xml/BannerLanguage.xml
id : Banner Image Language Support
version : v1.3
vqmver : 2.1.7
author : The Wizard of Osch, for www.CrystalCopy.nl
SEARCH NOT FOUND (ABORTING MOD): 'thumb' => $this->model_tool_image->resize($image, 100, 100)
----------------------------------------------------------------------
In the file "admin/controller/design/banner.php" there is no
Code: Select all
'thumb'
Code: Select all
'preview'
Code: Select all
Notice: Undefined variable: text_browse in /home/<user>/opencart/vqmod/vqcache/vq2-admin_view_template_design_banner_form.tpl on line 64 | Notice: Undefined variable: text_clear in /home/dada/Opencart-Shop/vqmod/vqcache/vq2-admin_view_template_design_banner_form.tpl on line 64
Yes, that is the problem...Felias wrote:I'm running OC 1.5.1, maybe thats the issue?
Could you please try this:
REPLACE: (in the BannerLanguage.xml)
Code: Select all
<search position="after" offset="1"><![CDATA['thumb' => $this->model_tool_image->resize($image, 100, 100)]]></search>
Code: Select all
<search position="before" offset="1"><![CDATA[$this->data['no_image'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);]]></search>
- EDIT -
See next post...
Last edited by AvanOsch on Wed Mar 20, 2013 12:20 am, edited 1 time in total.
I see what the problem is.
My above fix will do about the same as your own fix (which was also a correct way)
Could you please try the attached file, and see how that one does?
My above fix will do about the same as your own fix (which was also a correct way)
Could you please try the attached file, and see how that one does?
Attachments
Banner Language for OpenCart up to version 1.5.1.1
Just did so, and it looks better now, thanks! The error message is gone.
The thumbnail does not show when first opening the banner subpage, but after clicking on "browse files" and cancel that, it shows correctly.
This does not bother me though, so thanks for the quick fix! I've made a small donation, keep up the good work.
The thumbnail does not show when first opening the banner subpage, but after clicking on "browse files" and cancel that, it shows correctly.
This does not bother me though, so thanks for the quick fix! I've made a small donation, keep up the good work.
Hi,
First of all great extension, good work!
While finishing my site in a temporary folder I have installed your extension, and everything worked fine, when I had finish my site I moved in to the final folder, after this the extension stop working at admin, in front page works well, but when I go to admin to manage my banner don't work and display that:
Notice: Undefined index: link in /admin/model/design/banner.php on line 105
Notice: Undefined index: image in /admin/model/design/banner.php on line 106
Any help?? thanks
First of all great extension, good work!
While finishing my site in a temporary folder I have installed your extension, and everything worked fine, when I had finish my site I moved in to the final folder, after this the extension stop working at admin, in front page works well, but when I go to admin to manage my banner don't work and display that:
Notice: Undefined index: link in /admin/model/design/banner.php on line 105
Notice: Undefined index: image in /admin/model/design/banner.php on line 106
Any help?? thanks
I have trouble with the mod, probably because of my custom theme.
The installation was all ok, but the banners doesn't show. I have the "Journal" theme from Themeforest.
Url: www.spotiled.fi
Can you help me in any way? Email?
The installation was all ok, but the banners doesn't show. I have the "Journal" theme from Themeforest.
Url: www.spotiled.fi
Can you help me in any way? Email?
Hi, Im running 1.5.6.2 with an ancart theme
after the vqmod install you can create a banner, but when saving it an error comes up:
Fatal error: Uncaught exception 'ErrorException' with message 'Error: Unknown column 'sort_order' in 'field list'<br />Error No: 1054<br />INSERT INTO oc_banner_image SET banner_id = '13', sort_order = '0'' in /pqnew/system/database/mysqli.php:40 Stack trace: #0 /pqnew/vqmod/vqcache/vq2-system_library_db.php(20): DBMySQLi->query('INSERT INTO oc_...') #1 /pqnew/vqmod/vqcache/vq2-admin_model_design_banner.php(10): DB->query('INSERT INTO oc_...') #2 /pqnew/vqmod/vqcache/vq2-admin_controller_design_banner.php(23): ModelDesignBanner->addBanner(Array) #3 [internal function]: ControllerDesignBanner->insert() #4 /pqnew/vqmod/vqcache/vq2-system_engine_front.php(42): call_user_func_array(Array, Array) #5 /pqnew/vqmod/vqcache/vq2-system_engine_front.php(29): Front->execute(Object(Action)) #6 /pqnew/admin/index.php(166): Front->dispatch(Object(Action), Object(Action)) #7 {main} thrown in /pqnew/system/database/mysqli.php on line 40
after the vqmod install you can create a banner, but when saving it an error comes up:
Fatal error: Uncaught exception 'ErrorException' with message 'Error: Unknown column 'sort_order' in 'field list'<br />Error No: 1054<br />INSERT INTO oc_banner_image SET banner_id = '13', sort_order = '0'' in /pqnew/system/database/mysqli.php:40 Stack trace: #0 /pqnew/vqmod/vqcache/vq2-system_library_db.php(20): DBMySQLi->query('INSERT INTO oc_...') #1 /pqnew/vqmod/vqcache/vq2-admin_model_design_banner.php(10): DB->query('INSERT INTO oc_...') #2 /pqnew/vqmod/vqcache/vq2-admin_controller_design_banner.php(23): ModelDesignBanner->addBanner(Array) #3 [internal function]: ControllerDesignBanner->insert() #4 /pqnew/vqmod/vqcache/vq2-system_engine_front.php(42): call_user_func_array(Array, Array) #5 /pqnew/vqmod/vqcache/vq2-system_engine_front.php(29): Front->execute(Object(Action)) #6 /pqnew/admin/index.php(166): Front->dispatch(Object(Action), Object(Action)) #7 {main} thrown in /pqnew/system/database/mysqli.php on line 40
Hello AvanOsch,
I got a litte problem with your extension.
I use OC 1.5.6.4. without vqmod. I had hardcoded your extension without errors (errorlog).
But if I edit a banner there are no titels in textfields. When I type the titels in and save the titels are written in database, but if I edit again same banner, the titels are empty again???
So I think an error must be in banner_form.tpl?!
Here is my code where I think there must be an error:
Any ideas?
Thanks for help.
Best regards
Andreas
I got a litte problem with your extension.
I use OC 1.5.6.4. without vqmod. I had hardcoded your extension without errors (errorlog).
But if I edit a banner there are no titels in textfields. When I type the titels in and save the titels are written in database, but if I edit again same banner, the titels are empty again???
So I think an error must be in banner_form.tpl?!
Here is my code where I think there must be an error:
Code: Select all
<table id="images" class="list">
<thead>
<tr>
<!-- AB - banner multilanguage --> <td class="left" style="width:75px;"><?php echo $entry_sort_order; ?></td>
<td class="left"><?php echo $entry_title; ?></td>
<td class="left"><?php echo $entry_link; ?></td>
<td class="left"><?php echo $entry_image; ?></td>
<td></td>
</tr>
</thead>
<?php $image_row = 0; ?>
<?php foreach ($banner_images as $banner_image) { ?>
<tbody id="image-row<?php echo $image_row; ?>">
<tr>
<!-- AB - banner multilanguage --> <td><input type="text" name="banner_image[<?php echo $image_row; ?>][sort_order]" value="<?php echo $banner_image['sort_order']; ?>" size="1" /></td>
<td class="left"><?php foreach ($languages as $language) { ?>
<!-- BEGIN - AB - banner multilanguage -->
<input type="text" name="banner_image[<?php echo $image_row; ?>][language][<?php echo $language['language_id']; ?>][title]" value="<?php echo isset($banner_image['banner_image_description'][$language['language_id']]) ? $banner_image['banner_image_description'][$language['language_id']]['title'] : ''; ?>" />
<!-- <input type="text" name="banner_image[<?php echo $image_row; ?>][banner_image_description][<?php echo $language['language_id']; ?>][title]" value="<?php echo isset($banner_image['banner_image_description'][$language['language_id']]) ? $banner_image['banner_image_description'][$language['language_id']]['title'] : ''; ?>" /> -->
<!-- END - AB - banner multilanguage -->
<img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /><br />
<?php if (isset($error_banner_image[$image_row][$language['language_id']])) { ?>
<span class="error"><?php echo $error_banner_image[$image_row][$language['language_id']]; ?></span>
<?php } ?>
<?php } ?></td>
<!-- BEGIN - AB - banner multilanguage -->
<!-- <td class="left"><input type="text" name="banner_image[<?php echo $image_row; ?>][link]" value="<?php echo $banner_image['link']; ?>" /></td>
<td class="left"><div class="image"><img src="<?php echo $banner_image['thumb']; ?>" alt="" id="thumb<?php echo $image_row; ?>" />
<input type="hidden" name="banner_image[<?php echo $image_row; ?>][image]" value="<?php echo $banner_image['image']; ?>" id="image<?php echo $image_row; ?>" />
<br />
<a onclick="image_upload('image<?php echo $image_row; ?>', 'thumb<?php echo $image_row; ?>');"><?php echo $text_browse; ?></a> | <a onclick="$('#thumb<?php echo $image_row; ?>').attr('src', '<?php echo $no_image; ?>'); $('#image<?php echo $image_row; ?>').attr('value', '');"><?php echo $text_clear; ?></a></div></td> -->
<?php // BOF - Zappo - Banner Language - Added Language for Banner Images ?>
<td class="left"><?php foreach ($languages as $language) { ?><input type="text" name="banner_image[<?php echo $image_row; ?>][language][<?php echo $language['language_id']; ?>][link]" value="<?php echo $banner_image['language'][$language['language_id']]['link']; ?>" size="50" /> <img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /><br /><?php } ?></td>
<td class="left"><?php foreach ($languages as $language) { ?><div class="image"><img src="<?php echo $banner_image['language'][$language['language_id']]['thumb']; ?>" alt="" id="thumb<?php echo $image_row . '_' . $language['language_id']; ?>" />
<input type="hidden" name="banner_image[<?php echo $image_row; ?>][language][<?php echo $language['language_id']; ?>][image]" value="<?php echo $banner_image['language'][$language['language_id']]['image']; ?>" id="image<?php echo $image_row . '_' . $language['language_id']; ?>" />
<img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /><br />
<a onclick="image_upload('image<?php echo $image_row . '_' . $language['language_id']; ?>', 'thumb<?php echo $image_row . '_' . $language['language_id']; ?>');"><?php echo $text_browse; ?></a> | <a onclick="$('#thumb<?php echo $image_row . '_' . $language['language_id']; ?>').attr('src', '<?php echo $no_image; ?>'); $('#image<?php echo $image_row . '_' . $language['language_id']; ?>').attr('value', '');"><?php echo $text_clear; ?></a></div><?php } ?></td>
<?php // EOF - Zappo - Banner Language - Added Language for Banner Images ?>
<!-- END - AB - banner multilanguage -->
<td class="left"><a onclick="$('#image-row<?php echo $image_row; ?>').remove();" class="button"><?php echo $button_remove; ?></a></td>
</tr>
</tbody>
<?php $image_row++; ?>
<?php } ?>
<tfoot>
<tr>
<!-- BEGIN - AB - banner multilanguage -->
<td colspan="4"></td>
<!-- <td colspan="3"></td> -->
<!-- END - AB - banner multilanguage -->
<td class="left"><a onclick="addImage();" class="button"><?php echo $button_add_banner; ?></a></td>
</tr>
</tfoot>
</table>
Thanks for help.
Best regards
Andreas
Who is online
Users browsing this forum: No registered users and 8 guests