LeoStorch
Forum Replies Created
-
Don’t worry sevenspark, I found the problem. Even adding this code the form keeps being cleared. I hed to remove the “.resetForm()” from scripts.js.
if (1 == data.mailSent) { $(data.into).find('form').resetForm().clearForm();
Now it’s working. Sadly I had to change the original code.
Thanks!
I’m using Open Office, I think the problem was Character Set, I set it to “Unicode UTF-8” and now it’s OK!
PS: I added you on my Google Talk michael.d…(at)gmail.com, do you use that account? I would like to talk with you about the donate option!
Right msimpson, I’m cheking it, could be a good solution for what I need!
Before that, I found another “problem”, I’m filling the form with portuguese language with words like “S?o Paulo”, and when I see tha data on admin It’s everything correct, but when I export to CSV (any format of CSV) the value become “S?£o Paulo” instead “S?o Paulo”.
What can I do to correct this?
Thanks!
Understand, but I need to do this to my client, do you have any tip, where should I start?! =)
Thanks again.
I was trying to edit the original jquery.form.js from CF7, should work, right?
$.fn.clearForm = function() { return this.each(function() { $('input,select,textarea', this).not('.dontclear').clearFields(); }); };
I tried that on the original JS and didn’t work. =/
Thanks Chris, this help me a lot! I don’t know much about Javascript, how can I change your function to DON’T clear the fields with an specific class, like “dontclear”?
I tried it:
$.fn.clearFields = $.fn.clearInputs = function() { return this.each(function() { var t = this.type, tag = this.tagName.toLowerCase(); if (t == 'text' || t == 'password' || tag == 'textarea') { if($(this).hasClass('dontclear')){ this.value = this.value; } else { this.value = ''; } } else if (t == 'checkbox' || t == 'radio') { this.checked = false; } else if (tag == 'select') { this.selectedIndex = 0; } }); };
But isn’t working…
Thanks!
Forum: Fixing WordPress
In reply to: [WP-PageNavi] WP-PageNavi and Custom post TypesHi, I’m with the same problem as paumitchellkelly…
My WP is on the root of my domain, I’m using a custom post type and I followed all hierarchy of wp themes, but the Pagenavi isn’t working ok with CATEGORY.
https://www.domain.com/CATEGORY BASE NAME/2006/ – Works ok, all the posts appears with the pagination, but when I click to move to another page, for example: https://www.domain.com/CATEGORY BASE NAME/2006/page/2/ , It returns 404!
I’ve alread tried to change the permalinks back to default and save but the problem remains.
CATEGORY.php
$CatName = single_cat_title(”,false);
$cat_id=get_cat_id($CatName);
$paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;
$count=1; query_posts(‘cat=’.$cat_id.’&post_type=eventos&paged=’.$paged.’&post_per_page=10′);?>PS: Pagenavi is working perfect in with taxonomy, but I have similar problems with the SEARCH REASULTS: https://www.domain.com/page/3/?s=keyword
Any ideas what’s wrong? Thanks!