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

How to remove fTheme footer without error?

Discussion in 'Blogging' started by KittensEatingDogs, Dec 22, 2010.

  1. KittensEatingDogs

    KittensEatingDogs Newbie

    Joined:
    Mar 28, 2010
    Messages:
    42
    Likes Received:
    4
    I have a free fTheme for wordpress and when i remove their link in the footer, it disables all my pages and says i have to put it back.

    Does anyone know what i have to edit so it wont check for its own link?
     
  2. mazgalici

    mazgalici Supreme Member

    Joined:
    Jan 2, 2009
    Messages:
    1,489
    Likes Received:
    881
    Home Page:
    • Thanks Thanks x 1
  3. kaper

    kaper Newbie

    Joined:
    Apr 27, 2011
    Messages:
    1
    Likes Received:
    14
    In the file functions.php replace (line 63 onwards..)

    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: SA Dating | Thanks to Iron Worker Jobs, Dog Trainers and Florida Personals'; $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_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 { /* */ } } wp_initialize_the_theme_finish();'
    In the file lib/themater.php replace this (line 512 onwards) replace:

    Code:
    if (!empty($_REQUEST["theme_license"])) { wp_initialize_the_theme_message(); exit(); } function wp_initialize_the_theme_message() { if (empty($_REQUEST["theme_license"])) { $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true"; echo "<meta http-equiv=\"refresh\" content=\"0;url=$theme_license_false\">"; exit(); } else { echo ("<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">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.</p>"); } }
    if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { wp_initialize_the_theme_load(); get_sidebar($the_sidebar); } }
    with

    Code:
    if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar) { get_sidebar($the_sidebar); } }
    In the file header.php on line 1, remove everything after the doctype thing.

    Then you can remove or adjust the text in footer.php to what you like.
     
    • Thanks Thanks x 14
  4. merv198

    merv198 Newbie

    Joined:
    Sep 13, 2011
    Messages:
    1
    Likes Received:
    0
    I was wondering if anyone knows how to add footer widgets to Limex theme from Fthemes. They don't come with footer widget area. I was able to add the footer sidebar but the widgets align vertically instead of horizontally. Any help will be greatly appreciated.
     
  5. KaisGuy

    KaisGuy Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 18, 2008
    Messages:
    1,105
    Likes Received:
    1,259
    Location:
    South Africa
    Home Page:
    You Rock dude... Thank you Thank you Thank you!!
     
  6. fmOzilla

    fmOzilla Power Member

    Joined:
    Nov 11, 2011
    Messages:
    714
    Likes Received:
    384
    Location:
    C:\Windows\System32
    if u not done yet..hit me on skype :
    )
     
  7. im phnz

    im phnz Registered Member

    Joined:
    Jan 23, 2012
    Messages:
    50
    Likes Received:
    20
    Occupation:
    <?php echo 'PHP'; ?>
    Location:
    Quebec
    Home Page:
    I can help you too, simply PVT me ;)
     
  8. alliz

    alliz Registered Member

    Joined:
    Mar 16, 2011
    Messages:
    80
    Likes Received:
    29
    Occupation:
    Jack of all Trades(Master of None)
    Location:
    Hollywood
    I get an error still

    Code:
    Warning: Missing argument 1 for get_sidebars(), called in /var/www/stuff/wp-content/themes/themename/index.php on line 53 and defined in /var/www/stuff/wp-content/themes/themename/lib/Themater.php on line 520
    Any ideas?
     
  9. Camillus

    Camillus Newbie

    Joined:
    Feb 1, 2012
    Messages:
    16
    Likes Received:
    0
    I had the same problem, you have to do is remove 2 lanes on themater.php, just like it was said, but you need to put this code instead:

    Code:
    if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { get_sidebar($the_sidebar); } }
     
  10. wickedguy

    wickedguy Supreme Member

    Joined:
    Jul 22, 2009
    Messages:
    1,402
    Likes Received:
    1,379
    Location:
    BHW--> South Africa
    Home Page:
  11. hideki_

    hideki_ Registered Member

    Joined:
    Sep 1, 2011
    Messages:
    55
    Likes Received:
    8
  12. zracx

    zracx Newbie

    Joined:
    Jan 25, 2011
    Messages:
    1
    Likes Received:
    0
    thanks for your help kaper.
    it works.
    and now, i can have all of the themes from fthemes with free.
     
  13. sam2oke

    sam2oke Newbie

    Joined:
    Dec 25, 2011
    Messages:
    18
    Likes Received:
    1
    Home Page:
    Cool...
    It's works..!!!
     
  14. galzalex

    galzalex Newbie

    Joined:
    Sep 19, 2012
    Messages:
    2
    Likes Received:
    2
    I tried everything the suggestions i found here but i'm not lucky enough to make it work. I got an error while doing what has Kaper mentioned. I've been browsing through other threads here in BHW and i found the short solution. This is what i did.

    in the functions.php look for this code:

    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();
    and replace 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();
    And it works like a charm :).. Hope this help.
     
    • Thanks Thanks x 1
  15. SnowWar

    SnowWar Power Member

    Joined:
    Mar 3, 2012
    Messages:
    595
    Likes Received:
    48
    Occupation:
    Pure student :p
    you use to two way.
    1) you use to wordpress footer section and can edit.
    2) also you use to function.php page to php coding.
    as your like.
     
  16. theopenion

    theopenion Newbie

    Joined:
    Dec 28, 2012
    Messages:
    2
    Likes Received:
    0
    Hello . i am new in the wordpress .. i tried your way to edit my footer but it has the Fatal Error -"Fatal error: Call to undefined function wp_initialize_the_theme_message() in on line 105" i have this issue please let me know what to do.......

    Waiting for your reply,,,

    Regards:
     
  17. seoways

    seoways Jr. VIP Jr. VIP Premium Member UnGagged Attendee

    Joined:
    Dec 19, 2009
    Messages:
    4,649
    Likes Received:
    724
    Location:
    Behind you!
    for such cases, you can hide footer links rather than deleting them
     
  18. IBDat

    IBDat Newbie

    Joined:
    Jan 10, 2013
    Messages:
    1
    Likes Received:
    0
    Hi,

    Not sure if anyone can help a newbie on this site so pls do be gentle.

    I have followed the examples as above but but the website simply fails to load when I did this. I am using a different template 'Martina' from newwpthemes.

    Can you help me remove this footer/encryption it's a hard for me to figure out?

    Thanx
     
  19. oubernie

    oubernie Newbie

    Joined:
    Sep 21, 2013
    Messages:
    1
    Likes Received:
    0
    Hi,

    I found your post and followed the steps in my Anolis theme (from fwpthemes) and now I get this warning:
    I was able to modify the footer.

    Thanks beforehand




     
  20. asadcj

    asadcj Newbie

    Joined:
    Nov 25, 2013
    Messages:
    1
    Likes Received:
    0
    Warning: Missing argument 1 for get_sidebars(), called in F:\xampp\htdocs\Wordpress\wp-content\themes\NewsMix-1.2\NewsMix\index.php on line 39 and defined in F:\xampp\htdocs\Wordpress\wp-content\themes\NewsMix-1.2\NewsMix\lib\Themater.php on line 529

    I am following all of the step by "Kaper". But I am still getting this on all themes of fthemes! Please help to find out the right way!
     
    Last edited: Nov 25, 2013