![]() |
"Unregistered" Poster Idea
On my forum I have a problem with a lot of Unregister's posting. It's extremly hard to tell who is who. I'm thinking about is there a way that if they don't type in a name, and are unregistered, that the forum could automatically just insert their IP for their name, or Anonymous1 and Anonymous2 and so on for each new poster in the same thread? It would make things quite a bit easier...
|
Not tested, but should work:
edit newthread.php and newreply.php, find: // check max images before that add: if ($ipaddress AND $postusername=='Unregistered') {$postusername=$ipaddress;} (be careful about the caps of 'Unregistered'. Its caps should be exactly as your board uses the word) That's it.. Enjoy Logician |
How do you stop people registering the name Unregistered?
Some people I have seen like to be annoying... Satan |
Add Unregistered to the banned usernames... isn't there something like that? :)
|
Thanks for the reply, anyone know about having the random username thing?
|
Not sure...
I think a "switch" statement could be used, but then again I could have been reading my "php in 24 hours" book a little to much;):D Satan |
Quote:
|
Just tried that code Logician, it works, thank you very much for the help :D
|
Also is there a way to insert their hostname instead of the IP?
|
Anyone have an idea on the Unregistered to hostname thing?
|
All times are GMT. The time now is 09:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|