Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • You need to modify your functions.php (best done with a child theme NOT the theme’s core.

    Assuming you’re a single author for the site, it’d be something like this in the functions.php file:

    function add_starbox(){
    if (is_single()) {
    $content .= do_shortcode('[starbox]');
    return $content;
    }
    
    add_filter( "the_content", "add_starbox" );

    You can use the same extra tags where it says [starbox] as you can with its shortcodes anywhere else.

    See if that helps.

    Forum: Reviews
    In reply to: [Ultimate TinyMCE] COTS
    Thread Starter Moonwolf

    (@moonwolf)

    I didn’t know 3.9 was going to kill UT, thanks for the warning!

    Thread Starter Moonwolf

    (@moonwolf)

    Hi Krystle

    Login works fine now, and the widget is bringing up the thumbnails for topics as expected. Images and text match the ones on my twylah page.

    Could I offer a suggestion? hover for “view all trending” shows “www.twylah.com/MoonWolf95” in the status bar as the destination URL. The link does go to the redirected URL (tweets.moonwolfs-lair.com) when clicked, but a way to have that link show the cname’d destination instead of the Twylah one might look better (not to mention any SEO effects the link might have).

    The other suggestion is to have a tooltip for that “view all trending” link that’s derived from the widget’s settings – maybe another field so the user can (optionally) change the text of that link? ALso, tooltips for the thumbnail topics images?

    Last suggestion – right now your widget isn’t accessibility friendly – no alt text for the thumbnails, no title tags for the links, no ARIA tagging to enable accessibility tech to best describe the widget’s real estate and content.

    Please please please don’t be like everyone else and just ignore accessibility?

    Nice work so far, both with the widget and Twylah itself for the most part.

    I forgot, that’s using Dunstan’s Time Since plugin – http://binarybonsai.com/wordpress/time-since/

    it works with 2.3 and 2.5

    Try this:

    Posted <?php
    if(function_exists('time_since')) {
    	$entry_datetime = abs(strtotime($post->post_date));
    	echo time_since($entry_datetime, time());
    	echo ' ago ';
    } ?>
    Forum: Plugins
    In reply to: Dunstan’s Time Since

    Try

    Posted <?php
    if(function_exists('time_since')) {
    	$entry_datetime = abs(strtotime($post->post_date));
    	echo time_since($entry_datetime, time());
    	echo ' ago ';
    } ?>
Viewing 6 replies - 1 through 6 (of 6 total)