jmilez
Forum Replies Created
-
Forum: Plugins
In reply to: [Tweet Blender] Getting bunch of errors on home pageFYI, The line numbers will be off by two lines because I made some changes to use the default PHP 5 JSON encoding suggested in another thread.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Timer Broken in ChromeAs an update, I’m using the new google analytics code and the timer has been working fine. It did work intermittently a few times before the switch, but now works great.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Timer Broken in ChromeBaden, unfortunately the page is a landing page with ads running so don’t want to mess up the stats. Below is a screen shot if that helps. Looks like the T- function is recursive and throwing an issue when the google analytics code is running. I put it on another site of mine that has the new Google code and it works fine. My site will be migrated to the new google code by tomorrow, so will see what happens.
Hope it helps!
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Problems with IE@baden – Yes, it fixed the IE rotation for me. Only tested it with IE 10. You might want to add it to the plugin.
Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Problems with IEI noticed the same thing in testing earlier today. Seems there isn’t any styling for IE because it does it’s own thing. Try adding the code below to your style sheet. I’m using the jedi layout, others should be the same. Not sure if the opera works, but it was part of the sample I found so just left it in.
.jedi-dash_title { /* IE */ -ms-transform: rotate(-90deg); /* Opera */ -o-transform: rotate(-90deg); /* Internet Explorer */ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); }Forum: Plugins
In reply to: [jQuery T(-) Countdown Widget] Timer Broken in ChromeHi, this might be it… just installed the T- plugin a few days ago on a test site and got it formatted and working perfectly. Moved the site to production and everything was great. Then noticed the countdown stopped. Didn’t really make any changes to the site, EXCEPT I put the google analytics code back in. If I take out the GA code, it works fine. Nothing to do with the jquery.min.js file from another post (this file isn’t loaded in my page at all with or without the GA code). Any idea what google is doing to get this to work again?
This is the standard GA code:
<script type="text/javascript"> var _gaq = _gaq || []; var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_setAccount', 'UA-xxxxxxxx-1']); _gaq.push(['_setDomainName', 'xxxxxxx.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>Looking at the console, if GA is installed, t- gets this error (otherwise no error):
Uncaught TypeError: undefined is not a function jquery.t-countdown.js?ver=1.5:129 (anonymous function)Update: I noticed that Dirty Bill’s site is working fine and is using the new GA code. My site is using the old GA code. I put in a request and transferring to the new system & code and see if that fixes it.
Thanks for the quick response Ewout!
I did some more testing this morning and they way you have it makes sense – generate the Invoice when the order is confirmed. WordPress is kind of “plug and go”, so a lot of plug-ins you figure out by trial and error. I was confused as to when the invoice was generated, but figured it out that it’s generated depending on the first “Attach Invoice To” setting. So you might want to rephrase that to “Generate Invoice Number & Attach To” or similar.
I like the button filter idea! Will keep you posted of any issues.
Thanks again.
-jamesWell, I changed my order number to a higher number and found out my code was wrong. So made another tweak if you want to use the order # for your invoice for the filename…
add_filter( 'wpo_wcpdf_bulk_filename', 'my_pdf_bulk_filename', 10, 4 ); function my_pdf_bulk_filename( $filename, $order_ids, $template_name, $template_type ) { if (count($order_ids) == 1) { // single $order_id = $order_ids[0]; $invoice_number = get_post_meta( $order_id, '_order_number', true ); $filename = get_bloginfo( 'name', 'display' ) . ' Order #' . str_pad(((int) $invoice_number), 5 , "0", STR_PAD_LEFT) . '.pdf'; } else { // multiple invoices/packing slips export } return $filename; } add_filter( 'wpo_wcpdf_attachment_filename', 'my_pdf_attachment_filename', 10, 3 ); function my_pdf_attachment_filename( $filename, $display_number, $order_id ) { //$display_number is either the order number or invoice number, according to your settings $filename = get_bloginfo( 'name', 'display' ) . ' Order #' . str_pad(((int) get_post_meta( $order_id, '_order_number', true )), 5 , "0", STR_PAD_LEFT) . '.pdf'; return $filename; }So I guess you just have to choose between using _order_number (WordPress) or _wcpdf_invoice_number for your plugin.
Forum: Plugins
In reply to: [Ad King Pro] Large vertical space on ads?Thank you Ash!! I was using chrome to inspect the elements, but your tip led me to the theme css.
I was able to find that the theme was setting the min-height to 521px. So I changed it to 100 and works great!
The theme has a css override section, and just added the css below to make it work in case anyone else has the problem (it’s a Kriesi theme, so may apply to other themes of his)
.adkingprobanner.sidebar { min-height: 100px; }Thanks again!
-jamesForum: Everything else WordPress
In reply to: .htaccess redirect?Found this thread after finding out my redirects stopped working. I use the htaccess redirects for shortcuts to my social pages. I thought the cache plugin might have interfered, but I had installed the Redirection plugin for redirecting an old post and I think that caused the problem. So I just moved my htaccess redirects to the plugin and all works again and don’t have to mess with htaccess anymore. Just in case anyone else uses the Redirection plugin and finds this thread…
Forum: Fixing WordPress
In reply to: Contact Us Forms with Network Solutions not workingFYI – I just setup a new client and they wanted to use netsol hosting. I was getting green confirmations from the get-go, but not receiving any. I tried the SMTP plugins to no avail.
Just have to change your “FROM” to an e-mail that is hosted with your netsol account (so you can’t have it from the user’s supplied info) and bingo!
FYI, if you’re using network solutions hosting, your “FROM” address must be from your netsol hosted e-mail account.
I was getting green confirmations but no e-mails. Tried smtp plugins and wasted a few hours.
You might want to add this to the contact 7 FAQ!