adding a module position

AppSite - Professional Business Template for Joomla support forum.
GK User
Fri May 03, 2013 2:59 pm
hello, i added a module position exactly how explained here: http://www.gavick.com/documentation/joo ... -position/

but i think it not work, because i added it through the module manager but i can't find it in the browser...i would like to have my position next to the "userarea" but how to do?

thnks in advance
User avatar
Expert Boarder

GK User
Fri May 03, 2013 3:34 pm
Hi,
did you added name of module also in templateDetails.xml ?
User avatar
Platinum Boarder

GK User
Fri May 03, 2013 4:48 pm
Pawel F wrote:Hi,
did you added name of module also in templateDetails.xml ?


yes, i followed all the steps, but from your tutorial i can't understand how to add the position i desire
User avatar
Expert Boarder

GK User
Fri May 03, 2013 9:32 pm
What about css, try to add for this module:
Code: Select all
 border:2px solid red;padding:4px;


and publish it, you should see red box, somewhere.

after that... add here URL I will check
User avatar
Platinum Boarder

GK User
Mon May 06, 2013 1:58 pm
Pawel F wrote:What about css, try to add for this module:
Code: Select all
 border:2px solid red;padding:4px;


and publish it, you should see red box, somewhere.

after that... add here URL I will check


hi, where i should add that CSS? In which file?
User avatar
Expert Boarder

GK User
Mon May 06, 2013 10:39 pm
If you added new module what class did you used for it? Blank/Default, I don't think so? or I'm wrong.

So use and add to template.css (on the bottom)

Code: Select all
.mystyle {border:2px solid red;padding:4px;}


or add using style="border:2px solid red;padding:4px; " directly to <div> that surround you NEW module.

Code: Select all
<?php if($this->modules('myposition')) : ?>
<div style="border:2px solid red;padding:4px; ">
<jdoc:include type="modules" name="myposition" style="<?php echo $this->module_styles['myposition']; ?>" />
</div>
<?php endif; ?>


If you enable module, you should see RED BOX

IMPORTANT:
CHECK YOUR PHP CODE AGAIN DO YOU HAVE ” or " - should be "
and ' NOT ’
User avatar
Platinum Boarder

GK User
Tue May 07, 2013 11:26 am
Pawel F wrote:If you added new module what class did you used for it? Blank/Default, I don't think so? or I'm wrong.

So use and add to template.css (on the bottom)

Code: Select all
.mystyle {border:2px solid red;padding:4px;}


or add using style="border:2px solid red;padding:4px; " directly to <div> that surround you NEW module.

Code: Select all
<?php if($this->modules('myposition')) : ?>
<div style="border:2px solid red;padding:4px; ">
<jdoc:include type="modules" name="myposition" style="<?php echo $this->module_styles['myposition']; ?>" />
</div>
<?php endif; ?>


If you enable module, you should see RED BOX

IMPORTANT:
CHECK YOUR PHP CODE AGAIN DO YOU HAVE ” or " - should be "
and ' NOT ’


hi,
i put the css us up but nothing happens...look here the page where i enabled the module: http://www.weblogo.it/web/portfolio-siti i would it was on top right (where is the login area)

thanks in advance
User avatar
Expert Boarder

GK User
Wed May 08, 2013 8:28 pm
hmm, so send me a full access (super admin) to back-end + URL, I will check what's wrong exactly.
User avatar
Platinum Boarder

GK User
Wed May 08, 2013 8:32 pm
p.s.
Your templateDetails.xml - looks fine, so problem should be in "layouts/default.php" file.
User avatar
Platinum Boarder

GK User
Thu May 09, 2013 10:11 pm
First, sorry but I have to say it: You are unreasonable: Why you use Joomla 2.5.4 , this is not safe! at all. Please update to J2.5.11.
User avatar
Platinum Boarder

GK User
Thu May 09, 2013 10:14 pm
Second, without possibility to install one of those AceFTP or eXtplorer components, I can not check template file! Sorry.

or please send me your updated/modified file: gk_appsprotech\layouts\default.php
User avatar
Platinum Boarder

GK User
Fri May 10, 2013 12:35 pm
Pawel F wrote:Second, without possibility to install one of those AceFTP or eXtplorer components, I can not check template file! Sorry.

or please send me your updated/modified file: gk_appsprotech\layouts\default.php


hi pawel in attach the file

let me know
User avatar
Expert Boarder

GK User
Fri May 10, 2013 12:40 pm
i'm not sure if was attached... now with .zip
User avatar
Expert Boarder

GK User
Fri May 10, 2013 9:15 pm
Ok, now is clear, your code was fine, but place where you put it not really.

Perhaps you are wondering why I think so. if you had published your links for registration and login - then your module would have appeared. See below, do you see "if ((GK_REGISTER.....)" :

Code: Select all
<?php if((GK_REGISTER || GK_LOGIN) && !GK_COM_USERS) : ?>   
   
       <?php if(GK_LOGIN): ?>
       <div id="gkPopupLogin">   
          <div class="gkPopupWrap">
             <?php $this->loadBlock('tools/login'); ?>
          </div>
       </div>
       <?php endif; ?>
      
      <?php if($this->modules('myposition')) : ?>
<div style="border:2px solid red;padding:4px; ">
<jdoc:include type="modules" name="myposition" style="<?php echo $this->module_styles['myposition']; ?>" />
</div>
<?php endif; ?>
User avatar
Platinum Boarder

GK User
Fri May 10, 2013 9:25 pm
If I may suggest, if at this place you want to add a module, maybe use the ready position "lang".
All positions: http://joomla3.maxmark.pl/gk_appsite/im ... itions.png
p.s.
If it's still not enough, add your code below of any "if...." written in php.
User avatar
Platinum Boarder

GK User
Mon May 13, 2013 1:20 pm
Pawel F wrote:If I may suggest, if at this place you want to add a module, maybe use the ready position "lang".
All positions: ########
p.s.
If it's still not enough, add your code below of any "if...." written in php.


ok, so definetely if i would add my position in the lang position what is the code?

thanks
User avatar
Expert Boarder

GK User
Mon May 13, 2013 5:21 pm
no code, just add module in "lang" position, that's all.
User avatar
Platinum Boarder

GK User
Tue May 14, 2013 5:43 pm
Pawel F wrote:no code, just add module in "lang" position, that's all.

hi Pawel, there is not the "lang" position. from the module manager i cannot find it.

what i have to add to the code after "if...." in the default.php?

thanks
User avatar
Expert Boarder

GK User
Tue May 14, 2013 6:26 pm
That's strange, because in
gk_appsite\templateDetails.xml
there is a line with

Code: Select all
<!-- STANDARD Module Positions -->
    <position>lang</position>




Please insert it just writing in Position field.

p.s.
My (current) version of template is 2.15
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.