1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me ! removing the spam footer link in my blog

Discussion in 'Blogging' started by Faiz Muhammad, Jul 13, 2011.

  1. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    Hello friendz its me Faiz Muhammad
    friendz i got a theme from "fthemes" i like it , but the problem is with the footer , there are spaming links , more than 2 in footer , and are not relevent to my site content , i want to remove them but i know if i remove them my blog will stop working , i serach through google and found a post of this forum so i join , since i m new so am not allowed to post the link of that thread . but the title was " Deleting Footer for new*wp*themes" I it try these options but i m not doing so , plzz any one can rome the links for me or make the function disable , i attach the them files in a zip , and i am waiting for some one to do for me !!
    thanks
     

    Attached Files:

  2. gsy159

    gsy159 Power Member

    Joined:
    Apr 29, 2011
    Messages:
    658
    Likes Received:
    158
    you open footer.php and dell this part

    from: <div id="credits">

    to: </div><!-- #credits -->
     
  3. oxonbeef

    oxonbeef BANNED BANNED

    Joined:
    Jan 4, 2009
    Messages:
    2,242
    Likes Received:
    7,872
    Lol! at them script sites.
    Code:
    href="http://www.arizonaflirt.com/singles/scottsdale-dating">Scottsdale Dating</a>, <a href="http://www.hsvsingles.com/">HSV Personals</a> and <a href="http://www.fortlauderdaleflirt.com/local/fort-lauderdale-singles">Fort Lauderdale Single
    I just had to say it.
     
  4. webdesignsbyapw

    webdesignsbyapw Junior Member

    Joined:
    Aug 4, 2010
    Messages:
    158
    Likes Received:
    9
    Yeah, anything can be deleted in the footer. If it's encrypted, there are also programs for this that are free..
     
  5. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    sir i delete them and my site is not working now , instead of loading it gives the error
    All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.
     
  6. blogdev

    blogdev BANNED BANNED

    Joined:
    Sep 29, 2009
    Messages:
    128
    Likes Received:
    101

    Haha you need to also remove the protection in the theme :p
     
  7. nougattrout

    nougattrout Junior Member

    Joined:
    Jan 6, 2010
    Messages:
    131
    Likes Received:
    14
    Open functions.php and change the bit at the end from this:

    Code:
    function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: LINKSLINKSLINKS'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
    to this:

    Code:
    function wp_initialize_the_theme_finish() { 
    	$uri = strtolower($_SERVER["REQUEST_URI"]); 
    	if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { } } } wp_initialize_the_theme_finish();
    That should work. Note that i replaced the link crap with LINKSLINKSLINKS in the first code snippet
     
    • Thanks Thanks x 2
  8. sircoldfire

    sircoldfire Junior Member

    Joined:
    Jul 2, 2011
    Messages:
    104
    Likes Received:
    27
    Occupation:
    motha fu¬Ękin hu$tla
    Location:
    bank teller window cashin checks
    if you get too much cr ap its easier to just get a new t heme tons and tons of free th emes kick but with no rest rictions
     
  9. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
     

    Attached Files:

  10. nougattrout

    nougattrout Junior Member

    Joined:
    Jan 6, 2010
    Messages:
    131
    Likes Received:
    14
     
    • Thanks Thanks x 1
  11. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
     
  12. etrader

    etrader Regular Member

    Joined:
    Jul 8, 2010
    Messages:
    311
    Likes Received:
    47
    Occupation:
    Engineer
    Location:
    Germany
     
  13. Faiz Muhammad

    Faiz Muhammad Newbie

    Joined:
    Jul 12, 2011
    Messages:
    11
    Likes Received:
    1
    thanks to BHW , and specially to nougattrout!
     
  14. nougattrout

    nougattrout Junior Member

    Joined:
    Jan 6, 2010
    Messages:
    131
    Likes Received:
    14
    Haha no worries :p
     
    • Thanks Thanks x 1
  15. maineyak

    maineyak Power Member

    Joined:
    Mar 27, 2008
    Messages:
    600
    Likes Received:
    555
    Damn, I just found this solution Googling and was coming here to share it, but it's been done :D
     
    • Thanks Thanks x 1
  16. galzalex

    galzalex Newbie

    Joined:
    Sep 19, 2012
    Messages:
    2
    Likes Received:
    2
    Thanks man and you help me in this part. At first i got an error because i replace the entire thing from function wp_initialize_the_theme_load() to wp_initialize_the_theme_finish();

    What i did is i only change the last part which is

    Code:
    function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: LINKSLINKSLINKS'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
    with:

    Code:
    function wp_initialize_the_theme_finish() {     $uri = strtolower($_SERVER["REQUEST_URI"]); 
        if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { } } wp_initialize_the_theme_finish();
    I remove the extra } and it works :).
     
    • Thanks Thanks x 1
  17. hotpassion

    hotpassion Junior Member

    Joined:
    Feb 28, 2009
    Messages:
    183
    Likes Received:
    39
    After looking all the Internet, I finally found the solution for my issue from your post. It is soooo simple and easy to do and now my theme is clean!
    Thanks so much, my buddy!