justinacarter

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Function to render the RSVP form in a loop? #1599362
    justinacarter
    Participant

    I would like to point out that with Tribe Tickets/RSVP script enabled on an event page, my browser indicates that “This page uses significant resources” and suggests closing the browser tab.

    Hopefully your developers are aware of this, it’s not good.

    in reply to: Function to render the RSVP form in a loop? #1599188
    justinacarter
    Participant

    Hi András,

    What I understand your developer to be saying here:

    “they’d need to take and adapt the Tribe__Tickets__RSVP::front_end_tickets_form() function – tweaking it to suit their needs (and customizing the RSVP messaging so that success messages etc only apply to the correct individual form within the loop etc, which it isn’t built for right now). So that function would be a pretty good starting point for them, but there’s a bit of work ahead to re-sculpt it.”

    …is that i need to declare a different but similar class that is a rewrite of Tribe__Tickets__RSVP, and contains the functionality I need, because obviously i cannot redeclare methods of that class.

    Since class Tribe__Tickets__RSVP extends Tribe__Tickets__Tickets I would similarly declare my class, say Justin__Tickets__RSVP, as an extension of Tribe__Tickets__Tickets. I am comfortable doing that, and I’ve already customized the html and js of the form. Could you however please run that outline by the developer and see if they agree a new class is how i should structure it?

    in reply to: Function to render the RSVP form in a loop? #1598437
    justinacarter
    Participant

    By the way, if decide you’re not able to provide support to this ticket please let me know.

    Getting support for this issue is the reason I purchased the Plus plugin license – I don’t need the Event Tickets Plus functionality.

    If you can’t provide this type of support, i will apply for a refund and spend the money on a developer.

    in reply to: Function to render the RSVP form in a loop? #1598420
    justinacarter
    Participant

    Köszönöm András,

    Thank you for looking into it.

    The classes Tribe__Tickets__Tickets_View and Tribe__Tickets__RSVP are obviously the classes involved, but there are conditionals within these classes that seem to prevent them operating outside of specific plugin-defined situations. For example, from the Tribe__Tickets__RSVP class:

    	/**
    	 * Enqueue the plugin stylesheet(s).
    	 *
    	 * @author caseypicker
    	 * @since  3.9
    	 * @return void
    	 */
    	public function enqueue_resources() {
    		$post_types = Tribe__Tickets__Main::instance()->post_types();
    
    		if ( ! is_singular( $post_types ) ) {
    			return;
    		}
    
    		wp_enqueue_style( 'event-tickets-rsvp' );
    		wp_enqueue_script( 'event-tickets-rsvp' );
    
    		// Check for override stylesheet
    		$user_stylesheet_url = Tribe__Templates::locate_stylesheet( 'tribe-events/tickets/rsvp.css' );
    
    		// If override stylesheet exists, then enqueue it
    		if ( $user_stylesheet_url ) {
    			wp_enqueue_style( 'tribe-events-tickets-rsvp-override-style', $user_stylesheet_url );
    		}
    	}
    

    So it seems like i need to duplicate the results of some of these functions in my own code.

    But from the point of view of the software design, it seems like rendering this form should be a more accessible function, more like a template tag.

Viewing 4 posts - 1 through 4 (of 4 total)