[SOLVED] How add new module between Logo and Login|Register?

GK User
Mon Aug 29, 2011 2:04 pm
Hi,
There are many questions like this but no one reply...
Is there any way to add a module position between logo and login|register?

I think that the "hack" will be similar to the one's described here: 96-yourshop/71795-custom-add-search-align-with-cart.html but I don't find where add the new position created in templateDetails.xml

I hope someone reply...
Ciao Andrea
User avatar
Fresh Boarder

GK User
Wed Aug 31, 2011 11:32 am
Anyone?
User avatar
Fresh Boarder

GK User
Wed Aug 31, 2011 12:29 pm
What version of Joomla? Where is your test site URL?

These are really template modifications which is something I think Gavick will charge to do, but if you give us some basic info somebody in the community may be able to assist.
User avatar
Senior Boarder

GK User
Wed Aug 31, 2011 12:36 pm
Joomla 1.7. Actually test site isn't online.
I think that I can use the same procedure described here: 96-yourshop/71795-custom-add-search-align-with-cart.html but I don't find the right block in template/layouts/blocks/ where add the code.
So i hope that someone tell me where add the code :)
Ciao
User avatar
Fresh Boarder

GK User
Wed Aug 31, 2011 1:03 pm
Look in nav.php

Code: Select all
<div id="gkButtons">

Put your module position div before this.

Not sure what it is you want to put here, could you explain?
User avatar
Senior Boarder

GK User
Thu Sep 01, 2011 6:25 am
I tried to apply the same procedure described here 96-yourshop/71795-custom-add-search-align-with-cart.html to add a new module position between logo and login|register. Here's what I do:

1) We need to create a new module position. So open templateDetails.xml file and add (let's call it) "banner_logo" module position. Like this:
Code: Select all
<position>banner_logo</position>

2) Next we need to place this position on frontend. Open ../template/layouts/blocks/nav.php file and find this line:
Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>

replace with this code:
Code: Select all
<?php if($this->countModules('banner_logo')) : ?>
<div id="banner_logo">
<jdoc:include type="modules" name="banner_logo" style="none" />
</div>
<?php endif; ?>

<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>

3) Set style on top_search div. Open gk_stuff.css file and add this code: (you can change width...)
Code: Select all
#banner_logo {width: 220px;display:inline-block;float:right;margin: 37px 0 0 20px}

4) Go to module manager and publish mod_search on "top_search" module position. Assign to all menus.
5) Doesn't work :)

Any idea?
Ciao
User avatar
Fresh Boarder

GK User
Thu Sep 01, 2011 7:41 am
Why would you assign it to 'top_search' position when you just called the module position 'banner_logo'?

It is all quite speculative without a link to see of course, there are all sorts of variations in browser and OS display, we could be stabbing in the dark for some time. Sorry.
User avatar
Senior Boarder

GK User
Thu Sep 01, 2011 1:35 pm
Laus wrote:Why would you assign it to 'top_search' position when you just called the module position 'banner_logo'?


My mystake, I mean 'banner_logo'.
I hope that some developer help me.
Thanks :)
User avatar
Fresh Boarder

GK User
Sun Sep 11, 2011 9:23 pm
<?php if($this->countModules('banner_logo')) : ?>
<div id="banner_logo">
<jdoc:include type="modules" name="banner_logo" style="none" />
</div>
<?php endif; ?>


has to be

<?php if($this->modules('banner_logo')) : ?>
<div id="banner_logo">
<jdoc:include type="modules" name="banner_logo" style="none" />
</div>
<?php endif; ?>

then it works !;)


countModules = modules


good luck
User avatar
Senior Boarder

GK User
Mon Sep 12, 2011 11:03 am
Works great! :)
Thank you very much!
User avatar
Fresh Boarder

GK User
Tue Sep 13, 2011 12:48 pm
Your Welcome ;)
User avatar
Senior Boarder

GK User
Thu Sep 15, 2011 5:10 pm
Hello i'm attempting to do something very similar i just had one problem the module that i put in the position that i created is appearing on middle top of my page here is a snapshot:
resource horizons affiliate login error.jpg


I wanted to be on the right end where the actual login and register are supposed to go at.

Also i wasn't able to follow through this step since i couldn't find where exactly to put this code i know he says set style on top_search div. but i wasn't able to find it in gk_stuff.css
3) Set style on top_search div. Open gk_stuff.css file and add this code: (you can change width...)

#banner_logo {width: 220px;display:inline-block;float:right;margin: 37px 0 0 20px}


please help.
and thanks for the support
User avatar
Fresh Boarder

GK User
Thu Sep 15, 2011 6:41 pm
I need to see your website? do you have a url?

Then I can give you the right css settings..
User avatar
Senior Boarder

GK User
Thu Sep 15, 2011 6:44 pm
yes it is joinrhg.com/new
User avatar
Fresh Boarder

GK User
Thu Sep 15, 2011 8:27 pm
open gk_stuff.css en add the following code at de bottom:

/* custom position style */
#banner_logo { float:right; margin-top:33px; margin-right:22px;}


That will solve your problem;) I am not from Gavick support Team.
User avatar
Senior Boarder

GK User
Thu Sep 15, 2011 9:00 pm
i inserted the code into the gk_stuff.css file apparently it did not worked you think i'm missing something?
thanks again
User avatar
Fresh Boarder

GK User
Thu Sep 15, 2011 9:02 pm
nvm i just got it apparently i put that same code you gave me into the override.css file and is also under the gk_stuff.css file and that made it, thanks for everything that helped.
User avatar
Fresh Boarder

GK User
Thu Sep 15, 2011 9:11 pm
Your Welcome;)
User avatar
Senior Boarder

GK User
Fri Sep 16, 2011 9:01 am
Hei

But can modules be assigned to position "userarea", left of Login and Register buttons? Is there a need to create a new position? Joomla 1.7

Lots of empty space there! It could be used for:

1) Language switcher flags
2) Search (Who puts search at the bottom of the page, Gavick? :angry: )
3) Social Icons
User avatar
Senior Boarder


cron