[ask] remove link from a wp theme

rockoki

New member
Nov 28, 2010
9
0
0
hi all..

sorry for a noob question,
recently i am trying out the wp theme, my question is how do i remove this link?

below i will attach a jpg for reference

thanks
 

Attachments

  • crop.jpg
    crop.jpg
    10.5 KB · Views: 20


it is located in the file called 'footer.php'. You need to be profficient in HTML and ideally css if you want to edit themes. If not then just use one without antivirus links! :D
 
hmm..that what i though so..but when i opened up the footer.php

is just a bunch wrap text which start with '<?php eval(base64_decode'

and i dont see any link or what so ever.

is there any guide or so which i can read through on how to remove it?
 
it will be different in every theme. The code you just posted is php. That is what holds the themes together. The basic elements are still HTML though so you need to get a grip on that at least before you start. Post the whole code of footer.php and i will have a look.
 
below are the code which i copy from the footer.php

<?php eval(base64_decode('Pz4gICAgICAgICAgICAgDQogICAgICAgIDwvZGl2Pg0KICAgIDwvZGl2Pg0KDQoJPGRpdiBpZD0iYm9keV9yaWdodCI+DQogICAgCTxkaXYgaWQ9ImJvZHlfcmlnaHRfY29udGVudCI+DQoJCQ0KCQkJPGRpdiBpZD0ibWFpbl9zZWFyY2giPg0KCQkJCTxmb3JtIG1ldGhvZD0iZ2V0IiBpZD0ic2VhcmNoZm9ybV90b3AiIGFjdGlvbj0iPD9waHAgYmxvZ2luZm8oJ3VybCcpOyA/Pi8iPg0KCQkJCQk8ZGl2Pg0KCQkJCQkJPGlucHV0IHR5cGU9InRleHQiIHZhbHVlPSJUeXBlIHlvdXIgc2VhcmNoIGhlcmUuLi4iIG5hbWU9InMiIGlkPSJzZWFyY2hmb3JtX3RvcF90ZXh0IiBvbmNsaWNrPSJ0aGlzLnZhbHVlPScnOyIgLz4NCgkJCQkJCTxpbnB1dCB0eXBlPSJpbWFnZSIgc3JjPSI8P3BocCBibG9naW5mbygndGVtcGxhdGVfdXJsJyk/Pi9pbWFnZXMvZ28uZ2lmIiBpZD0iZ29zZWFyY2giIC8+DQoJCQkJCTwvZGl2Pg0KCQkJCTwvZm9ybT4NCgkJCTwvZGl2Pg0KICAgICAgICAgICAgDQogICAgICAgICAgICA8P3BocCBpZihmdW5jdGlvbl9leGlzdHMoJ3dwMTI1X3dyaXRlX2FkcycpKSB3cDEyNV93cml0ZV9hZHMoKTsgPz4NCiAgICAgICAgICAgIA0KICAgICAgICAgICAgPGRpdiBpZD0ic2lkZWJhcnMiPg0KICAgICAgICAgICAgICAgIDw/cGhwIGdldF9zaWRlYmFyKCk7ID8+DQogICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgIA0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCg0KPC9kaXY+DQo8L2Rpdj4NCg0KPGRpdiBpZD0iZm9vdGVyIj4NCgk8ZGl2IGlkPSJmb290ZXJfdGV4dCI+DQogICAgCTxwPg0KCQkJJmNvcHk7IEFsbCBSaWdodHMgUmVzZXJ2ZWQuIDxhIGhyZWY9Ijw/cGhwIGVjaG8gZ2V0X29wdGlvbignaG9tZScpOyA/Pi8iPjw/cGhwIGJsb2dpbmZvKCduYW1lJyk7ID8+PC9hPiB8IA0KPD9waHAgaWYoaXNfaG9tZSgpKSA6ID8+PGEgaHJlZj0iaHR0cDovL2ZyZWVhbnRpdmlydXNzb2Z0d2FyZXJldmlld3MuY29tLyIgdGl0bGU9IkZyZWUgYW50aXZpcnVzIHNvZnR3YXJlIj5GcmVlIGFudGl2aXJ1cyBzb2Z0d2FyZTwvYT48P3BocCBlbmRpZjsgPz4NCjwvYj4NCgkJPC9wPg0KICAgIDwvZGl2Pg0KICAgICAgIA0KPC9kaXY+DQoNCg0KDQoJCTw/cGhwIHdwX2Zvb3RlcigpOyA/Pg0KDQoNCjwvZGl2Pg0KDQo8L2JvZHk+DQo8L2h0bWw+DQogPD8='));?>
 
How I do it is:

- Add some text in front of that encrypted footer in footer.php; such as 'TEST', then save it.
- Open a page of your blog then view the source code and look for everything below that 'TEST" text.
- Copy that into 'footer.php' and edit away
 
I think there is something seriously supspicious about this theme. I would get rid and just download a normal one. What exactly are you trying to acheive? Does it have to be this theme??

That is just HTML code that has been (poorly) encrypted.
Here is what that says:

Code:
?>             
        </div>
    </div>

    <div id="body_right">
        <div id="body_right_content">
        
            <div id="main_search">
                <form method="get" id="searchform_top" action="<?php bloginfo('url'); ?>/">
                    <div>
                        <input type="text" value="Type your search here..." name="s" id="searchform_top_text" onclick="this.value='';" />
                        <input type="image" src="<?php bloginfo('template_url')?>/images/go.gif" id="gosearch" />
                    </div>
                </form>
            </div>
            
            <?php if(function_exists('wp125_write_ads')) wp125_write_ads(); ?>
            
            <div id="sidebars">
                <?php get_sidebar(); ?>
            </div>
            
        </div>
    </div>

</div>
</div>

<div id="footer">
    <div id="footer_text">
        <p>
            © All Rights Reserved. <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a> | 
<?php if(is_home()) : ?><a href="http://freeantivirussoftwarereviews.com/" title="Free antivirus software">Free antivirus software</a><?php endif; ?>
</b>
        </p>
    </div>
       
</div>



        <?php wp_footer(); ?>


</div>

</body>
</html>
 <?

You can see the link is now visible... You can either re-encode it without the link.. or the obvious option is to just swap the two over and remove the encryption all together. Do you know what i mean??

or you could just replace the whole function with this:
Code:
<?php eval(base64_decode('Pz4gICAgICAgICAgICAgDQogICAgICAgIDwvZGl2Pg0KICAgIDwvZGl2Pg0KDQoJPGRpdiBpZD0iYm9keV9yaWdodCI+DQogICAgCTxkaXYgaWQ9ImJvZHlfcmlnaHRfY29udGVudCI+DQoJCQ0KCQkJPGRpdiBpZD0ibWFpbl9zZWFyY2giPg0KCQkJCTxmb3JtIG1ldGhvZD0iZ2V0IiBpZD0ic2VhcmNoZm9ybV90b3AiIGFjdGlvbj0iPD9waHAgYmxvZ2luZm8oJ3VybCcpOyA/Pi8iPg0KCQkJCQk8ZGl2Pg0KCQkJCQkJPGlucHV0IHR5cGU9InRleHQiIHZhbHVlPSJUeXBlIHlvdXIgc2VhcmNoIGhlcmUuLi4iIG5hbWU9InMiIGlkPSJzZWFyY2hmb3JtX3RvcF90ZXh0IiBvbmNsaWNrPSJ0aGlzLnZhbHVlPScnOyIgLz4NCgkJCQkJCTxpbnB1dCB0eXBlPSJpbWFnZSIgc3JjPSI8P3BocCBibG9naW5mbygndGVtcGxhdGVfdXJsJyk/Pi9pbWFnZXMvZ28uZ2lmIiBpZD0iZ29zZWFyY2giIC8+DQoJCQkJCTwvZGl2Pg0KCQkJCTwvZm9ybT4NCgkJCTwvZGl2Pg0KICAgICAgICAgICAgDQogICAgICAgICAgICA8P3BocCBpZihmdW5jdGlvbl9leGlzdHMoJ3dwMTI1X3dyaXRlX2FkcycpKSB3cDEyNV93cml0ZV9hZHMoKTsgPz4NCiAgICAgICAgICAgIA0KICAgICAgICAgICAgPGRpdiBpZD0ic2lkZWJhcnMiPg0KICAgICAgICAgICAgICAgIDw/cGhwIGdldF9zaWRlYmFyKCk7ID8+DQogICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAgIA0KICAgICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCg0KPC9kaXY+DQo8L2Rpdj4NCg0KPGRpdiBpZD0iZm9vdGVyIj4NCgk8ZGl2IGlkPSJmb290ZXJfdGV4dCI+DQogICAgCTxwPg0KCQkJJmNvcHk7IEFsbCBSaWdodHMgUmVzZXJ2ZWQuIDxhIGhyZWY9Ijw/cGhwIGVjaG8gZ2V0X29wdGlvbignaG9tZScpOyA/Pi8iPjw/cGhwIGJsb2dpbmZvKCduYW1lJyk7ID8+PC9hPiB8IA0KDQo8L2I+DQoJCTwvcD4NCiAgICA8L2Rpdj4NCiAgICAgICANCjwvZGl2Pg0KDQoNCg0KCQk8P3BocCB3cF9mb290ZXIoKTsgPz4NCg0KDQo8L2Rpdj4NCg0KPC9ib2R5Pg0KPC9odG1sPg0KIDw/'));?>

I am still struggling toi understand what is goin on with this. I wouldnt trust it.
 
actually i am learning from a guide on how to build wp site..thats the theme which was used in the guide.

i just google the theme and download it. am not sure and totally fresh about all this.

by the way, what do u mean by u dont trust it?
 
ok well in that case just go somwhere alse and get a different theme.

100 Free High Quality WordPress Themes: 2010 Edition - Smashing Magazine

When i say i dont trust it, i mean there is no reason to encrypt the code unless they have an alterior motive. They are basically trying to force you to keep their link. Also, it makes it more complicated for you trying to learn. If you are just learning then have a look around on here for some tips on learning how to code HTML / CSS / PHP. You will get nowhere if you can't understand basic code. Dont worry too much about PHP for now. Just get your HTML and css down.

Good luck bro!!
 
  • Like
Reactions: bauss
The theme in question is a free theme with links encrypted. Majority of new bloggers and webmasters have no idea on how to remove this encryption and hence are forced to retain these links. This increases the theme developers chances of having the link love spread about :)

Goto Base 64 Decoder and enter all the random text you see after the base64 decode parameter and it will decode the text. This gives you an option to remove whatever links you want to.

This practice is looked down upon by many a users and even the developers of wordpress.
 
ok well in that case just go somwhere alse and get a different theme.

100 Free High Quality WordPress Themes: 2010 Edition - Smashing Magazine

When i say i dont trust it, i mean there is no reason to encrypt the code unless they have an alterior motive. They are basically trying to force you to keep their link. Also, it makes it more complicated for you trying to learn. If you are just learning then have a look around on here for some tips on learning how to code HTML / CSS / PHP. You will get nowhere if you can't understand basic code. Dont worry too much about PHP for now. Just get your HTML and css down.

Good luck bro!!

nice link in there
 
The theme in question is a free theme with links encrypted. Majority of new bloggers and webmasters have no idea on how to remove this encryption and hence are forced to retain these links. This increases the theme developers chances of having the link love spread about :)

Goto Base 64 Decoder and enter all the random text you see after the base64 decode parameter and it will decode the text. This gives you an option to remove whatever links you want to.

This practice is looked down upon by many a users and even the developers of wordpress.

hi..i went to the site as u suggested and after i decode it.

i got this error message as below:

Bad input?

Sorry, it just wasn’t possible to decode that string. Please let us know if you think this is a bug in our code.

The particular error here was:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters.
 
Because you are pasting the whole thing in. See below:

<?php eval(base64_decode(' **Base 64 code is here** '));?>

The code in orange is the php function and does not contain valid base 64 charachters. The base 64 code is just the numbers inside the function. You are wasting your time with this.