vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   Is the VB Chat turned OFF?? (https://vborg.vbsupport.ru/showthread.php?t=100677)

David Copeland 11-13-2005 12:04 AM

Is the VB Chat turned OFF??
 
I went to www.vbulletin.org and click on the upper right link tiltled CHAT. The applet loaded, and although I was logged in with my user name showng, inside the chat box it said:

Looking up your hostname

Found your hostname (cache)


That nickname is erroneus. Enter another one.

Ramsesx 11-13-2005 12:12 AM

I tried, no problem (from germany)

Brad 11-13-2005 05:12 AM

Sounds like your username doesn't play well with the irc server. If you get that error type "/nick nicknamehere" (without the quotes, replace nicknamehere with the nick you want to use).

Club3G 11-13-2005 05:36 AM

I use the same Chat, and on my IRC server (EFNet) from what I can tell names with spaces aren't allowed. The applet is setting your nick as "David Copeland", which is why it's bouncing you.

Brad, if you come up with a way to truncate spaces, I'd be mucho appreciative of seeing how you do it. :)

Marco van Herwaarden 11-13-2005 06:21 AM

Quote:

Originally Posted by Club3G
Brad, if you come up with a way to truncate spaces, I'd be mucho appreciative of seeing how you do it.

If you mean to remove spaces inside names, you could use simply:
PHP Code:

$name str_replace(" """$name); 


eXtremeTim 11-13-2005 06:52 AM

Quote:

Originally Posted by MarcoH64
If you mean to remove spaces inside names, you could use simply:
PHP Code:

$name str_replace(" """$name); 


Darn I got beat to it lol.

Club3G 11-13-2005 07:04 AM

Aah, outstanding, thanks. :D I've no idea how to get php to actually pull the vb name variable and stuff it into $name, but I'll look into doing it. :D

(Sorry for turning this into an impromptu quick hack support discussion, lol)

Dean C 11-13-2005 09:12 AM

Quote:

Originally Posted by MarcoH64
If you mean to remove spaces inside names, you could use simply:
PHP Code:

$name str_replace(" """$name); 


Or better yet :D

PHP Code:

$name preg_replace('/[^A-Za-z0-9-_`\[\]]/i'''$name); 


Lea Verou 11-14-2005 09:17 AM

Quote:

Originally Posted by Dean C
Or better yet :D

PHP Code:

$name preg_replace('/[^A-Za-z0-9-_`\[\]]/i'''$name); 


Ahh those regular expressions... They are too difficult :(

Brad 11-14-2005 09:31 AM

At first yes, but once you get the hang of them they become very powerful. :)


All times are GMT. The time now is 08:44 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.01826 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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