Jevents 2.x (Free Access)

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 follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

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 608 times
simone79vi
 
Posts: 107
Joined: Tue Oct 04, 2011 2:10 pm

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
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23639
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

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

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: 42795
Joined: Fri Feb 15, 2008 6:14 pm

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.
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23639
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

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: 42795
Joined: Fri Feb 15, 2008 6:14 pm

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

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.
¿Sabías que tenemos soporte en español para los miembros del Club de JEvents? ¡ÚNETE AHORA!
User avatar
carcam
Team Staff
 
Posts: 7061
Joined: Wed Aug 06, 2008 7:50 pm
Location: Almería

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
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23639
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

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
¿Sabías que tenemos soporte en español para los miembros del Club de JEvents? ¡ÚNETE AHORA!
User avatar
carcam
Team Staff
 
Posts: 7061
Joined: Wed Aug 06, 2008 7:50 pm
Location: Almería

Next

Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • 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