• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Space or underscore in room folder

This forum is now locked as we will no longer be developing the v1.x branch

Moderators: OldWolf, re*s.t.a.r.s.*2

Topic locked
3 posts • Page 1 of 1

Postby czmaster » Fri Mar 10, 2006 4:28 pm

Hello,
How can I enable the space and the underscore in the room folder (example .../data/private/chat/room_name) when it is created by the script ??
Thank you ??
czmaster
New member
 
Posts: 6
Joined: Fri Mar 10, 2006 10:25 am
Top

Postby phpfreechat » Fri Mar 10, 2006 5:17 pm

edit the src/phpfreechatcontainerfile.class.php and replace this line :
Code: Select all
$c->container_cfg_chat_dir = $c->data_private_path."/chat/".preg_replace("/[^a-z0-9]*/","",strtolower($c->channel));

by this one :
Code: Select all
$c->container_cfg_chat_dir = $c->data_private_path."/chat/".preg_replace("/[^a-z0-9_s]*/","",strtolower($c->channel));

However allowing spaces in the folder name is a bad idea... I don't guaranteed it will work well.
But underscore should not be a problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby czmaster » Fri Mar 10, 2006 5:50 pm

Indeed it doesn't work well with the space !!
Thank you !!
czmaster
New member
 
Posts: 6
Joined: Fri Mar 10, 2006 10:25 am
Top


Topic locked
3 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub