SubMe
Forum Replies Created
-
Forum: Plugins
In reply to: [SubMe] Not sending or receiving mailHi debbieyare,
Very annoying that something goes wrong with the emails. When testing the plugin, please make sure the ‘Cron jobs enabled’ option is set to ‘no’. This is the default option. If you still don’t receive any emails then the problem may be something other than the plugin. Maybe you can check the mail log (e.g. /var/log/mail.log) or other logs to trace what goes wrong. Some hosting providers do not allow you to send out email. Maybe you could ask them for more info or help?
Hopefully, you’ll be able to find the cause of this problem.
Forum: Plugins
In reply to: [SubMe] show number of followersApparently, WordPress replaced the backticks (`) in the code above with
tags. Removing the tags should do the trick. Replace the next line in the 'subme_status.php' file with the line following it.
Old line:
$query = "SELECT COUNT(*) ASfollowers
FROM $table WHEREactive
=1″;New line:
$query = “SELECT COUNT(*) AS followers FROM $table WHERE active=1”;Let me know if it works now.
Forum: Plugins
In reply to: [SubMe] show number of followersHi flatrock,
The SubMe plugin doesn’t show the number of followers. It is also not possible to show this with just CSS. One way to show the number of followers is to change to SubMe plugin code. But then you would have to change the code every time the plugin gets updated. It is best to create a separate plugin that show the number of SubMe followers. To get you started I created an extra plugin you could use.
1. Create a file with the filename ‘subme_status.php’ in your /wp-content/plugins’ direcory and copy/paste the following code into it.
<?php /* * Plugin Name: SubMe Status * Description: Displays the number of SubMe followers * Version: 1.0 * Author: SubMe * Licence: GPL3 */ class subme_status { public function init() { add_action( 'widgets_init', array( &$this, 'add_widget' ) ); } function add_widget() { register_widget( 'subme_status_widget' ); } } /* Subme Widget Class */ class subme_status_widget extends WP_Widget { public function __construct() { parent::__construct( 'subme_status_widget', 'Subme Status', array ('description' => 'Displays the number of SubMe followers', ) ); } public function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = $instance['title']; ?> <p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>">Title: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></label></p> <?php } /* Creating widget front-end */ public function widget( $args, $instance ) { global $wpdb; extract( $args ); $table = $wpdb->prefix . 'subme'; $query = "SELECT COUNT(*) AS <code>followers</code> FROM $table WHERE <code>active</code>=1"; if ( ! ( $result = $wpdb->get_results( $query ) ) ) { $followers = 0; } else { $followers = $result[0]->followers; } $title = apply_filters( 'widget_title', $instance['title'] ); /* Before and after widget arguments are defined by themes */ echo $args['before_widget']; echo '<div class="widget-text wp_widget_plugin_box">'; if ( $title ) { echo $before_title . $title . $after_title; } if ( 1 == $followers ) { echo "There is 1 follower"; } else { printf( "There are %d followers", $followers ); } echo '</div>'; echo $args['after_widget']; } public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['text'] = strip_tags( $new_instance['text'] ); $instance['textarea'] = strip_tags( $new_instance['textarea'] ); return $instance; } } global $my_subme_status; $my_subme_status = new subme_status; $my_subme_status->init(); ?>
2. A plugin called ‘SubMe Status’ should now be visible in the Plugins admin panel of your WordPress site. Activate it.
3. Go to Appearance -> Widgets and move the ‘SubMe Status’ to wherever you want it to show.
If you follow the above steps correctly, then you should now see the number of active followers you have on your website.
Enjoy!
Forum: Plugins
In reply to: [SubMe] Subme & WPMLHi asarda,
I’m not sure which WPML plugin you are using, as there are many results when look for WPML. Could you post a link to the plugin?
Thanks
Forum: Plugins
In reply to: [SubMe] Subscription Confirmation LInkHi mrkevinhohman,
I have had a look at your website and I can confirm the problem. The problem itself however, doesn’t seem related to the SubMe plugin (or I might be missing something).
I believe the problem may be related to something which is called “Rewrite Rules”. For example, Rewrite Rules are used to change not so pretty links such as https://yoursite.com/?p=21 to something more prettier https://yoursite/my-first-post/
When I go to the following link it doesn’t work (but it should):
https://dwellonwheels.com/?p=57&status=subscribedBut when I go to the following one, it does work:
https://dwellonwheels.com/?page_id=57&status=subscribedJust by looking at your website it is hard to determine the root cause of the problem. There may be a number of options causing this problem:
1. What settings do you have in your WordPress Admin backend under Settings -> Permalinks ?
2. What other plugins are you using? Sometimes plugins don’t work so well together.
3. It could be that because underneath of your website you are using wpengine.com and it may cause a problem. As a last resort, you may try contacting them and see if there may be a reason for this problem that they are aware of?I’m looking further into this issue, so it might be that a future update may resolve the issue for you automagically. But if it is not to much trouble for you, I would still like to know the answers to the questions above.
By the way, you guys have great plans! Enjoy your trip!
Forum: Plugins
In reply to: [SubMe] Translation and widgetHi Li-An,
I’ve made a temporary email address to which you can send your translation. Please send it to skorneo[at]inbox.com . I’ll definitely have a look at it and see if it will be available with future releases.
I will also check what English words are not translated. Thanks for the tip and your efforts.
Forum: Plugins
In reply to: [SubMe] Translation and widgetHi Li-An,
Thanks for sharing your findings. Much appreciated!
A new version of the plugin is available for download now that, among other things, fixes the problem with the widget title.
I also noticed that the widget indeed does not show properly on the default theme when the browser is smaller than a certain size. This could be solved by either disable showing the Unsubscribe button or by changing the CSS from the Appearance tab. To fix this for future users, I’ve change the default behaviour to disable showing the Unsubscribe button.
Translation of the plugin is meant to be done through the PO files as you already have mentioned. At the moment there are no plans for changing this. If you are planning on doing a full translation of the plugin and you are willing to share it, then it might be available with future releases ??
Forum: Plugins
In reply to: [SubMe] Subscription Confirmation LInkHi mrkevinhohman,
Now I see that I wasn’t completely clear in my reply. The link https://mysite.com/subscribe/?status=subscribed should be tried from a browser. You can just copy/paste the link (change the link as needed) and it should show the confirmation message a user normally would see after confirming the subscription. This is just for testing purposes, debugging sort of speak.
If you have any doubts, then maybe you could share the url of the website you are using the plugin on and maybe I could have a look?
Forum: Plugins
In reply to: [SubMe] Subscription Confirmation LInk@mrkevinhohman, thanks for the compliment and reporting this problem!
Normally, when a user clicks on the confirmation link it should process the user’s request and then the plugin should redirect the user to a confirmation message. Just to do some basic checking, maybe you could try the example below?
First some assumptions:
Page on which the [SubMe] shortcode resides: subscribe
Your website’s URL: https://yousite.com/Please change the following link accordingly.
Confirmation message: https://yoursite.com/subscribe/?status=subscribedThis link should take you to your side and show the message: ‘Thank you for confirming your subscription’
Please let me know if this works for you. If this works, but the confirmation link in the email always show an ‘oops …’ message, then please also let me know which version of WordPress you are using, which plugins you are using and any other relevant information you might have.
Cheers.
Forum: Plugins
In reply to: [SubMe] Intall caused fatal error@syzygist, thanks for taking the time to send a reply. Although, I haven’t been able to reproduce it, I appreciate your effort ??
Forum: Plugins
In reply to: [SubMe] Intall caused fatal error@syzygist, I’m not able to reproduce the problem you are having. I’ve used a default Debian and Ubuntu installation, but the plugin doesn’t produce any errors. Could you provide me with some more details of your installation, such as which OS you are using, WordPress version, installed plugins or any other info that might be relevant?
Thank you for your effort!Forum: Plugins
In reply to: [SubMe] Intall caused fatal error@wasser Werk, thank you for reporting this problem. I fixed the code and hopefully it works for you now.
@iamonlythird, great tutorial and thanks for sharing your ideas. This feature is available now since 2.0, so there is no additional coding required anymore ?? By default this is turned off, but it can be activated on the Subscriber Options settings page.
Forum: Plugins
In reply to: [SubMe] Number of e-mails (records) in view@veelkantie, thanks for asking. Maybe I will add an option in the admin panel so this can be changed.
Forum: Plugins
In reply to: [SubMe] Intall caused fatal error@syzygist, I’m sorry to hear the plugin doesn’t work out of the box for you? Which version of PHP are you using. The plugin requires PHP version 5.3.0 or higher.