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

rehash command not in bash

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

Post a reply
18 posts • Page 1 of 2 • 1, 2

Postby qneal78710 » Thu Dec 13, 2007 1:53 am

I am trying to create rooms on the utChat app, but I can't because I can't use the rehash command on my linux box. I have the bash command. How can i update my tables in the bash environment so that this application can accept my new rooms?
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby OldWolf » Thu Dec 13, 2007 4:53 pm

When we mention the rehash command, we're not referring to a server command. Type /rehash into your chatroom. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby qneal78710 » Thu Dec 13, 2007 5:39 pm

I've run rehash in 3 different ways while logged in as 'admin'...rehash, ./rehash, and /rehash. I get a message saying "Your are not allowed to run the rehash command". I sent you a print screen of what I'm seeing in your email box
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby OldWolf » Fri Dec 14, 2007 3:31 am

I took a look at your screen shot, and you're not actually logged in as admin. Let me explain:
Right now, you have your username as "admin"... this actually doesn't do anything at all. Your name is only relevent if you're using the identify command.
What you need to do is actually be an admin in the chat. There are three ways to do this:
1. Make everyone admin by setting the isadmin parameter to true, OR if you use a registration system of some kind you can use that to set it up.
2. Use the admins parameter, and set up an array with username/password as key/value. When you set this up, you'll then go into the chat and set your nick to the username, then type /identify password... replacing password with your password.
3. Set the firstisadmin parameter to true, and be the first one to go into the chat.

For 1 and 3 you could set them as mentioned, and then change the parameter once everything is working.

You'll know your admin because the little avatar by your name will be a shield instead of a person.

Hope that helps,
OldWolf
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby qneal78710 » Fri Dec 14, 2007 8:53 am

wow wow wow
that worked for me. The only problem is that it rehash still didn't change the name of the chat room from utchat to Qtopolis nor did it change the theme. I think I need to set these values in the advance tab. You're really good, is there someplace on the web you would know to use this command or do I just need to rtfm more?
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Fri Dec 14, 2007 9:03 am

I also want to use the users real name to show in the box on the righthand side...can I just put this in the advance section:
$params['nickmeta'] = array('realname'=>'');

then hit the rehash?
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Fri Dec 14, 2007 9:09 am

Chat room name changed. Thanks I think I know how this works. Let me try to add the realname feature
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Fri Dec 14, 2007 9:21 am

$params['nickmeta'] = array('realname' => ' ');

This command does not seem to set the realname to the user, do you know why?
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Fri Dec 14, 2007 9:27 am

I've use all variations possible to show the realname for the user and nothing works. Here is the last command I tried:
$utparams['nickmeta'] = array('realname' => ' ');
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Fri Dec 14, 2007 9:33 am

okay, so this command:
$utparams['nickmeta'] = array('realname' => ' ');

Kind of works. when I click on my name I see "realname" but no name is next to this
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby OldWolf » Fri Dec 14, 2007 9:53 pm

qneal78710 wrote:You're really good, is there someplace on the web you would know to use this command or do I just need to rtfm more?

Well, there's a parameter list here on the site (the link is on the menu on the left). But mostly, I've just become real familiar with the software and with common problems. :)

qneal78710 wrote:okay, so this command:
$utparams['nickmeta'] = array('realname' => ' ');

Kind of works. when I click on my name I see "realname" but no name is next to this

Uh, well, you need to actually set the value for real name. Right now, your passing an empty value. :P

Code: Select all
$params['nickmeta'] = array('realname' => 'Their real name goes here');

or
Code: Select all
$real_name_variable = 'My Real Name';
$params['nickmeta'] = array('realname' => $real_name_variable);
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby qneal78710 » Fri Dec 14, 2007 10:48 pm

question:

I understand what you are saying. Here is what i wanted to do. Right now when a user logs on, the chat program picks up that persons username and shows it in the chat room. Where is it getting this username from? The is a variable somewhere that gives this information out and I want to know where it is. I can't know everybody's real name that gets on my website and assign a value to it.


thanks

I've been checking all day for your response...thanks for helping me
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby OldWolf » Sat Dec 15, 2007 11:39 pm

I'm not sure I understand what you mean, but to me it sounds like your talking about usernames, not anything having to do with the nick_meta parameter.

For usernames:
When the user enters a chatroom that doesn't assign a username, the recieve a pop-up box that asks them to input their desired username.

If, however, you wanted to assign them a username and not allow their input, you would use the nick and frozen_nick parameters.

Code: Select all
$params['nick'] = 'Nick Name';
$params['frozen_nick'] = true;

Alternatively, you could replace 'Nick Name' with any variable or string. Also, if you leave off the frozen nick parameter or set it to false, they will have the option to change their nick from what you assigned using the /nick command.

I'm not sure what you mean by "I can't know everybody's real name that gets on my website and assign a value to it." Hopefully I've answered your question.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby qneal78710 » Sun Dec 16, 2007 12:13 am

What I meant was this...you know how when you login to the chat room, your username is already assigned to you be default. Well I would like to know how this was done and also how to get the persons real name as their chatroom name and not the username or both username and realname show up. I have no idea where the 'realname' variable comes from as right now the chat room gives the user their username that they use to login to my website.


Q
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Postby qneal78710 » Sun Dec 16, 2007 6:55 am

I see what you are saying now. Right now I don't allow the option to choose a username. This chat room by default assigns them a name by looking at some array on my server and sees there username on the website site. For example:

When I login to my website, my username is qneal, but my real name is Quinton Neal. So when I click on the chatroom tab, it opens up and I see that the chat room has "qneal has join television chatroom".

Well how does the chatroom application know my username is qneal? If I can find that out I could set the chatroom to search for my real name and have "Quinton Neal has joined television chatroom" when I log into the chatroom. That's all I'm saying. I want to have the real name of the person who logs into the chatroom to show up.

You've been a big help so far, especially since you're not obligated to solve my problem.


Thank You!!!!! for your help
qneal78710
Member
 
Posts: 13
Joined: Thu Dec 13, 2007 1:49 am
Top

Next

Post a reply
18 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 20 guests

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