Number 6
Forum Replies Created
-
No probs ??
In JCL version 2.2 the line numbers are as follows:
Line 325 is now line 408
Line 327 is now line 410
Line 332 is now line 422Forum: Plugins
In reply to: [Contact Form 7] Valid URL gives "URL seems invalid"Everything was fine on my development box (PHP 5.4.6-1ubuntu1.2), and the validation passed.
The PHP version on the live server where the validation fails is 5.3.2-1ubuntu4.19
I’ll see if I can get the shared hosting updated to a more recent version of PHP.
Thanks for your help ??Well, I sort of got things working by adding a new filter which I called “widget-twitter-filter-tweets” to keep it in the same naming convention as the ones native to TWP.
Bear in mind that this is for version 2.5.3 and the line numbers could well be different in other versions.
Also remember that since this is modifying the plugin code, the modifications will be lost when you upgrade or reinstall TWP.In the file wp-twitter-widget.php:
On line 264 I added:
add_filter( 'widget-twitter-filter-tweets', array( $this, 'filter_tweets' ) );
(this was afteradd_action( 'widgets_init', array( $this, 'register' ), 11 );
and beforeadd_filter( 'widget_twitter_content', array( $this, 'linkTwitterUsers' ) );
)On line 863 I added:
$tweets = apply_filters( 'widget-twitter-filter-tweets', $tweets);
(this was after$tweets = $this->_getTweets( $args );
and beforeif ( false === $tweets )
then in my functions.php I can write a bit of code to remove the required tweets from the displayed feed like so:
function mysite_filter_tweets($tweets) { $filteredTweets = array(); foreach ($tweets as $tweet) { /* Decide which tweets to keep/get rid of here. * e.g. to exclude all tweets beginning with "RT ": */ $excludeThis = 'RT'; $result = substr_count($tweet->text, $excludeThis, 0, strlen($excludeThis)); if ($result == 0) { $filteredTweets[] = $tweet; } } return $filteredTweets; } add_filter('widget-twitter-filter-tweets', 'mysite_filter_tweets');
The “RT” stuff is just an example since TWP already provides an option to remove retweets, but hopefully it gives you the idea.
This works, however let’s say you’ve got TWP set to display 5 tweets, and this filter removes 2 of them – you will only see 3 tweets displayed, because the filtering is being doing after the tweets are retrieved from Twitter. I don’t know of a way to get Twitter to then retrieve an additional 2 tweets and add them onto the end of the array, to make up the difference for the filtered out tweets.
Hopefully this will help somebody anyway.
Forum: Plugins
In reply to: [Contact Form 7] Valid URL gives "URL seems invalid"I’m currently using a shared server so unable to update PHP, however I also have a local development box with xdebug so will do some testing on there along with disabling plugins, etc.
I’ll let you know what I find ??
Forum: Plugins
In reply to: [Contact Form 7] Valid URL gives "URL seems invalid"Yes that’s no problem, but could I send the details to you privately?
We’ve had some directed attacks to our server in recent months and I’d prefer to keep the server details from being easily found in public if possible.Forum: Plugins
In reply to: [Contact Form 7] Valid URL gives "URL seems invalid"Hi, thanks for replying ??
Strange, it definitely fails to validate on mine. If I remove the dash from “wis-wander” then validation is successful.
I’ve tested in Firefox 20.0.1 and Google Chrome 26.0.1410.64 m and get the same result.
I’m using Contact Form 7 version 3.4.1 on a WordPress 3.5.1 installation with the default jQuery 1.8.3, and jQuery UI Core 1.9.2
Been doing some digging in the code, it looks like it’s maybe doable via the filter
widget_twitter_content
Forum: Plugins
In reply to: [Contact Form 7] "This mail is sent via contact form" messageIn English, a better phrase would be:
This e-mail was sent from a contact form on Site Name (protocol://domain.tld)Excellent plug-in by the way ??
Forum: Plugins
In reply to: [JS Categories List Widget] Categories won't expand until page refreshesKhristal, just wanted to let you know that the page refresh is happening in Firefox too (FF17 32-bit on Win7 64).
I’m using the same plugin on a development site I’m working on and that’s working fine in Chrome and Firefox on both Windows and Linux, and Safari on Windows and iOS.
I think the problem is something to do with your homepage – the refresh doesn’t happen if you try expanding the menu when you start from any other page but Home. Maybe a plugin or widget which only loads on Home is interfering with jQuery or has a clashing ID attribute or something.
Hi Dric, I know this is an old post but I just wanted to say thanks. I ran into the problem myself and after spending ages stepping through code with the debugger I came to the same conclusion. I wasn’t sure though so it was great to find your post confirming it.
Just for reference for anyone else trying to find this, for User Access Manager version 1.2.2 the function addUserColumn is on line 1189 of plugins/user-access-manager/class/UserAccessManager.class.php
No probs ??
Ahh I see, thanks Daniel. Ta for looking in to it, I appreciate it.
No worries about the wait, thanks for taking a look ??
Hi Daniel,
Thanks for the reply ??The theme is available at https://zeaks.org/nomnom-twenty-eleven-child-theme/ (the download link is just below the screenshots)
The site I’m using it on is on a local dev box behind firewalls but if you need to see it in use let me know and I’ll upload it to somewhere more accessible.
Thanks,
Mark