Can't switch off register

Questions related to the configuration of Joomla, Templates, and Security related questions/issues
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Sep 28, 2009 11:52 pm
I have disabled the login module as I got spammed.
However I cannot switch off the register part.

My Site

Can anyone help?

Thanks,

Johnnypict
User avatar
Expert Boarder

GK User
Tue Sep 29, 2009 2:16 am
Hi

You can disable both (login and register buttons) on template parameters.

Cheers ;)
User avatar
Platinum Boarder

GK User
Tue Sep 29, 2009 9:59 am
Sorted thanks.

Johnnypict
User avatar
Expert Boarder

GK User
Mon Oct 12, 2009 7:17 am
Is it possible to make registration button to load jomsocial's registration form?
User avatar
Fresh Boarder

GK User
Mon Oct 12, 2009 5:31 pm
yes, you can change url in index.php file.
User avatar
Administrator

GK User
Tue Oct 13, 2009 8:48 am
dziudek wrote:
yes, you can change url in index.php file.


What URL under what index.php file??? Because we tried under the template's index.php file and there's nothing referring to the registration form.

Thanks
User avatar
Fresh Boarder

GK User
Tue Oct 13, 2009 1:34 pm
you can do it in fragment:
Code: Select all
            <?php if($register_button && ((!isset($_GET['task']) || !isset($_GET['option'])) || ((isset($_GET['task']) && $_GET['task'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0) : ?>   
            <span id="register_btn<?php if(!$login_button || $this->countModules('login') == 0) echo '_noborder'; ?>"><a href="<?php echo $this->baseurl; ?>/index.php?option=com_user&task=register"><?php echo JText::_('REGISTER'); ?></a></span>
            <?php endif; ?>
User avatar
Administrator

GK User
Tue Oct 13, 2009 8:33 pm
dziudek wrote:
you can do it in fragment:
Code: Select all
            <?php if($register_button && ((!isset($_GET['task']) || !isset($_GET['option'])) || ((isset($_GET['task']) && $_GET['task'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0) : ?>   
            <span id="register_btn<?php if(!$login_button || $this->countModules('login') == 0) echo '_noborder'; ?>"><a href="<?php echo $this->baseurl; ?>/index.php?option=com_user&task=register"><?php echo JText::_('REGISTER'); ?></a></span>
            <?php endif; ?>


We are using Icki sports template and there isn't any place with that code. The code we found is this:

Code: Select all
         <?php if($register_button && ((!isset($_GET['task']) || !isset($_GET['option'])) || ((isset($_GET['task']) && $_GET['task'] != 'register') || (isset($_GET['option']) && $_GET['option'] != 'com_user'))) && $userID == 0) : ?>   
         <div id="popup_register">
            <div id="close_button_register"></div>
            <div class="top">
               <script defer="defer" type="text/javascript" src="<?php echo $url->root(); ?>media/system/js/validate.js"></script>
               <script defer="defer" type="text/javascript">Window.onDomReady(function(){document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); }   );});</script>
               <form action="<?php echo JRoute::_( 'index.php?option=com_user' ); ?>" method="post" id="josForm" name="josForm" class="form-validate">
               
               <table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
               <tr>
                  <td width="30%" height="40">
                     <label id="namemsg" for="name">
                        <?php echo JText::_( 'NAME' ); ?>:
                     </label>
                  </td>
                    <td>
                       <input type="text" name="name" id="name" size="40" value="" class="inputbox required" maxlength="50" /> *
                    </td>
               </tr>
               <tr>
                  <td height="40">
                     <label id="usernamemsg" for="username">
                        <?php echo JText::_( 'USERNAME' ); ?>:
                     </label>
                  </td>
                  <td>
                     <input type="text" id="username" name="username" size="40" value="" class="inputbox required validate-username" maxlength="25" /> *
                  </td>
               </tr>
               <tr>
                  <td height="40">
                     <label id="emailmsg" for="email">
                        <?php echo JText::_( 'EMAIL' ); ?>:
                     </label>
                  </td>
                  <td>
                     <input type="text" id="email" name="email" size="40" value="" class="inputbox required validate-email" maxlength="100" /> *
                  </td>
               </tr>
               <tr>
                  <td height="40">
                     <label id="pwmsg" for="password">
                        <?php echo JText::_( 'PASSWORD' ); ?>:
                     </label>
                  </td>
                    <td>
                       <input class="inputbox required validate-password" type="password" id="password" name="password" size="40" value="" /> *
                    </td>
               </tr>
               <tr>
                  <td height="40">
                     <label id="pw2msg" for="password2">
                        <?php echo JText::_( 'VERIFY_PASSWORD' ); ?>:
                     </label>
                  </td>
                  <td>
                     <input class="inputbox required validate-passverify" type="password" id="password2" name="password2" size="40" value="" /> *
                  </td>
               </tr>
               <tr>
                  <td colspan="2" height="40">
                     <p class="information_td"><?php echo JText::_( 'REGISTER_REQUIRED' ); ?></p>
                  </td>
               </tr>
               </table>
                  <button class="button validate" type="submit"><?php echo JText::_('REGISTER'); ?></button>
                  <input type="hidden" name="task" value="register_save" />
                  <input type="hidden" name="id" value="0" />
                  <input type="hidden" name="gid" value="0" />
                  <?php echo JHTML::_( 'form.token' ); ?>
               </form>
            </div>
            <div class="bottom"></div>
         </div>
         <?php endif; ?>
User avatar
Fresh Boarder

GK User
Thu Oct 15, 2009 1:43 am
you show me only register form - please search after this part of code ;)
User avatar
Administrator


cron