Forum Replies Created
-
Yeah great idea…what’s the best way to identify users? Which ID field am I looking for that corresponds with their folder number?
Ok cool I’ll see if I can find those and try that
There’s a lot of stuff in here Ahmed like people’s profile pictures and all of that. We have close to 300 active members, is there some specific folder I should be clearing. I can’t really touch and remove their profile images etc.
It’s definitely the reason as it was working fine before. I just don’t know why or how I can re-install plugin with all the existing and for it to work.
Just updated and still reads 0 unread messages.:( Stupid server migration!
Here’s the line of code starting at 373 – 383
PHP1234567891011/* new chats notification */function new_chats_notifier($user_id) {$unread = $this->get_conv_unread_folder($user_id);$count = count(glob( $unread . "*"));$num = 0;if ($count > 0) {foreach (glob( $unread . '*.txt') as $user) {$content = @file_get_contents($user);$content = explode('[/]', $content);$num += count($content) - 1;}Hi Ahmed, I do have the latest file installed. I tried to insert global $userpro; as suggested however it broke the site. Here is the code I think you’re talking about.
PHP12345678910111213return '';}}/* Sort array */function array_sort_by_column(&$arr, $col, $dir = SORT_ASC) {$sort_col = array();foreach ($arr as $key=> $row) {Start line375
end line 389This reply has been marked as private.This reply has been marked as private.Berardo, there are some conflicts in the Member Directory, in the “About this Author” box. On your messaging addon if you purchased it. So mainly on the avatars in different places.
in reply to: integration comments with explicit themeKhaled you need to go into Appearance>>>Theme Options>>>> Under the General tab the first one you will see a Custom CSS text field, just copy and paste that code in there.
in reply to: integration comments with explicit themeThe top part of the code fixed it for me. I had the same issue but yeah this did the trick for me
PHP123456789101112131415161718div.userpro-awsm-pic {margin-left: -48px !important;top: -48px;.comment-list .modified.avatar { border-radius: 999px; }}div.userpro-profile-img {height: 80px;width: 80px;}.userpro-sc-left br {display: none;}div.userpro-sc-bar {height: 38px;}.author-image img {border-radius: 999px;}in reply to: integration comments with explicit themeThe code isn’t showing up properly, so I’ve uploaded it here for everyone to access http://www.mediafire.com/view/pf5c43d1vjytpqn/comment_code.txt
in reply to: integration comments with explicit themeAlright guys, here’s the code you need! Can you please go into your functions/theme.php file in the theme folder and change the it_comment code to this
PHP12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061if (!function_exists('it_comment')) {function it_comment($comment, $args, $depth) {global $post;global $userpro;$GLOBALS['comment'] = $comment; ?><li id="li-comment-<?php comment_ID(); ?>"><div class="comment clearfix" id="comment-<?php comment_ID(); ?>"><div class="comment-avatar-wrapper"><div class="comment-avatar"><?php echo get_avatar($comment, 50); ?></div></div><div class="comment-content clearfix"><?php if ($comment->user_id) { ?><div class="comment-author"><a href="<?php echo $userpro->permalink($comment->user_id); ?>"><?php echo userpro_profile_data('display_name', $comment->user_id); ?></a><?php echo userpro_show_badges($comment->user_id, $inline=true); ?></div><?php } else { ?><div class="comment-author"><?php printf(__('%s',IT_TEXTDOMAIN), get_comment_author_link()) ?></div><?php } ?><a class="comment-meta" href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s',IT_TEXTDOMAIN), get_comment_date(), get_comment_time()) ?></a><?php $editlink = get_edit_comment_link();if(!empty($editlink)) { ?><a class="edit-link" href="<?php echo $editlink; ?>"><span class="theme-icon-pencil"></span></a><?php } ?><br class="clearer" /><?php if ($comment->comment_approved == '0') : ?><div class="comment-moderation"><?php _e('Your comment is awaiting moderation.',IT_TEXTDOMAIN) ?></div><?php endif; ?><?php echo it_get_comment_rating($post->ID, $comment->comment_ID); ?><?php if(strpos(get_comment_text(),'it_hide_this_comment')===false) { ?><div class="comment-text"><?php comment_text() ?></div><?php } ?><div class="info reply-wrapper" title="<?php _e('Reply to this comment',IT_TEXTDOMAIN); ?>"><?php echo get_comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => '<span class="theme-icon-forward"></span>'))); ?></div></div></div><?php }}in reply to: integration comments with explicit themeWhile you guys wait here’s some custom CSS code taht will help you with image borders and conflicts with the latest buddypress enhancements Brian made on the theme
PHP1234567891011121314151617181920212223.bp-page .userpro img.avatar {border:0px !important;}.comment-list .modified.avatar { border-radius: 50% !important; }div.userpro-awsm {background: #FFFFFF;}div.userpro-awsm-pic {margin-left: -48px !important;top: -48px;.comment-list .modified.avatar { border-radius: 999px; }}div.userpro-profile-img {height: 80px;width: 80px;}.userpro-sc-left br {display: none;}div.userpro-sc-bar {height: 38px;}.author-image img {border-radius: 999px;}Credits go to keyhanjun!
in reply to: integration comments with explicit theme