0
Welcome Guest! Login
0 items Join Now

You are not authorized to access that page, please login...

anyone get DGM login module to work?

  • anyone get DGM login module to work?

    Posted 17 years 7 months ago
    • this is gonna be a big new login module soon, but it has some trouble playing with certain modules. It's a javascript popup login module that doesn't appear until you click on "Login" link. It makes my formatting go haywire when it's in that position. I can't figure it out.

      Anyone know how to fix it so I can put it in the upper right position? This is the extension's joomla page http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1313/Itemid,35/ and the demo page is in Russian so I can't find any help.

      I'm trying to use it in the Top module position of V3... something in that position's CSS is making my template go from 900px to full width, throwing all modules off.
    • Last Edit: 17 years 6 months ago by Adam Parker.
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • **bump**
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • A link to the site that is actually experiencing the problem would be a good place to start.
    • www.gofftech.com Web Design
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • yeah, i was reluctant since the temaplte is really off, but here you go: the module is in the "top" position where it says "Login||Register"
      clarifieddesigns.com/

      the main body should not be 100% - it should be about 900px
    • Last Edit: 17 years 6 months ago by Adam Parker.
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • When I look at the source for your site (go there, and view source), and get to the part where the hidden div for the login is, I think I am seeing a few extra /divs, it looks like this:
      </table>
      </div>
      </div>
      </div>
      </div>

      Also, when I check it with the w3 validator, I get a few errors, most of which should be inconsequential for your problem, but a few of which are /div tags that should not be there.

      Take a look at the code for the login module, my guess is that it is outputting too many closing tags, but it could also be in the template, depending on how you have set it up.
    • www.gofftech.com Web Design
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • yeah, i see it - this is the dgm module file contents:
      <?php
      /**
      * @version $Id: mod_login.php 2550 2006-10-02 00:25:34Z stingrey $
      * @package Joomla
      * @copyright Copyright (C) 2006 Joomla! Ukraine. All rights reserved.
      * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
      * Joomla! is free software. This version may have been modified pursuant
      * to the GNU General Public License, and as distributed it includes or
      * is derivative of works licensed under the GNU General Public License or
      * other free or open source software licenses.
      * See COPYRIGHT.php for copyright notices and details.
      */
       
      defined( '_VALID_MOS' ) or die( 'Restricted access' );
       
      global $mosConfig_frontend_login;
       
      if ( $mosConfig_frontend_login != NULL && ($mosConfig_frontend_login === 0 || $mosConfig_frontend_login === '0')) {
      return;
      }
       
      $url = mosGetParam( $_SERVER, 'REQUEST_URI', null );
       
      if ( strpos($url, 'http:') !== 0 && strpos($url, 'https:') !== 0 ) {
      if (strpos($url, '/') !== 0) {
      $url = '/'. $url;
      }
       
      $url = mosGetParam( $_SERVER, 'HTTP_HOST', null ) . $url;
       
      if ( isset( $_SERVER['HTTPS'] ) && ( !empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] != 'off' ) ) {
      $return = 'https://'. $url;
      } else {
      $return = 'http://'. $url;
      }
      } else {
      $return = $url;
      }
       
      $return = str_replace( '&', '&', $return );
      $registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
      $message_login = $params->def( 'login_message', 0 );
      $message_logout = $params->def( 'logout_message', 0 );
      $login = $params->def( 'login', $return );
      $logout = $params->def( 'logout', $return );
      $name = $params->def( 'name', 1 );
      $greeting = $params->def( 'greeting', 1 );
       
      if ( $my->id ) {
      if ( $name ) {
      $name = $my->name;
      } else {
      $name = $my->username;
      }
      ?>
      <form align="center" action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">
      <input type="submit" name="Submit" class="dgm_m_button_log" value="<?php echo _BUTTON_LOGOUT; ?>" /> || <? if ( $greeting ) {echo _HI;echo $name;}?>
      <input type="hidden" name="op2" value="logout" />
      <input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
      <input type="hidden" name="return" value="<?php echo sefRelToAbs( $logout ); ?>" />
      <input type="hidden" name="message" value="<?php echo $message_logout; ?>" />
      </form>
       
      <?php }
      else { $validate = josSpoofValue(1); ?>
       
       
      <script type="text/javascript" src="modules/dgmlogin/dgmlogin.js"></script>
      <div align="right">
      <table cellpadding="6" cellspacing="0" border="0" width="150" style="border-top-width:0px">
      <tr align="center">
      <td><span id="navbar_search"><a href="" accesskey="4" rel="nofollow">
      <? echo _BUTTON_LOGIN;?></a></span>||
      <?php
      if ( $registration_enabled ) {
      ?>
      <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=register' ); ?>">
      <?php echo _CREATE_ACCOUNT; ?></a>
      <?php
      }
      ?>
       
      <script type="text/javascript"> dgmmenu_register("navbar_search"); </script>
       
      </td>
      </tr>
      </table>
      </div>
      <div class="dgmmenu_popup" id="navbar_search_menu" style="display:none">
       
      <table cellpadding="0" cellspacing="0" border="0">
      <tr>
      <td class="dgmmenu_option" title="nohilite">
      <form action="<?php echo sefRelToAbs( 'index.php' ); ?>" method="post" name="login" >
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dgm_m_table">
      <tr>
      <td class="dgm_m_td_left">
      <label for="mod_login_username">
      <?php echo _USERNAME; ?>
      </label>
      <br />
      <input name="username" id="mod_login_username" type="text" class="dgm_m_inputbox" alt="username" size="20" />
      <br />
      <label for="mod_login_password">
      <?php echo _PASSWORD; ?>
      </label>
      <br />
      <input type="password" id="mod_login_password" name="passwd" class="dgm_m_inputbox" size="20" alt="password" />
      </td><td class="dgm_m_td_right">
      <a href="<?php echo sefRelToAbs( 'index.php?option=com_registration&task=lostPassword' ); ?>">
      <?php echo _LOST_PASSWORD; ?></a>
      <br />
      <input type="checkbox" name="remember" id="mod_login_remember" class="dgm_m_inputbox" value="yes" alt="Remember Me" />
      <label for="mod_login_remember">
      <?php echo _REMEMBER_ME; ?>
      </label>
      <br />
      <input type="hidden" name="option" class="dgm_m_inputbox" value="login" />
      <input type="submit" name="Submit" class="dgm_m_button" value="<?php echo _BUTTON_LOGIN; ?>" />
      </td>
      </tr>
      </table>
      <input type="hidden" name="option" value="login" />
      <input type="hidden" name="op2" value="login" />
      <input type="hidden" name="lang" value="<?php echo $mosConfig_lang; ?>" />
      <input type="hidden" name="return" value="<?php echo sefRelToAbs( $login ); ?>" />
      <input type="hidden" name="message" value="<?php echo $message_login; ?>" />
      <input type="hidden" name="<?php echo $validate; ?>" value="1" />
       
      </form>
      </td>
      </tr>
      </table>
      </div>
      </div>
      </div>
      </div>
      <?php } ?>
      I think I count 3 extra closing divs
    • Last Edit: 17 years 6 months ago by Adam Parker.
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • yep, that was it - the formatting is now correct, but the popup comes up way to the right... probably becauseof this line:
      <div class="dgmmenu_popup" id="navbar_search_menu" style="display:none">
      should I change that id to something other than "navbar_search_menu"?
    • Last Edit: 17 years 6 months ago by Adam Parker.
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • Adam Parker wrote:
      yep, that was it - the formatting is now correct, but the popup comes up way to the right... probably becauseof this line:
      <div class="dgmmenu_popup" id="navbar_search_menu" style="display:none">
      should I change that id to something other than "navbar_search_menu"?

      That might be part of the problem, especially since the JavaScript looks like it is looking for navbar_search. . .

      I think, however, that your problem is with the JavaScript and how it is handling the positioning of the divs. In the JavaScript, there will be code that will set the relative and/or absolute position of the div that the login box is in, and that code is getting confused/not playing nice with the template's layout.

      You have a couple of options. . . You can go through the JS and fix it, or you can hack the template so that the module containing the DGM login is loaded elsewhere (basically, being loaded inside nested DIV layers is likely confusing it). Since it is hidden most of the time, and since it gets positioned absolutely (by the looks of it), there is no particular reason to load it in one place vs. another, so playing with that is probably the easiest way to fix it.
    • www.gofftech.com Web Design
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • it seems to be working now. it doesn't work on my 24" LCD very well though. just poorly (if at all) tested code. It's a cool module though
  • Re: anyone get DGM login module to work?

    Posted 17 years 6 months ago
    • i hate that it it doesn't work on my 24" screen - it pops up half off the right hand screen. I'm attaching the file - any JS experts care to look at it and see if you can tell me why I appreciate it...

Time to create page: 0.057 seconds