| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Nice Right-Click Menu some of you might like. | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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. ![]() 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:
Save the file. Now create a new file called xcart/skin1/body_menu.tpl and insert the following code: Code:
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:
Ok, that's it! You're done. Hope you like it.
__________________
X-Cart 5.3.5.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() That's a very good concept. Thanks for sharing...
__________________
x-cart 4.1.8 Gold Linux |
|||||||
#3
|
|||||||
|
|||||||
![]() 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.
__________________
Version: 4.1.3 One of the largest UK Suppliers of Car Modification Accessories http://www.impact-styling.com |
|||||||
#4
|
|||||||
|
|||||||
![]() anyone get this to work? if so got a link for viewing?
thanks
__________________
xcart version 4.1.6 UK - Brighton QVS ELECTRICAL SUPPLIES - http://www.qvsdirect.com We supply a huge range of cables, electrical accessories, heating, ventilation, fire and security products, consumer units & circuit distribution, indoor and outdoor lighting, showers and water heating, tools and fixings, timer switches, sockets, switches, air conditioning, trunking, and much much more. |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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:
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:
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#6
|
|||||||
|
|||||||
![]() Real neat.
__________________
X-Cart Gold 4.0.17 [unix] X-Cart Gold 4.0.18 [unix] |
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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!
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() I dont remember changing anything, but here is my complete skin1.css
Code:
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() 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?
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() See this at http://forum.x-cart.com/viewtopic.php?t=8138&postdays=0&postorder=asc&high light=comodo&start=20
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24 PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART Shop carts at http://www.nightscene.co.uk/shop/home.php http://www.theshisha.net/shopcart/home.php http://www.system-maintenance.com/maint/home.php http://www.tabac4u.com |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|