Forum Replies Created
-
AuthorPosts
-
Well as an Austrian, Krisie should know, hat Austrian and German copyright law requires to display the copyright of the picture directly besides the picture. So he should feel the need for it and reconsider it soon – shouldn’t he? :-)
- This reply was modified 7 years, 6 months ago by mlkg.
Thanks Victoria,
so this is bug in enfold? Or a intentionally dismissed feature?
Regards,
Rolf<script language="javascript"> (function($){ $(window).load(function() { var postImage = $('.single-big .wp-post-image'); var imgAlt = postImage.attr('alt'); if(imgAlt) postImage.after("<div class='img_caption'>"+imgAlt+"</div>"); }); })(jQuery); </script> <style> .big-preview.single-big .img_caption { position:relative; margin-top:-20px; z-index: 1000; background:rgba(255,255,255,0.8); padding:0 5px; font-size: 9px; text-align: right; color:#777 !important; } </style>
But that is only because the actual caption is not displayed…
and actually, the ALT-Field is the wrong field for image caption :-)
- This reply was modified 7 years, 6 months ago by mlkg.
See below :)
ok
The Caption, that you see when visiting the page is an extra javascript, which extracts the ALT-Tag of the image and inserts a caption, until the “real” caption is working again :-)
February 1, 2017 at 2:42 pm in reply to: Malware warning by Wordfence because of PHP-comment in html-helper.class.php #741249Hi Yigit,
yes, deleting the line is working, of course :)
Thanks for having the change in for the next update…
Regards,
RolfGreat, this works!
By the way, the code I changed/added is this:
masonry_entries.php, from line 770:
case 'video' : if(!$this->loop[$key]['thumb_ID']) { preg_match_all('#\bhttps?://[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#', $entry->post_content, $match); foreach($match[0] as $test_url){ if($this->loop[$key]['video_image_url']=video_get_image_url ($test_url)) break; } if($this->loop[$key]['video_image_url']=="") $this->loop[$key]['text_before'] = av_icon_display($post_format); } else $this->loop[$key]['text_before'] = av_icon_display($post_format, 'av-masonry-media'); break;
…and line 863:
//get attachment data $this->loop[$key]['attachment'] = !empty($this->loop[$key]['thumb_ID']) ? wp_get_attachment_image_src($this->loop[$key]['thumb_ID'], $img_size) : array($this->loop[$key]['video_image_url']);
and in functions.php this function:
// Video-URL function video_get_image_url($url,$size="thumbnail_large"){ $image_src = parse_url($url); if($image_src['host'] == 'www.vimeo.com' || $image_src['host'] == 'vimeo.com' || $image_src['host'] == 'player.vimeo.com'){ parse_str($image_src['query'], $query); if(isset($query['clip_id']) && $query['clip_id'] != ""){ $id = $query['clip_id']; } else { $path = explode("/",$image_src['path']); $id = $path[(count($path)-1)]; } if(function_exists('curl_init')){; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://vimeo.com/api/v2/video/$id.php"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $output = unserialize(curl_exec($ch)); $output = $output[0][$size]; curl_close($ch); return $output; } } else if($image_src['host'] == 'www.youtube.com' || $image_src['host'] == 'youtube.com'){ parse_str($image_src['query'], $query); if(isset($query['v']) && $query['v'] != ""){ $id = $query['v']; } else { $path = explode("/",$image_src['path']); $id = $path[count($path)-1]; } if($size=="thumbnail_large") return "http://img.youtube.com/vi/".$id."/0.jpg"; else return "http://img.youtube.com/vi/".$id."/default.jpg"; } else{ return false; } }
Voilá – now every post content of type “video” in the masonry automagically displays the cover image of the first video of the post instead of only the video icon. Wouldn’t this feature be nice for a future enfold update? :-)
October 31, 2014 at 12:23 pm in reply to: Automatic image caption für featured image of a post? #343957Thanks, that works. Couldn’t you build that in as an option to enfold, so people don’t have to mess with their functions.php?
Ok, thank you :)
Hi Josue,
no, you got me wrong. I don’t want to deactivate the comment count, I want to *avtivate* it because I can’t see them…
Have a look here: http://www.family.deRegards.
RolfHi Perter,
info: After upgrading to the latest version the wand is back again in its full glory! :)
Regards,
RolfJune 2, 2014 at 11:31 pm in reply to: Admin menu bar overlapping Advanced Layout Editor in full screen mode #273594Ok, updating solved it. Thanks! However, the Layout of my site broke after updating, because animated images are no longer accessible via css by “img.top-to-bottom” but rather by “.top-to-bottom img”. Could you inform us about such changes in the read me? Would appreciate that… :)
Have a nice week!
RolfJune 2, 2014 at 10:31 pm in reply to: Admin menu bar overlapping Advanced Layout Editor in full screen mode #273539This reply has been marked as private.Hey Kriesi,
I’m terribly sorry! I used Version 12 – no wonder it didn’t work. I clicked on “Update Opera” before posting this and it said “You have installed the latest version of Opera”, so I believed it was so. I didn’t double-check with opera.com. :( Apparently, there is a bug in the update routine of that version.
Sorry again – everything works fine with the latest version! :)
Regards,
RolfHave a look at this:
http://quick.as/jq4vir79Hey Ismael, sounds great, but it doesn’t work with me (latest Version). The wand inside the text block only offers a reduced set of options (4 content elements and dropcaps):
And when generating codes like this…[av_one_half first]Add Content here[/av_one_half]
[av_one_half]Add Content here[/av_one_half]…with the advanced layout editor turned off, and inserting it into the text block, then something like this happens:
Cheers,
Rolf- This reply was modified 10 years, 9 months ago by mlkg.
February 1, 2014 at 1:15 pm in reply to: Advanced Layout Editor crashes with "CSS & Javascript Toolbox" since 2.5 #218245That would be sad, because the plugin is the only real way to insert JS into the site, since enfold itself doesn’t offer a HTML/Scripting element.
January 30, 2014 at 4:57 pm in reply to: Advanced Layout Editor crashes with "CSS & Javascript Toolbox" since 2.5 #217029Hi Dude!
Hey, some progress :-D
The author of “CSS & Javascript Toolbox” wrote me this:
CJT <= 6.1.1 prepared all blocks associated with the request within “wp” WordPress hook action.
CJT > =6.1.2 is now using the “template_redirect” hook filter to do that. “template_redirect” hook filter is being fired and processed by WordPress for canonical URLs. This filter is not being fired on your WordPress installation might be because of the theme or another Plugin.Can this help you investigating? Is the “template_redirect” hook not fired when using the advanced layout editor of enfold?
Best Regards,
RolfJanuary 27, 2014 at 6:50 pm in reply to: Advanced Layout Editor crashes with "CSS & Javascript Toolbox" since 2.5 #215449Hi Feliperobert,
please head over here and express your need in this thread: http://wordpress.org/support/topic/612-and-wp-38-plugin-not-working
Bye,
RolfOf course, Peter, because the credentials can obviously be viewed by non admins (see above). So I deleted the access immediately. Can you give me a secure way to pass you new credentials?
Hi Jean,
you see the Test-account-credentials?? Hey Dude, the there is a real problem with your description that only admins can see private posts…!
- This reply was modified 11 years, 1 month ago by mlkg.
But it’s a little weird. One normally would put them away with display:none, not by putting them 1500px to the left. :-D On my iMac, they are shown due to the big screen.
- This reply was modified 11 years, 1 month ago by mlkg.
Done. Hope, blue border means “private” :D
This reply has been marked as private.Just dropping in here: I have the same issue. WP SuperCache is installed but not active.
Thanks, Devin. That’s fine, but the customization will disappear every time I update the theme.
Look what I have coded, maybe you want to include the snippet in the next version of enfold?
To avia.js, I added after line 1233:
// function to decide if menu overlaps logo function menuSqueezed(){ if(!$("#header ul#avia-menu").attr("origwidth")) $("#header ul#avia-menu").attr("origWidth",$("#header ul#avia-menu").width()); return(($("#header ul#avia-menu").attr("origWidth")*1 + $("#header .logo img").width()) > $("#header .container").width()); }
and then I replaced line 1369ff with this:
//plugin functionality function run($this){ //menu doesn't exist if((isMobile() || menuSqueezed()) && !menuExists($this)){ createMenu($this); } //menu already exists else if((isMobile() || menuSqueezed()) && menuExists($this)){ showMenu($this); } //not mobile browser else if(!isMobile() && menuExists($this)){ hideMenu($this); } }
For me, this works like a charm because it adapts dynamically to the width of logo and menu and switches to the mobile menu if things won’t fit. You can try via the above url. This even works on a full width window with a too much stuffed menu. I could imagine this would be great for other enfold users, too, since surely nobody wants menu and logo to overlap. :)
Cheers,
Rolf- This reply was modified 11 years, 2 months ago by mlkg.
Hey, you know what? I just uploaded todays enfold update and now it almost works :-D
Only some css z-Index-Problem now, but Ill fiddle that one out.. :-)
Thanks for your kind trying to help though… :)
Sorry, forgot the link: http://www.seveneleven-magazin.net/downloadmaterial/seveneleven-leseprobe
Thanks!
:-)We have made http://www.seveneleven-magazin.net with Enfold and somebody wrote us: “This is the best Website in Germany!” :-D
I strongly support this one:
Offset for Blog Grid Element, so users can build creative Magazine Pages
-
AuthorPosts