Author Topic: duplicate username -- reg page redraws but missing error message  (Read 9244 times)

cwy98345

  • Beginner
  • *
  • Posts: 4
Ask for help...


i use VM 1.1.2 to register users.
When user tries to use already used username, registration page redraws but no error message informs him about the problem

And i had read about the solution from LEE suggest, but seems i cannot understand because it does not fix my problem...


lwillis

  • Beginner
  • *
  • Posts: 34
Re: duplicate username -- reg page redraws but missing error message
« Reply #1 on: February 10, 2009, 17:06:45 pm »
Find the index.php file in your Joomla (Not virtuemart) template, should be in templates/you_template_name relative to your web root.

Find the bit that says
<jdoc:include type="component" />

and immediately before it, put the following:
<jdoc:include type="message" />

E.g.
<jdoc:include type="message" /><jdoc:include type="component" />

THE_AI

  • Beginner
  • *
  • Posts: 12
Re: duplicate username -- reg page redraws but missing error message
« Reply #2 on: February 19, 2009, 14:25:15 pm »
Thanks for the tip :)
Virtuemart rocks :)

Genie

  • Beginner
  • *
  • Posts: 6
Re: duplicate username -- reg page redraws but missing error message
« Reply #3 on: February 25, 2009, 06:58:45 am »
Iwillis, thanks a LOT for your help! I was having the same problem.

jp1981

  • Beginner
  • *
  • Posts: 13
Re: duplicate username -- reg page redraws but missing error message
« Reply #4 on: February 25, 2009, 08:30:08 am »
Hi,

will this also work if the Global setting is set to silent registration? For Example a user tries to register with the sam email address?

Thanks and Virtuemart is the best ;-)

Edit. Just tried it. Works 100%

Another question, is there a possibilty if the user logs in that a welcome message gets displayed. For e.g welcome [Name] somewhere on the page.


Thanks
Jp

qingpool

  • Beginner
  • *
  • Posts: 25
Re: duplicate username -- reg page redraws but missing error message
« Reply #5 on: March 04, 2009, 15:06:46 pm »
Thanks You, lwillis

Regards, Rain

theengel

  • Beginner
  • *
  • Posts: 23
Re: duplicate username -- reg page redraws but missing error message
« Reply #6 on: March 13, 2009, 18:43:40 pm »
How come this isn't working for me?  I'm using joomla 1.5.

<jdoc:include type="component" /> appears several times in my template index file.  Do I add the other code to ALL the instances???

lwillis

  • Beginner
  • *
  • Posts: 34
Re: duplicate username -- reg page redraws but missing error message
« Reply #7 on: March 13, 2009, 18:47:21 pm »
I'm surprised that there is more than one copy of <jdoc:include type="component" />.

I can only imagine that there within conditional bits of code so that only one ends up being used (In which case, yes you should add the <jdoc:include type="message" /> before all of them).

If you want, you can mail me your template's index.php file to "junk at talpa dot plus dot com" and I'll take a look and confirm - or you could just try it and see if it fixes the issue.

theengel

  • Beginner
  • *
  • Posts: 23
Re: duplicate username -- reg page redraws but missing error message
« Reply #8 on: March 13, 2009, 23:29:26 pm »
Hmmm... maybe my FTP program isn't working.  I went and edited the file in the template editor and it worked.  BTW, I did put the code in front of every instance as suggested.

Thanks willis.

_fD_

  • Jr. Member
  • **
  • Posts: 118
    • Printdesign :: Joomla! CMS Webdesign :: Apple Computer Support
Re: duplicate username -- reg page redraws but missing error message
« Reply #9 on: May 18, 2009, 13:56:02 pm »
Hello all,

i made this hack on a clean install with success. But on an other one i get an empty error message. The source code for the error message is different like following.

The bad one:
      <!-- BEGIN: CONTENT -->

      <div id="ja-contentwrap">
      <div id="ja-content">

      
                 <div ><div class="shop_error"><b>Fehler</b>: <br />
</div></div><div id="vmMainPage">

The right one:
      <!-- BEGIN: CONTENT -->
      <div id="ja-contentwrap">
      <div id="ja-content">

                        
<dl id="system-message">
<dt class="error">Fehler</dt>
<dd class="error message fade">
   <ul>
      <li>Dieser Benutzername ist leider schon vergeben! Bitte versuchen Sie etwas anderes.</li>
   </ul>
</dd>
</dl><div id="vmMainPage">

Have anybody an idea from where this differences is coming and how to fix this?

Many thanks in advance.

Best regards, Urs

bmccarthy

  • Beginner
  • *
  • Posts: 6
Re: duplicate username -- reg page redraws but missing error message
« Reply #10 on: September 17, 2010, 22:50:13 pm »
Find the index.php file in your Joomla (Not virtuemart) template, should be in templates/you_template_name relative to your web root.

Find the bit that says
<jdoc:include type="component" />

and immediately before it, put the following:
<jdoc:include type="message" />

E.g.
<jdoc:include type="message" /><jdoc:include type="component" />

Wow can't thank you enough Willis. I just so happened to stumble on this for a solution to a different problem and end up solving an issue I have been trying to figure out for a few days now. Really appreciate it.