by UNOIT
3 replies
  • WEB DESIGN
  • |
Simplybiz wp theme has links in footer that break the theme when trying to remove or replace them.

How do you decode the obfuscated javascript and remove the links?
#free #theme
  • Profile picture of the author nthmarketing
    Easier to rebuild the template rather than try to decode the javascript.

    Aloha,
    Fred
    {{ DiscussionBoard.errors[4201992].message }}
  • Profile picture of the author Asimov
    yeah that javascript is a pain
    {{ DiscussionBoard.errors[4202015].message }}
    • Profile picture of the author mojojuju
      I was able to successfully remove the footer links - you know, for SCIENCE.

      I'm not going to show you how, but I'll explain a bit what you'd need to do.

      First of all there's the footer.php file which you've got to de-obfuscate two separate string using base-64.

      Then one of the decoded strings (the shorter one) tells you that you've got to use PHP's strtr function to de-obfuscate the larger string.

      That was the easy part.

      After that, if you try to modify the footer.php file, you get the message in the front end saying "Please do not alter or modify the footer. See our license for more info." And if you click the link to read the license, it's a 404.

      It's just a Javascript function that checks for the links in the footer. You can easily tell because disabling javascript in your browser removes the warning.

      But everyone loves javascript, right? Not me. But I still had to figure out which javascript the "footer checking code" is in.

      It turns out that the footer checking code is stuffed in the jquery.min.js file. Pretty sneaky, eh?

      So all you have to do is just remove the jquery.min.js file and replace it with an unmolested jquery.min.js file from here.


      Now you can modify the footer all you'd like and you won't see any message about modifying the footer. But you won't do that. You're going to leave the footer links intact, right?



      Simplybiz is a very nice looking theme BTW. Maybe you should consider paying the developer to have the footer links removed.
      Signature

      :)

      {{ DiscussionBoard.errors[4202408].message }}

Trending Topics