vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Registration Problem (https://vborg.vbsupport.ru/showthread.php?t=109184)

Joey805 03-01-2006 04:28 AM

Registration Problem
 
When I attempt to register a new user and use an email address that already exist the normal warning pops up like it should saying that the email address is already in use. However some reason, it displays it twice. How do I fix this so it only displays in once?

The following errors occurred during your registration:

The email address you entered is already in use. If you have forgotten your password, please click here.

The email address you entered is already in use. If you have forgotten your password, please click here.

Also, my link color to "here" is coming up blue and the background of my site is blue, therefore it doesnt appear to show up until you move your mouse over it. How do I hard code this particular link to show up a different color?

Thanks,

Joey

Nevermind, I figured out the problem.

pedroz 03-30-2006 05:02 PM

1. Remove double alert

Find in register.php
PHP Code:

        $errorlist '';
        foreach (
$userdata->errors AS $index => $error)
        {
            
$errorlist .= "<li>$error</li>";
        } 

PHP Code:

        $errorlist '';
        foreach (
array_unique($userdata->errors) AS $index => $error)
        {
            
$errorlist .= "<li>$error</li>";
        } 

2. Register template
<strong>$vbphrase[errors_occurred_during_registration]:</strong>
<ul>
$errorlist
</ul>

Play with the HTML code to do want you want!

Hope it helps... I was fixing it today!

Asi9ine 03-30-2006 05:06 PM

Heh, at least the member will get the message :)

But I am glad you sorted it out anyway.

Joey805 03-30-2006 05:13 PM

Spoke with VB support and they said it's a bug.


All times are GMT. The time now is 03:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00923 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete