J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Mon May 20, 2013 2:33 pm

SOLVED - Hide "show only my events" in the front-end

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

SOLVED - Hide "show only my events" in the front-end

Postby simone79vi » Sun Nov 20, 2011 11:26 pm

Hi is it possibile to hide the "show only my events" that appears when an user insert a new events?

Also the other two lines.. look the attach file.

thank you
Attachments
events.JPG
events.JPG (27.86 KiB) Viewed 375 times
simone79vi
Posts: 107
Joined: Tue Oct 04, 2011 2:10 pm

Re: Hide "show only my events" in the front-end

Postby Tonyp » Mon Nov 21, 2011 6:59 am

Hello Simone79vi,

Would you like to hide the admin menu completely then?

You should be able to do this with a CSS over ride to display: none;.

Use firebug to inspect it to find the correct peice of css.

You could also create a template over ride where you can edit the code. This is available to club members here:

http://www.jevents.net/en/jevents-15-to ... entatation
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8723
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Hide "show only my events" in the front-end

Postby simone79vi » Mon Nov 21, 2011 11:22 pm

I don't want to hide the whole admin menu but I want to view only the words "add an event".Is it possible?

thank you
simone79vi
Posts: 107
Joined: Tue Oct 04, 2011 2:10 pm

Re: Hide "show only my events" in the front-end

Postby Geraint » Tue Nov 22, 2011 8:58 am

"add an event" and the whole of this 'management' section is only visible to users who are authorised to create an event. So I'm not sure why you would want to hide this for logged in event creators.

If that is really what you want to do then this css will do it:

.ev_adminpanel a {display:none;}
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30529
Joined: Fri Feb 15, 2008 6:14 pm

Re: Hide "show only my events" in the front-end

Postby Tonyp » Tue Nov 22, 2011 9:24 am

Geraint he is just wanting to hide the 'show only my events' part of the admin box.
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8723
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Hide "show only my events" in the front-end

Postby Geraint » Tue Nov 22, 2011 9:26 am

Then this CSS will do that:
Code: Select all
.ev_adminpanel form {display:none;}
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30529
Joined: Fri Feb 15, 2008 6:14 pm

Re: Hide "show only my events" in the front-end

Postby simone79vi » Tue Nov 22, 2011 10:32 pm

If I try to modify the css with
v_adminpanel form {display:none;}
all the admin box is hide..
But I don't want that is also hide the "add an event"
Is is possible to maintain only the "add an event" ?

thank you
simone79vi
Posts: 107
Joined: Tue Oct 04, 2011 2:10 pm

Re: Hide "show only my events" in the front-end

Postby carcam » Wed Nov 23, 2011 8:31 am

If you want to show the "add an event" link but remove the other options, you have to edit the file:

[JOOMLA]/components/com_jevents/views/default/helpers/defaultviewhelperviewnavadminpanel.php

and around line 89 you will find this code:
Code: Select all
<form action="<?php echo $form_link;?>"  method="post">
                  <?php

                  $filterHTML = $filters->getFilterHTML();

                  $Itemid   = JEVHelper::getItemid();

                  foreach ($filterHTML as $filter){
                     echo "<div>".$filter["title"]." ".$filter["html"]."</div>";
                  }
                  /*
                  $eventmylinks = JRoute::_( 'index.php?option=' . JEV_COM_COMPONENT . '&task=admin.listevents'
                  . '&year=' . $view->year . '&month=' . $view->month . '&day=' . $view->day
                  . '&Itemid=' . $view->Itemid ); ?>
                  <a href="<?php echo $eventmylinks; ?>" title="<?php echo JText::_('JEV_MYEVENTS'); ?>">
                  <b><?php echo JText::_('JEV_MYEVENTS'); ?></b>
                  </a>
                  <?php
                  */
                  ?>
                  </form>

Just remove it or add a comment like this:
Code: Select all
<!--
<form action="<?php echo $form_link;?>"  method="post">
                  <?php

                  $filterHTML = $filters->getFilterHTML();

                  $Itemid   = JEVHelper::getItemid();

                  foreach ($filterHTML as $filter){
                     echo "<div>".$filter["title"]." ".$filter["html"]."</div>";
                  }
                  /*
                  $eventmylinks = JRoute::_( 'index.php?option=' . JEV_COM_COMPONENT . '&task=admin.listevents'
                  . '&year=' . $view->year . '&month=' . $view->month . '&day=' . $view->day
                  . '&Itemid=' . $view->Itemid ); ?>
                  <a href="<?php echo $eventmylinks; ?>" title="<?php echo JText::_('JEV_MYEVENTS'); ?>">
                  <b><?php echo JText::_('JEV_MYEVENTS'); ?></b>
                  </a>
                  <?php
                  */
                  ?>
                  </form>
-->


Please remember the changes for future upgrades of the component.
carcam
Contributor
Posts: 3391
Joined: Wed Aug 06, 2008 7:50 pm
Location: Córdoba

Re: Hide "show only my events" in the front-end

Postby Tonyp » Wed Nov 23, 2011 8:32 am

Hello,

I just tested the code which Geraint posted. That does remove the entire box. but leaves the Add Event.

Applying the CSS to the template.css

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8723
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Hide "show only my events" in the front-end

Postby carcam » Wed Nov 23, 2011 8:35 am

You are right!!

and Geraints solution is much more easy to implement and to maintain than mine.

I did not notice the form in the CSS path!! :S
carcam
Contributor
Posts: 3391
Joined: Wed Aug 06, 2008 7:50 pm
Location: Córdoba

Next

Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: No registered users

Main Menu

User Menu

Hosted By


Who is online

In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: No registered users

Login Form