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

Wordpress and PHPFreeChat Make additional Admin Problem

Integration help for Joomla, Drupal, and Wordpress

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

Post a reply
9 posts • Page 1 of 1

Postby Firemarshallbill » Thu Jan 20, 2011 9:51 pm

I am ruinning wordpress and used the plugin from WP to add phpfreechat. The chat is great, and wordpress is great. I can access admin and kick and ban etc from chat. However I want to make others ops or admins so that they can automatically come in from logging in on the main site and be moderators or admins and kick or ban.

I tried the configuration files and added the username and pass but they cannot log in the chat with the password. It says the password isnt right or something of that nature.

I tried several variables but I canno tmake other users automatic admins if I am not there. Any idea or what I hav to do to make registered site users who go to chat automatic admins?
Firemarshallbill
New member
 
Posts: 5
Joined: Thu Jan 20, 2011 9:40 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jan 21, 2011 1:17 am

Do you want all of them?

Do you want them based on WP privileges or just give to some specific user the admin flag for the chat only -> in wordpress they would be regular users?

based on that you need to provide this info in order to help you out!!
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Firemarshallbill » Fri Jan 21, 2011 1:51 am

In order for them to use chat they have to register for the Wordpress site. So some of th ose users would need admin status, but not all the chat users. I had to make the freeze_nick so that you couldnt change usernames. I would like to be able to either hard code the user or to give a role the authority to admin the chat.
Firemarshallbill
New member
 
Posts: 5
Joined: Thu Jan 20, 2011 9:40 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jan 21, 2011 1:59 am

based on WP using the following code:

Code: Select all
if ( current_user_can('publish_posts') ) {$params['isadmin'] = true;}

This would work if you installed WP as standalone and integrated it with WORDPRESS,
This wouldnt work or work for the plugin, so just test it in standalone integrated form..

Oh forgot that code would give to a registered user that has the ability to publish post in your WP to be admin in the chat...
after doing the code editing "/rehash"..
Last edited by re*s.t.a.r.s.*2 on Fri Jan 21, 2011 2:03 am, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Firemarshallbill » Fri Jan 21, 2011 3:10 am

Where would I put this code? What file? Seems like it would work.
Firemarshallbill
New member
 
Posts: 5
Joined: Thu Jan 20, 2011 9:40 pm
Top

Postby Firemarshallbill » Fri Jan 21, 2011 3:28 am

Can I change it to edit_posts or some similar function that only editors may have access to?
Firemarshallbill
New member
 
Posts: 5
Joined: Thu Jan 20, 2011 9:40 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jan 21, 2011 3:30 am

Put your code, it really helpful, index.php

author an editors does publish post, so the code would work with any of those level you choose..
Last edited by re*s.t.a.r.s.*2 on Fri Jan 21, 2011 3:32 am, edited 1 time in total.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby Firemarshallbill » Fri Jan 21, 2011 5:03 am

Hmm. The people are registered on my site and can post, all of them, so it is nt much better thanif I used registered isadmin, its the same.
Firemarshallbill
New member
 
Posts: 5
Joined: Thu Jan 20, 2011 9:40 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jan 21, 2011 5:52 am

POST is not the same as publish_post, only author , editor, admin and super admin can do..

so you got all your users can post in PAGES?

Usually wordpress user register can only read pages...
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
9 posts • Page 1 of 1

Return to Joomla, Drupal, and Wordpress (v1.x)

Who is online

Users browsing this forum: No registered users and 41 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