Register

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Sun Apr 18, 2010 4:35 am
How do i disable the register button at the top right of the frontpage?
User avatar
Senior Boarder

GK User
Tue Apr 20, 2010 2:44 am
I am having the same problem
User avatar
Fresh Boarder

GK User
Tue Apr 20, 2010 6:17 am
I managed to get the login button disabled but not the register button, even though i disabled registration in the general configuration.
User avatar
Senior Boarder

teitbite
Tue Apr 20, 2010 12:27 pm
Hi

Please try to add this at the end of template.css file:

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

GK User
Tue Apr 20, 2010 9:27 pm
It worked perfectly, thank you. :)
User avatar
Senior Boarder

GK User
Tue May 11, 2010 10:38 am
Hi, on the same note, how do we display the different font size fonts without having to click on "tools" at the top right hand corner.

For e.g., now, we have to click on "tools" then the font size option appears, can we have the font size option appearing there upon page load?

thanks!
User avatar
Fresh Boarder

teitbite
Thu May 13, 2010 8:26 am
Hi

Please try adding this code to the template.css:

Code: Select all
#popup_tools {
display:block !important;
}
User avatar
Moderator

GK User
Fri May 14, 2010 1:32 am
Arianne wrote:
I managed to get the login button disabled but not the register button, even though i disabled registration in the general configuration.


Hi

Both Login and Register buttons can be disable on template parameters.
Check Memovie template parameters - on "Features".

Cheers ;)
User avatar
Platinum Boarder

GK User
Mon May 24, 2010 3:39 pm
teitbite wrote:
Hi

Please try adding this code to the template.css:

Code: Select all
#popup_tools {
display:block !important;
}


hi teitbite, i tried your solution but this didnt work.


For e.g., now, we have to click on "tools" then the font size option appears, can we have the font size option appearing there upon page load?

Instead of displaying "tools", i rather have the font size options available immediately. can you pls help?
User avatar
Fresh Boarder

teitbite
Tue May 25, 2010 9:40 am
[center]Image[/center]

Hi

I'm affraid that some minor changes in code must be made to get it like You want and we do not support it anymore. Please mail me private if You want to make it for You for a little fee.
User avatar
Moderator

GK User
Wed Jun 30, 2010 8:17 am
After upgrading the MeMovie template to 1.2.1 the login button that appears by the tool button stopped working, is not displayed anymore.

Now it only shows the Register button. We want to disable the Register Button and leave only the Login button since we user the register link that is included in the module that is published under the login position.

How do we disable the register button and re enable the login button.

THANKS A LOT in advace.

peace
User avatar
Fresh Boarder

teitbite
Wed Jun 30, 2010 2:56 pm
Hi

Can I see Your site?
User avatar
Moderator

GK User
Wed Jun 30, 2010 6:54 pm
I sent them, Do you need administrator access?
User avatar
Fresh Boarder

teitbite
Thu Jul 01, 2010 11:25 am
Hi

I did checked the code and looks ok. Did You published Login module at login position?

If Yes please try to modificate the code in templates/gk_memovie/layouts/blocks/header.php:

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; ?>




to this

Code: Select all
<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>
User avatar
Moderator

GK User
Tue Jul 06, 2010 4:26 pm
Here is all the code in our templates/gk_memovie/layouts/blocks/header.php

The code you said doesn't appears in this page.

Code: Select all
<?php

$user =& JFactory::getUser();
// getting User ID
$userID = $user->get('id');

$register_bool = ($this->_tpl->params->get("register_button",1) && ((!isset($_GET['task']) || !isset($_GET['option'])) || ((isset($_GET['task']) && $_GET['task'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0);

?>

<!-- MAIN NAVIGATION -->
<?php $this->loadBlock('mainnav') ?>
<!-- //MAIN NAVIGATION -->
<div id="gk-header">
<?php if($this->countModules('breadcrumb') || ( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) ) : ?>
<div id="breadcrumbs">
<?php if($this->countModules('breadcrumb')) : ?>
<div id="gk-breadcrumbs">
<jdoc:include type="modules" name="breadcrumb" style="raw" />
</div>
<?php endif; ?>

<?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->_tpl->params->get('login_button') == 1 && $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; ?>

<!-- POPUPS -->
<?php $this->loadBlock('usertools/login'); ?>
<?php $this->loadBlock('usertools/register'); ?>
<!-- //POPUPS -->
</div>
<?php endif; ?>

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

<jdoc:include type="message" />

<?php if($this->countModules('header1 or header2')) : ?>
<div class="static clearfix">
<?php
$h_class = '';

if($this->countModules('header1 and header2'))
{
$h1_width = (float) $this->_tpl->params->get("header1");
$h2_width = (($this->isIE()) ? 100.0 : 100.0) - $h1_width;
$h_class = ' both';
}
else
{
$h1_width = $h2_width = 100;
}
?>

<div id="header" class="head clearfix">
<?php if($this->countModules('header1')) : ?>
<div id="header1" class="header<?php echo $h_class; ?>" style="width:<?php echo $h1_width; ?>%;">
<jdoc:include type="modules" name="header1" style="gavickpro" />
</div>
<?php endif; ?>

<?php if($this->countModules('header2')) : ?>
<div id="header2" class="header<?php echo $h_class; ?>" style="width:<?php echo $h2_width; ?>%;">
<jdoc:include type="modules" name="header2" style="gavickpro" />
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</div>

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

User avatar
Fresh Boarder

teitbite
Wed Jul 07, 2010 11:35 am
Hi

Please take a closer look. I can see this (a little bit changed, but idea remains).
User avatar
Moderator

GK User
Sun Jul 11, 2010 3:09 pm
Thanks teitbite we found the code, but the popups stopped working. Also the tools link stopped working.

How can it be fixed?
User avatar
Fresh Boarder

teitbite
Mon Jul 12, 2010 12:42 pm
Hi

Can You please show me what changes exacly did You make?
User avatar
Moderator

GK User
Mon Jul 12, 2010 6:30 pm
From 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->_tpl->params->get('login_button') == 1 && $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; ?>


To 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>

<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>
User avatar
Fresh Boarder

teitbite
Tue Jul 13, 2010 11:58 am
Hi

So the problem was a little bit diffrent form the start I think. Please send me joomla panel access.
User avatar
Moderator

GK User
Tue Jul 13, 2010 4:04 pm
Sent
User avatar
Fresh Boarder

teitbite
Wed Jul 14, 2010 11:11 am
Hi

Sorry I could not found the reason of it either. Please try upgrade the teplte to the latest version and than I'll try again.
User avatar
Moderator

GK User
Wed Jul 14, 2010 5:09 pm
what files have to be upgraded... the whole package?

I already did the upgrade but it changed everything, so we rolled back.

Thanks
User avatar
Fresh Boarder

teitbite
Thu Jul 15, 2010 1:36 pm
Hi

If You remember where You made a changes, please upgrade the whole files and than copy the changed code.

You can also try to replace whole files, but it can be bad for the site either, so I suggest the first advice.
User avatar
Moderator

GK User
Fri Jul 16, 2010 6:41 pm
Already replaced all the files but then appeared a white border on every mod_news_pro_gk1, so we rolled back the update.

Can you help us with this? about the white border?
User avatar
Fresh Boarder

teitbite
Mon Jul 19, 2010 1:40 pm
Hi

Of cours I'll help but I need to see the site with this white borders around NSP.
User avatar
Moderator


cron