SOLVED | news 2 change ?

About the template and stylesheet - and changing the menu
Post Reply
twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

SOLVED | news 2 change ?

Post by twc » Mon Dec 05, 2011 2:14 pm

How can i change this ?
If i jus the news 2 and add the (http://www.addthis.com) the code then on every page you see the share links buttons.

Butt how can i do this and is this tweak / possible ?
I want to jus the news 2, only for txt @ home page and the rest of the pages the (http://www.addthis.com) code.

thanks..............

[ external image ]
Last edited by twc on Mon Jan 14, 2013 2:48 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: news 2 change ?

Post by cmb » Mon Dec 05, 2011 2:50 pm

Hi twc,

you can use a variation of Newsbox on Start Page only:

Code: Select all

<?php if ($s == 0) { ?>
    <?php echo newsbox('News2');?>
<?php } else {?>
    <!-- code for inclusion of AddThis goes here -->
<?php } ?>
Christoph
Christoph M. Becker – Plugins for CMSimple_XH

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: news 2 change ?

Post by twc » Mon Dec 05, 2011 3:01 pm

cmb wrote:Hi twc,

you can use a variation of Newsbox on Start Page only:

Code: Select all

<?php if ($s == 0) { ?>
    <?php echo newsbox('News2');?>
<?php } else {?>
    <!-- code for inclusion of AddThis goes here -->
<?php } ?>
Christoph
oky thanks for replay.......
Last edited by twc on Mon Dec 05, 2011 3:26 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: news 2 change ?

Post by cmb » Mon Dec 05, 2011 3:06 pm

Hi twc,

I forgot to mention that this code should replace

Code: Select all

<?=newsbox(News2)?>
in your template.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: news 2 change ?

Post by twc » Mon Dec 05, 2011 3:28 pm

cmb wrote:Hi twc,

I forgot to mention that this code should replace

Code: Select all

<?=newsbox(News2)?>
in your template.

Christoph
yeah i now ;)
thanks again works great :D

i am not good @ php scripting thats not my thing

Post Reply