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?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Satheesh PM@thuvalpakshi
Satheesh PM - 0 likes
- Burgs@burgs
Burgs - 0 likes
- Burgs@burgs
Burgs - 0 likes
- Burgs@burgs
Burgs - 0 likes
You must log in to post replies.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');
}
@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.
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?
Anyone?