tainz / CommunityBridge

A Minecraft plugin for connecting your game to your website.
https://www.spigotmc.org/resources/communitybridge.2232/
20 stars 22 forks source link

Joomla Configuration & GroupManager #194

Open EddieFriday opened 10 years ago

EddieFriday commented 10 years ago

I have lots of questions on how to use CommunityBuilder to CMS or Board Sripts. I'm not settle with xenforo but I'm more interested to configuring my joomla site to integrate it with GroupMnager.

No my question is. Can you provide a very detailed tutorial on how to configure this CommunityBridge step by step with GroupMnager.

I would love to use them both the reason that I'm more used to in GroupManager. And I hope this developer can provide me spoon feeding details on how to do it. I know that you are suh busy person in real world. But, your plugin is crucial to my server's survival.

I hope and pry that you will make some detailed configurations from Joomla to Groupmanager on how I will connect them both ways to successfully handshake them.

Please response. My xenforo query is not even completed yet.

EddieFriday commented 10 years ago

I have given up on xenforo this is os hard to config.

I would like to use this instead to JOOMLA. Can you please buy any chance you provide me a sample config for JOOMLA?

I think it will be ok since it is open source and you will be able to see the mysql data. Please Help me on this? I would love to use CommunityBridge badly.

And please document it in a very easy way so I may understand it one step at a time?

iain-davis commented 10 years ago

Here's a start: http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/pages/documentation/web-application-specific/joomla/

EddieFriday commented 10 years ago

ok I manage to follow the documentation you provided. Now What Am I going to do to make sync from In-Game via GroupManager to Joomla?

Here is my configuration YML of CommunityBridge: http://pastebin.com/nakYqtRE

And my GroupManager Configuration YML : http://pastebin.com/CAspZYH8

My main question now is How Am I going to SYNC both GroupManager & JOOMLA?

Hope you will provide me guidelines on how to do it.

Thanks is advance..

iain-davis commented 10 years ago

Hmm. First thing to do is delete your pastebin and get your mysql database password changed, since you've accidently published it on the web. Its great that you posted your config.yml but don't forget to hide the database information from the world. :)

As for group synchronization, give the updated version of the page a try: http://dev.bukkit.org/bukkit-plugins/communitybridge-fm/pages/documentation/web-application-specific/joomla/

EddieFriday commented 10 years ago

@iain-davis,

This is currently my config.yml for communitybridge : http://pastebin.com/gy3eRaM8

And my server log : http://pastebin.com/80GTtdCL

When I do a /cbsyncall command the groups did not change to the desired group that I expect.

In-Game Group is Member and Website Group is MemberPro. So When I do the /cbsyncall it did not do anything.. What did I do wrong?

And I notice some error in the console it says the following:

[23:19:43] [Server thread/ERROR]: [CommunityBridge] GroupManager should be at least version 2.1.6
[23:19:43] [Server thread/ERROR]: [CommunityBridge] Disabling features dependent on a permissions system.

but i'm using the latest build of GroupManager.

And I also noticed that in "Simple Synchronization Enabled" it says "FALSE" in which it is already true or enabled in the communitybridge config.yml

[00:15:03] [Server thread/INFO]: [CommunityBridge] Simple synchronization enabled       : false

Does this affects the group sync? Is this the reason why the group from in-game and webapp did not change?

Or I did something wrong to my config? Please check if you have time? I really need to make this work. For I love to use your Plugin in my server. It opens lots of possibilities to it.

iain-davis commented 10 years ago

The UUID release of CommunityBridge need UUID compatible versions of the permissions plugins. You'll need to obtain a newer version of GroupManager.

EddieFriday commented 10 years ago

But I used the latest build of GroupManager which is version [2.14]. Why is this happening? Please help me on this why is it still having the issue?

Please refer below the GroupManager Version that I'm using: http://ci.ess3.net/repository/download/bt9/6239:id/Essentials-gm.zip%21/EssentialsGroupManager.jar

This is my CommunityBridge LOG : http://pastebin.com/FByRZqkS

And I already enabled the simple-synchronization in ways below:

simple-synchronization:
  # Set this to true for simple synchronization
  enabled: true

Image and video hosting by TinyPic

Simple-Synchronization still says FALSE even if in the config.yml it is already TRUE.

iain-davis commented 10 years ago

As group synchronization is dependent on having a permissions system, it gets disabled when the version requirement isn't met.

The version string of the GroupManager you attached appears to be 2.0; I'd confirm that it definitely is the "latest". It is possible they aren't updating the plugin description file when they bump versions which will create some problems...

iain-davis commented 10 years ago

Latest appears to be 2.1.28: http://ess.ementalo.com/viewLog.html?buildId=lastSuccessful&tab=artifacts&buildTypeId=bt10&guest=1#!

EddieFriday commented 10 years ago

The above link you provided did solve the connection.

But my question now is why is it still not sync? After doing the /cbsync and /cbsyncall it seems that the In-Game Group as MEMBER did not sync in Joomla as SPOTTER.

So far this is the remaining issue that I have.

Which will depend the GROUP Change, the In-Game Group Change or the Web APP Group Change?

iain-davis commented 10 years ago

First time it sees a player it will take the web-application groups as the actual. Thereafter the synchronization is two-way.

iain-davis commented 10 years ago

If you have the configuration option log-level set to 'all', the output when a player connects may be helpful in diagnosing what is going on.

EddieFriday commented 10 years ago

Yes I set it to ALL. Here is the log when a player connects to the server:

[18:42:36] [Server thread/INFO]: [CommunityBridge] SELECT `mc_users`.`id` FROM `mc_users` WHERE LOWER(`username`) = LOWER('JamesSpider') ORDER BY `id` DESC
[18:42:36] [Server thread/INFO]: JamesSpider[/127.0.0.1:56586] logged in with entity id 361 at ([SpawnArea] -8.38209250261069, 65.0, 0.5774413996034047)
[18:42:36] [pool-3-thread-7/INFO]: [CommunityBridge] SELECT `group_id` FROM `mc_user_usergroup_map` WHERE `user_id` = '19' 

Example account:

JamesSpider : In-Game Group is Member and in Joomla Group he is Spotter. [Spotter which is higher than the group level Member]

When doing a /cbsync or /cbsyncall still nothing happens. I hope you can help me on this part. This is just the missing feature so that it will be solved.

iain-davis commented 10 years ago

Hmm. I wonder if the player state file is out of sync... I wouldn't have thought so since synchronization wasn't on until GroupManager was changed.

Try deleting the plugins/CommunityBridge/Players directory and try again. After that if it doesn't work, post the contents of plugins/CommunityBridge/Players/[some crazy filename].yml for us to look at.

EddieFriday commented 10 years ago

After deleting the plugins/CommunityBridge/Players directory communitybridge responded with the INFO below: [20:56:56] [Server thread/INFO]: [CommunityBridge] SELECT mc_users.id FROM mc_users WHERE LOWER(username) = LOWER('JamesSpider') ORDER BY id DESC [20:56:56] [Server thread/INFO]: JamesSpider[/127.0.0.1:50588] logged in with entity id 361 at ([SpawnArea] -8.38209250261069, 65.0, 0.5774413996034047) [20:56:56] [pool-3-thread-7/INFO]: [CommunityBridge] SELECT group_id FROM mc_user_usergroup_map WHERE user_id = '19' [20:56:56] [pool-3-thread-7/INFO]: [CommunityBridge] Moved player 'JamesSpider' to permissions group 'Spotter' from ''.

The problem is when I do /list and /manwhois commands, still JamesSpider Account still remains as MEMBERPRO IN-GAME

Here is the content of the YML file from plugins/CommunityBridge/Players/

last-known-name: JamesSpider
webapp:
  primary-group-id: ''
  group-ids:
  - '21'
permissions-system:
  primary-group-name: MemberPro
  group-names: []

And I also noticed this blank QUOTATION in the photo below. Maybe it is the reason because it did not detect the Group Level MemberPro?

Image and video hosting by TinyPic

[21:21:24] [pool-3-thread-14/INFO]: [CommunityBridge] Moved player 'JamesSpider' to permissions group 'Spotter' from ''.
iain-davis commented 10 years ago

Turns out there was a subtle bug that only occurs when primary synchronization is turned off. I'm hoping to release a new version sometime this weekend which has a fix in it. Stay tuned...

EddieFriday commented 10 years ago

Thanks.. I'm wildly excited to have it and make it work for my server. Such a great project of yours. I'll be watching and hoping.

EddieFriday commented 9 years ago

What happened to this? Any Update?

TEKAA92 commented 9 years ago

Duke & I have taken over this project, and are working my way down from the top, but I hope to have everything sorted as fast as possible.

EddieFriday commented 9 years ago

Oh Thanks.

EddieFriday commented 9 years ago

Does This Bug been resolved now? I hope to hear from you soon?

EddieFriday commented 9 years ago

Please support Joomla if it is ok to ask? With proper configuration and how to?

TEKAA92 commented 9 years ago

@EddieFriday It has not yet been resolved. I have been really busy with work and family, so I haven't made much progress on any fronts. I apologize for this.