Current time: 05-24-2012, 01:21 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Strange code in newreply.php [C-Imad Jomaa]
01-28-2009, 09:54 PM
Post: #11
RE: Strange code in newreply.php
Sorry, correction, they are not required to enter it maybe, but whatever is entered or left from the defaults is checked against current existing users.

forum.kde.org
Communicate.
Find all posts by this user
01-28-2009, 09:57 PM
Post: #12
RE: Strange code in newreply.php
(01-28-2009 09:54 PM)neverendingo Wrote:  Sorry, correction, they are not required to enter it maybe, but whatever is entered or left from the defaults is checked against current existing users.

Ah, right. I see your point now. The username field is by default set to "Guest". I'm not really sure if this should be considered an actual MyBB bug. Either we disable registering with the username "Guest" or we don't have a default value.
Visit this user's website Find all posts by this user
01-28-2009, 10:12 PM
Post: #13
RE: Strange code in newreply.php
Yes, either way would be good. But disabling "Guest" for registering is probably the best solution, as it prevents confusion, maybe some REAL guests fill in "Guest" again and wonder why it doesn't work. Wink

forum.kde.org
Communicate.
Find all posts by this user
01-28-2009, 10:19 PM (This post was last modified: 01-28-2009 10:20 PM by Ryan Gordon.)
Post: #14
RE: Strange code in newreply.php
Alright, so for now the solution for is to rename that user from "Guest" to something else and then put it on the banned usernames list so they can reg with it again
Visit this user's website Find all posts by this user
01-29-2009, 05:18 PM
Post: #15
RE: Strange code in newreply.php
in newreply.php find:

PHP Code:
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newreply")
{
     
$username $lang->guest;


and replace with

PHP Code:
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newreply")
{
     
$username '';


also in newthread.php find:

PHP Code:
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newthread")
{
     
$username $lang->guest;


and replace with

PHP Code:
if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newthread")
{
     
$username '';

Visit this user's website Find all posts by this user
02-04-2009, 01:31 AM
Post: #16
RE: Strange code in newreply.php
Just wanted to double check if this seems to be working for you?
Visit this user's website Find all posts by this user
02-19-2009, 07:36 PM
Post: #17
[F] Strange code in newreply.php
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication