jeremy2805
Forum Replies Created
-
Forum: Plugins
In reply to: [SendPress Newsletters] Remember a subscription…Hey Josh,
Just wanted to say thanks. In the end I put an action just before the switch in SendPress_Public_View_Post::html which I use to squirt out a cookie from my theme.
A hook where you recommended, however, would come in very handy too.
I’ll mark this as resolved now, but if you put the hooks into a future release, I’d appreciate it if you’d reply to this. Otherwise I’ll be stuck at the current version of Sendpress…
Many thanks.
Forum: Plugins
In reply to: [SendPress Newsletters] Remember a subscription…Thanks, but I don’t really have a very big window. Time’s a bit short.
Could you just point me to where I can cut a hack?
Forum: Plugins
In reply to: [SendPress Newsletters] Unsubscribe link?I created a page containing just an unsubscribe shortcode (nasty hack solution rather than a proper one). The link in the email points to that page, but when I put in an email address and hit unsubscribe, I just get a ‘Whoops, we couldn’t find that page’ message.
Any ideas…?
Sorry. Tried it. Couldn’t find the necessary documentation (community support = the blind leading the blind) Ditched it and moved onto something that is working just fine.
I’m amazed at how many developers think that:
a) I’m interested in their feedback on my feedback, and
b) Expect me to battle through the source code of plugins trying to figure out how to use a plugin.IIRC, I pimped a function from another plugin and got what I wanted. It took me an hour, compared to the half day wasted trying to figure out how to use s2Members. As a developer with hundreds of sites under my belt, I’d suggest that the issue lies with s2Members. I won’t give it another chance.
No. Life’s too short, not to mention my development timescales.
Forum: Plugins
In reply to: [Owl Carousel] Setting navigation text…The solution that worked for me was to bypass the shortcode by sticking this in the template file…
<?php echo owl_function( array( category => "slider", singleItem => "true", autoPlay => "true", stopOnHover => "true", navigation => "true", navigationText => "<,>" ) ); if ( have_posts() ) while ( have_posts() ) : the_post(); the_content(); endwhile; ?>
As an aside, I think the Owl Carousel might screw up the loop because when I first did it, the call was just above the_content and it didn’t output my page content.
I’ve had this issue on a fresh WordPress install on a new VPS (Minimal CentOS.) I checked that allow_url_fopen and curl_init were enabled:
if (function_exists('curl_init')) { echo 'curl_init exists'; } else { echo 'no curl_init'; } if( ini_get('allow_url_fopen') ) { echo 'allow_url_fopen exists'; } else { echo 'no allow_url_fopen exists'; }
Turns out that WordPress needs bindutils in order for the Add plugin screens to work:
yum install bind-utils
Forum: Hacks
In reply to: Set a posts URL to an archive page?Hi Aashish,
Thanks for that. What I think you’re doing is adjusting the search query, whereas what I wanted to do was to change the behaviour of the search results. However, you got me thinking that I could stick a filter on the permalink function like so…
function dino_link_permalink($url) { global $post; if ($post->post_type == 'simple_link') { $dinoterms = wp_get_post_terms( $post->ID, 'simple_link_category' ); return esc_url( '/simple_link_category/' .$dinoterms[0]->slug. '/' ); } else { return esc_url( get_permalink() ); } } add_filter('the_permalink', 'dino_link_permalink');
Which works great, with no need to create a search template. Gotta love these filters.
Many thanks.
Forum: Plugins
In reply to: [Simple Links] Archive page…Hi Mat,
Oh great. That should work a treat. I’ve already pretty much of written the template – it’s just getting it setup so that I can use the archive mechanism.
Many thanks for your help.
Forum: Plugins
In reply to: [Simple Links] Archive page…Hi Mat,
Other than breaking the upgrade path, what would be the implications of me making the post type public and creating my own simple-links archive template?
The solution you outline does not allow my client to add link categories via the dashboard menu editor. I could kludge it via a redirect, but that would rather dent my SEO efforts.
Many thanks.
Forum: Plugins
In reply to: [Simple Links] args for simple_links_widget_argsProbably not the best way of doing what I wanted but without advice, the best I could come up with. The plugin could certainly do with some additional hooks…
`add_filter(‘simple_links_widget_output’,’change_widget_output’, 0 , 4);
function change_widget_output( $output, $links_object, $instance, $args ){
global $post;
$dinocompanies = get_field( ‘linked_companies’, $post->ID );$dinosintersect = array_intersect_key ( $links_object->links , $dinocompanies );
$links_object->links = $dinosintersect;if (count($links_object->links)) {
$dinooutput .= sprintf( ‘<h4 class=”simple-links-title”>%s</h4>’, ‘We recommend’ );
}$dinooutput .= $links_object->output();
foreach ($links_object->links as $dinolink) {
$needle = ‘showlistingbutton”>’;
$newneedle = ‘showlistingbtn”>web_address. ‘” target=”_blank”>’;
$pos = strpos($dinooutput,$needle);
if ($pos !== false) {
$newstring = substr_replace($dinooutput,$newneedle,$pos,strlen($needle));
$dinooutput = $newstring;
}
}
return $dinooutput;
}Forum: Reviews
In reply to: [Easy Modal] Plugin 'calls home'Yes, repeated calls to easy-modal.com on port 80 on plugin activation.
Since reading about CryptoPHP, I now test all plugins for unnecessary or suspicious network calls before adopting them.
Forum: Reviews
In reply to: [Easy Modal] Plugin 'calls home'Seriously? Do I have to pull my Little Snitch records? It does try to phone home and I won’t use any plugin that does so without an obvious reason (i.e. making use of a cloud service.)
It may be ‘allowed’, it may happen under specific circumstances, but it is IMO wrong and dangerous.
Calling me a liar and then attempting to justify the behaviour isn’t particularly polite, either.
I have a site running this one:
https://www.ads-software.com/plugins/facebook-page-publish-2/
It works OK. Not as tidy as the JetPack mechanism, but might fit the bill if you’re in a hole.
Forum: Plugins
In reply to: [Features by WooThemes] Matching recent posts in sidebar…Well since nobody came up with any suggestions, I did it by creating a single-feature template file, including the code for a sidebar that contains posts in the matching category (using Grid FX).
Thanks but I think I sorted it. Updated to the latest version of Jetpack (3.1.1), then removed and remade the connection with Facebook, and it seems to have accepted it.