new module position

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sat Jan 19, 2013 2:12 am
hi . trying to add a new module position ...

so far i have done

#1 templateDetails.xml file i added

Code: Select all
<position>google</position>

just below like 81

#2 gk.const.php file i added

Code: Select all
'google' => 'none',

just below line 30

#3 Default.php file i added

Code: Select all
<?php if($this->modules(‘google’)) : ?>
    <div id="google">
        <jdoc:include type=”modules” name=”google” style=”<?php echo $this->module_styles['google']; ?>” />
    </div>
    <?php endif; ?>


just below line 68 logo block

#4 also tried with " layouts/blocks "

i added
Code: Select all
    <?php if($this->modules(‘google’)) : ?>
    <div id="google">
        <jdoc:include type=”modules” name=”google” style=”<?php echo $this->module_styles['google']; ?>” />
    </div>
    <?php endif; ?>


to "logo.php2 just below line 48

... i can see the module position name ... but it does not show the module ...

its a google ad i would like to place between logo and userarea

website RegatulUnit.com

thanks
User avatar
Gold Boarder

Konrad M
Sat Jan 19, 2013 10:27 am
Hi,
I guess you copy and paste code from article. If you do this editor change this ' and this ". Look at your code:
Code: Select all
<?php if($this->modules(‘google’)) : ?>
    <div id="google">
        <jdoc:include type=”modules” name=”google” style=”<?php echo $this->module_styles['google']; ?>” />
    </div>
    <?php endif; ?>

and now look at mine:
Code: Select all
<?php if($this->modules('google')) : ?>
    <div id="google">
        <jdoc:include type="modules" name="google" style="<?php echo $this->module_styles['google']; ?>" />
    </div>
    <?php endif; ?>
User avatar

GK User
Sat Jan 19, 2013 11:06 am
thanks for your answer ... did not know that ..

ok for some reason it does show the module between logo and userarea

but its the wrong one ...

i have a google ad 200x200 in " inset1" whihc is not showing up ... dont know why ...

soon i add this new position module (google) and enable the new google ad 728x90 ...the google 200x200 shows in this new module position ... ? wonder why is that ?

also how can u control the adjust the position of this new module position ?

wrong.JPG
User avatar
Gold Boarder

Konrad M
Sat Jan 19, 2013 10:08 pm
Probably you need some css code to align this module correctly. Can you post your add to this new module position. I will try give you correct css code.
User avatar

GK User
Sat Jan 19, 2013 10:19 pm
sure ... i will put the site on offline mode

do you need backend access ?
User avatar
Gold Boarder

Konrad M
Sat Jan 19, 2013 10:27 pm
Yes, please send me Private Message with access.
User avatar

GK User
Tue Jan 29, 2013 1:01 am
can anyone help ?
User avatar
Gold Boarder

Konrad M
Tue Jan 29, 2013 9:47 am
I send you PM with info that I don't see any google ads on website now. Please add them to those positions. That I could give you correct css.
User avatar

GK User
Tue Jan 29, 2013 10:16 am
i have removed that because it wanst right.... The banner needs to go more to the top area .. To be aligned between logi and userarea ..

Can i place there a 728x90 banner ? Is there enough room ?

Thanks ... I will send you access to backend...

The module is google ... Just enable it and test please
User avatar
Gold Boarder

GK User
Tue Jan 29, 2013 10:20 am
no prv msg with info received
User avatar
Gold Boarder

Konrad M
Tue Jan 29, 2013 11:31 am
Please add thid to override.css
Code: Select all
#gkPage {
position: relative;
}
#google {
width: auto;
position: absolute;
top: 20px;
left: 340px;
}

Remember to enable override.css option in template settings. And then publish google module.
User avatar


cron