';
-$social_right_content .= UserManager::get_search_form('');
-$social_right_content .= '
';
+$socialRightInformation .= UserManager::get_search_form('');
+$socialRightInformation .= '
';
//Group box by age
$results = GroupPortalManager::get_groups_by_age(1, false);
@@ -242,10 +242,10 @@ foreach ($results as $result) {
}
if (count($groups_newest) > 0) {
- $social_right_content .= '
' . get_lang(
+ $socialRightInformation .= '
' . get_lang(
'Newest'
) . '
';
- $social_right_content .= Display::return_sortable_grid(
+ $socialRightInformation .= Display::return_sortable_grid(
'home_group',
array(),
$groups_newest,
@@ -257,10 +257,10 @@ if (count($groups_newest) > 0) {
}
if (count($groups_pop) > 0) {
- $social_right_content .= '
' . get_lang(
+ $socialRightInformation .= '
' . get_lang(
'Popular'
) . '
';
- $social_right_content .= Display::return_sortable_grid(
+ $socialRightInformation .= Display::return_sortable_grid(
'home_group',
array(),
$groups_pop,
@@ -270,11 +270,12 @@ if (count($groups_pop) > 0) {
array(true, true, true, true, true)
);
}
-$social_right_content .= '
';
+$socialRightInformation .= '
';
$tpl = new Template(get_lang('SocialNetwork'));
$tpl->assign('social_avatar_block', $social_avatar_block);
$tpl->assign('social_menu_block', $social_menu_block);
-$tpl->assign('social_right_content', $social_right_content);
+$tpl->assign('social_right_content', $socialRightContent);
+$tpl->assign('socialRightInformation', $socialRightInformation);
$social_layout = $tpl->get_template('layout/social_layout.tpl');
$tpl->display($social_layout);
\ No newline at end of file
diff --git a/main/social/profile.php b/main/social/profile.php
index e91c5a0bcb..587cae68ff 100755
--- a/main/social/profile.php
+++ b/main/social/profile.php
@@ -29,7 +29,7 @@ $show_full_profile = true;
//social tab
$this_section = SECTION_SOCIAL;
-if (!empty($_POST['social_wall_new_msg_main'])) {
+if (!empty($_POST['social_wall_new_msg_main']) || !empty($_FILES['picture']['tmp_name'])) {
$messageId = 0;
$idMessage = SocialManager::sendWallMessage(api_get_user_id(), $friendId, $_POST['social_wall_new_msg_main'], $messageId, MESSAGE_STATUS_WALL_POST);
if (!empty($_FILES['picture']['tmp_name']) && $idMessage > 0) {
@@ -430,7 +430,7 @@ $social_right_content .= SocialManager::social_wrapper_div($wallSocialAddPost, 5
$social_right_content .= wallSocialPost($my_user_id, $friendId);
$socialAutoExtendLink = Display::url(
- get_lang('Next'),
+ get_lang('SeeMore'),
$socialAjaxUrl . '?u='. $my_user_id . '&a=listWallMessage&start=10&length=5',
array(
'class' => 'nextPage next',
diff --git a/main/template/default/layout/social_layout.tpl b/main/template/default/layout/social_layout.tpl
index d346affd8f..6862da34f1 100755
--- a/main/template/default/layout/social_layout.tpl
+++ b/main/template/default/layout/social_layout.tpl
@@ -8,7 +8,7 @@
{{ social_menu_block }}