PDA

View Full Version : How to place module in between newsposts?


Meebie
06-06-2007, 05:58 PM
Following instructions (below) for placing adsense in between newsposts it's no problem to add something or whatever blahblah. But what if i would like one of my sidemodules on that particular spot? Anyone out there who could give me a push in the right direction? I'm using vBadvanced CMPS v2.1.0 by the way...

Template: adv_portal_module_shell

<if condition="$pages['name'] == 'home'"><if condition="$mods['identifier'] == 'news'"><if condition="$newscount == 1">
blahblah
<div><img src="$vboptions[bburl]/$vboptions[cleargifurl]" height="$vba_style[portal_vspace]" alt="" /></div>
</if></if></if>

Brian
06-07-2007, 12:41 PM
Sorry, but I don't think there's going to be an easy way to place a module between your news posts.

Our Sponsors
 

Meebie
06-07-2007, 07:53 PM
Silly me. Ofcourse it can be done. I just created a copy of the newsmodule in vba adminpanel and added a renamed copy of news.php in the module folder. Newsmodule 1 (news2.php) shows just message 1 (News Posts Maximum 1) and newsmodule 2 (news.php) shows message 2 to 7 (News Posts Maximum 7). In my case that is. I added some code to news.php:

Found:

$newscount++;


Added under:

if ($newscount < 2)
{
continue;
}

Voilá, now I can place any module I like in between. Thanks Brian, to make me use my stubborn brain... ;)