Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

want to make events just available to groups.

9 years 8 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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

Attachments:
9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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) { ?>
replace to :
if($canCreate=='aaaa') { ?>

I hope it will help

9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

another thing, please you use css code as well :

.joms-postbox .joms-postbox-tab li[data-tab="event"] {
    display: none !important;
}

9 years 8 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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

9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:
9 years 8 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

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.

Attachments:
9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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



I already help you to apply the code, and the result like this



Do you mean like that ?

Attachments:
9 years 8 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

The first code you sent me did not work

I made the change and I still can see the create event button in the "CALENDAR" page in my site.

Attachments:
9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

please you change the if conditional to be like this :

if($canCreate==='aaaa') { ?> { ?>

or
if(1==2) { ?> { ?>

9 years 8 months ago
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

I applied the first one, It worked, thanks.

9 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

glad to know that

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW