Forum Replies Created

Viewing 15 replies - 1 through 15 (of 38 total)
  • andy0829

    (@andy0829)

    @airplanenoise – Thank you , life saver , added that to wp-config and all good for now.

    andy0829

    (@andy0829)

    I’m having the same issue today after the latest WordPress update ?

    if Javascript is disabled on an i-phone , under > settings > safari > advanced

    then the menu won’t show , worth checking that out in real devices.

    I had this same problem , it seems that what’s happening is this –

    After the update if you go and view the Genesis settings page you’ll notice the section for ‘Page layouts’ is totally gone !

    This caused my sites to display both primary and secondary sidebars regardless of how they were set before the update or if they had content.

    I had to activate another theme temporarily (any one will do) , then delete Genesis and manually upload the Genesis 2.4.2 update and activate it … all back to normal. Phew !

    I had this same problem , it seems that what’s happening is this –

    After the update if you go and view the Genesis settings page you’ll notice the section for ‘Page layouts’ is totally gone !

    This caused my sites to display both primary and secondary sidebars regardless of how they were set before the update or if they had content.

    I had to activate another theme temporarily (any one will do) , then delete Genesis and manually upload the Genesis 2.4.2 update and activate it … all back to normal. Phew !

    Thread Starter andy0829

    (@andy0829)

    Ahh … thank you , was wondering why it didn’t like it.

    Thread Starter andy0829

    (@andy0829)

    Thanks Joe , In the end it was much easier for me to use the code generator on your website as i’m placing the listings with hooks and using some ACF custom fields for the keyword choice.

    It’s all going very well and it’s very easy to use and modify. A very nice plugin ??

    Do you have a code example for the Javascript to change the text “No active items.”

    thanks again

    Thread Starter andy0829

    (@andy0829)

    Bad news Samuel …

    The original version (wp-hashtags.0.1) of the plugin works for me on a Local Dev site , but when i try and install it on live site it fails on the settings page. ? It’s very odd.

    The plugin ‘works’ on live site but you cannot access the settings page in the Admin. On a live site , this error occurs when you try and access the Admim settings page.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /var/sites/d/dev.mydomain.co.uk/public_html/wp-includes/plugin.php on line 525

    which is this line it’s referring to on plugin.php –

    call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

    Also , when activated on a live site, it is converting commas as below –

    with the comma becoming – #8220 displayed as a click-able link to twitter.

    It is finding ” and converting this to a twitter link.

    it’s also converting ‘…’ to a twitter link , this is known as an Ellipsis character.

    with this #8230 displayed as a click-able link to twitter.

    It also adds this to the head of the page before the loop –

    #8230; New Blog!" />

    All instances of ‘ or ” or ? or ; in the post become links

    None of the above happens on a Local Dev site , only when i put it live on the web.

    I tried it on another live just to make sure it’s not something odd with that site , and it was exactly the same.

    A bit lost with this , so I’ve had to deactivate it for now.

    Thanks for trying

    Thread Starter andy0829

    (@andy0829)

    obviously that won’t work for comments , etc only post content

    Thread Starter andy0829

    (@andy0829)

    For the usernames snippet i ended up using this in my functions –

    function convert_twitter_link($content) {
    	if (is_single()) {
    	global $post;
    	$pattern	= '/[@]+([A-Za-z0-9-_\.@]+)\b/';
    	$replace	= '<a rel="nofollow" target="_blank" href="https://twitter.com/'.strtolower('\1').'">@\1</a>';
    	return preg_replace($pattern,$replace,$content);
    	} else {
    	return $content;
    }
    }
    
    add_filter('the_content','convert_twitter_link',10);

    This works for usernames on post’s only , pages return the content.

    Thread Starter andy0829

    (@andy0829)

    The main plugin was fine for me , i only wanted it for the usernames snippet. Trying to get that on all single posts , not pages , sorry for the confusion.

    The new version of the Hashtag plugin throws an error in admin and front-end –

    Fatal error: Call to undefined function bbp_find_mentions_pattern() in C:\Local Develpment\www.test.dev\wp-content\plugins\wp-hashtags\index.php on line 90

    I’ve switched back to the old version.

    Thread Starter andy0829

    (@andy0829)

    Ok Thanks , That doesn’t work for me. I’d like it to only convert on single posts and not static pages. Even if i add a correct post ID , the code above doesn’t work.

    Thanks anyway ??

    Thread Starter andy0829

    (@andy0829)

    Thank you , works great. ??

    Any way to target single posts only with an ‘if is’ –

    add_filter('the_content', array( $this, 'filter'));

    Thread Starter andy0829

    (@andy0829)

    Thanks Samuel , that sounds right. The & was in a post that was made by the user.

    If there is some code to convert @mentions , that would be great.

    Thanks again

    Thread Starter andy0829

    (@andy0829)

    pretty annoying … because “clients” …

    Found some code that stops it , works for me , added to functions.

    function myformatTinyMCE($in) {
        $in['verify_html']=false;
        return $in;
    }
    add_filter('tiny_mce_before_init', 'myformatTinyMCE' );

    Thanks

Viewing 15 replies - 1 through 15 (of 38 total)