Added new module positions - not showing up at all

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Sep 16, 2012 9:01 pm
Reply with quote
Report this post
I added two new module positions banner1 and banner 2 in Game news 2.5 gkcontent section but they are not showing up. I followed the example and even just copied the code of a block in the default.php to make sure it was matching - changing section name and all but for the life of me it will not show the module on the template.

Please help I can Pm details just dont know how too...
User avatar
Fresh Boarder

GK User
Sun Sep 16, 2012 9:22 pm
Reply with quote
Report this post
Did you set your module to show on all pages under menu assignment bottom of module add/edit screen.

Also post your code in here wrapped in [ code ] [ /code ] tags without spaces.

See you around...
User avatar
Platinum Boarder

GK User
Mon Sep 17, 2012 1:19 am
Reply with quote
Report this post
Yes I tried it on some pages and on all pages it is not showing on any page...

I added <position>banner1</position> at the bottom of the template specific positions in xml
I added 'banner1' => 'gk_style', in libs file
then I added in default.php in gkcontent section
Code: Select all
<?php if($this->API->modules(‘banner1’)) : ?>
                            <div>
                         <jdoc:include type=”modules” name=”banner1” style=”<?php echo $this->module_styles['banner1']; ?>” />
                          </div>
                         <?php endif; ?>


Please let me know if you need more info...
User avatar
Fresh Boarder

GK User
Mon Sep 17, 2012 5:53 am
Reply with quote
Report this post
I can see your quotes are not correct. "" ' '

Use below code.
Code: Select all
         <?php if($this->API->modules('banner1')) : ?>
            <div>
                <jdoc:include type="modules" name="banner1" style="<?php echo $this->module_styles['banner1']; ?>" />
            </div>
            <?php endif; ?>


See you around...
User avatar
Platinum Boarder

GK User
Tue Sep 18, 2012 5:41 am
Reply with quote
Report this post
:D Wow...such a simple fix! Thank you it works!
User avatar
Fresh Boarder

GK User
Sun Sep 23, 2012 5:25 am
Reply with quote
Report this post
No problem at all, see you around...
User avatar
Platinum Boarder


cron