WordPress.org

Support

Support » Plugins and Hacks » Google Authorship doubled

Google Authorship doubled

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dragan Nikolic
    Member

    @nikolicdragan

    Not possible without editing the code.

    Mangusta76
    Member

    @mangusta76

    How can I edit the code?

    Thanks!

    Dear Dragan,

    can you make the “rel=author” optional in your next update please?

    My problem: I promote my Google+-Page with my Fancier Author Box but unfortunately the pages are not allowed for Google authorship (only rel=publisher – I suppose you know that). Like Megusta76 I use “rel=author” somewhere else in my template.

    @Megusta76

    To remove the “rel=author” you have to open ts-fab-construct-tabs.php file from includes directory in the plugin folder. Take a look in the lines after 49 – there is “rel=author” in two lines and just remove them. Make sure you don’t remove anything else because it breaks the plugin.

    $ts_fab_googleplus_url = get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . ' REMOVES HERE ';

    and here

    $ts_fab_googleplus_url = 'http://plus.google.com/' . get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . ' REMOVED HERE ';

    Plugin Author Dragan Nikolic
    Member

    @nikolicdragan

    Hi,

    We’ll definitely consider it.

    Thanks and regards

    Mangusta76
    Member

    @mangusta76

    Thank you Pupilla! If I understood well the lines:

    if ( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) {
    					if ( ts_fab_is_url( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) ) {
    						$ts_fab_googleplus_url = get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . '?rel=author';
    					} else {
    						$ts_fab_googleplus_url = 'http://plus.google.com/' . get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . '?rel=author';
    					}

    Become:

    if ( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) {
    					if ( ts_fab_is_url( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) ) {
    						$ts_fab_googleplus_url = get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . ;
    					} else {
    						$ts_fab_googleplus_url = 'http://plus.google.com/' . get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . ;
    					}

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    correct?

    Thanks again!

    Hi,

    you have to leave the ‘ ‘:

    if ( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) {
    if ( ts_fab_is_url( get_user_meta( $author->ID, 'ts_fab_googleplus', true ) ) ) {
    $ts_fab_googleplus_url = get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . '' ;
    } else {
    $ts_fab_googleplus_url = 'http://plus.google.com/' . get_user_meta( $author->ID, 'ts_fab_googleplus', true ) . '';
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I tried it without (then the dot has to be removed as well) but then I had some problems with the admin section. Maybe there is a possibility to make it “cleaner” but I didn’t want to waste the time to find out and left it this way. No guarantee :))

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Authorship doubled’ is closed to new replies.