Cyborg Feelings
Forum Replies Created
-
Yes, I successfully disabled it on front-end and now it only loads on the login/register pager and admin backend.
smsglobal.com is not cheaper but I like there backend with Logs over sent SMS’s, Deliver Reports, Delivery report on mail and more.
To get GlobalSMS to work you will need to modify gateways.php
// auth call $baseurl = "https://www.smsglobal.com"; $url = sprintf( '%s/http-api.php?action=sendsms&user=%s&password=%s&&from=CYBORG&to=%s&text=%s', $baseurl, $username, $password, $sms_data['to'], $msg ); // do sendmsg call
And Replace: CYBORG to the name or number you wish to send SMS from.
If you use this plugin then you will be interested in this:
https://stackoverflow.com/questions/18450914/php-how-to-give-error-if-the-entered-field-value-starts-with-0-00-orUpdate this functions in: sms-validator.php
/** * Validates phone number * * @param type $errors * @return type */ function registration_errors( $errors ) { $enabled = csnetworks_sms_get_option( 'register_form' ); if ( $enabled == 'on' ) { $phone = $_POST['user_phone']; if($phone[1] == '0') $phone = substr($phone, 2); if($phone[0] == '0') { $errors->add( 'invalid_inter_phone', __( '<strong>ERROR</strong>: Phone Number you entered is NOT a international number.', 'csnetworks' ) ); } if ( $phone == '' ) { $errors->add( 'empty_phone', __( '<strong>ERROR</strong>: Please type your phone number.', 'csnetworks' ) ); } else if ( phone_exists( $phone ) ) { $errors->add( 'phone_exists', __( '<strong>ERROR</strong>: Phone number is already registered.', 'csnetworks' ) ); } else { if ( preg_match( '/[^\d]/', $phone ) || (strlen( $phone ) < 10 ) ) { $errors->add( 'invalid_phone', __( '<strong>ERROR</strong>: Please type a valid Phone Number<br />(10 digit minimum and do NOT use "+")', 'csnetworks' ) ); } } } return $errors; }
Hi,
Yes, but to do that I had to install: Plugin Organizer.
Then goto Global Plugins and set SMS Validator to OFFAnd then add 2 Plugin Filters:
1 to set SMS Validator ON for https://mysite.com/wp-login.php?action=register
2 to set SMS Validator ON for https://mysite.com/wp-login.phpIn backend (admin page) it’s always ON which is ok.
I have also modified it to use with smsglobal.com gateway.Forum: Hacks
In reply to: How to hide meta_box for users (Not from Admin)?I got it WORKING ??
I don′t know what was wrong with my previous function. But I modified it and now I can see ALL IN ONE SEO Meta Box as Admin and it′s hidden/removed for Users ??
That worked for me:
—-add_action(‘init’, ‘remove_aioseop’);
function remove_aioseop() {
if(!current_user_can(‘administrator’)) {
remove_action(‘admin_menu’, ‘aioseop_meta_box_add’);
}
}—-
Forum: Installing WordPress
In reply to: What is wrong with my htaccess file?I repeat my response:
Who is US? (are you a team/company?)
Will you help/advice me for free?
Or you require fee for that?How would you like to do that? and what will you require to do so?
I have checked my server access_log and error_log and cant find any problems. My other 2 WordPress installations works great on same server. The only difference is the htaccess file that may cause this delay in response time.
Why do you think its something wrong with my server? The htaccess file looks ok for you?
Forum: Installing WordPress
In reply to: What is wrong with my htaccess file?I′m quite sure that its something wrong with my .htaccess file. That’s why the server response time is too long.
My other test/development sites like:
1). https://shabazdad.com have server response time: 80ms !!
https://tools.pingdom.com/fpt/#!/Lay2ZwdQj/shabazdad.com2). https://datastorage.no have server response time: 260ms
https://tools.pingdom.com/fpt/#!/ul5WBxDGv/datastorage.no3). https://callgirlbook.eu have server response time: 220ms
https://tools.pingdom.com/fpt/#!/qZfvgmjWD/callgirlbook.eu4). https://escorthome.eu have server response time: 980ms
https://tools.pingdom.com/fpt/#!/ySGPFiGuz/escorthome.eu—
site nr 2, 3 and 4 are using WordPress but the difference shouldn’t be so big in server response time? (the server response time is the time it takes before the actually page get start downloading)“Would you like us to consult your web host?”
Who is US? Is this a pay site or you will give me advice for free?Thank you for all your help.
Forum: Installing WordPress
In reply to: What is wrong with my htaccess file?Yes, I have my own web server:
Web Server: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 mySQL + phpadmin etc..Forum: Installing WordPress
In reply to: What is wrong with my htaccess file?Sorry, I’m not sure what you mean by that? I′m hosting 3 sites on same IP/Server could that be a problem? A server is supposed to handle more than 1 domain?
If I remove the .htaccess file from this installation then i got server error 500 which load within 200ms. So the server respons is quite quick if there aren’t a .htaccess file. That confuses me.
I had deactivated this plugin via WordPress but it was still spitting out errors in error.log – Now I have deleted this plugin via WordPress and the error is gone ??
But now I wonder about other 70 Plugins which I have installed but they all are deactivated cause I don’t use them right now but soon I will need to combine/edit/improve and make some useful plugins to suite my site and don’t want to search/download again.
I thought it was safe to “deactivate” plugins but now I should delete everything that I don’t use.
Do WordPress VERIFY plugins that they offer on WordPress Plugin Download section or can anyone upload anything there which can cause errors even when its deactivated?Forum: Plugins
In reply to: [Custom Image Sizes] [Plugin: Custom Image Sizes] Always spits out warningsI get the same error ??
And cant find any solutions..Did you find any thing more about it?
I will keep you updated if I fing how to solve this.. I need to fix it..I have disabled special-recent-posts Plugin but I still get this error in my apache “error.log”: PHP Fatal error: Call to a member function adaptiveResize
[Thu Dec 01 05:38:29 2011] [error] [client xx.xxx.xx.117] PHP Fatal error: Call to a member function adaptiveResize() on a non-object in /wp-content/plugins/special-recent-posts/lib/phpimage.php on line 42
I don′t use this plugin anymore why do I still get this error? Should I delete this plugin, or will it cause more problems by deleting?
I use Thumbnail function from Plugin: custom-image-sizes
I don’t understand how to find who is creating this error.. the Thumbnails?Thank you for all advices