login and register button issues in ver. 1.3

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Sat Jul 10, 2010 10:07 pm
Hello folks I just installed the latest update of the template version 1.3 and I'm having problems with the login/register buttons. The register option does not even show regardless how i set that parameter in template setting (Register button only for unregistered users) on or off it still does not show. Also in order for the login button /option to show I have to turn on the "tools" parameter.

Can you guys please help?
User avatar
Platinum Boarder

GK User
Sat Jul 10, 2010 11:00 pm
did you set modules on positions login and register ?
User avatar
Administrator

GK User
Sat Jul 10, 2010 11:15 pm
yes i did. When i set the position to login it shows the login button only. When you click that it shows the login form. When i publish the login module in register position the button register open but when I click it all it shows is the login form but not the register form
User avatar
Platinum Boarder

GK User
Sat Jul 10, 2010 11:17 pm
because on register position you should use mod_gk_register which is available in rest_files package
User avatar
Administrator

GK User
Sun Jul 11, 2010 7:04 am
that works except now the close buttons inside the login and register forms don't work to close you have to click them again.
User avatar
Platinum Boarder

GK User
Sun Jul 11, 2010 2:12 pm
So probably you have some JavaScript problems - please check your javascript console.
User avatar
Administrator

GK User
Tue Jul 13, 2010 12:50 am
How and where do i do that? Also now there is a big problem when someone is logged in the log out button disappeared. there is now where to logout
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 1:15 am
You can use Firebug on Firefox browser.
Or show us your website and let us take a quick look.
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 1:19 am
wwww.haitiliveradio.com
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 1:32 am
I can't see at first view... but try disable yoo effect plugin.

In other words, try isolate the problem by disabling temporally 3th party scripts and check if still happens.
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 2:24 am
I disabled yoo effect and a few other plugins nothing changed at all.
It used to work fine until I updated to the new template version 1.3 So I think the problem is with this version only. Please help i really need to get this working.
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 2:46 am
The problem is in your new version of the template In order for the login and register button to work properly people have to turn the tools option on in the template feature parameter. If it is turn off the close button in either the login or register form does not work. Once you login the logout button does not show so you have no way off logging out of the site. When the the tools option is onit works fine. I don't wanna let my hard work be compromised when users decide to use that tool option to increase size and change the site layout So Pleae help fix that problem.


P.S Please understand it's not because of third party script conflict. I installed a brand new joomla test site with just the core joomla stuff and the problem is
User avatar
Platinum Boarder

GK User
Tue Jul 13, 2010 11:02 pm
Help Please
User avatar
Platinum Boarder

GK User
Wed Jul 14, 2010 12:06 pm
ARE GUYS IGNORING THIS ON PURPOSE?
User avatar
Platinum Boarder

teitbite
Wed Jul 14, 2010 1:03 pm
Hi
Please send me ftp access data. I'll try to fix this on Your site and post the solution for all.
User avatar
Moderator

GK User
Wed Jul 14, 2010 9:46 pm
I have sent you the info.
User avatar
Platinum Boarder

GK User
Thu Jul 15, 2010 12:11 am
I see it's already working.
What was it?
User avatar
Platinum Boarder

GK User
Thu Jul 15, 2010 12:20 am
No it's not working properly. Like i mentioned before for it to work i have to chose to show the tools. If i don't turn the tools options on it won't work properly. When you login there is not an option to log out. And the close buttons on the login and register forms don't work. Try it yourself and you will see that. Don't turn tools on and you see it.
User avatar
Platinum Boarder

teitbite
Thu Jul 15, 2010 6:26 pm
Hi

Take a look at this code:

Code: Select all
      <?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>

      <div id="gk-tools">

         <div>

            <?php if($this->countModules('login')) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>

            <?php endif; ?>

            

            <?php if($register_bool) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>

            <?php endif; ?>

            

            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>

            <a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>

            

            <div class="gk_hide">

               <div class="gk_popup-hide" id="popup_tools">

                  <?php $this->loadBlock('usertools/tools') ?>

               </div>

            </div>

            <?php endif; ?>

         </div>

      </div>

      <?php endif; ?>




That means that login and register is not connected with tools enabled or disabled.

When You have the tools enabled only part of the code is activated:

Code: Select all
            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>

            <a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>

            

            <div class="gk_hide">

               <div class="gk_popup-hide" id="popup_tools">

                  <?php $this->loadBlock('usertools/tools') ?>

               </div>

            </div>

            <?php endif; ?>




The rest of the code according to the login or register is still being loaded.

Code: Select all
            <?php if($this->countModules('login')) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>

            <?php endif; ?>

            

            <?php if($register_bool) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>

            <?php endif; ?>



I think that having enabled it is just a coincidence. Please try to explain Your problem once again, maby I'm missing something.
User avatar
Moderator

GK User
Thu Jul 15, 2010 9:12 pm
Sir the problem is when someone log in as a user the logout button disappears which means they can't logout from the site. Also the (X= Close) button in the login and logout forms does not close the forms like it's supposed to.

If you turn tools on in the template parameters there is no problem but if you turn them off the problem is there.

Please take sometimes and check it for yourself you will see it I tried it on 2 different test sites plus my live same problem.


Let me know if you u need me to explain it further.
User avatar
Platinum Boarder

teitbite
Fri Jul 16, 2010 11:06 am
Hi

Will need also the Joomla Panel access and some dummy account to log in.

Maby You want to leave Tools ON and only hide it in css?

Like that:

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

GK User
Fri Jul 16, 2010 10:52 pm
Where do i find this code? in which file?
User avatar
Platinum Boarder

GK User
Fri Jul 16, 2010 11:47 pm
It works when i added that code to the template.css file.

I have another question thou.
When users are trying to reset their password the site generate a token and send it to them. when they put the token on the site it keeps saying invalid token all the time. Do you think it's a template related issue or a joomla problem.
User avatar
Platinum Boarder

GK User
Sat Jul 17, 2010 8:29 pm
teitbite wrote:
Hi

Take a look at this code:

Code: Select all
      <?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>

      <div id="gk-tools">

         <div>

            <?php if($this->countModules('login')) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>

            <?php endif; ?>

            

            <?php if($register_bool) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>

            <?php endif; ?>

            

            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>

            <a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>

            

            <div class="gk_hide">

               <div class="gk_popup-hide" id="popup_tools">

                  <?php $this->loadBlock('usertools/tools') ?>

               </div>

            </div>

            <?php endif; ?>

         </div>

      </div>

      <?php endif; ?>




That means that login and register is not connected with tools enabled or disabled.

When You have the tools enabled only part of the code is activated:

Code: Select all
            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>

            <a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>

            

            <div class="gk_hide">

               <div class="gk_popup-hide" id="popup_tools">

                  <?php $this->loadBlock('usertools/tools') ?>

               </div>

            </div>

            <?php endif; ?>




The rest of the code according to the login or register is still being loaded.

Code: Select all
            <?php if($this->countModules('login')) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>

            <?php endif; ?>

            

            <?php if($register_bool) : ?>

            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>

            <?php endif; ?>



I think that having enabled it is just a coincidence. Please try to explain Your problem once again, maby I'm missing something.



Hi Teitbite, where is file in the template? i am looking for to find it i couldn't able to locate this file.
User avatar
Junior Boarder

teitbite
Mon Jul 19, 2010 2:19 pm
Hi

@apanou that's a joomla bug. Please search their forum for the solution or try to update Your joomla version.

@shiberghan try templates/gk_memovie/layouts/blocks/header.php
User avatar
Moderator

GK User
Thu Aug 12, 2010 9:07 am
same problem here : www.filmzone.be
when I turn off the tools and register button in template parameters, the login-button disappears...
when I leave register or tools or both the login button shows...
I just want login-button without tools or register...
how to do this?

unpublishing the registerbutton has the login disappearing aswell

can't seem to find the right file to make the css changes..

can you please tell me what file to edit? and locationfolder?
the linenumber aswell perhaps...

sorry I have no knowledge of css at all...
User avatar
Fresh Boarder

teitbite
Thu Aug 12, 2010 4:50 pm
Hi

Try to place it at the end of template.css file :

Code: Select all
div#btn_tools {
display:none;
}
User avatar
Moderator

GK User
Thu Aug 26, 2010 2:11 am
Hey "Teitbite" that fix does not work anymore with the new version 2.0 of the template. Please helpppppppppppppppp
User avatar
Platinum Boarder

GK User
Thu Aug 26, 2010 11:22 pm
PLEASEEEEEEE HELP FIX THIS ISSUE
User avatar
Platinum Boarder

GK User
Fri Aug 27, 2010 2:18 am
Folkbear wrote:
I just want login-button without tools or register...
how to do this?


Hi

Please add this code on template.css file:

Code: Select all
#btn_tools {display:none}


Cheers ;)
User avatar
Platinum Boarder

GK User
Fri Aug 27, 2010 12:09 pm
Your fix does not work. It used to work before you guys made the version 2.0 of the template. I put it in the template css file and tools button is still showing.
User avatar
Platinum Boarder

GK User
Sun Sep 05, 2010 3:43 pm
Now that is does not make any sense that you guys don't feel the need to help fix that problem. What is the problem? Don't you guys care about fixing this issue?
User avatar
Platinum Boarder

teitbite
Mon Sep 06, 2010 1:52 pm
Hi

If there was an update please try if the tools button can be disabled via template configuration in Features.

If not the code must work:

Code: Select all
a#btn_tools {
display:none !important;
}
User avatar
Moderator

GK User
Mon Sep 06, 2010 9:56 pm
That code

Code:
#btn_tools {display:none}

used to work before . It used to hide the the tools button while it was tuned on in admin area. and that way it used to allow people to have the option to log out after they logged in.
However, since I upgraded to your latest template update it does not work anymore . i added it to the template css file no result.
Please help fix that
User avatar
Platinum Boarder

GK User
Mon Sep 06, 2010 10:27 pm
@apanou

This code does work

Code: Select all
#btn_tools{display:none!important;}
User avatar
Platinum Boarder

GK User
Mon Sep 06, 2010 10:39 pm
I put it at the bottom of the template css file does that matter where it's placed because it does not owrk for me
User avatar
Platinum Boarder

GK User
Mon Sep 06, 2010 10:49 pm
Please clear cache.
It's not possible that it's not working for you.

Or are you sure that the file is really replaced?
Check permissions on file.
User avatar
Platinum Boarder

GK User
Mon Sep 06, 2010 11:14 pm
I don't know why but i was doing it thru ftp and when I saved it was stripped so I did it in the administrator panel. it works now thnx for the solution . Now I'm waiting on the other ones
User avatar
Platinum Boarder


cron