patnz
Forum Replies Created
-
Brilliant, thanks for adding that in! All working well for me. Here’s the function I’m using. I actually completely override the default path in this but I tested simply appending parameters to the default path and all works well!
function add_clone_parameters($path){ // I'm only looking to clone posts not taxonomies etc so we'll // only modify on post edit or post listing pages. global $pagenow; if( $pagenow != 'edit.php' && $pagenow != 'post.php' ){ return $path; } global $post; global $current_blog; // I'm going to use a custom admin action to fire my create clone function // so since I don't want to link to add post directly I'll unset $path in this case. $path = ''; // If on a post edit page - i.e. the links on the MSLS meta box // global $post doesn't return the value we want so use $_GET post var if( !$srcpost = $_GET['post'] ){ $srcpost = $post->ID; } // Get src blog from global $current_blog $srcblog = $current_blog->blog_id; // Get destblog from get_current_blog_id(). // This may seem odd but in MSLS we are switched to the local blog at present $destblog = get_current_blog_id(); //add variables to path $path = add_query_arg( 'action', 'clone_product', $path ); $path = add_query_arg( 'srcblog', $srcblog, $path ); $path = add_query_arg( 'destblog', $destblog, $path ); $path = add_query_arg( 'srcpost', $srcpost, $path ); return $path; } add_filter('msls_admin_icon_get_edit_new', 'add_clone_parameters');
My actual clone function is a bit environment specific but I’ll tidy it up and post back here when I get a chance in case anyone is looking for it.
Cheers for the heads up on add_query_arg too!
Thanks again,
Pat
I had the same issue and after much mucking around in the code I added a value to the widget field – “The length (in days) of the desired time frame” which finally got the posts to display.
I had the same issue and after much mucking around in the code I added a value to the widget field – “The length (in days) of the desired time frame” which finally got the posts to display.
Hi, You ever get this sorted? I’m having the same issue when I set paypal to my client’s account, however when it’s set to mine I get the correct transaction response. so I’m think something at the PayPal end.
My account is Paypal Premier, his is business…
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Store form fields in DB?There’s an addon for Contact Form 7 that adds data to DB: I haven’t tried it but its at https://www.ads-software.com/extend/plugins/contact-form-7-to-database-extension/.
For a fully featured premium plugin you cant go past Gravity Forms. It’s $40 for a single use license but well worth the investment. https://www.gravityforms.com/
Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler customer session data not showing in wpHey Thanks Richard,
I gave that a go but it gives a fatal error:
Fatal error: Uncaught exception ‘Mage_Core_Exception’ with message ‘Invalid login or password.’ in myfile.php…Should I be replacing those <customer-email>’,'<customer-password> values with something.
Thanks again.
Well I found a css solution using the body class to localize it to one page, but a proper serverside solution or even the ability to use a text link would be nice… Here’s the css:
.postid-XX .ngg-gallery-thumbnail-box{
display:none;
}
.postid-XX #ngg-image-1{
display:block!important;
}Found it. Its at Plugins > nextgen-gallery > js > ngg.slideshow.min.js.
Forum: Fixing WordPress
In reply to: How to stop WP stripping out empty DIV tagsI was having same issue with
getting stripped in wysywig. My solution is pretty rough but seems to work:<div id="map"><span style="display: none;">nothing</span></div>
Forum: Fixing WordPress
In reply to: Is it safe to update security keys?Sweet! Thanks ipstenu! ??
Forum: Fixing WordPress
In reply to: View other websites in a pop-up or shadowboxNot sure if this is helpful or not since you say you’ve tried a few but
Ceebox jquery plugin can do this. if you go to https://catcubed.com/2008/12/23/ceebox-a-thickboxvideobox-mashup/ and click the example which says ‘iFrame popup: NifNaks.com’ to see a demo.I can’t remember how to set it up exactly but from memory you just need to include the script in your header (assuming you already have jquery loaded) and then on the links you want to open you just add rel=’ceebox’ or something similar… you’ll need to read the docs but I remember it being easy.
Forum: Plugins
In reply to: Add <script> in <head> but ONLY certain pages?So it seems the function to use is wp_enqueue_script() called from your custom template file. The documentation isn’t the best but there’s a good video tutorial at https://blog.themeforest.net/wordpress/wordpress-for-designers-day-18/
its quite a long tutorial but the good stuff is just over halfway through.
Theres wp_enqueue_style() for stylesheets too…Forum: Plugins
In reply to: Add <script> in <head> but ONLY certain pages?No kidding! I thought this would be a standard thing to do but I can’t find a simple answer anywhere!!! I hope someone can help soon!!! ??