Social and Opt-in form
-
Hi,
First of all, thanks a lot for this plugin, I like it a lot.
I was wondering if there was a way to also have the social sharing links on the left side of the content like you have on your themes.
Also, is there a way to have the “name” field for the opt-in shortcodes like we have for the widget?
Thanks!
-
Oh and also, is it possible to change the sharing counts manually?
Hi Dany!
Nice to see you here. We like your themes too ??
You may register unlimited number of share buttons locations with a code like this:
/** * Register Floated Share Buttons Location * * @param array $locations List of Locations. */ function csco_share_buttons_post_sidebar( $locations = array() ) { $locations['post_sidebar'] = array( 'shares' => array( 'facebook', 'twitter', 'pinterest', 'mail' ), 'name' => esc_html__( 'Entry Sidebar', 'text-domain' ), 'location' => 'post_sidebar', 'mode' => 'mixed', 'before' => '', 'after' => '', 'display' => true, 'meta' => array( 'icons' => true, 'titles' => false, 'labels' => false, ), // Display only the specified layouts and color schemes. 'fields' => array( 'display_total' => true, 'display_count' => true, 'layouts' => array( 'simple' ), 'schemes' => array( 'default', 'bold-bg', 'bold' ), 'count_locations' => array( 'inside' ), ), 'layout' => 'simple', 'scheme' => 'bold-bg', 'count_location' => 'inside', ); unset( $locations['before-content'] ); return $locations; } add_filter( 'powerkit_share_buttons_locations', 'csco_share_buttons_post_sidebar' );
And then echo them with the code
<?php powerkit_share_buttons_location( 'post_sidebar' ); ?>
.As for changing share counts manually, we’re strictly against faking any shares and deceiving users.
Hi,
Thanks so much, big fan of your work.
Since I’m really not a good developer, I was really happy to discover your plugin and I want to incorporate it as much as I can in my themes and having to only rely on 1 plugin for all those functionalities (which I think was your goal for it) is really neat.
Is it weird that I’m using it in my own commercial themes, was that the purpose of the plugin or you were thinking of it being used more by normal user etc?
Will give this code a shot today and let you know how it goes. For the “fake” numbers, I was only asking for demo purpose only, like on your demos, I doubt there was really 468 shares for that post : https://overflowtheme.com/overflow/tempus-vitae-quis-rutrum-vel-ut-eget-eu-pulvinar-blandit/
Also, you haven’t answered this question : Is there a way to have the “name” field for the opt-in shortcodes like we have for the widget?
Any plans on having the “number of views” and “reading time” added to the plugin? Also, having the “trending” widget (that probably link to the sharing functionnality) in the plugin would be really nice.
Just out of curiosity, are there any plans on having more stuff added to the plugin?
Sorry I’m just really excited about it, it’s exactly what I needed.
Oh, and do you have the documentation for developers, this link doesn’t work : https://codesupply.co/documentation/powerkit/developers
Thanks again.
Dany
-
This reply was modified 6 years, 3 months ago by
danyduchaine.
Just tested the code you gave me, worked perfectly except that this line :
unset( $locations['before-content'] );
throw that error :
Notice: Undefined variable: icons in C:\Users\Dany\Documents\Websites\ddframework.localhost\wp-content\plugins\powerkit\modules\share-buttons\helpers\helper-powerkit-buttons.php on line 798
I could just remove the line and have the sharing still appear before the content and the user can disable it from the options but if you have a solution so that I can remove it like you did and not get the error it would be nice.
Let me know.
Hi!
Is it weird that I’m using it in my own commercial themes, was that the purpose of the plugin or you were thinking of it being used more by normal user etc?
No, it’s not weird at all ?? When I was starting making themes, I was dreaming of having a plugin like this too. We’ll be probably adding premium modules over time. But haven’t decided yet.
For the “fake” numbers, I was only asking for demo purpose only, like on your demos
Number of shares is stored as post meta and you may override it with WordPress filters.
Is there a way to have the “name” field for the opt-in shortcodes like we have for the widget?
Please try this code:
[powerkit_subscription_form title="Title" text="Text" display_name="true"]
Any plans on having the “number of views” and “reading time” added to the plugin?
Yes, both will be added to Powerkit.
Also, having the “trending” widget (that probably link to the sharing functionnality) in the plugin would be really nice.
Yes, we may probably add Shares to the Order By select field of the Featured Posts widget.
Just out of curiosity, are there any plans on having more stuff added to the plugin?
Yes. We’ll be adding Google Analytics integration, modals with exit intent, the above mentioned post views synced with Google Analytics. There’re no fixed dates for it yet, as we’re now converting all shortcodes and widgets to WordPress 5.0 blocks and it may take a lot of time.
Documentation for developers hasn’t been prepared yet either, I’m afraid.
The easiest way to get acquainted with integration means is to purchase one of our themes and have a look at the code. There’re a lot of hooks and filters in Powerkit, so you may easily integrate it with your theme.
Cheers!
As for the error, I’m not sure, why you’re getting it exactly. The code looks correct to me. Make sure, you have
icons
inside themeta
array.Well, I’m really glad you are sharing it. Having everything in the same place and working well together is amazing. I saw that when you register a new location for the sharing plugin, it add it to the settings so the user can turn it on/off, that’s brilliant. Can’t wait to get more familiarized with everything.
I already started to integrate those widgets in my designs : https://dribbble.com/shots/5642891-Dark-WorPress-blog-in-progress-4
Just bought ‘Overflow’ (and rated it). Will take a look at the code and see what I can do.
If you have any tips on how to integrate it and use the hooks, let me know.
The code for the form works and the error is gone, not sure why but that’s what usually happens when I play with code ??
Can’t wait to see what’s next for this plugin, thanks again.
-
This reply was modified 6 years, 3 months ago by
danyduchaine.
Many thanks for purchasing Overflow and your rating. Highly appreciated.
The design of your new theme looks nice.
Feel free to reach out to me, should you have any other questions.
You are welcome, it’s the least I can do for using your plugin.
I have a question, I notice that your “featured posts” widget has more options to show meta (views, date, author etc.). I tried the plugin that come with Overflow but I didn’t have those option on my theme so it’s probably a modification. I looked in “inc/powerkit.php” but didn’t found anything about those new options, just the one for “inverse” design.
Also, what could I do if I want to get rid of a widget entirely, suppose I want to use my own featured post widget and I don’t want user to have access to the one in the plugin?
Thanks!
There’s a check
if ( function_exists( 'csco_get_post_meta' ) )
in the Powerkit Featured Posts widget class. This function can be found in all our themes in inc/post-meta.php.I don’t think, there’s currently a way to disable a module completely, but a user may disable it from the Powerkit settings page. There shouldn’t be an issue with existing Powerkit widgets, as everything is prefixed and they have styles that will work in every theme.
-
This reply was modified 6 years, 3 months ago by
codesupplyco.
Awesome, will try that. Thanks.
-
This reply was modified 6 years, 3 months ago by
- The topic ‘Social and Opt-in form’ is closed to new replies.