Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mgk

    (@mgk)

    Just in case anyone else is looking for this I worked out I can use this code;

    $image[‘author’] = wptexturize(get_post_meta(get_post_thumbnail_id($post->ID),’credit-tracker-author’,true));

    More info.

    I found a reference here to the Twitter search – https://dev.twitter.com/docs/using-search (you don’t need to read it).

    It says this: “The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.”

    So in may case the problem is that the last tweet with the hashtag I am following is older than that – actually a few months old.

    I guess we will see if it works when a new tweet is made!

    I found if I go here – https://twitter.com/settings/widgets/new/search – and set up the Twitter widget on the twitter site I get no tweets for my hashtag there either *but* if I do a search directly in Twitter they show up.

    Same thing if I click the link that appears in the widget – it goes to a page showing tweets!

    So I think the problem is with the Twitter search used by the widget, not with the plugin itself. The search doesn’t include every tweet that goes through the Twitter servers?

    Forum: Plugins
    In reply to: Eval base64 – SOLUTION

    I was using wingrep on the server (I have remote desktop) and this found some stuff that it had missed. Simple but effective!

    I had to come up with something to do the same thing … here’s what I have at the moment;

    replace the following in classes.php (it’s around line 515).

    /*
    $_current_page = get_page( $current_page );
    if ( $page->ID == $current_page )
    	$css_class .= ' current_page_item ';
    elseif ( $_current_page && $page->ID == $_current_page->post_parent )
    	$css_class .= ' current_page_parent';
    */
    $_parent = get_page($current_page)->post_parent;
    $_parentparent = get_page(get_page($current_page)->post_parent)->post_parent;
    if ( $page->ID == $current_page ) $css_class .= ' current_page_item';
    elseif ( $page->ID == $_parent ) $css_class .= ' current_page_parent';
    elseif ( $page->ID == $_parentparent ) $css_class .= ' current_page_parent_parent';

    I’d be very interested to see someone improve this – I don’t really know PHP I just kind of guessed and tried things until got it working.

    Site is http://www.unofficialaleagueupdate.com.au/?page_id=45 – special editions is three levels deep but I want to keep it highlighted when you are in that section.

Viewing 5 replies - 1 through 5 (of 5 total)