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,655
    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
    See and test drive Zen Cart's free templates at zencarttemplates.info

    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,860
    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
    Dezina ZenCart Templates
    Please do not PM for support queries..Post in forums..help others

  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
    73
    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

    http://tutorials.zen-cart.com/index.php?article=270


 

 

Similar Threads

  1. Twitter Sidebox? (New module creation help)
    By curtc in forum Addon Sideboxes
    Replies: 6
    Last Post: 10 Jun 2011, 08:24 PM
  2. home page only sidebox
    By Minnie Mouse in forum Templates, Stylesheets, Page Layout
    Replies: 27
    Last Post: 12 Oct 2009, 12:38 PM
  3. my sidebox on right side home page misssing
    By lcarlo1507 in forum Basic Configuration
    Replies: 0
    Last Post: 20 Apr 2009, 12:14 PM
  4. Disable Certain Sidebox on Home Page
    By CoolCarPartsOnline in forum General Questions
    Replies: 3
    Last Post: 8 Feb 2009, 10:19 PM
  5. right sidebox overhangs on home page
    By signify in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Oct 2008, 11:42 PM

Bookmarks

Posting Permissions

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