Mattia Roccoberton
Forum Replies Created
-
Forum: Plugins
In reply to: [Netcam / Webcam Live Stream] Flicker/flashHi Charts.
I’m sorry if I reply late, very busy period.
I saw your website, nice view ??
About the flickering… this is a very simple plugin, there are better methods to offer a live from a netcam but they are complex.
The resolution you are using (720p) is big so sometimes there are small gaps between the “removing frame 1” and “pushing frame 2”.
I hope to improve this in future, but currently I can’t do better…Forum: Reviews
In reply to: [Netcam / Webcam Live Stream] Swann CamsHello Brad.
I don’t know that specific product.
My plugin works with any netcam or webcam with a static JPEG URL (= a path on the netcam that offer a single image of the live)Hi Brad.
What’s the problem exactly?
In the “url” parameter you put the URL to a single JPEG image from the webcam/netcamForum: Plugins
In reply to: [Category Featured Images] Subcategory ThumbnailGood.
If you like my plugin please rate it ??Forum: Plugins
In reply to: [Category Featured Images] Subcategory ThumbnailHi hassanbhatti.
The function get_category_children is deprecated:
https://developer.www.ads-software.com/reference/functions/get_category_children/If you want to use it anyway you could:
– split the string result (it should be a list of IDs) using explode() PHP function;
– for each ID you could use cfi_featured_image to get the featured image.Forum: Plugins
In reply to: [Polymer for WordPress] How to Create CardsHello Jason.
I put only a few examples because you can find many samples on the web on using Polymer in various ways. My plugin aims to provide a generic system to use Polymer with WordPress.I don’t know about a Polymer element named Card.
You could create something like this:
https://www.polymer-project.org/0.5/docs/start/tutorial/step-2.htmlForum: Plugins
In reply to: [Category Featured Images] Does not workWhich is not a free theme, I can’t test it.
Perhaps it uses his own way to present the featured images.Forum: Plugins
In reply to: [Polymer for WordPress] Feel free to send me suggestions / ideasmumuhajir21: that behavior is caused by the autop option (which automatically adds p tags for each new line in the post editor); to work my plugin requires the autop disabled.
If you flag “Enable autop” option (in the plugin box of the post editor) it will work again as before but you could have some problems with Polymer tags.
I will think to a better solution if possible.With the category id as above you can get the cat name as title:
echo get_cat_name( $cat_id );
Forum: Plugins
In reply to: [Polymer for WordPress] Feel free to send me suggestions / ideasykaribou: that row is in your script?
“var i$” … usually $ is a special character, perhaps it could not be accepted from Javascript as a valid qualifier.mumuhajir21: standard components are imported automatically
When you edit (or create) a post and you insert the Polymer shortcode or use a Polymer tag my plugin will parse the document (while saving) to produce a list of the required imports.Good – please rate my plugin if you like it ??
You could do something like this:
$fimg = cfi_featured_image_url( array( 'size' => 'large', 'cat_id' => $cat_id ) ); if( !empty( $fimg ) ) echo '<img src="', $fimg,'" />';
Hello Southwest.
In archive.php you could get the category ID, it should be:
$cat_id = get_query_var( 'cat' );
Then you show the image:
echo cfi_featured_image( array( 'size' => 'large', 'title' => 'This is a test...', 'class' => 'my-image', 'alt' => 'My image', 'cat_id' => $cat_id ) );
But I didn’t tried myself.Forum: Plugins
In reply to: [Polymer for WordPress] Feel free to send me suggestions / ideasHello mumuhajir2.
My plugin offer only a way to use Polymer components in WordPress.
To see/learn what Polymer can do you can look the samples and docs on the official website:
https://www.polymer-project.org/Forum: Plugins
In reply to: [Polymer for WordPress] custom elementI think that my plugin is not a good choice for a theme because it defines the html Polymer components to load when the user save a post/page.
In a theme I would include a copy of Polymer library because it is not a stable project yet (so you will not have problems if my plugin is updated to a new version) and you can load the components you need based on how you build the theme.