Forum Replies Created
-
AuthorPosts
-
April 11, 2016 at 10:39 pm in reply to: masonry gallery displays *most* images but the last 6 are fragmented into slices #611562
Hi Andy,
Thanks for responding. I have attached a link to the screenshots of the issue.
Thanks
KimApril 21, 2015 at 3:11 pm in reply to: Problems with edits/updates not displaying – defaulting to blank page or blog #432044This reply has been marked as private.March 27, 2015 at 6:10 pm in reply to: Email Obfuscation by Cloudflare is not working anymore #419515Hi Elliott,
It isn’t a short code – at least I don’t think so…It’s a feature I can enable in CloudFlare dns settings which encrypts email addresses while keeping it visible to humans. Here is the information from the CloudFlare site. thank you for your help. Kim
…………….How do I know if email address obfuscation is working?
1. Make sure that the feature is “On” on your CloudFlare settings page.
2. Open a second browser window and find the page on your site where an email address is displayed to humans.
3. Look at ‘view source’ and look for the area with the email address. You will see that the simple email address is encrypted so bots can not harvest it. (Tip: If you have a full page of html, you can easily sort through the content by searching for @. You shouldn’t find an @ for the email address that was encrypted)If you would like to see what CloudFlare has done to the email, just search (in the source code) for cloudflare.com. Just below/after that link is the encrypted email address.
Scenarios where email addresses don’t scrambleThere are certain scenarios where the email addresses are not obfuscated to avoid breaking websites including:
In attributes of html tags
Inside certain other html tags such as:`*script tags : <script></script>
*noscript tags : <noscript></noscript>
*html comments : <!– –>
*textarea tags : <textarea></textarea>
*xmp tags : <xmp></xmp>
*head tags : <head></head>`Any page that does not have a MIME type of “text/html” or “application/xhtml+xml”
Added on June 12, 2011: You can also prevent CloudFlare from obfuscating emails by adding comments within the HTML code for the page. The comments to use are <!–email_off–> <!–/email_off–>. Any email addresses between the opening and closing comment tags will be displayed to the user exactly as written in the original HTML code.
If an email address is not being replaced and it doesn’t fall into one of these categories, contact CloudFlare and they’ll look into the scenario.
On/Off
If you switch the toggle from on to off, or vice versa, the change will take 15 seconds to propagate through the system. You do not need to refresh the page.
Requirements
A page should have a MIME type (Content-Type) of “text/html” or “application/xhtml+xml” for the email obfuscation to happen. For instance, if you’re doing some ajax calls, and wish to return email addresses in a JSON format, make sure your webserver returns a type of “application/json”Thanks so much for your help.
KimThis reply has been marked as private.Hi Yigit,
Thanks for your help but I did do that. If you read the thread that was left hanging you can see where my problem left off. Ismael thought there was something wrong with my code and asked me to post the code on pastebin here is the link to the page where the thread started…
https://kriesi.at/support/topic/portfolio-sort-by-title-and-title-display-on-hover/
Thankss!
KimHi Ismael,
I posted the whole code of my masonry_entries.php file here:
http://pastebin.com/6rFR90Dg
and titled it “masonry for Ismael”
just in case I also pasted my child theme functions.php here:
http://pastebin.com/0pQQNBzK
and it is titled “child theme functions”Thanks,
Kim- This reply was modified 10 years, 8 months ago by Kimberlyjo. Reason: updated a link
Hi Peter,
Ohhh. This is very stubborn. It continues to sort by date…. so okay.
I added the code to my functions.php file in my child theme and it looks like this:
<?php
/* add_filter(‘avia_masonry_entries_query’, ‘avia_random_image_query’, 10, 2);
function avia_random_image_query($query, $params)
{
if(empty($query[‘post_mime_type’]))
{
$query[‘orderby’] = “title”;
$query[‘order’] = ‘ASC’;
}return $query;
}
*/and the masonry_entries.php code looks like this:
{
$this->atts[‘categories’] = array();
}
}
}function sort_buttons()
{
$sort_terms = get_terms( $this->atts[‘taxonomy’] , array(‘hide_empty’=>true, ‘orderby’ => ‘name’,
‘order’ => ‘ASC’,) );$current_page_terms = array();
$term_count = array();
$display_terms = is_array($this->atts[‘categories’]) ? $this->atts[‘categories’] : array_filter(explode(‘,’,$this->atts[‘categories’]));Can you tell where the problem is?
Thanks,
KimHi Devin,
Thanks for the response. I went to stackOverflow and they are talking in a language much more complicated than my tiny brain can handle. It’s way over my level. I hope one day we will be able to have that functionality as an option within a responsive framework :-)
Thanks
KimOkay will do thank you :-)
KimHi Ismael!
Thanks for the instructions. I was able to adjust the js file now the yellow info box doesn’t show on the images in my masonry gallery. Is there a way to eliminate that little yellow box from displaying on all images within my site?Also
I edited the onfig-templatebuilder > avia-shortcodes > masonry_entries.php, as instructed but it doesn’t change the sort. I reset the cache and reloaded the page several times but it didn’t work. here is what the code looks like. Can you tell where I went wrong?$this->atts[‘categories’] = $this->atts[‘link’][1];
}
else
{
$this->atts[‘categories’] = array();
}
}
}function sort_buttons()
{
$sort_terms = get_terms( $this->atts[‘taxonomy’] , array(‘hide_empty’=>true, ‘orderby’ => ‘name’,
‘order’ => ‘ASC’,) );$current_page_terms = array();
$term_count = array();
$display_terms = is_array($this->atts[‘categories’]) ? $this->atts[‘categories’] : array_filter(explode(‘,’,$this->atts[‘categories’]));foreach ($this->loop as $entry)
{
if($current_item_terms = get_the_terms( $entry[‘ID’],Thanks,
KimLooks like I added the screenshot improperly. Maybe this will work…
Hi Ismael!
Thanks on the portfolio sort. This will make all my portfolios sort by title right?I’ve attached a screen shot of the little yellow box I would like to stop
[IMG]http://i60.tinypic.com/20k7z4k.png[/IMG]Thanks!
This reply has been marked as private. -
AuthorPosts