vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Unregistered" Poster Idea (https://vborg.vbsupport.ru/showthread.php?t=39817)

Glock 06-13-2002 06:41 PM

"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...

Logician 06-14-2002 10:05 AM

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

Chris M 06-14-2002 03:14 PM

How do you stop people registering the name Unregistered?

Some people I have seen like to be annoying...

Satan

Admin 06-14-2002 03:15 PM

Add Unregistered to the banned usernames... isn't there something like that? :)

Glock 06-21-2002 08:38 PM

Thanks for the reply, anyone know about having the random username thing?

Chris M 06-21-2002 08:47 PM

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

Logician 06-22-2002 05:26 AM

Quote:

Originally posted by Glock
Thanks for the reply, anyone know about having the random username thing?
although possible I think it would be unnecessary because it will add an extra SQL load to your server whenever a guest posts. (You first have to check database to see what's the latest Anonymous count in this thread). Besides if you want the same ip get the same Anonymous number it requires more coding..

Glock 06-22-2002 05:49 PM

Just tried that code Logician, it works, thank you very much for the help :D

Glock 06-22-2002 05:56 PM

Also is there a way to insert their hostname instead of the IP?

Glock 06-26-2002 05:53 AM

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
  • Page Generation 0.01104 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete