ISSUE SUMMARY:
There is a way to make event creation just available to groups?
so no users can create personal events.
users will create events just if they belong to a group (which would be a group event) and have the right administrative permissions.
I am editing this post.
I like your Idea of hiding the create event button from the Event page, please review the code you sent me since it seems not working well I Still see create event button and still can create events. Also to complete the trick how to hide event button from the module "what's on your mind"? please see attached. So if shows up anywhere would not have that create event button.
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi Rafael,
By default this is not possible, but you can do the trick my remove the create new event button on event page, edit this file components/com_community/templates/jomsocial/layouts/events/base.php, find this code :
if($canCreate) { ?>
if($canCreate=='aaaa') { ?>
another thing, please you use css code as well :
.joms-postbox .joms-postbox-tab li[data-tab="event"] {
display: none !important;
}
Could you please help me??? Please read the beggining of my post because i have edited, the code you are sending me is not working, and also, could you also tellme how te get rid of the event button in the "what is in your mind"module? I have attached pictures, im the first post, please read it from the beggining. Will be waiting your answer, thanks
I provide you 2 solutions, here www.jomsocial.com/forum/events/28823-wan...ble-to-groups#140423 and here www.jomsocial.com/forum/events/28823-wan...ble-to-groups#140656 , have you applied both of them?
Ok, I just realized I gotta have patient here...
When you wrote this:
another thing, please you use css code as well :
.joms-postbox .joms-postbox-tab li[data-tab="event"] {
display: none !important;
}
you did not tell me where is the root where i should make that change ( i HAVE NO IDEA WHERE IS THE ROOT OF THAT CSS YOU ARE TALKING ABOUT)
I tried the first solution and DID NOT WORK ,
about your second solution, I HAVE NO IDEA WHERE IS THE ROOT WHERE I SHOULD MAKE THAT CHANGE, since you did not specified the root in you answer
You are really doing things hard for me Dimas I found that other Developers in this forum were really helpful faster and explain in more details their answers.
So please,:
1. Send me the root of that second code
2. Please advice that I want to hide the event button from the Event creation page which you are aware and the event button from the "whats on your mind module" I am attaching a picture again.
Please be specific about that changes and include the roots of each changes since I do not know jomsocial or coding.
Also as in every post I am sending you the jomla site information and FTP account information in case you need to take a look
Will be waiting for your answer again....
Thank you.
I am sorry, I thought you have good knowladge with the hack things regarding PHP, CSS or javascript.
Actually if you wanna edit new CSS with socialize, you can put it on "Custom Code", so it wont be replaced when you update your Jomsocial
please you change the if conditional to be like this :
if($canCreate==='aaaa') { ?> { ?>
if(1==2) { ?> { ?>
glad to know that