Chris
Forum Replies Created
-
Forum: Plugins
In reply to: [Dooodl] Please Use Unique Function NamesSure thing. The error doesn’t actually come up in your plugin, it is only seen when another plugin also tries to create a function with the same name. One such plugin is Adminer, a phpMyAdmin plugin – I posted a similar topic in their forum. Here is the full error (home folder account id replaced):
Fatal error: Cannot redeclare redirect() (previously declared in /home/content/99/99999999/html/wp-content/plugins/dooodl/Dooodl.php:921) in /home/content/99/99999999/html/wp-content/plugins/adminer/inc/adminer/include/functions.inc.php on line 512
Forum: Plugins
In reply to: [Better Plugin Compatibility Control] Compatibility status outdatedHi Alphawolf,
Thanks for the opportunity! I’m in the same position, limited on time, but I’d be happy to work on this when I have a little free time. It might be a week or more before I can post a proper update, but I’d love to do whatever I can.
Forum: Plugins
In reply to: [Better Plugin Compatibility Control] Compatibility status outdatedI had the same problem and found a quick fix.
If a plugin does not have a readme file, it checks the WordPress repository. So I just disabled the readme lookup and made it always check the repository.
There are several ways to disable it, most coders would simply delete the relevant code and if/else blocks (starting at line 173) or turn the same code into comment code (so the original code is still there).
To keep things simple for the average non-coder, the easiest way to do this is to change line 173 of the plugin from
if( file_exists( $bpcc_readme ) ) {to
if( file_exists( $bpcc_readme ) && 1==0 ) {This effectively disables the check (because one is never equal to zero).
Now all the version info is pulled directly from WordPress.org.
One small issue: it will take a little longer to load the plugins page if there are large number of plugins (70 plugins took 25-30 seconds to load, where before it only took 6-8 seconds). It wouldn’t be difficult to cache this information as a database transient so that the page loads faster most of the time. If anyone needs this, I’ll work on it.
I was using IQ Country Block to block everything but the US, but I recently found out that W3TC was caching the blocked pages and some US visitors were not able to access the site. I ‘want’ to block countries, but I ‘need’ to use page caching.
I have not tried the falcon caching, so I’ll check it out and see how it compares to W3TC.
Forum: Plugins
In reply to: [Fast Secure Contact Form] Custom Validation FilterThanks! That would be great! I think it would be most useful under Action Hooks and Filters on the FAQ page.
It’s not fully compatible though and could easily be extended. That code is specifically for phone and phone2 fields that are not required. I’m probably going to extend it to handle replacing the default required text, and to show different error messages when phone2 is empty versus when it does not match. I’ll also add some comments to the code to help others understand what’s going on and where to make changes.
Forum: Plugins
In reply to: [Fast Secure Contact Form] Custom Validation FilterAfter looking at how some of the other validation is done, I realized the POST variables are accessible, so that worked out perfectly.
For reference, here is how I did it (my fields were phone and phone2):
function contact_form_phone2_validation($form_errors, $form_id_num){ if ( isset( $_POST['phone2'] ) ) { $phone = FSCF_Util::clean_input( $_POST['phone'] ); $phone2 = FSCF_Util::clean_input( $_POST['phone2'] ); if ( ( !empty($phone) && empty($phone2) ) || ( !empty($phone) && ($phone != $phone2) ) ) { $form_errors['phone2'] = __( 'The two phone numbers did not match.', 'si-contact-form' ); } } return $form_errors; } add_filter('si_contact_form_validate', 'contact_form_phone2_validation', 1, 2);Forum: Plugins
In reply to: [Fast Secure Contact Form] Custom Validation FilterThanks mbrsolution, but yes I’ve read what’s on that URL – it helped me get as far as I have.
That won’t work will it? From what I understand, that is for after validation and is just to edit the field before it is sent in an email. I need it to validate that the two phone number fields match and show an error message if they are not the same.
Thanks,
ChrisForum: Plugins
In reply to: [Multi Rating] rating for bbpressHi Daniel,
Is there any chance of getting bbPress support soon? I’d happily pay for the Pro version to get it.
Outside of native support, do you think it is possible to use the shortcodes and API to make it work?
The main feature I’m trying to figure out is to let visitors rate the topic when they post a reply, which is similar to posting a rating along with a comment on a post. I want to use star ratings, so maybe the rating can be submitted when they click a star and submit it via AJAX, but I definitely need to avoid a separate submit button.
I also want to show the visitor’s rating along with their reply and I want to show an aggregate rating of all topics in a forum, but I’m pretty sure I can figure out queries for that data.
Any info is much appreciated!
FYI: If you can make this work, you can surely beat the competition. The only other option I’ve found is Rating Widget which charges a small monthly fee or about $300, and that’s out of my price range. You could even release this as an addon to the Pro plugin.
Thanks,
ChrisForum: Plugins
In reply to: [AdRotate Banner Manager] Schedule Stuck On Old DatesSorry for my absence, I’ve been really busy with other projects. Looks like there was a little confusion over us working together, but it sounds like everything is cleared up now.
I just wanted to confirm that the problem appears to be fixed. Sorry I didn’t post back earlier. Thanks for the quick fix!
Forum: Plugins
In reply to: [AdRotate Banner Manager] Schedule Stuck On Old DatesOh, and there are no errors in the error log, just a couple of warning from the theme and theme plugins – not causing any problems there.
Forum: Plugins
In reply to: [AdRotate Banner Manager] Schedule Stuck On Old DatesHmm, everything else works fine. I tried deactivating and deleting the plugin and reinstalling it, which deleted all the ads, so then I imported the ads into the database from a backup. The start and end dates were all reset back to January 1, 1970, except two (odd). I tried updating the dates but it still does the same thing.
At least the “extend for one year” works, but if we can figure this issue out it would be better.
Forum: Plugins
In reply to: [AdRotate Banner Manager] Schedule Stuck On Old DatesSorry for the confusion, I didn’t mean the schedules feature, I’m just using the start and end dates. When I set the end date to a date in 2030, it is not saving the setting properly. The new end date is shown on the Manage Ads page, but when I go in to view the details of the ad, the end date still shows a date in 2013.
Also, is there a way to just not have an end date? It wouldn’t fix whatever this bug is, but it would solve my problem.
Forum: Plugins
In reply to: [Ads by datafeedr.com] View Ad Shows 404 and View Group Show No Posts FoundHmm, I thought I already responded to this with the exact same question as B-P. The links are also seen on the “All Ads” page.
I can only assume this is something added by a recent change in WordPress core and how it shows custom post types. Datafeedr should update the plugin to remove those links.
Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menuMy error, those styles are loaded dynamically and are not part of the styles.css.
Add this to the end of the styles.css:
#menu {z-index: 99 !important;}Forum: Plugins
In reply to: [Promotion Slider] Slider hides drop down menu@rachelsstorm
Hi Rachel, the element your looking for is the #menu element.A little ways down in your stylesheet, look for this:
/* Menu */ #menu {clear: both;font-size: 1.4em;font-weight: bold;z-index: 1;position:relative;width:100%;}Change the z-index to 2 or 99, like this:
/* Menu */ #menu {clear: both;font-size: 1.4em;font-weight: bold;z-index: 99;position:relative;width:100%;}