antonioayala
Forum Replies Created
-
Forum: Plugins
In reply to: Trail status widgetno, but you have to go into your functions.php file in your active theme folder and add the
add_filter('widget_text', 'do_shortcode');
line in there to allow for shortcodes to be executed within the standard text widget.What I like is you can add a comment below the status, in case you have extra info you want to share.
The css I posted was to create the look I have, but you can edit those values to create what ever look you would like to have
Forum: Plugins
In reply to: Trail status widgetHere is the code:
<?php /** * Plugin Name: FC Bolton Field Status * Original Plugin URI: https://github.com/crindt/wp-field-status * Description: Simple plugin to store FC Bolton Soccer Field Status in wp config variables, customized from Cardiff Soccer Field Status * Version: 0.1 * Author: Antonio Ayala * Original Author: Craig Rindt * Author URI: https://github.com/crindt * License: GPL2 */ add_action('admin_menu', 'field_status_admin_add_page'); function field_status_admin_add_page() { add_options_page('FC Bolton Soccer Field Status Page', 'FC Bolton Soccer Field Status Menu', 'manage_options', 'field_status', 'field_status_options_page'); } function otag($t, $attr = array()) { if ( $t == '' ) return ''; $attrs = ''; foreach( $attr as $attrn => $attrv ) { $attrs = $attrs . ' ' . $attrn . '= "' . $attrv . '"'; } return '<' . $t . $attrs.'>'; } function ctag($t) { if ( $t == '' ) return ''; return '</' . $t . '>'; } function echo_status( $fdata, $fmt ) { $ret = ''; $ret .= otag($fmt['ul']); foreach( $fdata as $skey => $data ) { $ret .= otag($fmt['li'],array("class" => strtolower($data['status']))).ucfirst($skey).': <span class="'.strtolower($data['status']).'">'.$data['status'].'</span><br>'.$data['comment'].''.ctag($fmt['li']); } $ret .= ctag($fmt['ul']); return $ret; } //[field_status] function field_status_shortcode( $atts ){ extract( shortcode_atts( array( 'field' => '', 'fmt' => 'ul' ), $atts ) ); # set up list formatting per user request. fmt=>brian uses <dt> tags. otherwise, we go with <ul> $fmt = array(); switch( $atts['fmt'] ) { case "brian": $fmt['dl'] = 'div'; $fmt['dt'] = 'dl'; $fmt['dd'] = ''; $fmt['ul'] = ''; $fmt['li'] = 'dt'; break; default: // default to a ul $fmt['dl'] = 'dl'; $fmt['dt'] = 'dt'; $fmt['dd'] = 'dd'; $fmt['ul'] = 'ul'; $fmt['li'] = 'li'; } $options = get_option('field_status_options'); $o2 = get_option('field_names'); if ( $atts['field'] == '' ) { # echo all fields $ret .= otag($fmt['dl'],array("class" => "f-wrap")); foreach( $options as $fkey => $val ) { $ret .= otag($fmt['dt']).$o2[$fkey].ctag($fmt['dt']); $ret .= otag($fmt['dd']); $ret .= echo_status($val, $fmt); $ret .= ctag($fmt['dd']); } $ret .= ctag($fmt['dl']); } else { # echo specified field $ret .= echo_status($options[$atts['field']], $fmt); } return $ret; } add_shortcode( 'field_status', 'field_status_shortcode' ); // display the admin options page function field_status_options_page() { echo "<div>"; echo "<h2>FC Bolton Soccer Field Status</h2>"; echo "<form action='options.php' method='post'>"; echo settings_fields('field_status_options'); echo do_settings_sections('field_status'); echo "<input name='Submit' type='submit' value='Save Changes' />"; echo "</form></div>"; } // add the admin settings and such add_action('admin_init', 'field_status_admin_init'); function field_status_admin_init(){ register_setting( 'field_status_options', 'field_status_options', 'field_status_options_validate' ); add_settings_section('field_status_main', 'Field Status', 'field_status_section_text', 'field_status'); add_field_settings('linden',array('Practice'),'Deer Run Soccer Park'); add_field_settings('grandblanc',array('Practice'),'Bicentennial Park'); add_field_settings('clio',array('Practice'),'Clio Area Sports Complex'); # add_settings_field('field_status_linden_practice', 'FC Bolton Premier', 'field_status_linden_practice_bool', 'field_status', 'field_status_main'); # add_settings_field('field_status_grandblanc_practice', 'FC Bolton Premier', 'field_status_grandblanc_practice_bool', 'field_status', 'field_status_main'); # add_settings_field('field_status_clio_practice', 'FC Bolton North', 'field_status_clio_practice_bool', 'field_status', 'field_status_main'); } function add_field_settings($tag, $subs, $name) { $options = get_option('field_status_options'); $o2 = get_option('field_names'); $o2[$tag] = $name; update_option('field_names', $o2); update_option('field_status_options',$options); foreach($subs as $sub) { add_settings_field('field_status_'.$tag.'_'.$sub, $name.' '.$sub,'field_status_'.$tag.'_'.$sub.'_bool','field_status','field_status_main'); } } function field_status_section_text() { echo '<p>Configure fields as open or closed.</p>'; } function field_status_bool($name,$sub,$options) { echo "<div>"; echo "<input type='radio' id='field_status_{$name}_bool' name='field_status_options[".$name."][".$sub."][status]' value='As Scheduled' ".($options[$name][$sub]['status']=='As Scheduled'?'CHECKED':'').">As Scheduled</input>"; echo " "; echo "<input type='radio' id='field_status_{$name}_bool' name='field_status_options[".$name."][".$sub."][status]' value='Cancelled' ".($options[$name][$sub]['status']=='Cancelled'?'CHECKED':'').">Cancelled</input>"; echo "<input id='field_status_{$name}_comment' name='field_status_options[".$name."][".$sub."][comment]' length=40 value='".$options[$name][$sub]["comment"]."'></input>"; echo "</div>"; } function field_status_linden_practice_bool() { $options = get_option('field_status_options'); field_status_bool('linden', 'practice', $options); } function field_status_grandblanc_practice_bool() { $options = get_option('field_status_options'); field_status_bool('grandblanc', 'practice', $options); } function field_status_clio_practice_bool() { $options = get_option('field_status_options'); field_status_bool('clio', 'practice', $options); } // validate our options function field_status_options_validate($input) { return $input; }
and this is the needed css:
dl { padding: 10px 10px; background-color: #F1F1F1; margin: 0; font-weight: bold; text-align: center; border-top: 1px solid; border-left: 1px solid; border-right: 1px solid; } dt.as.scheduled { padding: 20px 10px 10px; background: #0d6e00 url(https://www.360bolton.com/wp-content/plugins/freelance-status3/top_arrow.png) no-repeat scroll center top; font-weight: bold; color: #fff; text-transform: uppercase; text-align: center; border-bottom: 1px solid #000; border-left: 1px solid #000; border-right: 1px solid #000; } dt.cancelled { padding: 20px 10px 10px; background: #ff0d00 url(https://www.360bolton.com/wp-content/plugins/freelance-status3/top_arrow.png) no-repeat scroll center top; font-weight: bold; color: #fff; text-transform: uppercase; text-align: center; border-bottom: 1px solid #000; border-left: 1px solid #000; border-right: 1px solid #000; }
it can be placed in the page with shortcodes or in a text widget as long as you add the following line to your functions.php file:
add_filter('widget_text', 'do_shortcode');
you can see how it looks in both versions by visiting our team page:
https://www.360bolton.com/field-status/Forum: Plugins
In reply to: Trail status widgetI have found a plugin for my needs to handle as many fields as I need. It does need to be coded specifically to the field names, but if you don’t have many trails and they don’t change, I could customize the code for you pretty quickly.
Forum: Plugins
In reply to: Trail status widgethow many trails are you supporting? If it’s just one, an old plugin called Freelance Status would do the job. It isn’t updated anymore, but it is still compatible with current versions of WP. But it only supports one instance of the plug-in….if you find any other solutions, I would be interested as well. I use it for a travel soccer club, but we have three different fields and I have had to duplicate the plugin three different times with different variables and file names to handle this.
Forum: Plugins
In reply to: [WP Club Manager - WordPress Sports Club Plugin] Staff shows up twicehere is the link for the temp staff page
https://www.360bolton.com/test/
this is the only shortcode that is causing any issues, the rest show up just fine. thank you for your help.
PERFECT!!!
That has solved all of my problems. Great plugin, i’m using it so that someone who has less coding skills than myself can take over one of the webpages I work on and not have to worry about anything other than plugging in the teams, schedules, and locations. And then after the fact, its a simple button click to enter in the scores. I look forward to seeing how this continues to develop.
Forum: Plugins
In reply to: [WP Club Manager - WordPress Sports Club Plugin] helpdo you have a list of all shortcodes and their parameters?
Forum: Plugins
In reply to: [WOW Slider] Slider working in CSS only versionSorry I have been working on two other projects and haven’t had a chance to get back to this one. I have re-done the steps and now it is working across all browsers. The only thing that has changed is that I updated their WP to the latest version, they were still using an OLDER version. This may have something to do with it, or I just typed something wrong last time. Again, thank you for your quick and thorough response, great support.
Forum: Plugins
In reply to: [WOW Slider] Slider working in CSS only versionProblem, the solution worked for Chrome, but for Firefox and IE, the Javascript warning box still showed up. Any ideas?
Forum: Plugins
In reply to: [WOW Slider] Slider working in CSS only versionPerfect, worked like a charm!
Thank you for the quick response and the actual solution to the problem. Using the email method to support was really starting to frustrate me.
Great plugin, exactly what we wanted
Forum: Plugins
In reply to: Membership Plugin that can track account balancesbump
Forum: Plugins
In reply to: [SendPress Newsletters] Email Editor Problem – Can't use Visual EditorI went through disabled and re-enabled all of our plugins one by one….its our cforms plugin that is causing the conflict. The issue comes with the fact that I need that cforms plugin to be on a lot of the time. Is there anything that can be done to allow them both to run simultaneously?
And here is the other information in case you still wanted it:
WordPress Version: 3.7.1
SendPress Version: 0.9.6.3
PHP Version: 5.3.23
PHP Memory Limit: 256 MByte
PHP Memory Used: 39.66 MByte
MySQL Version: 5.1.70Database Tables:
wp_sendpress_subscribers_event OK
wp_sendpress_report_url OK
wp_sendpress_subscribers_status OK
wp_sendpress_subscribers OK
wp_sendpress_list_subscribers OK
wp_sendpress_queue OKPorts:
Port 25: open
Port 465: open
Port 587: open### Begin System Info ###
## Please include this information when posting support requests ##
Multi-site: No
SITE_URL: *********************
HOME_URL: *********************SP Version: 0.9.6.3
WordPress Version: 3.7.1Platform: Windows
Browser Name: Chrome
Browser Version: 31.0.1650.57
User Agent String: Mozilla/5.0 (Windows NT 6.1) App
leWebKit/537.36 (KHTML, like Gec
ko) Chrome/31.0.1650.57 Safari/5
37.36Database Tables:
wp_sendpress_subscribers_event OK
wp_sendpress_report_url OK
wp_sendpress_subscribers_status OK
wp_sendpress_subscribers OK
wp_sendpress_list_subscribers OK
wp_sendpress_queue OKSending Method: SendPress_Sender_Website
PHP Version: 5.3.23
MySQL Version: 5.1.70-cll
Web Server Info: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635PHP Memory Limit: 256M
PHP Post Max Size: 8MWP_DEBUG: Disabled
WP Table Prefix: Length: 3 Status: Acceptable
Show On Front: page
Page On Front: Welcome #46
Page For Posts: Welcome #46Session: Enabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /tmp
Use Cookies: On
Use Only Cookies: OnUPLOAD_MAX_FILESIZE: 2MB
POST_MAX_SIZE: 8MB
WordPress Memory Limit: 64MB
WP_DEBUG: Off
DISPLAY ERRORS: On (1)
FSOCKOPEN: Your server supports fsockopen.ACTIVE PLUGINS:
DK New Media’s Image Rotator Widget: 0.2.6
Event Espresso Lite – Event Registration and Management: 3.1.35.L
Form Manager: 1.6.41
SendPress: Email Marketing and Newsletters: 0.9.6.3
WPtouch Mobile Plugin: 1.9.8.9
Cforms: 14.6 <– this is the plugin I disabledCURRENT THEME:
FootballNet: 2.0
### End System Info ###
Forum: Fixing WordPress
In reply to: Login wont work with a masked domainok, thx
Forum: Fixing WordPress
In reply to: Login wont work with a masked domainsorry, this is all new to me. I went to godaddy, and under forwarding/masking it says:
To forward or mask your domain name, you must use our nameservers.
So how do I get the nameservers pointed to https://www.midwestsoccer.net/360bolton/
Forum: Fixing WordPress
In reply to: Login wont work with a masked domainI would assume I do that through godaddy then?