To get access to the attachments Subscribe now

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anonymus Mode [UPDATED TO 1.1!]
#11
Thanks man, glad I could help you.
Forum Admin
Reply
#12
BTW there is a little error with this plugin when and if you have a sidebar the UID of your choice his or her user name appears instead of the fake name Tongue
Reply
#13
That is no error, MyBB does always load the username from the UID if user is not a guest (which means that the user column is a waste of reccources in all forums that do not allow guests to post).

My plugin does manually parse the posts to set the proper username but does of course not rewrite sidebars and other stuff...

Kind regards
Lennart Sauter
Forum Admin
Reply
#14
(04-12-2010, 08:48 PM)Lennart Wrote: That is no error, MyBB does always load the username from the UID if user is not a guest (which means that the user column is a waste of reccources in all forums that do not allow guests to post).

My plugin does manually parse the posts to set the proper username but does of course not rewrite sidebars and other stuff...

Kind regards
Lennart Sauter

Huh?Huh
Reply
#15
It's simple, if you make a post MyBB will store the post into the database like this, into a table "mybb_posts":
Post ID | Post Subject | UID of poster | Username of Poster
4124 | RE: Anon... | 1151 | AXVIS

This is how your post could look like.

Now, if MyBB does display the post it usually does NOT load the name from the column "Username of Poster" but instead fetches it from another table of the database, from the user table ("mybb_users"):

UID | Username | Email | Otherdata
1151 | AXVIS | @ | ....

That means no matter what username was written into the "mybb_posts" table, MyBB will load the username from the "mybb_users" table.

So if mybb_posts looks like that for example:
Post ID | Post Subject | UID of poster | Username of Poster
5656 | RE: Some... | 999 | Hello

And mybb_users looks like that:
UID | Username | Email | Otherdata
999 | Martin | @ | ....

The post author will be the user with UID 999 but with username Martin because the username is pulled from mybb_users. Username Hello will never be displayed if UID is not 0 (which means user is a guest).

Got that?

So, to prevent this, my plugin does take the post and replaces the name from the mybb_users table which is in the post content with the username from the mybb_posts table. This is only happening inside the post content, not anywhere else in the forum.

I hope you understood that, if not feel free to ask Smile

Best regards
Lennart Sauter

PS: Yeah it was quite complicated to write this plugin Wink
Forum Admin
Reply
#16
No I get it OK thanks for clearing that out Big Grin
Reply
#17
nice idea, it's better if member using this alias then their IP address as default displayed on that post Smile
Reply
#18
I'm not sure if I understand you properly...
Forum Admin
Reply
#19
Going to try this - sounds very good thanks lennart my friend - this could be very useful for alot of boards.....

Rock On Man
Reply
#20
I mean, If someone (like a member) using this anonym. And then their IP address on that post/thread will display to visitor. Normally only display IP Logged.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)