We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Removing "Who's Attending" & "Wall Comment" In The Event Plugin [Answered] | Forum

Topic location: Forum home » Support » General Questions
Wilson
Wilson Aug 15 '14
I'm trying to get rid of this "Who's Attending" area in the "Event" plugin (see attachment) as this project dose not need this feature.

Anyone know what code and where I need to edit this?

Thanks,
Wilson 
The Forum post is edited by Wilson Aug 20 '14
Attachments:
  whos-attending.jpg (13Kb)
ross Team
ross Aug 18 '14

.userList{

display: none

}


apply this style in Theme Customizer. 

Wilson
Wilson Aug 18 '14
hey Ross,

Thanks a lot, worked great! I was wanting to take out the "wall" in the event area as well...I tried

.userWall{

display: none

}

but that of course that did not work. Could you help on this too? Or should I post a new topic
'Removing "Wall Comment" Area In The Event Plugin'?

Wilson

ross Team
ross Aug 18 '14
Can you please provide a screenshot and highlight the area which you want to remove? So I could tell you exactly. Or you just want Wall to be gone from the event section?



The Forum post is edited by ross Aug 19 '14
Wilson
Wilson Aug 19 '14

hey Ross,

Sure I can give you a screenshot...sorry about that! I want to just post an event and that's it. Don't need the wall & comment area at all. This is just to inform others of a event.


see screenshot: event-wall

Wilson

Attachments:
  event-wall.jpg (29Kb)
Wilson
Wilson Aug 19 '14
hey Chris_w

I tested the code both ways:

.userList{ display: none }

and

.userList{

display: none

}

on a different site using "My Diary" thinking maybe that was why it was not working for you but it worked fine both ways. Did you enable 

define('OW_DEV_MODE', false); to "TRUE"

to see changes made?

Wilson

The Forum post is edited by Wilson Aug 19 '14
Wilson
Wilson Aug 19 '14
Will have to wait for higher help...beyond me.

Wilson
ross Team
ross Aug 19 '14
Willson, you will need to comment couple of things


/ow_plugins/event/views/controllers/base_view.html


{*$comments*} you need to comment this at the bottom of the code</div></div>{/if}
{add_content key='events.content.view.bottom' eventId=$info.id}



ow_plugins/event/controllers/base.php


 // $cmntParams = new BASE_CommentsParams('event', 'event');           //$cmntParams->setEntityId($event->getId());        //$cmntParams->setOwnerId($event->getUserId());        //$this->addComponent('comments', new BASE_CMP_Comments($cmntParams));        //$this->addComponent('userListCmp', new EVENT_CMP_EventUsers($event->getId()));


all this code needs to be commented out. or you can just replace it with this one as it is already commented out. 


Wilson
Wilson Aug 20 '14
Hey Ross,

Sorry...this would be for 1.6.0 version as I was looking over /ow_plugins/event/views/controllers/base_view.html and it has </div></div>{/if} but no
{add_content key='events.content.view.bottom' eventId=$info.id} so I looked over at 1.7 ad I saw the code there.

Sorry guess I need to make sure what versions I'm asking question on...as I do still use both 1.6.0 and 1.7

Wilson
The Forum post is edited by Wilson Aug 20 '14
ross Team
ross Aug 20 '14
Just comment {$comments} like this {*$comments*} i just paste this {add_content key='events.content.view.bottom' eventId=$info.id} for you to locate the code


it should be at the bottom of the code

Wilson
Wilson Aug 20 '14
Hey Ross,

bingo!...very kool and much needed. Worked great for me both in 1.6.0 and 1.7 using different themes. Hey maybe put these options in the "Event" plugin under "Setting" like some others have....I think many would like this option including myself. Because I know this is a mod and if I do a core update I will lose this mod unless restoring the new mod file after core update.

Thanks again Ross for your endless support!

Wilson
ross Team
ross Aug 20 '14
Great! glad that helps. As to your suggestion, as you can see this is included in our roadmap, CMS support, such features will be implemented in one of the upcoming releases.