Forums / Templates, Stylesheets, Page Layout / Twitter sidebox only on home page

Twitter sidebox only on home page

Views: 3,656

Results 1 to 6 of 6
27 Apr 2009, 6:05 AM
#1
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

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

27 Apr 2009, 8:52 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)

28 Apr 2009, 4:37 AM
#3
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

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

$this_is_home_page == true

Thanks

28 Apr 2009, 5:26 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Twitter sidebox only on home page

krazey:

Great I have set-up a blank sidebox and added the twitter widget. Now which .php file do i add the

$this_is_home_page == true

> Thanks
 See previous thread at
<http://www.zen-cart.com/forum/showthread.php?t=18624&highlight=sidebox+override>

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

28 Apr 2009, 11:01 PM
#5
krazey avatar

krazey

New Zenner

Join Date:
Apr 2009
Posts:
32
Plugin Contributions:
0

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??? :(

11 Dec 2010, 8:04 PM
#6
soki avatar

soki

New Zenner

Join Date:
Apr 2008
Location:
Athens
Posts:
85
Plugin Contributions:
0

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 ```
$show_blank_sidebox = true;


delete it and replace with

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/index.php?article=270>

:clap: