James

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 91 total)
  • Author
    Posts
  • in reply to: Translation File not showing change on front end. #1179492
    James
    Participant

    Hi Geoff,

    Thanks for the update.

    If I work it out myself or find out any more information that may solve it, I’ll let you know.

    Cheers

    James

    in reply to: Translation File not showing change on front end. #1178763
    James
    Participant

    Hi Geoff,

    Thanks for the reply, much appreciated.

    I put the code you provided in the tickets.php file but unfortunately it didn’t change the wording on the front end.

    Cheers

    James

    in reply to: Changing the wording on the Tickets Unavailable Message? #1177388
    James
    Participant

    Thanks Hunter for the reply but it is of little help.

    In fact, for the time it took you to write your reply, you could have given me a line of code to put in my function.php file and it would have been done. So I will stick with hard coding it into the core file.

    The reason I put in a ticket, was because all the other ticket messages can be change in the event calendar translation file, except for this particular message.

    Close this post if you want Hunter because I have never got a resolution to any of my questions from you when you answer my posts, nothing personal just a fact!

    in reply to: Changing the wording on the Tickets Unavailable Message? #1177303
    James
    Participant

    Hi,

    Just letting you know that I have changed the wording directly within the core file at /wp-content/plugins/event-tickets/src/Tribe/tickets.php until I can find a solution which won’t be overwritten when I update the plugin.

    Cheers

    James

    in reply to: CSS Selector for Title on Calendar List Page? #1176277
    James
    Participant

    Hi Josh,

    Worked a charm, thanks. I had spent about two hours trying to find that selector, you give me one line and it’s done! 🙂

    Thanks for the quick reply and help, much appreciated.

    Cheers

    James

    in reply to: Strange behaviour on Calendar Month View #1174168
    James
    Participant

    Hi George,

    I uninstalled the W3 Total Cache plugin and reinstalled a fresh copy and used the settings Synthesis provided and all is good now! 🙂

    Thanks for your assistance, as it turned out to be be what you said, a minifying issue.

    Go ahead and close this thread George, as all seems good now.

    Cheers

    James

    in reply to: Strange behaviour on Calendar Month View #1174142
    James
    Participant

    Hi George,

    Thanks for getting back to me on this.

    I did what you suggested and went back to the default theme, twenty sixteen, and it didn’t fix it. I then deactivated all the plugins except the EC plugins and reactivated each plugin one at a time and checked to see which if any was causing the problem.

    Turns out it was the W3 Total Cache plugin causing the problem, which was updated about a week ago, and that’s when the strange behaviour stated.

    As my website is hosted with Synthesis, they have special settings they apply to this plugin, I will contact them and ask them to reset the plugin and see if it fixes the problem. Otherwise I may need you, if possible to help resolve the problem.

    I’ll let you know how I get on George before asking you to close this thread.

    Cheers

    James

    in reply to: Renewal Not reflected in account on EC website #1170844
    James
    Participant

    I just checked my account and it is now reflecting the renewal, so please close this post and mark as resolved.

    Thanks

    James

    in reply to: Placement of Ticket Fieldset? #1139374
    James
    Participant

    Hi Nico,

    You can close this thread!

    I worked out another way to get the result I was wanting without modifying any code or CSS.

    Changing my wording of the fields and reorder the order I accomplish what I wanted.

    Thanks for your assistance Nico, have a great day.

    Cheers

    James

    in reply to: Placement of Ticket Fieldset? #1139156
    James
    Participant

    Hi Nico,

    Thanks for the quick reply.

    Here is a link to a page on my site where I have set up the ticket to show how this looks at the moment.

    Thanks,

    Cheers

    James

    • This reply was modified 9 years, 9 months ago by James.
    in reply to: Changing the wording of Event Tickets 4.2.1 notices? #1135353
    James
    Participant

    Hi Cliff,

    An update on the situation.

    I had a chance to download a fresh copy of event tickets and took the .pot file from the lang folder and reran it through Poedit, changing the translations and saving as event-tickets-en_AU.po and event-tickets-en_AU.mo files and uploaded them to the languages/plugins folder, then replaced the tickets.php file for the original one.

    Everything is now working as it should!

    So you can close this thread as things are solved, it seems there was an error in my .po file that was causing the problem.

    Thanks for your assistance to date.

    Cheers

    James

    in reply to: Changing the wording of Event Tickets 4.2.1 notices? #1135332
    James
    Participant

    This reply is private.

    in reply to: Changing the wording of Event Tickets 4.2.1 notices? #1134256
    James
    Participant

    Hi Cliff,

    No it isn’t resolved. I still can’t get the “notices” in the tickets.php file to change via the translation file. e.g event-tickets-en-AU.po

    The only way I can change the “notices” is via changing the wording within the core file. e.g /wp-content/plugins/event-tickets/src/Tribe/Tickets.php Lines 1267-1286

    What I was saying in my last post was that you recommended to try the code at Change the wording of any bit of text or string, which I did. But when I do, it overrides all my other translations in the event-tickets-en-AU.po file.

    So, I am back to where I was with the original question, of how can I change the “notices” in /wp-content/plugins/event-tickets/src/Tribe/Tickets.php Lines 1267-1286 so that I don’t overwrite them with a plugin update.

    Cheers

    James

    in reply to: Changing the wording of Event Tickets 4.2.1 notices? #1134227
    James
    Participant

    Hi Cliff,

    I’m not sure what “code” you’re asking for.
    BUT, here is something I noticed! If I use the code below in my functions.php file, it override all the changes made in the translation files.

    Cheers

    James

    /*
    * EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR
    * See the codex to learn more about WP text domains:
    * http://codex.wordpress.org/Translating_WordPress#Localization_Technology
    * Example Tribe domains: ‘tribe-events-calendar’, ‘tribe-events-calendar-pro’…
    */
    function tribe_custom_theme_text ( $translations, $text, $domain ) {

    // Put your custom text here in a key => value pair
    // Example: ‘Text you want to change’ => ‘This is what it will be changed to’
    // The text you want to change is the key, and it is case-sensitive
    // The text you want to change it to is the value
    // You can freely add or remove key => values, but make sure to separate them with a comma
    // This example changes the label “Venue” to “Location”, and “Related Events” to “Similar Events”
    $custom_text = array(
    ‘Tickets are not yet available.’ => ‘Bookings are not yet available for this activity.’,
    ‘Tickets are no longer available.’ => ‘Bookings for this activity are no longer available.’,
    ‘There are no tickets available at this time.’ => ‘There are no bookings available at this time.’,
    );

    // If this text domain starts with “tribe-“, “the-events-“, or “event-” and we have replacement text
    if( (strpos($domain, ‘tribe-‘) === 0 || strpos($domain, ‘the-events-‘) === 0 || strpos($domain, ‘event-‘) === 0) && array_key_exists($text, $custom_text) ) {
    $text = $custom_text[$text];
    }

    return $text;
    }
    add_filter(‘gettext’, ‘tribe_custom_theme_text’, 20, 3);

    in reply to: Changing the wording of Event Tickets 4.2.1 notices? #1133771
    James
    Participant

    Hi again Cliff,

    Yes I am running the latest versions of the EC’s plugins including Event Tickets 4.2.1.1 hence why I’m at a loss as to why these notices aren’t working as I want them to, unless I change the core file.

    I’ve loaded a fresh copy of wordpress, the event calendar, event tickets and nothing else onto a testing localhost site and it still doesn’t change.

    Cheers

    James

Viewing 15 posts - 16 through 30 (of 91 total)