![]() |
Nice Right-Click Menu some of you might like.
I've been thinking for some time how best to approach the subject of image theft by somehow stopping people from taking (stealing) images and text from web sites without any regard to copyright laws. And I know some of you dislike copyright messages that pop us when you right-click on an image, and I know there is no easy solution, and I also know that there is no sure fire way of stopping it either, however, I think I may have a solution that some of you may like to use. Basically it's a menu that, when you right click anywhere on the page, pops up in place of the default context menu.
If people want to get at your images they will. You can't stop them, but this menu helps. And the menu itself is just great too. Imagine all the things you can do with it. I actually found it on the Dynamic Drive web site (great site btw). Visit this link: http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm and right click anywhere on the page to see what it can do. The good thing about this menu system is that it's relatively small, highly customizable, and easy to setup. You can have any link you like and as many as you want. And the best part about it is it's totally free to use (just so long as you leave all that copyright stuff intact). Unfortunately I donБ─≥t know how well it works with browsers other than IE and I don't know if the code will work with older versions of X-Cart (can't see why it shouldn't) so if you have any problems getting it to work under Firefox, as an example, it probably means that those browsers don't support it so you'll probably end up with the default context menu instead. :( If you do have an older version of X-Cart and it doesn't work, you may want to ask some of the more experience X-Cart people for assistance as I am not all that experienced to help. Ok, this is how I got it to work in X-Cart 4.0.13 and IE. Copy the following CSS code to you skin1.css file (anywhere you like. I place it right at the bottom) Code:
.skin0{ Save the file. Now create a new file called xcart/skin1/body_menu.tpl and insert the following code: Code:
{* $Id: body_menu.tpl, 2005/05/13 12:12:00 Exp $ *} At this point I need to explain that some of the links above may not exist in your store so you will need to edit them to suite your needs. You may need to remove '/store' and replace it with '/xcart', '/shop' or remove it altogether if X-Cart is in the root directory. The various Help links I used may also not exist so this is where you're on you own. A very simple way of finding out existing links is to place your mouse over one of the links on your page and see the URL displayed on the bottom left corner of your screen. Save the file. Now create a new file called xcart/skin1/body_menu.js and insert the following code: Code:
Save the file. Finally, you now need to add the following line (somewhere near the top) to the xtcart/skin1/customer/home.tpl Code:
{ include file="body_menu.tpl" } Ok, that's it! You're done. Hope you like it. |
That's a very good concept. Thanks for sharing...
|
weird, I am using 4.0.9. I have managed to get the menu to come up after much fiddling, but none of the menu highlights like a link hence I cannot click on any of them :S
Any help appreciated. |
anyone get this to work? if so got a link for viewing?
thanks |
QVS, yes i got it to work on 4.0.18, the above code had some errors :(
You can see the finished product at http://www.shisha.co.uk/shopcart/home.php and just right click on the page I made it a little more simple, only 2 bits of code needed. Make sure you update your /shopcart/skin1/skin1.css as per instruction above. Then make a /shopcart/skin1/body_menu.tpl file Code:
<div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none> After that just place the { include file="body_menu.tpl" } in your /shopcart/skin1/customer/home.tpl file This is where i placed my code: Code:
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottomargin="0" marginwidth="0" marginheight="0" {if $js_enabled}onLoad="{if $body_onload ne ''}{$body_onload};{/if}MM_preloadImages({section loop=8 name='cat_images'}'{$ImagesDir}/custom/cat_item{$smarty.section.cat_images.iteration}','{$ImagesDir}/custom/cat_itemon{$smarty.section.cat_images.iteration}'{if not $smarty.section.cat_images.last},{/if}{/section});"{/if}> |
Real neat.
|
Hey ShishaPipeUK
I noticed that your styling is a little different than what is posted here on that right-click box - would you mind sharing the css or whatever you did to make it a little different? Thanks! |
I dont remember changing anything, but here is my complete skin1.css
Code:
BODY,P,DIV,TH,TD,P,INPUT,SELECT,TEXTAREA { |
Hmm
Ok - another question - related to your trust logo thingy...
I have the trust logo as well, but when I try to put it where I think it should go, I get two different results. When I use Firefox, everything works just fine. If I use IE, anywhere I click on the screen pops up the trust logo box. I have my var cot_loc0=(window.location.protocol == "ht.... script before the </head tag But the ...ript language="JavaScript">COT("ht... stuff I think is the problem - do you also have it your home.tpl file as well? |
|
All times are GMT -8. The time now is 07:36 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.