admiralchip
Forum Replies Created
-
@jdz66 Not sure if you’re still interested, but recently I made a plugin extension that adds this functionality. You could try it.
I uploaded it on GitHub. Here’s the link:
https://github.com/admiralchip/konnichiwa-specific-date-expiration
Download the plugin, install it and activate it. Then go to Settings > Konnichiwa! SDE and set the specific date that you want a subscription to expire.
I hope this helps you and anyone else who needs it. ??
Forum: Hacks
In reply to: Pagination links for custom query in admin dashboard show the same page numberThanks for the reply. I tried putting it that way but unfortunately it didn’t work as well.
I eventually sorted it out by building a custom function to generate pagination. ??
Forum: Hacks
In reply to: Pagination links for custom query in admin dashboard show the same page numberThanks for the reply and sorry for the wrong use in terminology. I indeed meant a page that is in the admin backend. The page is one that is created by my custom plugin.
I followed the example that was given here by Hemi: https://stackoverflow.com/questions/5322266/add-pagination-in-wordpress-admin-in-my-own-customized-plugin
You can still use the function, but you need to feed it the correct values in its arguments instead of relying on the query to feed it. You mainly need to be concerned with the ‘total’ and ‘current’ values.
So should it look something like this instead?
$page_links = paginate_links( array( 'base' => '%_%', 'format' => '&pagenum=%#%', 'prev_text' => __( '«', 'text-domain' ), 'next_text' => __( '»', 'text-domain' ), 'total' => $num_of_pages, 'current' => $pagenum ) ); if ( $page_links ) { echo '<div class="tablenav"><div class="tablenav-pages" style="margin: 1em 0">' . $page_links . '</div></div>'; }
Thanks in advance.
Forum: Fixing WordPress
In reply to: Unable to create directory!Hi!
Go to wp-config.php, locate
define('WP_DEBUG', false);
and change false to true. Visit your site and see what errors it throws.Forum: Plugins
In reply to: [Konnichiwa! Membership] Subscription Plan DurationFor all those who are interested in the cancel subscription feature, I’ve just released it as a plugin on Github to make it easier to set it up. That way you don’t have to create a folder and put the konnichiwa-cancel.php file in it. You can get it here:
https://github.com/admiralchip/konnichiwa-cancel
Just click on “Download Zip” found on the bottom right corner of the page to download the plugin. Afterwards, you can go to the dashboard of your WordPress site, go to Plugins > Add New > Upload Plugin and upload the zip file you just downloaded. Activate the plugin the way you usually would and use the shortcode
[ad_konnichiwa_cancel]
.I hope this helps to make it easier. ??
Forum: Plugins
In reply to: [Konnichiwa! Membership] Subscription Plan DurationHi @damonlehrer !
Here’s how you can do it:
On your computer, make a folder the way you usually would as if you were going to organise some files on your desktop. Then put the ‘konnichiwa-cancel.php’ file into that folder. Afterwards, upload that folder to the wp-content/plugins folder of your wordpress site using FTP. ??
OR
If you’ve got cPanel access to your site, navigate to the plugins folder that is in the wp-content folder. You should see an option allowing you to create a folder or directory. Click on that and give the folder / directory a name. When you’re done with that, open the folder / directory that you just created and upload konnichiwa-cancel.php there. ??
When you’re done, login to your dashboard and activate the plugin.
Let me know how it goes! ??
Forum: Plugins
In reply to: [Konnichiwa! Membership] Subscription Plan DurationMade some changes to it. I’ll put the link again just in case it changed:
Forum: Themes and Templates
In reply to: [Smartline Lite] Remove Website Link from Footer Powered ByYou’re welcome ??
Forum: Plugins
In reply to: [Konnichiwa! Membership] Subscription Plan DurationHi!
Here’s what I’ve been able to come up with so far. I put it up as a gist on github for now. I hope it works for you.
Gist: https://gist.github.com/admiralchip/379766c0d56e7351709a
How it works:
– It uses the shortcode[ad_konnichiwa_cancel]
to select the plan(s) that the user is currently subscribed to and displays them to the user. There is a “Cancel” link right next to the plan name.
– The user clicks cancel and then they are asked if they are sure. At this point they can click “Yes”.
– Then their subscription is cancelled! (The record of their subscription is deleted from the database.)
– The user has to be logged in to see their subscriptions. If they’re not, they’ll be redirected to the login page.Although you’ve still gotta set the plan duration to a VERY long one (like the 2000 months you mentioned earlier) it does give the user the chance to cancel their subscription anytime they want to.
How to use it:
– Put “konnichiwa-cancel.php” into a folder. You can name it “konnichiwa-cancel”.
– Put the folder that you made into the plugins folder under wp-content.
– Activate the plugin as usual.
– Put the shortcode[ad_konnichiwa_cancel]
in a Page or a Post and voila!Hope this helps. Let me know what you think.
Forum: Plugins
In reply to: [Konnichiwa! Membership] Subscription Plan DurationHi!
Not sure if you’re still interested in having this feature but I just thought I’d let you know that I’m currently working on a plugin that’ll allow a user to cancel their subscription anytime they want to. I’ll let you know when I’m done. ??
Forum: Fixing WordPress
In reply to: Javascript in script tags stopped workingfound it. it turns out I got caught in the same domain thing with regards to iframes (not sure what it was called again). the page is in the same domain. It turns out that I didn’t add www.
Thanks
Forum: Fixing WordPress
In reply to: Javascript in script tags stopped workingfunnily enough when I add alert(“ok”); inside the tags that contain the javascript that isn’t working, I get the alert. I just have no idea why the other ones don’t work. I didn’t alter them from their working state. ??
Forum: Fixing WordPress
In reply to: Javascript in script tags stopped workingIf I updated to the latest version of wordpress and it doesn’t work, can I reinstall a lower version without losing anything?
Forum: Hacks
In reply to: how to resize iframe height according to its content?Thanks for the link! I’ll check it out when I have more time. ??
Forum: Hacks
In reply to: how to resize iframe height according to its content?Alright! Thank God, I’ve figured it out! ??
I followed the tutorial from this site: https://www.willmaster.com/library/tutorials/auto-resize-iframe-when-content-size-changes.php
I just put the javascript directly into the page and it worked perfectly!
Now, the next thing I’ve gotta figure out is how to make it some what responsive.