Log in
Elgg Technical Support

Elgg Technical Support

Get support from other Elgg users

Sidebar mod

  • Public

Sidebar mod

Started by Burgs 785 days ago Replies (4)

I'm using the super river_activity_3C and have added this mod to the start.php which inserts an advert at the top of the sidebar...

elgg_extend_view('page/elements/sidebar', 'page/elements/smart_phone','700');

 

I have also applied this mod to all other sidebars

views/default/page/elements/sidebar.php via my theme plugin...

 

$river_body = '<iframe src="http://www.mysite.com/community/ads/iphone/index.htm" width="240" height="444" scrolling="no" frameborder="0" owerflow="hidden" ></iframe>';

echo elgg_view_module($box_view, $title, $river_body);

 

 

Both work great but my problem is that both ads are displayed on the river_activity_3C page. How can I prevent the site-wide mod displaying on that activity page?

Replies

  • Satheesh PM 785 days ago

    in your theme you can add this code to start.php

    if (elgg_is_logged_in() && elgg_get_context() != 'activity'){

    elgg_extend_view('page/elements/sidebar', 'page/elements/smart_phone','700');

    }

  • Burgs 784 days ago

    @Satheesh PM... Thanks, but I now have both ads displayed site-wide. The 2 ads still display on the Activity page and my 1st ad now displays at the bottom of the sidebar site-wide.

  • Burgs 784 days ago

    Site-wide in my sidebar, I think this code creates my Advert No2...

    echo elgg_view_module($box_view, $title, $river_body);

    What do I need to put on my activity page to stop it displaying?

  • Burgs 783 days ago

    Anyone?

You must log in to post replies.