New module position, above the search

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 Mar 31, 2013 4:46 pm
Reply with quote
Report this post
Hello,

I am trying to add a new module above the Search.

I have been following this topic
https://www.gavick.com/documentation/jo ... -position/

So, the position is now available in the administrator, but I think I am having problems with the code I have to add to the "default.php"

I don't know exactly where to paste the code, so I have added it among other modules, and I have added this code (my modules name is "top"):

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


When I added this, I have made a menu and placed it in the "top" module, but nothing shows up.

Any help would be very appreciated.

Thank you.
User avatar
Junior Boarder

teitbite
Mon Apr 01, 2013 3:30 pm
Reply with quote
Report this post
Hi

For start please try replace Your code with just:

Code: Select all
<jdoc:include type="modules" name="top" />


Publish a module there ans show me Your site.
User avatar
Moderator

GK User
Mon Apr 01, 2013 3:44 pm
Reply with quote
Report this post
Hello teitbite,

Ok, I have added this code you wrote, and published a menu in the "top" module position.

I am sending the site and passwords for it to you now. Thank you so much.
User avatar
Junior Boarder

teitbite
Tue Apr 02, 2013 4:01 pm
Reply with quote
Report this post
Hi

I haven't got the access. At least cannot see it in PM or mail. Can You please send it one more time ?
User avatar
Moderator

GK User
Tue Apr 02, 2013 4:12 pm
Reply with quote
Report this post
I'm sorry.

How about now?
User avatar
Junior Boarder

teitbite
Wed Apr 03, 2013 8:24 pm
Reply with quote
Report this post
Hi

I've checked the code and everything You've did was fine, the only problem was that a menu module was not published in new "top" position. I've published it, styled a little bit with this code:

Code: Select all
#gkTopLinks ul.menu {
    margin-top: 10px;
}

#gkTopLinks ul.menu li {
    display: inline-block;
    border-left: 1px solid #5A5A5A;
    margin: 0;
    padding: 0;
}

#gkTopLinks ul.menu li:first-child {
    border: medium none;
}

#gkTopLinks ul.menu li a {
    font-size: 11px;
    line-height: 11px;
    text-transform: uppercase;
    margin: 0;
    padding: 0 10px;
}


and You can use it now. I hope this is what You were asking for.
User avatar
Moderator

GK User
Thu Apr 04, 2013 11:53 am
Reply with quote
Report this post
Hehe, I'm a moron :D

Thank you. in the meantime I have set up a module in the lang position instead, and for now it's working fine this way, so I will try to change it back to top position later.

Because I have just put my page online, and now, all of a sudden, there is a "REGISTER" link up there? How do I remove that, where did it come from?

Please help, so no people would see it :)

Thank you.
User avatar
Junior Boarder

GK User
Thu Apr 04, 2013 12:06 pm
Reply with quote
Report this post
Oh, it was actually the register module after all, I thought it was something else because when I unpublished it, it was still there. I just moved it to another position there it's not visible :S

Anyway, you have been a big help with everything - so a big thank you one again.
User avatar
Junior Boarder

GK User
Thu Apr 04, 2013 12:21 pm
Reply with quote
Report this post
Actually, no, it's still there.... Don't have a clue how to remove this? :(
User avatar
Junior Boarder

teitbite
Fri Apr 05, 2013 7:54 pm
Reply with quote
Report this post
Hi

I do not see a register link on Your site. Can You please show me where should I look for it ? If it's about the top one I can see on a demo than a code to remove it will be:

Code: Select all
a#btnRegister { display: none; }
User avatar
Moderator

GK User
Sat Apr 06, 2013 11:32 am
Reply with quote
Report this post
Hi,

that was the register button, yes, thank you!

Later I found out that there was a simple switch button in the template manager, and all I had to do was press "No"... :facepalm:

Thank you again. :)
User avatar
Junior Boarder

teitbite
Sat Apr 06, 2013 12:12 pm
Reply with quote
Report this post
Hi

Haha. I was thinking that You have tried that button already and it wasn't reacting :) Glad it's ok now.
User avatar
Moderator


cron