ben2358723823567
Forum Replies Created
-
Forum: Reviews
In reply to: [Disable XML-RPC-API] DO NOT INSTALL THIS! **PHP BACKDOOR**Hi, it’s not only 1 site, it’s 3 sites! All happened over the last 7 days. They all had in common your extension and they never had the Elementor plugin installed at all. Although I appreciate that you took the time to confront me.
Forum: Plugins
In reply to: [Jobs for WordPress] How to list jobs in a different order?That is not what I suggested to try.
Forum: Plugins
In reply to: [Jobs for WordPress] How to list jobs in a different order?If both of these do not change anything, it is clearly not a problem with the plugin, but rather a problem with the theme or most likely a cache issue. If you have WP Cache or any other caching plugin, make sure to DISABLE it before testing, otherwise nothing will change on your frontend site and you will have lost your time!
These cannot show the jobs in the same order, it’s impossible. So try them one at a time and note how jobs are listed, then try the other line of code:
[job-postings orderby="date" order="ASC"]
[job-postings orderby="date" order="DESC"]
- This reply was modified 4 years, 1 month ago by ben2358723823567.
- This reply was modified 4 years, 1 month ago by ben2358723823567.
- This reply was modified 4 years, 1 month ago by ben2358723823567.
- This reply was modified 4 years, 1 month ago by ben2358723823567.
- This reply was modified 4 years, 1 month ago by ben2358723823567.
Forum: Plugins
In reply to: [Jobs for WordPress] How to list jobs in a different order?I’m not the plugin’s developer, so obviously I cannot help you much. I posted my question and also the answer to my own question, but I know next to nothing about this plugin because I literally just started using it a couple days ago. Your quotes look weird tough. Mines look like this
"
while yours look like this”
it’s really not the same quotes the way I see it. Perhaps you could copy/paste my quotes instead?"
Or just copy/paste exactly these to test on your site?
[job-postings orderby="date" order="ASC"]
[job-postings orderby="date" order="DESC"]
- This reply was modified 4 years, 1 month ago by ben2358723823567.
Forum: Plugins
In reply to: [Jobs for WordPress] How to list jobs in a different order?Not sure if it helps, but in my working code it’s
order="DESC"
notorder desc
Forum: Plugins
In reply to: [Jobs for WordPress] How to list jobs in a different order?OK, I literally just found an answer to my question:
<?php echo do_shortcode('[job-postings orderby="date" order="ASC"]'); ?>
Thanks!
OK perfect, so I carefully replaced:
-
mt-cart-handler.php
mt-templating.php- This reply was modified 5 years, 8 months ago by ben2358723823567.
mt-notifications.php line 106. This function doesn’t seem to account for anything shipping fee related. At line 122 see what it does to gather the handling fee? The same should be done for the shipping fee.
Waiting for a replacement function I could copy/paste over?
I cannot update the regular way at the moment because as stated in my previous post, I have modified another function file to be able to display all upcoming events tickets in a single form.
Thanks.
Oh OK thanks, I might check it out, but the above completely resolved my needs and the app is now online, so it’s good as is for us. Also, feel free to pull and publish whatever you want from the handler function I posted above. Note that it doesn’t change anything to your previous version’s behavior, it only adds that whenever the parameter is a star, it lists all the events, so it’s harmless, it just adds functionality, doesn’t change previous functionality ??
I gave 5 stars to your plugin BTW ??
Basically, all I need (and I’m sure this could benefit the whole community that uses your tickets plugin!) is that whenever we put a shortcode like this [tickets events=”*”] in a page, then your query grabs all tickets for sale, ordered say in upcoming events date ASC order and it displays all of them it in the same exact template you already got for this shortcode [tickets events=”6,7,8″] (bulk-tickets.php)
EDIT: Well, there you go Ben, here’s the new tickets shortcode handler function, just replace it in place and you’re done, that’s it. Hey thanks Ben! Well, you’re welcome Ben! NP Ben, have a nice weekend! You too Ben. KTHXBYE.
function mt_featured_tickets( $atts, $content = '' ) { $atts = shortcode_atts( array( 'events' => false, 'view' => 'calendar', 'time' => 'month', 'template' => '<h3>{post_title}: {event_begin format="l, F d"}</h3><p>{post_excerpt}</p>', ), $atts ); if ( $atts['events'] ) { $events = explode( ',', $atts['events'] ); } else { $events = array(); } $content = ''; if ( is_array( $events ) ) { foreach ( $events as $event ) { if($event == '*'){ $posts = get_posts([ 'meta_key' => '_mc_event_data', 'post_type' => 'ai1ec_event', 'post_status' => 'publish', 'numberposts' => -1, 'order' => 'ASC', 'orderby' => 'order_clause', 'meta_query' => array( 'order_clause' => array( 'key' => '_mc_event_date', 'type' => 'NUMERIC' ) ) ]); if(is_array($posts)){ foreach($posts as $post) { $event = $post->ID; $post = get_post( $event, ARRAY_A ); $event_data = get_post_meta( $event, '_mc_event_data', true ); $data = apply_filters( 'mt_ticket_template_array', array_merge( $event_data, $post ) ); $event_data = "<div class='mt-event-details'>" . mt_draw_template( $data, $atts['template'] ) . '</div>'; $content .= "<div class='mt-event-item all-events'>" . $event_data . mt_registration_form( '', $event, $atts['view'], $atts['time'], true ) . '</div>'; } } } else{ $event_data = get_post_meta( $event, '_mc_event_data', true ); $post = get_post( $event, ARRAY_A ); if ( is_array( $post ) && is_array( $event_data ) ) { $data = apply_filters( 'mt_ticket_template_array', array_merge( $event_data, $post ) ); $event_data = "<div class='mt-event-details'>" . mt_draw_template( $data, $atts['template'] ) . '</div>'; $content .= "<div class='mt-event-item'>" . $event_data . mt_registration_form( '', $event, $atts['view'], $atts['time'], true ) . '</div>'; } } } } return "<div class='mt-event-list'>" . $content . '</div>'; }
- This reply was modified 5 years, 9 months ago by ben2358723823567.
- This reply was modified 5 years, 9 months ago by ben2358723823567.
- This reply was modified 5 years, 9 months ago by ben2358723823567.
- This reply was modified 5 years, 9 months ago by ben2358723823567.
OK, were you to update the plugin with the changes, I WOULDN’T donate any money ?? and I WOULDN’T give it a 5 star rating. JUST SAYING… I would absolutely not do that.
- This reply was modified 5 years, 9 months ago by ben2358723823567.
Ah! Makes sense ?? But why not have put the notification function call in the payment handler then? This way, the second the last ticket is sold and the IPN comes in, the tickets plugin would then immediately issue a notification.
Either way, thanks! This is working real fine, love it so far.
I’ve created a new page with a pool of 2 tickets, purchased them both and they’re marked completed in the payments tab in the WP dashboard and I’ve received the payment notification email, all of this is fine, except that I have NOT received any email notification regarding all tickets being sold out.
It shows the sold out message when I visit that event page, so it works as expected, but there seems to be no notification sent, also if it’s sent somewhere, I don’t know where it’s being sent to, because I couldn’t figure out where to configure the email address it’s supposed to send sold out warnings to. My first guess is that it’s gonna send them to the same email configured in the tickets plugin main settings tab, but it didn’t?
EDIT: NEVERMIND… 5 minutes later, I just received the sold out notification email. Not sure why there was a delay… weird. But it works! Thanks!!
- This reply was modified 5 years, 9 months ago by ben2358723823567.
- This reply was modified 5 years, 9 months ago by ben2358723823567.
I’ve now upgraded to 1.7.13 but I don’t see where to configure the feature :S
Very good, I’ll wait 24 hours just to make sure that there isn’t any obvious bugs related to using it tough, as it’s on a production server.