Support

Home Forums WP User Integration My Events Page – Eliminating some default items

My Events Page – Eliminating some default items

Posted: February 22, 2014 at 2:09 pm


Trevis

February 22, 2014 at 2:09 pm

Just installed the Member/User add on for EE and am wondering how I can eliminate a few things that are displayed by default:

The “Show” selector that allows you to change the number events shown.
The live search filter input.
The cost and invoice columns in the My Events table.
Would also like to edit the pagination text, but can’t find where to do that either.

How can I do this in EE?
Thanks!


Dean

February 24, 2014 at 2:32 am

Hi,

Filter wise, you can hide this with CSS

/* hide the show entries */
#table_length { display: none; } 

/* hide the live search */
#table_filter { display:none; }

Regarding the columns, there isn’t an easy way to do this, barring modifying the actual template file.

This would be found in plugins/espresso-members/my_events_page.php

The pagination is handled by javascript so it is currently untranslatable (unless you hack the file). We have an outstanding ticket to look into this but I cannot say when this will be.


Trevis

February 24, 2014 at 9:23 am

Thanks Dean! I was able to hide the filters using the CSS you provided.

I could get the columns to go away by editing the file you mentioned, but it also removes the pagination. (Only when hiding the table columns, not the corresponding table header columns.) Here are the lines I commented out:

<code>&lt;td class=&quot;date column-date&quot;&gt;&lt;?php echo $org_options[ &#039;currency_symbol&#039; ] ?&gt;&lt;?php echo $amount_pd?&gt;&lt;/td&gt;

&lt;td class=&quot;date column-date&quot;&gt;&lt;a href=&quot;&lt;?php echo home_url();?&gt;/?download_invoice=true&amp;admin=true&amp;registration_id=&lt;?php echo $registration_id ?&gt;&quot; target=&quot;_blank&quot;  title=&quot;&lt;?php _e(&#039;Download Invoice&#039;, &#039;event_espresso&#039;); ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo EVENT_ESPRESSO_PLUGINFULLURL ?&gt;images/icons/page_white_acrobat.png&quot; width=&quot;16&quot; height=&quot;16&quot; alt=&quot;&lt;?php _e(&#039;Download Invoice&#039;, &#039;event_espresso&#039;); ?&gt;&quot; /&gt;&lt;/a&gt;&lt;/td&gt;</code>

I’m guessing there’s something in there that makes the pagination appear, but I can’t figure it out. Any ideas?


Trevis

February 24, 2014 at 9:25 am

Sorry, didn’t input the code properly…

<pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><td class="date column-date"><?php echo $org_options[ 'currency_symbol' ] ?><?php echo $amount_pd?></td>
<td class="date column-date">< a href=""<?php">/?download_invoice=true&admin=true&registration_id=<?php echo $registration_id ?>" target="_blank" title="<?php _e('Download Invoice', 'event_espresso'); ?>">images/icons/page_white_acrobat.png" width="16" height="16" alt="<?php _e('Download Invoice', 'event_espresso'); ?>" /></td>


Trevis

February 24, 2014 at 9:27 am

Ugh… Please delete the previous two posts—couldn’t figure out how to do that. Will try to paste the code one more time…

<pre class=”brush: text; gutter: true; first-line: 1; highlight: []; html-script: false”>
<td class="date column-date"><?php echo $org_options[ 'currency_symbol' ] ?><?php echo $amount_pd?></td>

<td class="date column-date">< a href=""<?php">/?download_invoice=true&admin=true&registration_id=<?php echo $registration_id ?>" target="_blank" title="<?php _e('Download Invoice', 'event_espresso'); ?>">images/icons/page_white_acrobat.png" width="16" height="16" alt="<?php _e('Download Invoice', 'event_espresso'); ?>" /></td>


Trevis

February 24, 2014 at 9:29 am

Sorry, can’t figure out how to paste the code properly…


Josh

  • Support Staff

February 24, 2014 at 6:48 pm

Hi Trevis,

You could try to post the code in a Github gist or into a pastebin at pastebin.com and post a link here.


Trevis

February 25, 2014 at 9:19 am

Awesome, thanks Josh!: http://pastebin.com/NF5EirgK

So, when I comment those lines out of the My Events page to try and hide the Price and Invoice columns, the pagination disappears and I don’t understand why.

redacted-loc

  • This reply was modified 10 years, 1 month ago by  Lorenzo Orlando Caum. Reason: removing login information


Dean

February 26, 2014 at 12:52 am

Hi,

The reason being is the javascript is trying to find those columns, failing and throwing an error.

You would be better off adding an extra class to both column’s td’s and the th’s and then use CSS’ display:none to hide them


Trevis

March 11, 2014 at 3:52 pm

Thanks again Dean, that worked great!

The support post ‘My Events Page – Eliminating some default items’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso