Anyone knows how to add an image on the first page under the categories menu on the left?
sundayman
Marik
2006-04-20 13:27
I got the same question @ [url]http://opensolution.org/forum/index.php?p=readTopic&nr=2098[/url]
But they told me qc doesn't have a plugin for this
sundayman
2006-04-20 14:33
But there must be a way to put an image there without a plugin.
Which file should i edit? whats the name of the file that the left menu is in?
sundayman
12345
2006-04-20 15:14
if you want a sIMPLE image without <a href> and htmll code, JUST image, edit default.css file on template folder, then find :#menu{position:relative;float:left;width:160px;height:376px;padding:0;margin:0p x 0px 10px 0px; background-color:#34ccf1; }
<watch! some margin, color are different from standard css file, because its from my css> After background-color:#34ccd1; add line background:ur("images/mb.gif"; now line shuld be like this: {position:relative;float:left;width:160px;height:376px;padding:0;margin:0px 0px 10px 0px; background-color:#34ccf1; background:ur("images/mb.gif";} images/mb.gif thats a path for image file you can put there own path ex. img/menubackground.gif. Note. This image will bee seen under menu categories too (on left side) not just beyond menu. You can fix it making long image with transparency place under menu and content image below. Or define own menu colors on CSS. ITS a primitive method but for free. Note:This method is JUST SIMPLE image without a link or html code.
sundayman
2006-04-20 15:24
im trying to locate that line you said i would edit, but i cant find any menu position line...i got a bunch of menu.something...but not that one.. I got the dark blue style-template
sundayman
12345
2006-04-20 15:55
hm, this is for QuickCart 1.2 default.css look on folder templates/default.css Your Quick Cart is older and a bit different. Wait some time , i will check css for blue style.
12345
2006-04-20 16:09
Sorry, i have no idea. Maybe use latest QuickCart 1.2? More powerfully some plugin are for free (sendordertoclient, pluginmanager,taxanddiscount and more working with version 1.2 But plugin for banner, advert boxes and more are not for free.
sundayman
2006-04-20 18:05
ok...thanks for all the help!
the thing you wrote about background image is that correct?
background:ur("images/mb.gif";}
I can try a little and see if i get it right....
sundayman
12345
2006-04-20 19:59
not!!!: background:ur("images/mb.gif";}
correct is: background:url("images/mb.gif";} sorry, my mistake on ctr+c, ctr+v :)
sundayman
2006-04-21 00:05
Hey i solved it!
In the templates/default folder i edit the categories_menu.tpl
This is how it looked like before:
<!-- BEGIN LIST_FOOTER --> <tr> <td class='menu_left_line'></td> </tr> </table> <br /> <!-- END LIST_FOOTER -->
Some trubles on GQ 1.2 because bit different file structure. On nwe GC 1.2 there are no tables but Div.: here a small fix for version 1.2 , in the same file categories_menu.tpl in templates folder. <!-- BEGIN LIST_HEAD --> <div id="menu"> <dl>
<!-- END LIST_HEAD --> <!-- BEGIN LIST_LIST --> <dt><a href="?p=productsList&iCategory=$aList[iCategory]">$ ;aList[sName]</a></dt> <!-- END LIST_LIST --> <!-- BEGIN SUB --> <dd><a href="?p=productsList&iCategory=$aList[iCategory]">$ ;aList[sName]</a></dd> <!-- END SUB --> <!-- BEGIN LIST_FOOTER --> </dl>
<!--here you can insert code for advert !!!!!-->
<a href="?p=productsList&iCategory=2"><img src='http://your.file.here./*jpg ' alt='' style='vertical-align: middle; padding: 0px;' target="_blanc"/></a> <!-- this was a simple code + link but for nowworking only a static link for a href=http://. inside pages makes an error ;/ -->
</div> <!-- END LIST_FOOTER -->
sundayman
2006-04-21 21:01
good work...excellent to use this instead of paying for the module! cheers!
sundayman
Jo
2006-09-03 04:28
I have tried this in Quick.Cart.Loaded_v1.3 and get this error:
No block: NO_PHOTO in file: templates/categories_menu.tpl
Here is the code from categories_menu.tpl -
<!-- BEGIN LIST_HEAD --> <div id="menu"> <dl> <!-- END LIST_HEAD --> <!-- BEGIN LIST_LIST --> <dt><a href="?p=productsList&iCategory=$aList[iCategory]&sName=$aList[sNameUrl]"> ;$aList[sName]</a></dt> <!-- END LIST_LIST --> <!-- BEGIN SUB --> <dd><a href="?p=productsList&iCategory=$aList[iCategory]&sName=$aList[sNameUrl]"> ;$aList[sName]</a></dd> <!-- END SUB --> <!-- BEGIN LIST_FOOTER --> </dl> <br /> <br> <br><center><a href="?p=p_12&sName=help#ways_to_pay" target="_blank"><img src="$config[dir_files]/img/secure_payments.gif" width="80" height="80" border="0"></a></center> <br><center><a href="?p=p_12&sName=help#delivery" target="_blank"><img src="$config[dir_files]/img/delivery_info.gif" width="80" height="80"></a></center> <br> <br> </div> $sOnlineStatistics <br> <!-- END LIST_FOOTER --> <!-- BEGIN SELECTED --> <!-- END SELECTED --> <!-- BEGIN PHOTO --> <!-- END PHOTO --> <!-- BEGIN NOT_FOUND --> <div id="menu"> </div> <!-- END NOT_FOUND --> <!-- BEGIN NO_PHOTO --> <!-- END NO_PHOTO -->
I have also tried it with the '$sOnlineStatistics' before the </div> inside the <LIST_FOOTER> and the same thing happened.
Anyone know what to do? Thanks
Jo
2006-09-03 04:30
Also, I didn't mention - the error message keeps disappearing sometimes but after a few times refreshing the page it comes back.
sundayman
2006-10-11 10:00
i got it to work in the ver 1.4.
in <!-- BEGIN LIST_FOOTER --> <tr> <td class='menu_left_line'></td> </tr> </table> <br> <br> <center> <img src='$config[dir_tpl]$config[dir_template]img/gratis.gif' alt='' style='vertical-align: middle; padding: 0px;' /> </center> <br> <!-- END LIST_FOOTER -->