TrevorNet
Forum Replies Created
-
Forum: Plugins
In reply to: [Quizzin] Quizzin TinyMCE cformsI just couldn’t let it go. This (probably) may be considered a hack, but it works.
File: wpframe.php
What: Placed a cform plug-in check.`
if(!function_exists(‘wpframe_add_editor_js’)) { //Make sure multiple plugins can be created using WPFrameif(is_plugin_active(‘cforms’)) {
function disable_mce_cforms_buttons( $opt ) {
$opt[‘theme_advanced_disable’] = ‘cforms’;
return $opt;
}
add_filter(‘tiny_mce_before_init’, ‘disable_mce_cforms_buttons’);
}`Other plug-in exceptions may need to be added as needed.
Forum: Plugins
In reply to: [More Types] [Plugin: More Types] Wrong datatype?This worked for me. And by worked, I mean the errors are not showing up and the plug-in continues to work. Right above more-types-settings.php >> 291…
if(!isset($mytax)) { $mytax = array(); } else if(!is_array($mytax)) { settype($mytax, "array"); }
This should not interfere with the plug-in (I think) as we are simply forcing $mytax into an array-type. If $mytax already exists as an array, nothing will change. The original in_array() test on 291 will have the proper conditions needed to complete it’s task.
Forum: Hacks
In reply to: add_action & function valuesHa! I am already a bit confused, but your response helps clear things up. Finding the relationship between the various parts of WordPress has been very interesting to say the least. Thank You!
Forum: Plugins
In reply to: [Extended API] [Plugin: Extended API] Extended API (XML RPC)https://wordpress.pastebin.com/kZsKYKQL
For the lack of response and documentation, it looks like I will be creating my own XML-RPC: Add user, edit user, user information, blog,… ??
Forum: Networking WordPress
In reply to: How do I get sub-domain name?This is the function that I dropped into the theme/functions.php file. It does what I need it to do. ??
/** * @author Trevor Scott <[email protected]> * @version 1.0 2010-12-07 * * Grab the subdomain portion of the URL. If there is no sub-domain, the root * domain is passed back. By default, this function *returns* the value as a * string. Calling the function with echo = true prints the response directly to * the screen. * * @param bool $echo */ function arrested_subdomain($echo = false) { $hostAddress = explode ( '.', $_SERVER ["HTTP_HOST"] ); if (is_array ( $hostAddress )) { if (eregi ( "^www$", $hostAddress [0] )) { $passBack = 1; } else { $passBack = 0; } if ($echo == false) { return ($hostAddress [$passBack]); } else { echo ($hostAddress [$passBack]); } } else { return (false); } }
Forum: Hacks
In reply to: SHA1 EncryptionThank you so much on both fronts. Very impressive!