phpMiX.org :: Open Source eXperiments

 
Thanks for posting mod + Username taken error !
Select messages from
# through # FAQ
[/[Print]\]
 
phpMiX.org -> Thanks for Posting

#1: Thanks for posting mod + Username taken error ! Author: djjonde PostPosted: Mon Feb 21, 2005 4:48 pm
    —
Hi,

When using your great thanks for posting mod with mx-system there is a little problem.

Everything works well when user is logged in, but when user is logged out
and is trying to fill contact us page, it works only if he/she enters username not used in site.

I know that this is because it uses phpBB system but is there any possibility to prevent this from happening or do I need to do whole new module for this?

Br,
Dj
 

#2: Re: Thanks for posting mod + mx-system Author: markus PostPosted: Mon Feb 21, 2005 5:32 pm
    —
Well, there could be made an additional hack to workaround this...

Try this:

Code:
#
# ---[ OPEN ]----------
#
phpbb/includes/functions_post.php
#
# ---[ FIND ]----------
#
$result = validate_username($username);
#
# ---[ AFTER ADD ]----------
#
//+MOD: Contact Us Extension
if ($result['error'] && $result['error_msg'] == $lang['Username_taken'])
{
   $username = '( '.$username.' )';      // Try to guess another username...
   $result = validate_username($username);
}
//-MOD: Contact Us Extension
#
# ---[ SAVE ]----------
#


Question
 

#3: Re: Thanks for posting mod + Username taken error ! Author: djjonde PostPosted: Mon Feb 21, 2005 6:06 pm
    —
Thanks, it works!

Br,
Dj
 




phpMiX.org -> Thanks for Posting


output generated using printer-friendly topic mod. All times are GMT + 1 Hour

 
Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group