ianhaycox
Forum Replies Created
-
Forum: Plugins
In reply to: [Motor Racing League] Bug fix for your scoring scriptThank you for the feedback and fix.
Yep – bit of a dumb PHP 101 error ??
I’ll update the plugin with the fix.
Ian.
Forum: Plugins
In reply to: [Motor Racing League] Opting back into email reminderThe only way to restore reminders is to remove some meta data for the user.
I suggest you install the plugin User Meta Manager, https://www.ads-software.com/plugins/user-meta-manager/
Using the User Meta Manager, from the list of users hover over the username, then click ‘Delete Meta’
Choose the meta key:
motorracingleague_reminder_cancel_x
where x is the season ID
and confirm deletion of this entry and the user should get reminders again.
Ian.
Forum: Plugins
In reply to: [Motor Racing League] Nothing shown in widget ??If you put a shortcode on a post to display results, is anything shown ?
Have you clicked ‘update scores’ after entering the predictions – if there are no results, nothing will be shown.
Forum: Plugins
In reply to: [Motor Racing League] Edit PredictionIf you have ‘User must be logged in’ checked, then when they come back to the prediction form, the previous prediction is shown and they can change it up until the prediction deadline.
Forum: Plugins
In reply to: [Motor Racing League] Admin ErrorIt is probably an issue with lack of memory on the web server.
Using FTP navigate to /wp-content/plugins and rename the plugin’s folder motor-racing-league to a temporary name. That will deactivate the plugin.
You will need to look at the error log on your server to see if any errors are reported and let me know.
It may be an issue with your theme, but without a URL to the site I can’t offer any more help.
Forum: Plugins
In reply to: [Motor Racing League] Limit Pick OptionsYou’re not missing anything, the plugin allows different users to make the same picks and does not prevent duplicates.
Make sure you have the option checked to prevent users from seeing other users’ picks before the deadline, then there is less possibility of ‘copy-cats’.
Ian.
Forum: Plugins
In reply to: [Motor Racing League] Adding field "winner"Good idea.
I will look at adding that option for the next version in a few weeks.
Ian.
Forum: Plugins
In reply to: [Motor Racing League] Points Awarded For Exact Position MatchHi Dan,
Thanks for the heads-up and suggested code change.
I will add a supplementary option when ‘Use Race Points’ is checked to allow the admin to choose if only an exact match should be scored.
In the next version of the plugin you won’t need to edit motorracingleaguescoring.php, just check the new option.
Ian.
Forum: Hacks
In reply to: Can't edit the CSS of the Navbar, through an option in CustomizeFirstly I would suggest posting a link to the site so we can see via the browser’s CSS inspector your classes etc.
A couple of other possible issues,
1. I can’t see a </style> tag
2. CSS comments I believe are /* … */ not <!— … —> so this may cause an issue.
Ian.
Forum: Hacks
In reply to: get_row associative array not workingUse == to test for equality not =
if(( $record = false ) OR ( $record = null ))
should be
if(( $record == false ) OR ( $record == null ))
otherwise your setting $record and trashing the results from get_row
Same forthe if() below.
Forum: Hacks
In reply to: wptexturize convert ampersands in SCRIPT tagsThanks for the tip.
A better workaround than the one I had. Much cleaner.
Forum: Plugins
In reply to: [Euro 2012 Predictor] Best Plugin BUT !!Does,
[euro-2012-predictor ranking=1 limit=100]
do what you want ?
Have a look in the Help menu for more options and shortcodes.
Ian.
Forum: Fixing WordPress
In reply to: Using Text WidgetsYou could try the https://www.ads-software.com/plugins/widget-logic/ plugin
You would need to create several Text Widgets with different content and then using the plugin above only show the required widgets for each page.
Ian.
Forum: Hacks
In reply to: Responsive problem and how to set page endThere are two DIV’s in the document with the id of ‘wrapper’.
id’s should be unique.
I just changed the second ‘wrapper’ id to ‘wrapper2’ and this seemed to fix the footer on Chrome. Not tried other browsers.
Ian.
Forum: Hacks
In reply to: Removing function from pluggable.phpWhilst the function wp_mail exists in pluggable.php your if statement will always evaluate to false so you never try to re-declare wp_mail.
But you can’t re-declare PHP functions, however you can override them. See https://php.net/manual/en/function.override-function.php
E.g.
rename_function('wp_mail', 'original_wp_mail' ); override_function('wp_mail', '$a,$b,$c,$d', 'echo "My wp_mail";');
However – I would suggest this is a really bad idea. Any other WP component (plugins, themes, core) would then use your wp_mail function and possibly break. In addition any bug fixes, filters or actions in the core wp_mail will not be actioned.
Why not just wrap wp_mail in your own mailing function ?