jnz31
Forum Replies Created
-
+1
Forum: Plugins
In reply to: [[Abandoned] PPress] Redirect after logout and loginum. because the
wp_logout_url
function brings this functionality right with it. and i think it is good, to check if the developer used that parameter and give it back then, instead of simply adding my own value. i was confused, that the standard core function was not working as expected.. dont you agree..?Forum: Plugins
In reply to: [[Abandoned] PPress] Redirect after logout and loginwell.. how about this..?
inclass.alter-default-links.php
find
public function logout_url_func( $logout_url, $redirect ) { if ( isset( $this->db_settings_data['set_log_out_url'] ) ) { $db_logout_url = get_permalink( absint( $this->db_settings_data['set_log_out_url'] ) ); if ( empty( $db_logout_url ) || $db_logout_url == 'current_view_page' ) { // make redirect currently viewed page $set_redirect = esc_url( get_permalink() ); } else { $set_redirect = $db_logout_url; } $set_redirect = apply_filters('pp_logout_redirect', $set_redirect); return add_query_arg( 'redirect_to', $set_redirect, $logout_url ); } }
replace
public function logout_url_func( $logout_url, $redirect ) { if ( isset( $this->db_settings_data['set_log_out_url'] ) ) { $db_logout_url = get_permalink( absint( $this->db_settings_data['set_log_out_url'] ) ); if ( empty( $db_logout_url ) || $db_logout_url == 'current_view_page' ) { // make redirect currently viewed page $set_redirect = esc_url( get_permalink() ); } else { $set_redirect = $db_logout_url; } $set_redirect = apply_filters('pp_logout_redirect', $set_redirect); if ( strpos( $logout_url, '&redirect_to=' ) !== false ) { return $logout_url; } else { return add_query_arg( 'redirect_to', $set_redirect, $logout_url ); } } }
what do you think..?
please note: theif ( strpos( $logout_url, '&redirect_to=' )
should NOT include & but & amp ;
dunno if the&redirect_to=
should only readredirect_to
, but this works and also requiress the & and = character to be present.. mabe more bulletproof..Forum: Plugins
In reply to: [[Abandoned] PPress] Redirect after logout and loginhi Collizo4sky
sorry for jumping in here, but i do have the exact same issue.
i do have several logins and logouts with multiple user roles, plus my site is multilangual, so i NEED to set different redirects.easiest for me would be, to disable the redirect rules from this plugin, since i use wp_logout_url() and i can set all i want in there. but if i do, your redirect rule hooks in there an places the ‘redirect_to’ at the end, no matter, if it is already there. and since its the last rule, it will be used. any chance to disable that functionality or filter the links for
if redirect already exists
..?and a little honey at the end: looks really promissing, still not done with my development, but looks like this tool does all the aweseomeness, i reuqire.. thanks for making this happen..
Forum: Plugins
In reply to: [WooCommerce] Woocommerce multiple products on 1 SKU / inventory+1
Forum: Plugins
In reply to: [Date and Time Picker Field] Doesn't work properly in repeater field@adianforster
got to wp-content/plugins/acf-field-date-time-picker/js/timepicker.js
look for line 32, it goesvar input = $(this)
change it tovar input = $(this).find( 'input.ps_timepicker' )
or get yourself a dev guy ??
Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Images not workingi hacked it on my own
you need to find file edit.php, it is located in wp-content/plugins/newsletter/emails
in edit.php replace
window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); //jQuery('#upload_image').val(imgurl); tinyMCE.execCommand('mceInsertContent',false,'<img src="' + imgurl + '" />'); tb_remove(); }
with
window.send_to_editor = function( html ) { var imgURL = html.match( /src=\"(.*?)\"/ ); tinyMCE.execCommand( 'mceInsertContent', false, '<img src="' + imgURL[1] + '" />' ); tb_remove(); }
yeah. you have to register you app on https://creativesdk.adobe.com/
and then, when you click on an artwork, there is no aviary button, it’s hidden behind ‘Edit more details’..same problem here.
Forum: Plugins
In reply to: [Newsletter - Send awesome emails from WordPress] Images not workingi do have the exact same problem. when i insert an image to a newsmail, the image source is url.tld/undefined
strange is, it worked a few days ago, now its broken. updated to the newest version (wp & nlp) but still no luck.any news on this topic?
Forum: Plugins
In reply to: [Yoast SEO] Yoast WordPress SEO Sitemap – exclude pages by ID#thanks for pointing this out nicoblog.
Forum: Plugins
In reply to: [Post Types Order] problem with acfdisableing pto solves the issue.
Forum: Plugins
In reply to: [WooCommerce] SelectBoxIt and WooCommercesame here. any solution to this..? guess some wc script is interfering here..
yes, the window needs to be open, till it says: done.
Forum: Plugins
In reply to: [Show Current Template] template info is empty if load_template()ok. i just learned, that template_redirect is the wrong approach..
here is the correct way to solve this.