Additional advert positions

More
10 years 10 months ago - 10 years 10 months ago #36667 by micke@sanda.nu
Hello,
Let me begin by saying THANK YOU for all the great templates that i used all these years. I keep on returning here because the templates are so easy to customize and they work.
Anyways, my question concerns additional advert modules besides the advert 1 through 4.
I modified templatedetails.xml like this:
<position>advert1</position>
<position>advert2</position>
<position>advert3</position>
<position>advert4</position>
<position>advert5</position>
<position>advert6</position>
<position>advert7</position>
<position>advert8</position>


I also modified index.php like this:
$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');
$showadvert[5] = $this->countModules('advert5');
$showadvert[6] = $this->countModules('advert6');
$showadvert[7] = $this->countModules('advert7');
$showadvert[8] = $this->countModules('advert8');


Can you please instruct me on what additional changes i need to make in order to show additional advert modules 5--8 right below advert modules 1--4 ? I mean one more row of advert modules.

Thank you in advance,
Mike
Last edit: 10 years 10 months ago by micke@sanda.nu.

Please Log in to join the conversation.

More
10 years 10 months ago #36679 by ivan.milic
You need to put them. In index.php you need to put code like this:

<jdoc:include type="modules" name="advert8" style="hot" />

some ware, and there it will appear.

Please Log in to join the conversation.

Time to create page: 0.143 seconds
Powered by Kunena Forum