Forum Replies Created
-
I have 777 permissions to the following folders and files:
/userpro/lib/cache/
/userpro/lib/cache/timthumb_cacheLastCleanTime.touch
/userpro/lib/cache/index.htmlGD library is installed and running properly on my server
PHP version 5.3
rename(), file_put_contents(), move_uploaded_file() PHP functions are enabled and working properlyI deactevated plugins, theme and activated again. The same problem
in reply to: Facebook, twitter, google+ not working properlyHello!
I am trying to insert plugin to comments and it’s difficult for me.I found this code
$cb_author = ‘<div class=”cb-author”>’;
if ( function_exists( ‘coauthors_posts_links’ ) ) {
$cb_author .= ‘<i class=”icon-user”></i> ‘ . coauthors_posts_links( null, null, null, null, false );
} else {
$cb_author .= ‘<i class=”icon-user”></i> <a href=”‘. get_author_posts_url(get_the_author_meta( ‘ID’ )).'”>’. get_the_author() .'</a>’;
}
$cb_author .= ‘</div>’;$cb_date = ‘ <div class=”cb-date”><i class=”icon-time”></i> <time class=”updated” datetime=”‘. get_the_time(‘Y-m-d’, $cb_post_id).'”>’. date_i18n( get_option(‘date_format’), strtotime(get_the_time(“Y-m-d”, $cb_post_id )) ) .'</time></div>’;
if ( ( $cb_meta_onoff == ‘on’ ) || ( $cb_posts_on == true ) ) {
$cb_byline = ‘<div class=”cb-byline”>’ . $cb_author . $cb_date . $cb_cat_output . $cb_comments . ‘</div>’;
}return $cb_byline;
}
}
which show author url profile link.
I replace it like you said:$cb_author = ‘<div class=”cb-author”>’;
if ( function_exists( ‘coauthors_posts_links’ ) ) {
$cb_author .= ‘<i class=”icon-user”></i> ‘ . coauthors_posts_links( null, null, null, null, false );
} else {
$cb_author .= ‘<i class=”icon-user”></i> <?php if ($comment->user_id) { ?><?php printf( ‘<cite class=”fn”>%s</cite>’, ‘<a href=”‘.$userpro->permalink( $comment->user_id ).'”>’.userpro_profile_data(‘display_name’, $comment->user_id) . ‘</a>’); ?>
<?php } else { ?>
<?php printf( ‘<cite class=”fn”>%s</cite>’, get_comment_author_link() ); ?>
<?php } ?>’;
}
$cb_author .= ‘</div>’;$cb_date = ‘ <div class=”cb-date”><i class=”icon-time”></i> <time class=”updated” datetime=”‘. get_the_time(‘Y-m-d’, $cb_post_id).'”>’. date_i18n( get_option(‘date_format’), strtotime(get_the_time(“Y-m-d”, $cb_post_id )) ) .'</time></div>’;
if ( ( $cb_meta_onoff == ‘on’ ) || ( $cb_posts_on == true ) ) {
$cb_byline = ‘<div class=”cb-byline”>’ . $cb_author . $cb_date . $cb_cat_output . $cb_comments . ‘</div>’;
}return $cb_byline;
}
}and i see error:
Parse error: syntax error, unexpected T_CLASS in /home/cp734451/public_html/fitrain.ru/wp-content/themes/valenti/library/core.php on line 893
What am i doing wrong? Thank you =)
in reply to: Integrating UserPro with your theme comments!