kaplan
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Would like to add current_theme to sites.php listing pageThanks, @threadi
brasofilo even has the the option name I was needing. I had been trying current_theme instead of template
Jose, I did discover that if I wild card (https://fastradiusdevp.wpengine.com/resources/blog/*) and control the plugins from CUSTOM URLS I can get the FDP plugin working on the post:
I am waiting for our final URL segment structure so this is good to know. I have been using Freesoul Deactivate Plugins v1.8.7 on WPE and v1.8.8.6 locally. The local version of my FastRadius does the same thing as the WPE, but my testing WP site, orderofeverything doesn’t have issues with multiple segments in the permalink, but the FR sites do, so I’m guessing it’s something else not the plugin, but again I am able to control the enabled/disabled plugins from SETTINGS > CUSTOM URLS so that’s good.
Hi Jose, I setup a simple test with multiple segments on one of my test WP installs: https://orderofeverything.com/resource/blog/hello-world/ FDP is working fine there with segments in the Permalinks. I’m going to take another look at the WPE domain.
Thanks Jose. I’ve tried updating the Settings > Permalink. I tried both with the ‘/resources/’ and without, /resources/blog/%postname% the FDP doesn’t show up, but if I simplify to /blog/%postname% FDP will show the disabled plugins.
When you test the permalink structure do you mean on your local env with that structure? My client hasn’t finalized the URL segment structure but I have a feeling we’re going to have 2 segments /something/something/%postname% but on my dev WPE site it only works with a single segment. This one is working: https://fastradiusdevp.wpengine.com/blog/post-lorem-1/
The console log debug is handy, thanks. I’m doing that locally but haven’t pushed that the WPE site.
I’m noticing when I have multiple segments like segments/something/something/post-lorem-1/ it doesn’t load, but a single segment like /something/post-lorem-1/ works and I’m getting the console list of disabled plugins.
- This reply was modified 5 years ago by kaplan.
If you view the resources/blog/lorem-post-2-0/ you can see it’s working when I include the custom url.
Forum: Themes and Templates
In reply to: [Astra] Astra Image sizesThanks Patrick and Karl. Karl, I was seeing the exact same file structure as well.
Forum: Fixing WordPress
In reply to: Include svg tags in text editorI’ve been researching this and found a couple of Plugins that look to allow any html to be included. One looks to be from Automattic and it fixed my local version. I’m going to test on the Staging, but this seems like it could work. Any advice or suggestions, I know there is a risk to allowing anything goes… but this is a closed network of admins. https://ww.wp.xz.cn/plugins/unfiltered-mu/
Forum: Networking WordPress
In reply to: WordPress MU cookie issue@srd75 that’s great! I’ve been looking for more answers on this issue and found a really help post on ww.wp.xz.cn with some details. https://ww.wp.xz.cn/support/topic/howto-domain-mapping-without-a-plugin-instructions/
This could be another possible fix for the wp-config.php
define( 'COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ] );For me, that sets my cookie domain to the current site’s uri, where the function in the ms-default-constants.php would always return the “main” site instead of a network site domain.
WP_Network Object ( [id:WP_Network:private] => 1 [domain] => network-mainsite.dev [path] => / [blog_id:WP_Network:private] => 1 [cookie_domain] => network-mainsite.dev [site_name] => Main Network Site )But then
define( 'COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ] );returns the subsite domain, which is what I’ve been trying to get.
network-subsite.devThe thing that throws me is the original
define('COOKIE_DOMAIN', $current_site->cookie_domain);doesn’t return the current subsite, it always gets the main site. But making a change to the ms-default-constants.php code seems like a bad idea as any update would wipe this out.if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) { if ( !empty( $current_site->cookie_domain ) ) // the following doesn't get the current subsite, just main // define('COOKIE_DOMAIN', $current_site->cookie_domain); // the following will get the current subsite define( 'COOKIE_DOMAIN', $_SERVER[ 'HTTP_HOST' ] ); else define('COOKIE_DOMAIN', '.' . $current_site->domain); } }- This reply was modified 9 years, 6 months ago by kaplan. Reason: added additional information
Forum: Networking WordPress
In reply to: WordPress MU cookie issue@srd75 I was having the same problem. BetterWP.net mentions
COOKIE_DOMAINin its 10 Useful WordPress Constants and references the /includes/ms-default-constants.php file. I tried commenting out theCOOKIE_DOMAINlogic in thefunction ms_cookie_constants()and that worked for me to get rid of the error. And so did thedefine('COOKIE_DOMAIN', false);as well asdefine('COOKIE_DOMAIN', ' ');I think this was a little more help for me to understand whatCOOKIE_DOMAINis for, but I’m still not super clear and always feel a little weird doing stuff I don’t sort of understand.You might try commenting out out the
COOKIE_DOMAINblock all together in that constants file and see if that fixes your error. or try the empty string.Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 PayPal IntegrationForum: Plugins
In reply to: [Contact Form 7] Contact Form 7 PayPal Integration@dan, ok I’m not saying this is pretty but it works. I’m using jQuery to grab the amount store it in a variable, then use that in the location string.
on_sent_ok: " my_amt = jQuery('#sponsor_donation').val();" on_sent_ok: "location = 'https://www.sandbox.paypal.com/cgi-bin/webscr?business=contributions-facilitator@teamjulianfoundation.com&cmd=_xclick&amount=' +my_amt;"Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 PayPal Integration@dan I figured out how to pass a fixed amount through the “additional messages” with on_sent_ok, but I’m not sure how to make that amount come from user input.
Maybe this could work for you if you have a fixed amount you want to pass over to check out at PayPal. Here’s what I did:
1. Make a button on PayPal. In my case I didn’t save it, just generated the code for the button and pasted that into a text file. I find that it’s easier to customize when I don’t save the button on PayPal. So that means there isn’t a
hosted_button_id2. Then in the Contact 7 Additional Settings I pasted my url with the variables. I’m also using the sandbox version of PayPal. If you haven’t tried the Sandbox, you should definitely check it out. It allows you to do all kinds of testing as if you’re using the Live PayPal site.
on_sent_ok: "location = 'https://www.sandbox.paypal.com/cgi-bin/webscr?business=contributions-facilitator@teamjulianfoundation.com&cmd=_xclick&amount=50';"You can see the last variable I’m passing is the
amount=50. You can probably pass any of the allowed HTML Variables for a button type in there too.I used the LIVE HTTP Headers Extension in Firefox to examine a regular PayPal transaction that I already have working on my staging site. Super helpful.
And if anyone knows how I can pass an amount into my params I’d really appreciate it!
Dave
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 PayPal IntegrationHi @danielnichols,
I’m trying to do the same thing right now. I’ve been setting the amount using name=”amount” in the input, but I haven’t figured out how to pass it yet. I’ll post back if I figure it out.
Dave
Forum: Fixing WordPress
In reply to: custom page used as custom post type landing (taxonomy)Thanks, I’m not sure that’s what I’m looking for, but I appreciate those links. I haven’t played with those functions before.
I have a better idea of what I’m trying to do now though. I understand better I believe… I’m trying to add some design elements and imagery to the Custom Taxonomy Archive. I’d like my client to be able to edit the image or text at the top of that page through the admin. If I use the Custom Taxonomy Archive then I get to keep my nice url structure, then if you click into an item it mains that url pathing.
http://codex.ww.wp.xz.cn/images/1/18/Template_Hierarchy.png
I’ve been thinking about ways to hack around it, but I have a feeling it makes more sense for me to ‘design’ the page, make those elements static and just be available for any changes my client would like to make to the design (text and image).
Any suggestions for tweaking out a nice dynamic Custom Taxonomy Archive page that can be edited in the WP Admin??
Forum: Fixing WordPress
In reply to: Pinterest non-plugin: show pin counthi aksello,
at some point I want to say I had a 0 (zero) showing, but I think Pinterest has changed the way they handle the 0 count, by not showing it so maybe including that attribute doesn’t do anything now. pinterest also changed the style of the pointer box, i have a feeling they did both of those things at the same time.
on the site i used pinterest on doesn’t show any of the 0 pins. http://kerrygoldusa.com
on the other hand, i pinned one of the photos on your link and don’t see the pin count increasing yet.
i think you can remove the target=”_blank” too, seems like it’s automatic.