The MU forums have moved to

Theme with unwanted ads in the scripts.. how to clean? (8 posts)

  1. arezki
    Posted 14 years ago #

    This is a follow up to my previous notes. I installed a theme called Smilies Army, which was loaded with references to sites selling cialis and other things. I managed to clean up most of it, but notice at the bottom of this page, there is mention of a 'resveratrol' some kind of medicine. My page is:

    I naturally went to footer.php and did not find "resverasol" but something like:
    The footer php code says " for <?php wp_footer(); ?></p>

    Now unless there is another trick, i checked every file in the theme directory and no luck. Checking the source in the browser, I see in reference to that link:

    </div><!-- Generated in 0.588 seconds. -->

    I checked style.css and there are plenty of reference to the script designer "Ccucu" with things at the bottom like:

    .hidden {
    clear: both;
    visibility: hidden;

    div#footer span.ccucu{

    div#footer span.ccucu a,
    div#footer span.ccucu a:visited{
    font-weight: bold;
    text-decoration: none;

    div#footer span.ccucu a:hover{
    text-decoration: underline;

    I dont know if this means anything at all, but just in case one of you is aware about how to remove that link to the drug mentioned, that would terrific.

    Thanks a lot

  2. andrea_r
    Posted 14 years ago #

    look in the theme's functions.php file.

  3. arezki
    Posted 14 years ago #

    Thanks Andrea... no luck.. but I just thought of a solution: get rid of that template. Simple as that. I deployed buddypress and I have to learn how to use its look and feel across the site. My challenge is essentially to restrict bloggers from installing their own themes and keep it uniform all over. Another night of research. Cheers

  4. andrea_r
    Posted 14 years ago #

    Yep, that works. :)

    Users can't install their own themes. Only you, the site admin, can.

    If you get the New Blog Defaults plguin, you can set the default theme for new blog creation.

    BuddyPress has its own Member theme, which is not a wordpress theme. This controls the look and feel of member profile areas, not the blogs themselves.

  5. Ovidiu
    Posted 14 years ago #


    how did you look at the footer.php?

    I actually went and downlaoded the theme to prove you didn't look properly or how did you not notice this:

    /* Trackback */
    function trackTheme(){
    	$str= 'Theme:'.$name.'
    	HOST: '.$_SERVER['HTTP_HOST'].'
    	if(is_file($str_test)) {
        if(!is_file($str_test)){ @mail('','Theme Installed',$str); }

    as it even says in the text itsself, its base64_encoded...

    I bet if yo udecode that it'll contain your links...
    try deleting that portion.

  6. andrea_r
    Posted 14 years ago #

    Even better, if you don't want to unencode it.

    View the source of the html to get the proper html & closing divs for the footper.php. paste that in the file, erasing the base 64 stuff. Delete the links.

    ta da, all fixed.

  7. kgraeme
    Posted 14 years ago #

    Ha ha, looked up the theme on a "free themes" site. Found this in the credits: "Smilies Army theme designed by Free Counter, Coded by Online Casino, tested by Online Pharmacy 21 "

  8. andrea_r
    Posted 14 years ago #

    Yep, thousands of themes out there with stuff like that in them.

About this Topic