Igor Benic
Forum Replies Created
-
Hi @edgar-e-kneel,
just deactivate the free one. That’s all 🙂
Hi @bianeck,
to get an array of participants, you can use:
giveasap_get_entries_for( $giveaway_id )To get a logged in user, you can get the current user email: https://codex.wordpress.org/Function_Reference/wp_get_current_user
and then check if that email is subscribed:
giveasap_get_user_by_email( $email, $giveaway_id )Hi @jhebbel,
it used postmeta at first. I’ve changed it to a separate table so it scales better and does not make the postmeta table bigger since that table is already used for a lot of data. Also, when storing that into a postmeta row, you need to get that data, update it with a new subscriber and save it again. If there are more than 1 subscription at the same time, some data might be lost.
Also, additional data can be stored into a separate meta table for each subscriber which helps with data management and collection.
The SQL statements are prepared before being processed.
If you’re questioning this plugin and you think it should not be coded as it is, feel free to use a different one. People have run giveaways for thousands of users without any issues so far. I guess it should be fine handling yours also.
Also, since this plugin is using separate tables, it won’t slow your site due to postmeta slow queries.
Hi @jhebbel,
the function giveasap_get_user_by_email should not be using get_user_by since we are checking a separate table of entries (people who entered a giveaway). We are getting a user from that table (a subscriber) and not a user from the WordPress users database.
Hi @jhebbel, you can put your changed file giveasap_template.php inside of a folder /giveaways/ in your theme.
The next update will pull that file first.
Hi @jhebbel, this plugin was not intended to be used in that way at the beginning. It was intended to be used as a separate page, without any scripts or styles from other plugins/themes so the load can be much faster.
The filter the_content could be used of course, but it would retain the whole layout of the main content and since this giveaway has a different layout there might be a lot of conflicts (for example: the theme layout has borders and the giveaway layout also has them, the premium templates have images placed aside of the content and all that would look too squeezed inside of a boxed layout). That’s the reason this was not considered into using.
I’ll try to implement the theme mechanism.
Hi @jhebbel, there is no standard WP hook for that. It is a mechanism each plugin, that allows that, needs to provide it.
I have not yet written that mechanism.
I do have other hooks which can be used to change a template:
Hi @jhebbel,
there is a different type of giveaway where only logged-in users can enter.
For now, there is no other way but I will note your questions as feature requests for future versions.
Hi @brunonk,
the plugin will choose one of those two randomly.
Forum: Plugins
In reply to: [Pets] Theme CompatibilityHi @cabana2013,
I can’t say it. This plugin has some default styles set so they would probably be shown there. The colors can be changed easily with some custom CSS which I can provide you with once I get to see how it looks like.
The premium version won’t give you any feature since it’s only a way to support me and an animal shelter near me. At least, that how it is for now. So use the free one before you’re 100% happy with it 🙂
Forum: Reviews
In reply to: [Live Scores for SportsPress] Visuals and sounds are weakHi @ozgurgedikli,
thank you for your review.
Images are the same SportsPress uses so we did not interfere with the quality or size of them. I’ll see with the widget and what is the issue there.
Sound effects are not something we are looking to implement. But we do have a plan to make utilize the browser notification API to see if we can send notifications through browsers and thus the sounds would also be there 😀
Forum: Plugins
In reply to: [Pets] Adopt / For Adoption TaxonomyHi @cressr,
version 0.5.0 now adds the option to make a field searchable.
You can make a checkbox field Adoptable. Then all pets which are checked to be adoptable, they’ll show when choosing to find adoptable.
Forum: Plugins
In reply to: [Pets] Adopt / For Adoption TaxonomyHi @cressr,
sorry for a late response. Did not receive an email about it.
You can create a new Field to be a checkbox and name it “Adoptable”. And then on each pet, you can check it if it is or not.
Here is a page with the picture of the fields: http://www.petswp.com/custom-fields/
- This reply was modified 7 years, 7 months ago by Igor Benic.
Hi @nyehia,
version 1.1.0 has now the option, a checkbox right above the table with sale points. This option if checked, will change the sale price while the product is on sale.
Hi @fabricbarberia,
I am checking the translations and they don’t seem to be there:
https://translate.wordpress.org/locale/es/default/wp-plugins/giveasap