Splitting mosMainBody() for banner/any other module?

A forum with Tips, tricks and small tutorials.

Moderators: mcsmom, unixboymd

Forum rules
Post Reply
kidkie
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 02, 2007 5:03 pm

Splitting mosMainBody() for banner/any other module?

Post by kidkie » Fri Dec 21, 2007 1:29 pm

Hi!

Is there any way that I can get mainBody to split itself into two parts so that I can place any other content in between articles? I still want to keep the flow of Frontpage and sub content should behave as normal.

------------------------------------------------------
| mainBody - 3 content items or more|
------------------------------------------------------
| banner/newsflash/module of choice |
------------------------------------------------------
| mainBody - the rest of my content, |
| in more columns etc.                    |
------------------------------------------------------

kidkie
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 02, 2007 5:03 pm

Re: Splitting mosMainBody() for banner/any other module?

Post by kidkie » Fri Dec 21, 2007 5:45 pm

Problem solved!

I''ve done it! Altered the source code and the modified the BannersManager Module to make it work.

However, it only works with one banner and I can't put anything BUT a banner in there.

I'll write a Step by Step later if there's any demand for it.
Last edited by kidkie on Fri Dec 21, 2007 5:47 pm, edited 1 time in total.

quilthug

Re: Splitting mosMainBody() for banner/any other module?

Post by quilthug » Wed Jan 09, 2008 11:51 pm

Step by step woul;d be helpful. I'd like to have mine like this:

MAIN BODY

Jcal Upcoming Events

all in the same container.

User avatar
mtmeyrick
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Dec 12, 2005 11:28 am
Location: Somewhere in the UK behind a monitor!

Re: Splitting mosMainBody() for banner/any other module?

Post by mtmeyrick » Mon Jan 14, 2008 6:31 pm

i agree a step by step guide would be really useful as i would love to implement this on my site.

webfeed

Re: Splitting mosMainBody() for banner/any other module?

Post by webfeed » Tue Jan 15, 2008 8:35 am

Definitely interested. I was actually looking for a way to drop in AdSense code after the one "leading" and before the "intro" (the rest) within the mosMainbody hook. If you could just show what you changed in the first part, I should be able to drop in a new module for the AdSense code, with ClickSafe (rather than a Banner module), which would remain the same, anyway.

Big-K
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Aug 21, 2005 2:13 am

Re: Splitting mosMainBody() for banner/any other module?

Post by Big-K » Thu Jan 17, 2008 4:55 am

webfeed wrote:Definitely interested. I was actually looking for a way to drop in AdSense code after the one "leading" and before the "intro" (the rest) within the mosMainbody hook. If you could just show what you changed in the first part, I should be able to drop in a new module for the AdSense code, with ClickSafe (rather than a Banner module), which would remain the same, anyway.


Me too. The post above mine describes exactly what I want


Post Reply