• Resolved mp0023

    (@mp0023)


    Hey guys, first of all awesome plugin, looks great! I usually mod the themes on my site to put everything where I want, however this can only be put right at the bottom or top of the article text.

    Is there a PHP function to call the box so I can put it where I want, and then could I just use CSS to adjust the size? Thanks! would help a lot!

    https://www.ads-software.com/plugins/starbox/

Viewing 5 replies - 16 through 20 (of 20 total)
  • Hey Squirrly,

    works perfect and my 5-star-rating is online ??

    shit, another question:

    I used your code with a variable, because I have more than one author. The code looks like this

    <?php echo starBoxShow( the_author_ID() ); ?>

    But now, the UserID is shown above the starbox. The box works correct, but the ID above … its not so beautiful ?? and every reader asks himself: for what is the number?

    How can I hide the userID? or is there any other way to get the user-id for multiple authors?

    Plugin Author SEO Squirrly

    (@cifi)

    Hey,

    the_author_ID is a display function not a return one and is also a deprecate one so don’t use it.

    Please use it like:

    <?php
    global $post;
    $author = get_userdata($post->post_author);
    
    echo starBoxShow( $author->ID ); ?>

    Calin

    nice, now I am absolutely satisfied ?? thanks a lot!

    Hi guys,
    Thanks for useful notes.
    I used of these codes in my function.php and single.php
    https://www.ads-software.com/support/topic/how-to-call-the-authorbox-in-php?replies=20#post-4745202 and https://www.ads-software.com/support/topic/how-to-call-the-authorbox-in-php?replies=20#post-4777750

    But i’ve 2 problem:
    1- i have author box naturally by my theme and the background is dark blue what makes author box not looks good.
    2- i still have starbox box under my content (upper of my native author box).

    How can i fix these??
    Thanks.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘How to call the authorbox in PHP’ is closed to new replies.