• Resolved dexpedition

    (@dexpedition)


    Hello,

    How can i call the starbox authorbox without me having to specify the author? I have a multi-author website and would like to have a function that can automatically detect the author of the post (i have seen the other support ticket where on “How to call the authorbox in PHP” but that once forces me to specify just 1 author)

    Awesome plugin btw 😉

    http://wordpress.org/plugins/starbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SEO Squirrly

    (@cifi)

    Hey,

    Try this:

    add_action('init','starBoxCustom');
    
    function starBoxCustom(){
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->custom = true;
    }
    
    function starBoxShow() {
            if (!class_exists('ABH_Controllers_Frontend'))
                return;
    
            ABH_Classes_ObjController::getController('ABH_Classes_Tools');
    
            $theme = ABH_Classes_Tools::getOption('abh_theme');
    
            $str = '';
            $str .= '<script type="text/javascript" src="' . _ABH_ALL_THEMES_URL_ . $theme . '/js/frontend.js?ver=' . ABH_VERSION . '"></script>';
            $str .= '<link rel="stylesheet"  href="' . _ABH_ALL_THEMES_URL_ . $theme . '/css/frontend.css?ver=' . ABH_VERSION . '" type="text/css" media="all" />';
            $str .= ABH_Classes_ObjController::getController('ABH_Controllers_Frontend')->showBox();
    
            return $str;
        }

    Call it with: echo starBoxShow();

    Plugin Author SEO Squirrly

    (@cifi)

    Hey,

    The shortcode is ready for starbox in version 1.0.5.

    Just add [starbox] or [starbox id=USER_ID]

    Please rate our plugin
    http://wordpress.org/support/view/plugin-reviews/starbox

    Kind regards
    Calin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calling authorbox with PHP’ is closed to new replies.