Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    Other extensions    Plugins    Topic: Frontpage banner below second or third article
Pages: [1]   Go Down
  Print  
Author Topic: Frontpage banner below second or third article  (Read 13347 times)
0 Members and 1 Guest are viewing this topic.
lormitto
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: February 07, 2010, 17:23:39 »

Hi,

Could you please advise hot to modify frontpage banner code to make banners appear below 2nd or 3rd article?
I've got no idea how to modify code to get result I need.

Thank you in advance.

Regards,

Logged
dwiRianto
Newbie
*

Karma: 0
Offline Offline

Gender: Male
Posts: 2


imdwee
« Reply #1 on: February 15, 2010, 18:17:48 »

which is?
Logged

~salam
lormitto
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: February 15, 2010, 19:04:30 »

which is?

Code:
/**
 * Content plugin for automatic inserting banner after first news item on frontpage
 *
 * @version 2.0
 * @package frontpagebanner
 * @author smart (smart@joomlaportal.ru)
 * @copyright (C) 2006-2009 joomlaportal.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 *
 **/
// Check to ensure this file is included in Joomla!
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.plugin.plugin' );

class plgContentFrontpageBanner extends JPlugin
{

function plgContentFrontpageBanner( &$subject, $params )
{
parent::__construct( $subject, $params );
}

function onAfterDisplayContent( &$article, &$params, $limitstart )
{
        global $mainframe;

        $view = JRequest::getCmd('view');

        $content = '';

if ($view == 'frontpage') {
if (!defined('_FRONTPAGEBANNER')) {
define('_FRONTPAGEBANNER', 1);

ob_start();
echo '<div class="frontpagebanner">';
include($mainframe->getCfg('absolute_path') . DS. 'modules' . DS . 'mod_banners' . DS . 'mod_banners.php');
echo '</div>';
$content = ob_get_contents();
ob_end_clean();
}
}
return $content;
}
}

do you have any idea?

Logged
ram123whisky
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #3 on: November 11, 2010, 09:17:14 »

 go to the admin area edit mode
Logged
lucadorin
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #4 on: May 24, 2012, 04:23:49 »

Had you found the solution?
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    Other extensions    Plugins    Topic: Frontpage banner below second or third article
 
Jump to: