girl_number_5
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Do we network activate master child-theme or notThanks @sirlouen,
Apologies for the late reply – tried your steps, not sure if i mis-interpreted the last few steps but, we need to only activate the child theme in the subsite, network
edit: subsite-namescreen; not sure if that’s what you meant – then within the admin of the subsiteappearance > themesyou only see the main-library theme which is network-active and the child theme that we activated in the main-admin theme page. Initially i wasn’t happy because when in a subsites’ theme page the subsite admin could see all child-themes; this is now fixed.I also named the child theme after the child-theme template rather than use the blog-id (primary-key) just for clarity if we get past 50 or so subsites.
Many thanks for the valuable pointers.
Forum: Networking WordPress
In reply to: Parent directory for all subsitesYes I’ve just come to that conclusion – you’d think it would be a built in feature out-of-the-box. I’ve worked around it by prefixing each subsite name with the desired string separated with an underscore; its only a demonstration site so it works ok URL-aesthetically which is what i really wanted.
Forum: Networking WordPress
In reply to: Parent directory for all subsitesThat wouldn’t be practical, i have a domain and new installation at https://mainsite.com – i don’t want visitors finding my main site at https://example.com/portfolio/ – the structure is important – i just need to specify a ‘containing’ folder during the network setup for all subsites to go into. It can’t be that difficult before the network is setup?? If i remember correctly during setup of a domain-based MU we are given the option to give our network a name, yet a name that has no real purpose other than as an identifier within admin, if that name could be the folder it would make a lot of sense. Is there a way of manipulating the permalinks structure after setup which would be the logical place to rewrite pretty URLS or directly in .htaccess; I’ve worked with both but just not for WP MU’s.
Thanks for that clarification, installing it today
much thanks
Forum: Developing with WordPress
In reply to: Call a wp function from a custom linkHi @bcworkz
Thanks for that – just to address your last point first; this menu is for admins only but its also a convenience thing yes its saves us a few clicks including clicking the save button on the Permalinks screen just to save the configuration that’s already set. I’m building lots of CPTs, Taxonomies and Roles & Capabilities and each time having to remember to flush the cache otherwise it all goes belly-up.
I’m using
wp_localize_script()to properly call our ajax php file so your advice is probably the missing thing here."/wp-admin/admin-ajax.php, passing a particular action query string parameter"Can you give me an idea or example of how to use that technique or is there a link to the docs i can read??
Forum: Developing with WordPress
In reply to: Call a wp function from a custom linkI’m trying to call the,
flush_rewrite_rules();wp function. I’ve already built the submenu and its functions ok. I can respond to clicks on the button in jQuery and show a message just to prove its working. So what do i hook into in WordPress to call the flush function. Is there such a hook as ‘wpbar_node_click’ or something?? During the call to this function i may pass an argument which allows user (admins only) to do a ‘hard’ or ‘soft’ flush.// first child node $args = array( 'id' => 'pinflsh', 'title' => '<button id="btn-flush-perms"><small>Flush Permalinks</small></button>', 'href' => '', 'parent' => 'pinmain', 'meta' => array( 'class' => 'pin-styles', 'title' => '' ) ); $wp_admin_bar->add_node($args);I’ve also experimented with calling a php file using ajax on-button click, the file contains the,
flush_rewrite_rules();function but chrome developer inspector says the function is not recognised.Forum: Developing with WordPress
In reply to: Call a wp function from a custom linkHi @threadi
thanks, coincidentally, i saw that page yesterday before posting and should have made reference to it. am i right in thinking then that the :
'title' => $local_time,$local_timekey/val could be a call to the native WP function – most of the magic in wptoolbar seems to happen in the ‘title’ key. So without using hooks could we just make$local_timea custom function call, i.e.$split_to_columns(4)and in this function we use the WP native function to do what we want.Hi
thanks for the info “Registration Success Page” creation seemed to fix the problem of double transactions. Now the only problem is every transaction seems to still be stuck on ‘Pending’ by default. Is there a PayPal setting that’s making this happen (we’ve looked everywhere) or is there a setting in PMS which sets this until we manually set the payment to complete and the user to active.
I can only assume because we are not using all PMS pages the user is not recognised as registered. We’ve written our own Register, login, forgot/reset password pages. The only pages we need and are using are the, [pms-register] and [pms-account] pages. Without hacking or hooking into the plugin to set successful payments to ‘active’/’complete’ what can we do here – any suggestions other than use another plugin.
Not so – with your plugin deactivated everything works as we expect- there are no other plugins creating login filters since were using the minimum number of 3rd-party plugin – 2 of our own custom plugins in a custom theme. I think its just a ‘use-case’ that you missed. We’ve already implemented our own email based 2FA since were getting nowhere with this and your not willing to see the issue. In a default installation of WordPress your plugin would be fine but its not geared up for advanced use and that’s just the fact. I’m going to mark this thread as ‘Solved’ since it pointless going back and forth with it
Your explanation is fine but you do not address the use-case for shortcodes. The way we’ve changed the code is fine for users willing to dig into WordPress code; most users won’t know how to do that. So the point i’m making still stands. When the 2fa settings which i screenshotted in the last thread is chosen there should be a textbox shown so we can specify a page to redirect the user to if they are not allowed to access wp-admin, i.e. when they are blocked. You’ve done this further down the settings page so it just needs another inputbox to cater for shortcode admins with custom front-end admin pages.
After more testing i see that i should be more specific – when you set the grace period to 5 days (like we have) then until the 5 days expires the user should still not access the backend which is what the plugin does; default. After the 5 days has expired the user is landed on the homepage which is good i.e. they aren’t directed to wp-admin so the ‘Blocking’ option works ok. In short its during the grace period that the problem occurs. Its probably an edge-case because the majority of your users probably dont use the shortcode feature. Please just try it and you’ll see what we’re highlighting; without the small hack we’ve implemented we can’t use use it and we’ve wasted a lot of time already on this in the project.
Thanks
All well and good but thats not what happens. I have a custom front-end UI for users, so the wp dashboard and admin section is out of bounds for all users except for me. See the screenshots of your settings page were ive chosen to block users who do not want to setup 2fa yet (it doesn’t work in use – the user is just directed to the wordpress dashboard irrespective of what i chose in the setting page.
If i’m right in thinking the line: $_REQUEST[‘redirect_to’], will always send users to the default location (wp_admin) yes?? I changed the line in, class-login.php, line 218 from admin_url() to home_url – that fixes the problem. Unless you put an option in the settings page to allow us to specify where users are redirected after choosing NOT to setup 2fa yet then your code assumes it should always redirect them to the dashboard! Thats only ok if you are allows dashboard access for your users; otherwise it ruins your front-end only functionality!! – Look at the screen shots.
Clicking the “I’ll do it later” button (this one) – https://prnt.sc/0TbsgvzL7KFk
The plugins 2fa setup page – https://prnt.sc/LSmby4DfhIHG
Your code line in class-login.php (line 218) – https://prnt.sc/VHbVRXTmxncI
We changed to – https://prnt.sc/vgGcyFCrvng_
Any update on this please?? I’ve hacked the file to do what i need and I’m looking to override the file permanently. Maybe you could fix things for future users of this plugin and the many negative feedback users who have pointed out similar issues too.
Don’t bother then … purchased a better plugin
I’m refering to the front-end setup forms provided via a dedicated page or shortcodes
https://melapress.com/support/kb/wp-2fa-configure-2fa-front-end-page-wordpress/?=
we are using the shortcodes option and it appears all vertical-padding has been removed so there’s a spacing issue. The xample css given on the page (referenced above) does not extend to spacing. Some notices adopt the themes styles others don’t.
I’ve got around some of the issues (like illegal css id names) by targeting them in jQuery rather than CSS rules.
(@catacaustic),
Thanks for that info – i found the problem shortly after creating this thread, it was a problem in my naming of pages. Marked [Solved].
thank you