Add some ads view in newsfeed

Moneya Posted in Component Development 10 years ago

i want to register small ads use in profile page in a plugin am creating page
current here's my former code from ossn_com

}
function test_page(){
    $title = 'Test';
    $contents = array('content' => ossn_view('components/testplugin/index'));
    $content = ossn_set_page_layout('contents', $contents);
    echo ossn_view_page($title, $content);  
}

then later i change it to this

    }
function test_page(){
    $title = 'Test';
    $contents = array('content' => ossn_view('components/testplugin/index'));
    $content = ossn_set_page_layout('newsfeed', $contents);
    echo ossn_view_page($title, $content);  
}

but ads displayed is big so how do i display smaller ads at the same time unregister newsfeed sidebar content/menu

Replies
ng Moneya Replied 10 years ago

thanks

Indonesian Arsalan Shah Replied 10 years ago

Edit:

themes/default/page/layout/newsfeed.php

Find:

components/OssnAds/page/view

Change to:

components/OssnAds/page/view_small