dpeschio

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: Slow page load due to /wp-json/tribe/events/v1/ #1608721
    dpeschio
    Participant

    We are on a VPS. We currently have ~2600 events – most have passed. 241 venues. We are using a CDN (Cloud Flare) and have the following in .htaccess for browser caching:

    # BEGIN Browser Cache
    <IfModule mod_mime.c>
        AddType text/css .css
        AddType application/x-javascript .js
        AddType text/x-component .htc
        AddType text/html .html .htm
        AddType text/richtext .rtf .rtx
        AddType image/svg+xml .svg .svgz
        AddType text/plain .txt
        AddType text/xsd .xsd
        AddType text/xsl .xsl
        AddType text/xml .xml
        AddType video/asf .asf .asx .wax .wmv .wmx
        AddType video/avi .avi
        AddType image/bmp .bmp
        AddType application/java .class
        AddType video/divx .divx
        AddType application/msword .doc .docx
        AddType application/vnd.ms-fontobject .eot
        AddType application/x-msdownload .exe
        AddType image/gif .gif
        AddType application/x-gzip .gz .gzip
        AddType image/x-icon .ico
        AddType image/jpeg .jpg .jpeg .jpe
        AddType application/vnd.ms-access .mdb
        AddType audio/midi .mid .midi
        AddType video/quicktime .mov .qt
        AddType audio/mpeg .mp3 .m4a
        AddType video/mp4 .mp4 .m4v
        AddType video/mpeg .mpeg .mpg .mpe
        AddType application/vnd.ms-project .mpp
        AddType application/x-font-otf .otf
        AddType application/vnd.oasis.opendocument.database .odb
        AddType application/vnd.oasis.opendocument.chart .odc
        AddType application/vnd.oasis.opendocument.formula .odf
        AddType application/vnd.oasis.opendocument.graphics .odg
        AddType application/vnd.oasis.opendocument.presentation .odp
        AddType application/vnd.oasis.opendocument.spreadsheet .ods
        AddType application/vnd.oasis.opendocument.text .odt
        AddType audio/ogg .ogg
        AddType application/pdf .pdf
        AddType image/png .png
        AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
        AddType audio/x-realaudio .ra .ram
        AddType application/x-shockwave-flash .swf
        AddType application/x-tar .tar
        AddType image/tiff .tif .tiff
        AddType application/x-font-ttf .ttf .ttc
        AddType audio/wav .wav
        AddType audio/wma .wma
        AddType application/vnd.ms-write .wri
        AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
        AddType application/zip .zip
    </IfModule>
    
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        ExpiresByType application/x-javascript A31536000
        ExpiresByType text/x-component A31536000
        ExpiresByType text/html A3600
        ExpiresByType text/richtext A3600
        ExpiresByType image/svg+xml A3600
        ExpiresByType text/plain A3600
        ExpiresByType text/xsd A3600
        ExpiresByType text/xsl A3600
        ExpiresByType text/xml A3600
        ExpiresByType video/asf A31536000
        ExpiresByType video/avi A31536000
        ExpiresByType image/bmp A31536000
        ExpiresByType application/java A31536000
        ExpiresByType video/divx A31536000
        ExpiresByType application/msword A31536000
        ExpiresByType application/vnd.ms-fontobject A31536000
        ExpiresByType application/x-msdownload A31536000
        ExpiresByType image/gif A31536000
        ExpiresByType application/x-gzip A31536000
        ExpiresByType image/x-icon A31536000
        ExpiresByType image/jpeg A31536000
        ExpiresByType application/vnd.ms-access A31536000
        ExpiresByType audio/midi A31536000
        ExpiresByType video/quicktime A31536000
        ExpiresByType audio/mpeg A31536000
        ExpiresByType video/mp4 A31536000
        ExpiresByType video/mpeg A31536000
        ExpiresByType application/vnd.ms-project A31536000
        ExpiresByType application/x-font-otf A31536000
        ExpiresByType application/vnd.oasis.opendocument.database A31536000
        ExpiresByType application/vnd.oasis.opendocument.chart A31536000
        ExpiresByType application/vnd.oasis.opendocument.formula A31536000
        ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
        ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
        ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
        ExpiresByType application/vnd.oasis.opendocument.text A31536000
        ExpiresByType audio/ogg A31536000
        ExpiresByType application/pdf A31536000
        ExpiresByType image/png A31536000
        ExpiresByType application/vnd.ms-powerpoint A31536000
        ExpiresByType audio/x-realaudio A31536000
        ExpiresByType image/svg+xml A31536000
        ExpiresByType application/x-shockwave-flash A31536000
        ExpiresByType application/x-tar A31536000
        ExpiresByType image/tiff A31536000
        ExpiresByType application/x-font-ttf A31536000
        ExpiresByType audio/wav A31536000
        ExpiresByType audio/wma A31536000
        ExpiresByType application/vnd.ms-write A31536000
        ExpiresByType application/vnd.ms-excel A31536000
        ExpiresByType application/zip A31536000
    </IfModule>
    
    <IfModule mod_deflate.c>
        <IfModule mod_setenvif.c>
            BrowserMatch ^Mozilla/4 gzip-only-text/html
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
            BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        </IfModule>
    	
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    	
        <IfModule mod_filter.c>
            AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
        </IfModule>
    	
    
    	
    <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public, must-revalidate, proxy-revalidate"
    		Header set Access-Control-Allow-Origin "*"
        </IfModule>
       
       
        <IfModule mod_headers.c>
             Header set X-Powered-By "W3 Total Cache/0.9.2.4"
        </IfModule>
    </FilesMatch>
    # END Browser Cache
    in reply to: Slow page load due to /wp-json/tribe/events/v1/ #1607442
    dpeschio
    Participant

    This reply is private.

    dpeschio
    Participant

    Stepping back to 4.6.21 worked for me too. Can I have my 3 hours back plz?

    dpeschio
    Participant

    I have the same problem – installed backup of db, problem persisted so I deleted transient data, optimised tables, “updated” a missing venue to se if would show up… nothing has worked.

    in reply to: Pull events from multiple facebook pages #1405879
    dpeschio
    Participant

    Hi Brendon – any forward movement on this issue?

    in reply to: Pull events from multiple facebook pages #1374681
    dpeschio
    Participant

    Thanks for your help and speedy replies. I look forward to using the aggregator as soon as we can assign the imports to specific venues.

    Cheers!

    in reply to: Pull events from multiple facebook pages #1373735
    dpeschio
    Participant

    This reply is private.

    in reply to: Pull events from multiple facebook pages #1372568
    dpeschio
    Participant

    Hi Brendan,

    I purchased and installed the aggregator and set up a scheduled import to use an existing category specific to an existing venue. The events were imported but 2 new venues were created by the plugin. Venue 1 and Venue 2. I need the events to import to an existing venue.

    I edited the functions.php to show the merge venues button, used it, but these venues didn’t merge. Theres a lot of work that’s gone into creating and editing the existing venues. For example, we added the ability to assign venues to a user (owner), we use the community events add-on allowing venue owners to add their events. We’ve also added the ability for the venue owners to edit the info on their venue listing, have custom fields and categories for the specific venue. This has all been custom coding and is required for how we use the info in other places. Because of this I can’t have imports creating new venues.

    I need to assign the import to a specific, already existing venue. Is this possible?

    in reply to: Pull events from multiple facebook pages #1372519
    dpeschio
    Participant

    OK – I’ll make the purchase and lets see if I can configure it correctly

    in reply to: Pull events from multiple facebook pages #1369985
    dpeschio
    Participant

    Hi – anyone have a response?

    in reply to: Undefined offset after upgrading to 4.4 #1223232
    dpeschio
    Participant

    Had the same problem – this fix worked for me

    in reply to: Show the author for venue #1128429
    dpeschio
    Participant

    One more question – Say someone with a user role that is NOT admin – contributor, for example – adds an event. When choosing a venue with the pull-down menu they have My Venues as an option, and then they have Available Venues. Under Available Venues only the venue owned by the logged in user is available. How do I get all venues to show under Available Venues pull-down menu?

    in reply to: Show the author for venue #1128397
    dpeschio
    Participant

    Just what I needed. Thanks!

    I’ve had to add a lot of “extras” in my functions.php for the venues in order to use them the way I need to. It’s all standard stuff available for events and other custom post types. Things that seem like they should just be standard – at least at the pro level. A few examples: being able to add categories to venues and being able to change ownership of the venues.

    We’ve created a community and we want to allow users to maintain their venue and add and edit events (we have community events installed). Then we want to display the venues by category as menu items, and sort by sub category. We’ve done all this but it would have been a lot easier if venues had all the standard features of post. Here’s an example of a page that displays the main category of Brewery with three sections of sub categories: full page advertiser, half and free listing. These are sorted randomly inside each sub so no one is always on top of their section.

    Thanks again!

    in reply to: Ticket sale prices dont show in single event or list views #1016003
    dpeschio
    Participant

    This was way more complicated than I expected. I consider what I did was fixing a bug.

    The bug: tribe_get_cost was not pulling sale pricing

    My fix: I bypassed tribe_get_cost and used the woocommerce function get_price_html. To do that I first had to retrieve the variables for the particular product. I used tickets.php as a kind of template and added the following inside the first php group:

    //sets variables for fetching correct price
    $wootickets = TribeWooTickets::get_instance();
    $ticket_ids = $wootickets->get_Tickets_ids( get_the_ID());
    $product = new WC_Product_Simple($ticket_ids[0]);
    

    In the event cost section I then added

    <?php if ( $price_html = $product->get_price_html() ) : ?>
    
    <div class="tribe-events-event-cost">
    		<?php echo $price_html; ?>
            </div>
    <?php endif; ?>

    This gave me the regular price with a strikethrough and the sale price <ins></ins>. Both have the class “amount” and were stacked on top of one another with the same look. I wanted to accentuate the sale price so I had to differentiate them and apply my styles. I added a span and some text by adding this to functions.php

    
    add_filter( 'woocommerce_get_price_html', 'add_before_price', 100, 2 );
    function add_before_price( $price, $product ){
        return '' . str_replace( '<ins>', '<span class="ct-onsale">&nbsp; ON SALE: &nbsp; <ins>', $price );
    	return '' . str_replace( '</ins>', '</ins> <span class="ct-onsale">', $price );
    
    }
     

    and a little css to highlight the sale price

    .ct-onsale {
    	background:none !important;
    	color:#4d75a6;
    	font-size:larger;	
    }
    

    I hope this helps some people.

    in reply to: Ticket sale prices dont show in single event or list views #1015357
    dpeschio
    Participant

    Hi and thanks for the quick response.

    I have those files moved – we are adding Sold Out notices, tickets remaining and some css so I have them in my child theme folder. Simply changing those lines won’t do it or I wouldn’t be asking for guidance.

    I believe that get_price is using a different way of retrieving the price. It’s always correct. tribe_get_cost sometimes shows the sales price and discounts, but more often doesn’t. I haven’t been able to track down why it works on some products and not others. I have looked at the event tickets as woo products and in the editor for the event and I can see no differences between a product that is displaying prices correctly and one that isn’t. That’s why I want to go the route of using the method of displaying prices that is working.

    The crux of my problem is when I add echo $this->get_price_html( $product ) in place of tribe_get_cost( null, true ) the page stops loading at that point. I tried adding variations of the code from tickets.php to get it to pull all the necessary functions but haven’t gotten it to work. I thinks it it related to $this variable needing to have functions from a class that isn’t available.

    Any ideas?

Viewing 15 posts - 1 through 15 (of 18 total)