Forum Replies Created

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter Winework

    (@winework)

    David,

    That works perfectly!

    Best plugin support on WordPress!

    Many thanks,

    Colin

    Thread Starter Winework

    (@winework)

    Hi David,

    Thank you once again.

    I have tried the code as you suggested, but replacing [+downloadlink+] results in the thumbnail (which is also the download “button”) failing to display, which means the file cannot be downloaded by the user.

    Do you have a suggested edit?

    I think we’re really close to success!

    Colin

    Thread Starter Winework

    (@winework)

    Hi David,

    Firstly, apologies for being so slow to respond to your help. I too have been away recently.

    I think I understand your instructions, here’s what I have done…

    1) Changed my analytics plugin from MonsterInsights to Google Analyticator.

    2) Edited the “Item” section of my custom product_mu template to add the onclick handler, as follows….

    <td class='gallery-icon'>
        [+downloadlink+]
      </td>
      <td class='wp-caption-text gallery-caption'>
    <font color="black"><strong>[+title+]</strong></font><br />
    <br>     
    <strong>File Name:</strong> [+file+]<br />
    <strong>File Type:</strong> [+terms:category+]<br />
    <strong>File Format:</strong> [+mime_type+]<br />
    <strong>Dimensions:</strong> [+dimensions+] px<br />
    <strong>File Size:</strong> [+file_size,commas+] bytes<br />
    <onclick="ga('send', 'event', 'download', '[+query:attachment_category,single+]', '[+file+]');">
    </td>

    I’m not sure if I have the syntax of the onclick handler correct. Can you comment?

    My thanks in advance.

    Thread Starter Winework

    (@winework)

    Hi David,

    Really appreciate you coming back to me and your offer of help.

    Yes, I am using a custom markup template. I can send you the details if you wish.

    To answer your questions…

    1) Yes, I think tracking as an event is the better option.

    2) Don’t really know what my options are… but how about these?

    Category: Image Library
    Action: Download
    Label: [File Name]
    Value: [att category id]

    3) I’m using Universal Analytics.

    Thanks in advance.

    Colin

    Thread Starter Winework

    (@winework)

    Thread Starter Winework

    (@winework)

    OK. Thanks for explaining.

    Thread Starter Winework

    (@winework)

    Can you even tell me why Onepress doesn’t work with Unique Header plugin?

    Anyone else here know how to do it?

    Thread Starter Winework

    (@winework)

    That works perfectly. You rock!

    Thank you.

    Thread Starter Winework

    (@winework)

    OK… I have sorted the issue in the case of catalogue images, but still having trouble with the single product pages.

    Thread Starter Winework

    (@winework)

    Hi Dave,

    Thanks for all your effort in testing and explaining to me.

    With your guidance, I got it working!

    Once again, awesome plugin, top support.

    Cheers,

    Colin

    Thread Starter Winework

    (@winework)

    Hello David,

    Thanks for your guidance. I have managed to get things partially working, but I just cant seem to get the pagination to function correctly.

    Can you please take a look and suggest where I have got it wrong?

    My code is…

    <form id="mla-text-form" class="row" action="." method="post"><strong>Select a Brand to View...</strong>
    
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" show_count=true pad_counts=false ]
    
    <input id="text-form-submit" name="text_form_submit" type="submit" value="GO" />
    
    </form>
    <h3>Search Results</h3>
    [mla_gallery]
    attachment_category="{+template:({+request:tax_input.attachment_category+}|ruinart)+}" posts_per_page=10 mla_output="paginate_links, prev_next"
    mla_link_href='{+new_url+}?mla_paginate_current={+new_page+}&tax_input[attachment_category]="{+query:attachment_category,text+}"'
    [/mla_gallery]
    
    [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|ruinart)+}" size="medium" posts_per_page=10 orderby="title"]

    You can see this in operation on the site here: https://www.winework.com/draft-product-image-gallery/

    Your Password is: DavidLingren

    Issues
    1) If for example, you select the brand ‘BABICH’ (22 images), you’ll see the first 10 images. But if you click on the pagination links, the remaining images are not displayed.

    2) I would also like the pagination links to show at the bottom of the results.

    3) Is it possible to limit the drop down display to show only the brands? If not, I’ll just delete the other att cats and leave only the brands.

    Looking forward to hearing from you.

    Best regards,

    Colin

    Thread Starter Winework

    (@winework)

    Hello David,

    To begin, thank you again for all the help you’ve been in getting our image gallery functioning the way we wanted. You’ve made a awesome plug-in and the support is top-notch.

    I’m wondering if you could advise me on a change I would like to make to the behind the scenes operation on our site.

    I have been using the att_cat to categorize all our product images by brand, which seems to be more useful than by product-type.
    (eg: att_cat>brand>absolut)

    This works great, but in the image library page, I have to manually add each new brand to the drop-down options list.

    My question is, is there a sneaky piece of code that will automatically populate the drop-down options list with the brand names as I create them in the att_cat?

    Here is the existing code, showing a handful of brands for brevity. The eventual list could be in well over 100 long.

    <form id="attachment_category" action="" method="get"><select class="postform" name="attachment_category">
    <option value="brand">ALL BRANDS</option>
    <option value="35-south">35 South</option>
    <option value="aberlour">Aberlour</option>
    <option value="absolut">Absolut</option>
    </select><input id="submit" name="submit" type="submit" value="GO" />
    
    </form>[mla_gallery attachment_category={+template:{+request:attachment_category+}|steve-bird+} posts_per_page="50" mla_output="paginate_links,prev_next"]
    
    [mla_gallery attachment_category="{+template:{+request:attachment_category+}|steve-bird+}" size="medium" posts_per_page="50" orderby="title"]
    
    [mla_gallery attachment_category={+template:{+request:attachment_category+}|steve-bird+} posts_per_page="50" mla_output="paginate_links,prev_next"]

    Any advice you can offer would be greatly appreciated.

    Thread Starter Winework

    (@winework)

    Hi David,

    I really want to thank you for all the help you’ve been. I think I’ve got things looking and working how I want – and your plugin is the only thing I’ve found that can do it. Awesome!

    Image Library

    With thanks,

    Colin

    Thread Starter Winework

    (@winework)

    Hello again David,

    I have been struggling with this but, thanks to your help, I think I have made progress.

    If you take a look at my gallery HERE, it displays well using your suggested markup template from HERE.

    Now I want to remove all the borders.

    I assume this is done with a style template? I’ve had a fiddle with it and can get rid of some but not all the borders. As currently shown it is using the default style template.

    I also notice that the second image column is narrower than the first – ideally they would be equal.

    Are you able to offer any guidance?

    Thanks again in advance.

    Colin

    Thread Starter Winework

    (@winework)

    Hi David,

    Thanks for your prompt response.

    I am no expert but I suspect that there may be some issues with the theme style as you suggest.

    Here is a link to a few images in the gallery…

    Settings
    Style Template: product

    Product Style Template:

    <style type='text/css'>
    	#[+selector+] {
    		margin: auto;
    		width: 100%;
    	}
    	#[+selector+] .gallery-item {
    		vertical-align: bottom;
                    float: [+float+];
    		margin: [+margin+];
    		text-align: center;
    		width: [+itemwidth+];
    	}
    	#[+selector+] .gallery-item .gallery-icon img {
    		border: none;
    	}
    	#[+selector+] .gallery-caption {
    		margin-left: 0;
    		align: cetner;
    		vertical-align: top;
    	}
    	/* see mla_gallery_shortcode() in media-library-assistant/includes/class-mla-shortcode-support.php */
    </style>

    Shortcode: [mla_gallery order=”DESC” link=”download” size=”full” ids=”2833,2829,2825,2776,2771,2303,2290,2281,2134,2117,2113,2094,2046,1698,1685″]

    I am trying to get cat (277) to work, but so far without luck.

    Looking forward to hearing from you again.

    Cheers,

    Colin

Viewing 15 replies - 16 through 30 (of 36 total)