Thanks for posting mod + Username taken error !
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Thanks for Posting
View previous topic :: View next topic  
Author Message
djjonde
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 9

PostPosted: Mon Feb 21, 2005 4:48 pm    Post subject: Thanks for posting mod + Username taken error ! Reply with quote

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
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon Feb 21, 2005 5:32 pm    Post subject: Re: Thanks for posting mod + mx-system Reply with quote

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

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
djjonde
Apprentice
Apprentice


Joined: 19 Jun 2004
Posts: 9

PostPosted: Mon Feb 21, 2005 6:06 pm    Post subject: Re: Thanks for posting mod + Username taken error ! Reply with quote

Thanks, it works!

Br,
Dj
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Thanks for Posting All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum