gypsie
Forum Replies Created
-
Forum: Plugins
In reply to: [WPCongress] [Plugin: WPCongress] Excellent Start!Dear Dana,
Thank you for putting together this long needed plugin. I looked at your help page and here to find more info on congressmen email addresses. The database that is providing contact data is providing web form links. However most of these links are obsolete.
I looked at your code and did print_r($c) on array that holds the received congressman info. Below is the sample. There is all kind of information there except for email address. And this for my purposes is the most important bit. There is field for email, but all of the email info is empty. I am using WP Congress contact info on website that is encouraging it’s members to respond to congressmen in regards to various bills. Preferred way of doing this is writing an email to congressman. If webforms were working this would be sufficient way of contacting them but they don’t. Is there anything that can be done to provide email info in congressmen database?
stdClass Object ( [legislator] => stdClass Object ( [website] => https://www.house.gov/baca/ [fax] => 202-225-8671 [govtrack_id] => 400009 [firstname] => Joe [middlename] => [lastname] => Baca [congress_office] => 2245 Rayburn House Office Building [phone] => 202-225-6161 [webform] => https://www.house.gov/baca/zipauth.shtml [youtube_url] => [nickname] => [congresspedia_url] => https://www.opencongress.org/wiki/Joe_Baca [district] => 43 [title] => Rep [eventful_id] => P0-001-000016137-3 [in_office] => 1 [senate_class] => [name_suffix] => [twitter_id] => BacaCA43 [birthdate] => 1947-01-23 [bioguide_id] => B001234 [fec_id] => H6CA42099 [state] => CA [crp_id] => N00007089 [official_rss] => https://www.house.gov/baca/ [gender] => M [party] => D [email] => [votesmart_id] => 8039 ) )
thanks for your efforts!
Forum: Plugins
In reply to: [SimpleModal Login] [Plugin: SimpleModal Login] Pop login from javascriptThis is what I ended up doing.
var ref = jQuery("input[name='_wp_original_http_referer']").val(); jQuery('#loginform').append(jQuery('<input type="hidden" name="redirect_to">').val(unescape(ref))); jQuery('.simplemodal-login').trigger('click.simplemodal-login');
not sure if it is the most elegant way to do it but it works.
Forum: Plugins
In reply to: [SimpleModal Login] [Plugin: SimpleModal Login] Pop login from javascriptHmm, I celebrated too soon. One issue that arose now is that redirection is taking user after login to wordpress administration backend. That is undesired behavior. When using php function call I can provide the parameter where to go after login:
wp_loginout($_SERVER['REQUEST_URI']);
but with jquery call I can’t provide the redirect parameter. When I place alert() call in the default.js after the:
s.url = this.href; alert(s.url);
it pops 3 times with following paths:
https://new.domain.com/login/?redirect_to=%2F https://new.domain.com/login/ https://new.domain.com/login/
It seems my jquery call parameters are overridden by 2 subsequent additional calls and “https://new.domain.com/login/?redirect_to=%2F” path is lost. When I use just the regular href login link, alert() pops only 1 time showing correct redirect link:
https://new.domain.com/login/?redirect_to=%2F
Any idea what other 2 calls is
jQuery('.simplemodal-login').trigger('click.simplemodal-login')
triggering and how to prevent it? Or alternatively, is there a way to provide a redirect parameter to jquery to ensure correct redirection after the form is submitted?Forum: Plugins
In reply to: [SimpleModal Login] [Plugin: SimpleModal Login] Pop login from javascriptForum: Plugins
In reply to: [SimpleModal Login] [Plugin: SimpleModal Login] Pop login from javascriptThanks!
Forum: Plugins
In reply to: [Search Unleashed] Search Unleashed is Badly Flawed@admintiger
thanks for nothing(btw. so far I have no problems)
Forum: Plugins
In reply to: [Plugin: Add Local Avatar] Avatars not uploadingI am using version 3.0.1 and I got best results by using legacy checkbox (for v7.3 and lower) with ‘avatars/’ path. Reason this works better is a little function in avatars.php plugin called avatar_root() that figures better true path of your current root directory. This works well even if you are using wordpress in subdomains (I tested it). Of course you still have to create directory in your root wordpress folder called ‘avatars’ and set permissions on it to 777.
Forum: Themes and Templates
In reply to: Comment links in sidebar not workingOK, anyone who is looking for answer for above problem.
in /themes/p2/js/p2.js
add after: localizeMicroformatDates();$(‘.tooltip’).click(function() {
$(‘.discussion’).show();
$(‘.commentlist’).show();
});Forum: Themes and Templates
In reply to: Comment links in sidebar not workingHave you found an answer to this issue? I have the same problem. Any direction would be much appreciated.
Forum: Fixing WordPress
In reply to: P2 theme causing very high admin-ajax.php usageJust update for those who search how to change the frequency of admin-ajax.php calls.
File is: p2/inc/js.php
Line 96: var updateRate = “30000”;If any of you guys from p2 are reading this, I think it would be useful to have this option in Theme Options in admin.
Forum: Plugins
In reply to: Removing gravatar.comThis issue drives me mad. I find totally outrageous that there is no simple built in function to turn global gravatar off. Not only is the privacy concern issue, it also slows down my jquery calls that are waiting until the whole page loads in. I have no idea who cares to have global icon and to give unknowingly, without their consent their email address away.
The above mention plugin doesn’t solve the problem as calls to gravatar.com are not stopped. It is just sending requests with generic dummy email address.
Another plugin out there that is available is called “add local avatar” but this is still no good as it uses only local avatar if they were uploaded. If not, it still calls gravatar.com for the rest of them. Even for dummy “mystery” man. How stupid is that.
All I really want is LOCAL AVATARS ONLY. No calls to external websites (gravatar.com, twitter.com) at all. Maybe the only solution is to write one.