Jimladen
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] On_sent_ok not redirectingOkay so I have the final resolution.
It wasn’t the captcha form after all. I was missing a ” at the end of the code…
on_sent_ok: “location = ‘https://www.wordtrans.com/quote-success-page/’;”
It’s always the simple things eh?
thanks for your help guys really appreciate it.
Forum: Plugins
In reply to: [Contact Form 7] On_sent_ok not redirectingHi Guys,
Just removed the captcha form and and the redirect is working properly now so am assuming there was a problem with the captcha.
Thank you for all your suggestions.
Forum: Plugins
In reply to: [Contact Form 7] On_sent_ok not redirecting@buzztone That is a fair point however, there are no other jQuery errors on the page.
@simsalabim – I did try that script solution you referred to in your previous comment and it hasn’t worked for me but thank you for the suggestion.
Forum: Plugins
In reply to: [Contact Form 7] On_sent_ok not redirectingThanks for your input, however in this particular scenario the jQuery error is coming from the scripts.js file within the contact form 7 plugin folder.
Forum: Plugins
In reply to: [Contact Form 7] On_sent_ok not redirectingThank you for the replies
The jQuery error is actually coming from the scripts.js file in the contact form 7 plugin. The error appears when a message is sent successfully.
Uncaught SyntaxError: Unexpected token:
if (data.onSentOk) $.each(data.onSentOk, function(i, n) { eval(n) });
the unexpected token is the ‘n’ on the eval(n) apparently
Any suggestions on how I could possibly remove/fix this?
Thanks
Forum: Plugins
In reply to: [Really Simple Twitter Feed Widget] Unable to get tweetsHi whiletrue
I am having the same problem and get this error
Twitter data error: Rate limit exceeded. Clients may not make more than 150 requests per hour.
Unable to get tweets
Debug info: [Rate limit exceeded. Clients may not make more than 150 requests per hour.] – username:”myusername”What does this mean and how can i fix it?
EDIT: Does the code in the above post work? and where does it need to be inserted??? (which file and what line number)
Hey jsnmrk
The code posted above is css and should go in your themes stylesheet.
Forum: Plugins
In reply to: Custom post type page navigation / pagination not workingFound a solution.
This may only work for twenty-eleven theme.
First step:
Add this
'paged' => get_query_var('paged')
to the post query<?php global $query_string; query_posts($query_string . '&posts_per_page=10'); query_posts( array( 'post_type' => 'portfolio', 'orderby' => 'menu_order', 'order' => 'ASC', 'paged' => get_query_var('paged')) ); ?>
Second Step
Add this after the posts loop
<div class="navigation"> <?php jimladen_pagination(); ?> </div>
Third Step
Add this to functions.php
function jimladen_pagination($pages = '', $range = 3) { /* handle pagination for post pages*/ $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == '') { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "<div class=\"pagination\"><span>Page ".$paged." of ".$pages."</span>"; if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>« First</a>"; if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Previous</a>"; for ($i=1; $i <= $pages; $i++) { if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) { echo ($paged == $i)? "<span class=\"current\">".$i."</span>":"<a href='".get_pagenum_link($i)."' class=\"inactive\">".$i."</a>"; } } if ($paged < $pages && $showitems < $pages) echo "<a href=\"".get_pagenum_link($paged + 1)."\">Next ›</a>"; if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last »</a>"; echo "</div>\n"; } } // jimladen_pagination
Hope I have helped to save somebodys patience with this.