Support

Home Forums Event Espresso Premium Ticket Selector Language Translation & Attendee List

Ticket Selector Language Translation & Attendee List

Posted: May 29, 2015 at 2:40 am

Viewing 10 reply threads


Tomas Brolin

May 29, 2015 at 2:40 am

Hi,
My Client site language is swedish and i have translated EE core lang.
But unable to locate(translate) Ticket Selector English text.
[Ex. “This ticket is required and must be purchased.”]

Also i copied attendee list code and used it in site-customization.php in plugin folder. By default, Registrant status is Pending Payment.
Can i get a code to show attendee list only after approved[payment done]?
After i deleted the Registrants, the list is still shown in frontend event page.
Kindly help.
TIA


Tony

  • Support Staff

May 29, 2015 at 2:53 am

Hi Tomas,

My Client site language is swedish and i have translated EE core lang.
But unable to locate(translate) Ticket Selector English text.
[Ex. “This ticket is required and must be purchased.”]

How are you translating the text?

Are you using using the PO/MO files from our GlotPress project?

http://translate.eventespresso.com/projects/event-espresso-4/sv/event-espresso-sv_SE

Also i copied attendee list code and used it in site-customization.php in plugin folder. By default, Registrant status is Pending Payment.
Can i get a code to show attendee list only after approved[payment done]?

Can you explain which code you copied? From where?

After i deleted the Registrants, the list is still shown in frontend event page.

So the registrants are still displayed on the list after being deleted?

Could you link us to the page so we can view this please?


Tomas Brolin

May 29, 2015 at 10:44 am

Hi Tony
My test environment link:
http://mikkalmardemo.se.preview.binero.se/events

I copied the english version from Glotpress & translated as needed using POEdit.

Issues facing:
In Login (Register page),
1. “The event you have selected requires logging in before you can register. You can register for an account here if you don’t have a login.”
– Unable to find second line text in translation
2. If blank username & password error message => “This field is required.” needs to be translated.
http://mikkalmardemo.se.preview.binero.se/registrering/

Copied the code from github through ee4 documentation.
add_action( ‘AHEE_event_details_after_the_content’, ‘ee_attendee_list’ );

function ee_attendee_list(){
global $wpdb, $post;

if(is_singular()){
echo ‘<ul class=”attendee-list”>’;

$sql = “SELECT ATT_fname, ATT_lname, ATT_email “;
$sql .= “FROM {$wpdb->prefix}esp_attendee_meta “;
$sql .= “INNER JOIN {$wpdb->prefix}esp_registration “;
$sql .= “ON {$wpdb->prefix}esp_attendee_meta.ATT_ID = {$wpdb->prefix}esp_registration.ATT_ID “;
$sql .= “WHERE {$wpdb->prefix}esp_registration.EVT_ID = %d”;

$attendees = $wpdb->get_results( $wpdb->prepare( $sql, $post->ID ));
foreach($attendees as $attendee){
$fname = $attendee->ATT_fname;
$lname = $attendee->ATT_lname;
$email = $attendee->ATT_email;
$gravatar = get_avatar( $email, ’64’, ‘identicon’ );
$html = ‘

  • ‘. $gravatar .'<span>’. $fname .’ ‘. $lname . ‘</span>
  • ‘;
    echo $html;
    }

    echo ‘‘;
    }
    }

    Before approval of payment, no visible of registrant in frontend is what needed.
    Do see 3 count in Event post[Ticket Details] & frontend even after removing user. Any suggestions appreciated.

    Client requirement:
    Two ticketing type => Non-Member & Member [Both needs Registration before Payment by default]

    FYI, s2member plugin is installed, as non member shouldn’t be able to do purchase of member ticket.


    Lorenzo Orlando Caum

    • Support Staff

    May 29, 2015 at 10:56 am

    Hi Tomas, could you temporarily deactivate S2member so we can see the events page?

    Thanks


    Lorenzo


    Tomas Brolin

    May 29, 2015 at 11:25 am

    Hi Lorenzo
    s2member plugin deactivated.


    Lorenzo Orlando Caum

    • Support Staff

    May 29, 2015 at 12:24 pm

    Thanks Tomas. Could you download the translation file here:

    http://translate.eventespresso.com/projects/event-espresso-4/nl/event-espresso-nl_NL

    Then merge it into your own file via POEdit (http://stackoverflow.com/a/16144606).

    You should then see the translation lines for the messaging that you mentioned.

    Could you rephrase the following question?

    Before approval of payment, no visible of registrant in frontend is what needed.
    Do see 3 count in Event post[Ticket Details] & frontend even after removing user. Any suggestions appreciated.

    Are you wanting to hide or remove something from an event page?


    Lorenzo


    Tomas Brolin

    June 1, 2015 at 2:24 am

    Thanks Lorenzo. Found the required lines from provided link.

    Attendee List:
    In below single event page
    http://mikkalmardemo.se.preview.binero.se/events/sinnesmarknadsforing/
    below maps, attendee list is displayed(Code provided above).
    But after deleting the registrant it’s still displayed.
    Also without payment done by registrant and manually approved by admin, registrant name need not be listed in event page.
    Any idea or code samples to achieve this.

    Last thing, in single event page
    http://mikkalmardemo.se.preview.binero.se/events/sa-overtygar-du-om-din-ide/
    featured image[Original 200*200] occupies full screen [1329*1329]
    How to reduce or set a max size for image?
    Thanks.


    Lorenzo Orlando Caum

    • Support Staff

    June 1, 2015 at 7:09 am

    Hi Tomas,

    Was that attendee/registrant trashed and then deleted?

    The featured image appears to be part of the flexslider that is part of your theme. It has a width of 100% to make the image responsive.

    This is the CSS that is handling it:

    .flexslider .slides img {width: 100%;
    display: block;
    margin-top: 0;
    height: auto;}
    

    I would check your theme settings to see if there are an options for adjusting the flexslider. If there isn’t, then you can change the width in the CSS above and add it to your site via My Custom CSS or Reaktiv CSS Builder.


    Lorenzo


    Tomas Brolin

    June 2, 2015 at 2:58 am

    Hi Lorenzo,
    Absolutely.Registrant was trashed and it showed up frontend.
    Later removed the user after which still it’s shown.

    It’s theme related and nothing with Event espresso integration as custom post type has no connectivity i guess.
    Thanks. I’ll take care of it.
    Is this search result shown on top of events page also relevant to theme?

    2 Results for custom post type: Evenemang


    Lorenzo Orlando Caum

    • Support Staff

    June 2, 2015 at 12:43 pm

    Hi Tomas, removing a registrant is a two-step process. Was the registrant trashed and then deleted as in permanently deleted?


    Lorenzo


    Lorenzo Orlando Caum

    • Support Staff

    September 12, 2015 at 2:41 pm

    Hello again Tomas,

    We have a new resource that explains how to translate Event Espresso. You can view it here:

    https://eventespresso.com/wiki/how-to-translate-event-espresso/

    Also, GlotPress now has translation strings that are up to date for the current Event Espresso 4.8.x platform.


    Lorenzo

    Viewing 10 reply threads

    The support post ‘Ticket Selector Language Translation & Attendee List’ 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