![]() |
"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?
|
I'm not sure if it will work, but give it a try:
PHP Code:
|
Yes, it does, thanks. Sorry to be seem like somewhat of a pest, but I should have thought it out a little more...Is there a way to compress it down so that you don't have the entire hostname as one line thus messing up the tables, or a way just for their domain to be shown? Your help is really appreciated, it's helped a lot!
|
PHP Code:
|
Hum, that puts like *.ip123.aol.com, is there a way to have it once it reaches the 16 character limit just hop down to another line so it still shows the full hostname, but doesn't do it all in one line?
|
All times are GMT. The time now is 08:06 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:
|