Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Twitter sidebox only on home page

    Hello zenners,
    I am wandering if it is possible to have a twitter sidebox that is only displayed on the home-page. Below is what I am after;


    Thanks!!!

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Twitter sidebox only on home page

    Yes. That can be done.

    I'm not aware of a twitter sidebox for Zen Cart, so you'd have to write that yourself, but part of the standard structure for sidebox modules includes a block to limit their display. You would want yours to show only when
    $this_is_home_page == true
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Twitter sidebox only on home page

    Great I have set-up a blank sidebox and added the twitter widget. Now which .php file do i add the
    Code:
    $this_is_home_page == true
    Thanks

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Twitter sidebox only on home page

    Quote Originally Posted by krazey View Post
    Great I have set-up a blank sidebox and added the twitter widget. Now which .php file do i add the
    Code:
    $this_is_home_page == true
    Thanks
    See previous thread at
    http://www.zen-cart.com/forum/showth...debox+override

  5. #5
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: Twitter sidebox only on home page

    Hi Misty I have read all that forum but still no luck. I know i have to edit

    /includes/modules/sideboxes/mydfa/blank_sidebox.php

    but i don't know where and what else i have to add???

  6. #6
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Twitter sidebox only on home page

    I found the solution for this one,

    go where the twitter sidebox is ,

    mine is at /includes/modules/sideboxes/twitter_sidebox.php

    edit the file

    find this argument
    Code:
    $show_blank_sidebox = true;
    delete it and replace with

    Code:
     if ($this_is_home_page) {
        $show_blank_sidebox = true;
      } else {
        $show_blank_sidebox = false;
      }


    i found the solution from here

    https://www.zen-cart.com/tutorials/i...hp?article=270


 

 

Similar Threads

  1. turn off left or right side bar on home page only [and only certain EZ pages]
    By thebigkick in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2012, 10:23 PM
  2. Sidebox on home page only moved, how to move it back
    By shirtsatl in forum Basic Configuration
    Replies: 5
    Last Post: 5 Jan 2011, 05:46 PM
  3. How to show a custom sidebox only on my home page?
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Dec 2009, 08:43 AM
  4. home page only sidebox
    By Minnie Mouse in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 12 Oct 2009, 12:38 PM
  5. Specials Sidebox showing on home page only
    By divinelighting in forum General Questions
    Replies: 34
    Last Post: 13 Feb 2009, 05:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg