• Resolved lcwsuicide

    (@lcwsuicide)


    Hello. I recently downloaded and activated the wordpress theme “e-wallet” for my website (http://wordpress.topwpthemes.com/index.php?wptheme=e-wallet). There is one problem. It seems that right-clicking has been disabled. I need right clicking enabled in order to implement facebox on my site and keep my “wallpaper downloads” clickable.

    I have searched every inch of of the themes files and can’t seem to find the specific code that locks right-clicking. If anyone can help me out in finding this code or knowing where to look would be a great help.

    OR

    If someone knows how to activate the facebox plugin but break the code for certain images (the wallpapers) that would help too. Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • In your theme footer remove the following code

    <script type="text/javascript">
    <!--
    
    	var message="";
    	function clickIE() {if (document.all) {(message);return false;}}
    	function clickNS(e) {if
    	(document.layers||(document.getElementById&&!document.all)) {
    	if (e.which==2||e.which==3) {(message);return false;}}}
    	if (document.layers)
    	{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    	else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    	document.oncontextmenu=new Function("return false")
    
    // -->
    </script>

    That piece of javascript disables the right click. I hope that helps!

    Thread Starter lcwsuicide

    (@lcwsuicide)

    Thanks for pointing that out! That actually shows me where the problem lies, but the only thing I can see in the footer is a big mess of code that breaks the page if I remove it. It has a <?php $_F=__FILE__;$_X= followed by a long string numbers and letters. It seems no matter how I replace it it breaks the theme.

    I’m not especially fluent in php so I’m not sure what this is but I can assume its calling on command from lord knows where.

    Post the footer code somewhere and I can remove it for you!

    Thread Starter lcwsuicide

    (@lcwsuicide)

    oh thanks very much!

    <?php $_F=__FILE__;$_X=’Pz48IS0tIGI1ZzRuIGYyMnQ1ciAtLT4NCg0KPC9kNHY+DQoNCg0KPGQ0diA0ZD0iY3I1ZDR0Ij4NCjw0bWcgc3JjPSJodHRwOi8vdGg1bTVzLno0bnIzc3MuYzJtL2w0YnIxcnkvNS13MWxsNXQuZzRmIiAxbHQ9IjUtdzFsbDV0IFcycmRwcjVzcyBUaDVtNSIgdzRkdGg9IjYwYXUiIGg1NG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ybicpOyA/Pi4gDQpSM25uNG5nIDJuIDwxIGhyNWY9Imh0dHA6Ly93MnJkcHI1c3MuMnJnIiB0NHRsNT0idzJyZHByNXNzIiB0MXJnNXQ9Il9ibDFuayI+VzJyZHByNXNzPC8xPiB8IDwxIGhyNWY9Imh0dHA6Ly90MnB3cHRoNW01cy5jMm0iIHQ0dGw1PSJ3MnJkcHI1c3MgdGg1bTVzIiB0MXJnNXQ9Il9ibDFuayI+VGg1bTU8LzE+IGQ1djVsMnA1ZCBieSA8MSBocjVmPSJodHRwOi8vcnMzMmcuYzJtIiB0NHRsNT0icnMzMmciIHQxcmc1dD0iX2JsMW5rIj5yczMyZzwvMT4uDQoNCjwvZDR2Pg0KDQoNCg0KDQoNCg0KDQoNCjwvYjJkeT4NCg0KPC9odG1sPg==’;eval(base64_decode(‘JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw==’));?>

    Someone has gone to great lengths to obfuscate this code. Grrr! I can hardly make sense of it myself! This is what it equates to without the script bit:

    <!-- begin footer -->
    </div>
    <div id="credit">
    <img src="http://themes.zinruss.com/library/e-wallet.gif" alt="e-wallet WordPress Theme" width="1024" height="1" border="0" />
    </div>
    <div id="footer">Copyright &copy; <?php echo date('Y');?> <?php bloginfo('name');?> &ndash; <?php bloginfo('description'); ?>.
    Running on <a href="http://wordpress.org" title="wordpress" target="_blank">Wordpress</a> | <a href="http://topwpthemes.com" title="wordpress themes" target="_blank">Theme</a> developed by <a href="http://rsuog.com" title="rsuog" target="_blank">rsuog</a>.
    </div>
    </body>
    </html>

    Just copy that into footer.php and you’re away! You could also change some of the copyright stuff as well!

    Thread Starter lcwsuicide

    (@lcwsuicide)

    You sir, have been a GREAT help. Thanks so much! The site works perfectly! You’re a life saver!

    Dear tomontoast

    Hai, i recently download E-wallet theme from wordpress,, but that theme doest not work with IE 6 and some more bugs in IE.

    How to rectify that..
    Please Help me..

    edge-hog

    (@edge-hog)

    Big thanks. I’m using this theme only because of your patch. Great job!

    @tomontoast

    I know it’s been months since this post, but I’m having the same problem. Is there anyway you can translate the code for me?

    <?php $__F=__FILE__;$__C=’Pz48IS0tIGI1ZzRuIGYyMnQ1ciAtLT4NCjwvZDR2Pg0KDQo8ZDR2IDRkPSJjcjVkNHQiPg0KPDRtZyBzcmM9Imh0dHA6Ly90aDVtNXMuejRucjNzcy5jMm0vbDRicjFyeS9IMnN0NG5nUHI1c3MuZzRmIg0KMWx0PSJIMnN0NG5nIFByNXNzIFcycmRwcjVzcyBUaDVtNSIgdzRkdGg9IjkwMCIgaDU0Z2h0PSI2Ig0KYjJyZDVyPSIwIiAvPg0KPC9kNHY+DQoNCg0KPD9waHAgNGYgKCA0c19oMm01KCkgKSB7ID8+IA0KPD9waHAgNG5jbDNkNSAoVEVNUExBVEVQQVRIIC4gIi9mcjFtNS5waHAiKTsgPz48P3BocCB9ID8+DQoNCjwvZDR2Pg0KDQo8ZDR2IDRkPSJmMjJ0NXIiPjxici8+DQo8cD4NCkMycHlyNGdodCAmYzJweTsgPD9waHAgNWNoMiBkMXQ1KCdZJyk7Pz4gPD9waHANCmJsMmc0bmYyKCduMW01Jyk7Pz4gJm5kMXNoOyA8P3BocCBibDJnNG5mMignZDVzY3I0cHQ0Mm4nKTsgPz4uIA0KPDEgaHI1Zj0iaHR0cDovL3QycHdwdGg1bTVzLmMybSIgdDR0bDU9IlcycmRwcjVzcyBUaDVtNSINCnQxcmc1dD0iX2JsMW5rIj5XMnJkcHI1c3MgVGg1bTU8LzE+IGQ1djVsMnA1ZCBieSA8MQ0KaHI1Zj0iaHR0cDovL3d3dy53NWJoMnN0NG5nZjFuLmMybSIgdDR0bDU9Ilc1YiBIMnN0NG5nIEYxbiINCnQxcmc1dD0iX2JsMW5rIj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GxhY2UoJ19fRklMRV9fJywiJyIuJF9fRi4iJyIsJF9fQyk7CmV2YWwoJF9fQyk7CiRfX0M9IiI7’));?>

    Sonskystar, try this:

    ?><!– begin footer –>
    </div>

    <div id=”credit”>
    <img src=”http://themes.zinruss.com/library/HostingPress.gif&#8221;
    alt=”Hosting Press WordPress Theme” width=”900″ height=”1″
    border=”0″ />
    </div>

    <?php if ( is_home() ) { ?>
    <?php include (TEMPLATEPATH . “/frame.php”); ?><?php } ?>

    </div>

    <div id=”footer”>
    <p>
    Copyright © <?php echo date(‘Y’);?> <?php
    bloginfo(‘name’);?> – <?php bloginfo(‘description’); ?>.
    <a href=”http://topwpthemes.com&#8221; title=”Wordpress Theme”
    target=”_blank”>Wordpress Theme developed by <a
    href=”http://www.webhostingfan.com&#8221; title=”Web Hosting Fan”
    target=”_blank”>Web Hosting Fan

    </p>
    </div>

    <script type=”text/javascript”>
    <!–

    var message=””;
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function(“return false”)

    // –>
    </script>

    <noscript><meta content=”0;URL=<?php echo get_settings(‘home’);
    ?>/wp-admin/” http-equiv=”refresh” /></noscript>

    </body>
    </html>

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Enable Right-Click on my theme’ is closed to new replies.