1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Signin 1.2

User login and registration

  1. James Bond

    James Bond New Member

    How can I edit the CSS of the errors generating on registration page? Where can I find the styling for those errors?
     
  2. Nick

    Nick Well-Known Member

    In your theme's style.css

    PHP:
    .message {
        
    margin1.0em auto 1.0em auto;
        
    width90%;
        
    padding0.8em;
        
    text-aligncenter;
        
    font-size1.2em;
        
    font-weightbold;
    }

    .
    green    background-color#99FF66; }
    .yellow   background-color#fbe760; }
    .red      background-color#FF6A55; color: #ffffff; }
     
    James Bond likes this.
  3. druellae

    druellae New Member

    User Registration Problem with recaptcha

    I have Hotau-1.4.1 running with User signin 0.7 and recaptcha 0.5.

    recaptcha looks fine by testing thru admin (recaptcha_settings.php).

    However, when I try to register new user with recaptcha, it does now work right.
    What I get at
    $result = $h->pluginHook('check_recaptcha');
    two lines of return code. More specifically,
    when i put
    echo $result['ReCaptcha_check_recaptcha'];
    I get
    "sucess" and "error" in the single registration session.
    Therefore the page displays recaptcha error (came from user_signin), and also send email to the user for verification.

    Any help is appreciated.
    Thanks in advance,
     
  4. Nick

    Nick Well-Known Member

    @druellae

    I tried, but I can't duplicate this. Please explain the exact conditions (related plugins, plugin order and related settings) for this bug to be replicated. Thanks.
     
  5. druellae

    druellae New Member

    Recaptcha Issue

    Hi Nick,

    Here is the extract from system report:

    Code:
    Hotaru version: 1.4.1
    Hotaru version in database: 1.4.1
    PHP version: 5.3.2-1ubuntu4.1
    MySQL version: 5.1.41-3ubuntu12
    PHP extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, session, iconv, json, mbstring, SPL, standard, posix, Reflection, Phar, shmop, SimpleXML, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, curl, gd, mcrypt, mysql, mysqli, PDO, pdo_mysql, mhash
    
    Default site permissions:
    can_access_admin => (admin: yes, supermod: yes, default: no)
    can_login => (admin: yes, supermod: yes, moderator: yes, member: yes, undermod: yes, default: no)
    can_submit => (admin: yes, supermod: yes, moderator: yes, member: yes, undermod: mod, default: no)
    can_edit_posts => (admin: yes, supermod: yes, moderator: yes, member: own, undermod: own, default: no)
    can_delete_posts => (admin: yes, supermod: yes, default: no)
    can_post_without_link => (admin: yes, supermod: yes, default: no)
    can_comment => (admin: yes, supermod: yes, moderator: yes, member: yes, undermod: mod, default: no)
    can_edit_comments => (admin: yes, supermod: yes, moderator: yes, member: own, undermod: own, default: no)
    can_set_comments_pending => (admin: yes, supermod: yes, moderator: yes, default: no)
    can_delete_comments => (admin: yes, supermod: yes, default: no)
    can_comment_manager_settings => (admin: yes, supermod: yes, moderator: yes, default: no)
    can_search => (default: yes)
    
    Default user settings:
    new_tab =>
    link_action =>
    
    Plugins:
    1. user_signin v.0.7 (0.7) [enabled]
    2. submit v.3.2 (3.2) [enabled]
    3. vote v.2.3 (2.3) [enabled]
    4. comments v.2.6 (2.6) [enabled]
    5. categories v.1.9 (1.9) [enabled]
    6. tags v.1.8 (1.8) [enabled]
    7. post_manager v.1.0 (1.0) [enabled]
    8. comment_manager v.0.6 (0.6) [enabled]
    9. post_rss v.0.1 (0.1) [enabled]
    10. cron v.0.4 (0.4) [enabled]
    11. ego_squasher v.0.2 (0.2) [enabled]
    12. user_rankings v.0.2 (0.2) [enabled]
    13. tag_cloud v.0.3 (0.3) [enabled]
    14. media_select v.0.4 (0.4) [enabled]
    15. video_inc v.0.3 (0.3) [enabled]
    16. comment_voting v.0.2 (0.2) [enabled]
    17. bookmarklet v.0.2 (0.2) [enabled]
    18. order_by_votes v.0.2 (0.2) [enabled]
    19. save_post v.0.7 (0.7) [enabled]
    20. related_posts v.0.5 (0.5) [enabled]
    21. category_manager v.1.0 (1.0) [enabled]
    22. contact_us v.0.2 (0.2) [enabled]
    23. rpx v.0.6 (0.6) [enabled]
    24. text_widget v.0.5 (0.5) [enabled]
    25. tweet_this v.0.5 (0.5) [enabled]
    26. facebook_share v.0.3 (0.3) [enabled]
    27. buzz_it v.0.3 (0.3) [enabled]
    28. users v.2.2 (2.2) [enabled]
    29. user_manager v.1.0 (0.0) [enabled]
    30. sitemap v.0.6 (0.9) [enabled]
    31. gravatar v.0.9 (0.0) [enabled]
    32. activity v.1.1 (1.1) [enabled]
    33. autoreader v.0.5 (0.0) [enabled]
    34. search v.1.1 (0.0) [enabled]
    35. bookmarking v.0.2 (0.5) [enabled]
    36. widgets v.1.0 (1.0) [enabled]
    37. post_images v.0.7 (0.7) [enabled]
    38. recaptcha v.0.5 (0.0) [enabled]
    39. tos_antispam v.0.4 (0.0) [enabled] 
     
  6. Nick

    Nick Well-Known Member

    Don't know if it's related, but Bookmarking should always be first in the plugin order.
     
  7. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

  8. angolanmade

    angolanmade Well-Known Member

    Using the latest version of this plugin - getting error with the debug on

    Code:
     Fatal error: Call to undefined method Hotaru::debugNav() in /content/plugins/user_signin/user_signin.php on line 165 
     
  9. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    is that with Hotaru CMS 1.5.1 or 1.5.0 ?

    I will check also
     
  10. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    sorry, I will update plugin

    can you change the code in your side to be

    Code:
    if ($h->isDebug && function_exists($h->debugNav())) { print $h->debugNav(); }
    
     
  11. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    Have made a quick update
    same version number
    can you download again_
    http://forums.hotarucms.org/showthread.php?334-User-Signin-0-8
     
  12. nothingman

    nothingman Active Member

    Hi Shibuya. I'm on 1.5.0 and just updated to User Signin 0.8. Looks like the cookie issue mentioned here - users when they close a tab (browser too) are logged off.

    Apart from that, users get a CSRF error when User:
    1. Clicks "clear cookies on this domain"
    2. Enters user/pass and then click "remember"

    User does not get the CSRF error when "remember" is not clicked.
     
  13. nothingman

    nothingman Active Member

    Ok, I just updated it to the latest one.
    1. On first login, user is redirected to the Registration page though the user is shown as "logged in" in the header.
    2. If the user closes the tab/browser, the user is shown as logged off. If the user refreshes the page, the user is shown a blank page. Refreshing again shows the user as logged in.
     
  14. koft

    koft New Member

    Error when registering as Numeric username

    I tried registering with username as - 12345678 and password as - 12345678. The registration was successful, but when i login it show the following error

    Notice: Trying to get property of non-object in /home8/stonefo2/public_html/blinkmylinks/libs/UserBase.php on line 140

    Fatal error: Call to a member function prepare() on a non-object in /home8/stonefo2/public_html/blinkmylinks/libs/UserBase.php on line 140

    Any clue on this, i know that you cannot register with a numeric username, but that error should be thrown in the registration page which is not happening

    can someone check on this and update me back on a solution
     
  15. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

  16. sereban

    sereban Active Member

    Attached Files:

  17. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    You may have already done this, but can you check you have your FORUM_USERNAME and FORUM_PASSWORD entered in the Admin Settings page at the bottom
     
  18. sereban

    sereban Active Member

    I understand everything)
     
  19. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    shibuya246 updated User Signin with a new update entry:

    Version 1.1

    Read the rest of this update entry...
     
  20. shibuya246

    shibuya246 Hotaru Developer Staff Member Admin

    In updating to version 1.1. of this plugin, the navigation menu for users was turned into a customisable template and the default theme reverts to using the more simpler "logout" menu link rather than the dropdown account profile links. This is to allow older themes to continue displaying correctly. If you want to add the menu link back in you can customise the copy the user_signin_navigation.php file from the user_signin plugin to your theme and add code. Here is the code that gives the dropdown account menu if you need it

    Code:
    <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="user-dropdown-toggle">
                        <span id="nav_usersettings">
                            <span class="hide">
                                User Settings
                            </span>
                        </span>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="dropdown-caret">
                          <span class="caret-outer"></span>
                          <span class="caret-inner"></span>
                        </li>
    
                        <li class="current-user" data-name="profile">
                            <?php if ($h->vars['theme_settings']['userProfile_tabs']) { ?>                        
                                <a href="<?php echo $h->url(array('user' => $h->currentUser->name . '#tab_editProfile')); ?>" class="account-nav account-nav-small">
                            <?php } else { ?>
                                <a href="<?php echo $h->url(array('page' => 'edit-profile' , 'user' => $h->currentUser->name)); ?>" class="account-nav account-nav-small">
                            <?php } ?>
                            <div class="content">
                                 
                               <?php   if($h->isActive('avatar')) {
                        $h->setAvatar($h->currentUser->id, 32, 'g', 'img-circle');
                        echo  $h->getAvatar();                                      
                    }
                                ?>
                                                                                           
                                  <b class="fullname"><?php echo $h->currentUser->name; ?></b>
                                  <small class="metadata">
                                      Edit profile
                                  </small>
                                </div>
                             
                            </a>
                        </li>
    
                        <?php $h->pluginHook('usermenu_top'); ?>
                       
                        <?php if ($h->isActive('messaging')) { ?>
                        <li class="divider"></li>
    
                        <li class="messages" data-name="messages">
                            <?php if ($h->vars['theme_settings']['userProfile_tabs']) { ?>
                                <a href="<?php echo $h->url(array('user' => $h->currentUser->name . '#inbox')) ?>">
                              <?php } else { ?>
                                <a href="<?php echo $h->url(array('page'=>'inbox', 'user' => $h->currentUser->name)) ?>">
                              <?php } ?>
                            <span class=""></span>
                            Messages
                          </a>
                        </li>                    
                        <?php } ?>                  
    
                        <li class="divider"></li>
    
                        <li>
                            <?php if ($h->vars['theme_settings']['userProfile_tabs']) { ?>
                                <a href="<?php echo $h->url(array('user' => $h->currentUser->name . '#tab_settings')) ?>" data-nav="messages">
                             <?php } else { ?>
                                <a href="<?php echo $h->url(array('page'=>'user-settings', 'user' => $h->currentUser->name )); ?>">
                             <?php } ?>
                                Settings
                            </a>
                        </li>
                        <li>
                          <a href="<?php echo $h->url(array('page'=>'logout')); ?>">Sign out</a>                  
                        </li>
    
                    </ul>
    
                </li>
    
     

Share This Page