Need to have banner on userarea

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Thu Nov 29, 2012 11:07 am
Hi,

I want to have a banner on userarea position.

I have been able to align the logo to the left, but when I try to put a banner in the userarea position it does not show.

How can I get it to work please?

Danjuma
User avatar
Junior Boarder

Konrad M
Thu Nov 29, 2012 11:18 am
Hi
unfortunetly userarea is specyfic position for links like login/register. But you ca ntry add new module position in this place. Please read this article https://www.gavick.com/documentation/jo ... -position/
User avatar

GK User
Thu Nov 29, 2012 7:11 pm
Hello Konrad,

Thanks for the reply.

I tried adding a new module however using the guide. I followed all the steps however, nothing I assign to the new position I created is showing on the site.

Danjuma
User avatar
Junior Boarder

Konrad M
Fri Nov 30, 2012 8:17 am
Hi,
can you give me url to your site ? And write what you done.
User avatar

GK User
Fri Nov 30, 2012 1:14 pm
Here is the link: www.dailytrust.com.ng/dailytrust

1. I added a new position - banner1 - in templatedetails.xml

2. I added the new position to gk.const.php.

3. I added this code below to default.php in layouts. When it did not work, i then added it to logo.php in layout/blocks

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

Thanks

Danjuma
User avatar
Junior Boarder

Konrad M
Fri Nov 30, 2012 1:17 pm
Ok send me Private Message with access to ftp. And access to your joomla backend.
User avatar

GK User
Sun Dec 02, 2012 5:10 pm
Hello Konrad,

I sent you the PM yesterday. Have you had time to look into it yet?

Regards

Danjuma
User avatar
Junior Boarder

Konrad M
Mon Dec 03, 2012 11:23 am
I logged via ftp but I didn't have any folders.
User avatar

GK User
Mon Dec 03, 2012 1:15 pm
Very sorry Konrad.

Please check again. I believe it has been corrected now.
User avatar
Junior Boarder

Konrad M
Mon Dec 03, 2012 4:47 pm
Please check now. You made all steps right. But you copy code from article and paste it. If you do this in this way you will have error becasue this code use diffrent ' and ". I correct it.
User avatar

GK User
Mon Dec 03, 2012 5:55 pm
Thanks Konrad.

I can see it now.

How can I make it to be to the right of the page instead and a bit lower?

Sorry to trouble you with this little detail.

Thanks

Danjuma
User avatar
Junior Boarder

Konrad M
Tue Dec 04, 2012 9:04 am
Please try add to override.css
Code: Select all
h1#gkLogo + div {
float: right;
padding-top: 30px;
}

and remember to enable override.css option in template settings.
User avatar

GK User
Tue Dec 04, 2012 2:26 pm
Done that, and everything is fine as it should be.

Thanks a lot, Konrad.

Danjuma
User avatar
Junior Boarder

GK User
Tue Dec 04, 2012 6:52 pm
Hello Konrad,

Sorry to bother you again.

I created a new position, topbar.

However, it appears centred and I need it to stretch the whole width of the site.

I will also like to give it the blue color of the site as background.

Thanks for your help.

Danjuma
User avatar
Junior Boarder

Konrad M
Wed Dec 05, 2012 12:27 pm
I couldn't locate it in source code. Did you correct ' and " ?
User avatar

GK User
Wed Dec 05, 2012 1:41 pm
It is in logo.php.

If you view the site now, you will see it showing a date module.

Thanks
User avatar
Junior Boarder

Konrad M
Thu Dec 06, 2012 11:17 am
Please add some id to div tag. In logo.php. For example "mybanner". Then please add to override.css
Code: Select all
#mybanner {
float: left;
width: 1020px;
}
User avatar

GK User
Thu Dec 06, 2012 6:35 pm
Thanks. How do I create the id?

This is what I have in logo.php. I named the new position 'topbar'

<?php if($this->modules(‘topbar’)) : ?>
<div>
<jdoc:include type=”modules” name=”topbar” style=”<?php echo $this->module_styles['topbar']; ?>” />
</div>
<?php endif; ?>
User avatar
Junior Boarder

Konrad M
Fri Dec 07, 2012 6:55 am
Change your code to this one:
Code: Select all
 <?php if($this->modules('topbar')) : ?>
<div id="mybanner">
<jdoc:include type="modules" name="topbar" style="<?php echo $this->module_styles['topbar']; ?>" />
</div>
<?php endif; ?>
User avatar

GK User
Fri Dec 07, 2012 10:18 pm
Ok. Thank you Konrad.
User avatar
Junior Boarder


cron