Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

unable to save after repositioning cover image

10 years 1 month ago
  • Marin's Avatar
    Topic Author
  • Marin
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Active

I can see the option to reposition the cover image. I'm able to drag the image up and down. I am not able to save the cover image in the desired position. The image always reverts to being top aligned.

10 years 1 month ago
Licenses:

Hi, Marin.

Its because your current template: Marin Open Studios 2014.
It hides "Save" and "Cancel" buttons when you reposition your cover... so you cant save final effect.
Test it: change template to Joomla! default: protostar and try to reposition the cover. "Save" and "Cancel" buttons will be visible and clickable. You finally can save repositioned cover :)


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Marin
10 years 1 month ago
  • Marin's Avatar
    Topic Author
  • Marin
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Active

Thanks Michal,
I did test it out by switching templates. You're right - the buttons are visible with a different template. Can you tell me how to make the buttons visible with my current template?

Thanks!

10 years 1 month ago
Licenses:

Hi, Marin.

Basically you should ask template developer for help... but try this:

Comment this:

#community-wrap .js-focus-header .span4 .btn {
    display: none;
} 

and this:
#cProfileWrapper .js-focus-header .btn-primary {
    display: none;
}

in lines 28 and 23 in: ROOT/templates/gantry/html/com_community/css/style.css

Notice: commenting in css look like this:
/* #cProfileWrapper .js-focus-header .btn-primary {
    display: none;
} */


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Marin
10 years 1 month ago
  • Marin's Avatar
    Topic Author
  • Marin
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,
I did contact RocketTheme support and they were able to help me get the "Cancel" and "Save" buttons visible again (for logged in users who want to reposition their cover image). However, the css tweak also made the "Send Message" and "Add as Friend" buttons visible for anonymous users who are viewing a members profile page. Makes sense since both sets of buttons are in the same position.
How can I remove the "Send Message" and "Add as Friend" buttons for anonymous users, while keeping the "Cancel" and "Save" buttons for logged in users?

Thanks again!

10 years 1 month ago
Licenses:

Hi, Marin.

You'll need to edit this file: ROOT/components/com_community/templates/default/modules/profile/userinfo.php
(WARNING! Core file hack! Please make safe copy before edit. Also this file will be overwritten during JomSocial upgrade, make a safe copy of customized file as well)

In line 10, replace this:

defined('_JEXEC') or die();
 $js = 'assets/jqueryui/drag/jquery-ui-drag.js';
 CAssets::attach($js, 'js');
?>

with this:
defined('_JEXEC') or die();
 $js = 'assets/jqueryui/drag/jquery-ui-drag.js';
 CAssets::attach($js, 'js');
 $juser = JFactory::getUser();
?>

And in line 38 replace this:
				<div class="span4 text-right">
					<!-- Send message button -->
					<?php if( !$isMine && $config->get('enablepm')){ ?>
							<a href="javascript:void(0);" class="btn" onclick="<?php echo $sendMsg; ?>">
								<span><?php echo JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE')?></span></a>
					<?php }?>
					<!-- Add as friend button -->
					<?php if( !$isMine ): ?>
						<?php if(!$isFriend && !$isMine && !$isBlocked): ?>
							<?php if(!$isWaitingApproval):?>
								<div class="btn btn-primary" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
										<span><?php echo JText::_('COM_COMMUNITY_PROFILE_ADD_AS_FRIEND'); ?></span>
								</div>
							<?php else : ?>
								<div class="btn" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
									<span><?php echo JText::_('COM_COMMUNITY_PROFILE_PENDING_FRIEND_REQUEST'); ?></span>
								</div>
							<?php endif ?>
						<?php endif; ?>
					<?php endif ?>
				</div>

with this:
				<div class="span4 text-right">
				<?php if ($juser->id != 0) { ?>
					<!-- Send message button -->
					<?php if( !$isMine && $config->get('enablepm')){ ?>
							<a href="javascript:void(0);" class="btn" onclick="<?php echo $sendMsg; ?>">
								<span><?php echo JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE')?></span></a>
					<?php }?>
					<!-- Add as friend button -->
					<?php if( !$isMine ): ?>
						<?php if(!$isFriend && !$isMine && !$isBlocked): ?>
							<?php if(!$isWaitingApproval):?>
								<div class="btn btn-primary" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
										<span><?php echo JText::_('COM_COMMUNITY_PROFILE_ADD_AS_FRIEND'); ?></span>
								</div>
							<?php else : ?>
								<div class="btn" onclick="joms.friends.connect('<?php echo $profile->id;?>')">
									<span><?php echo JText::_('COM_COMMUNITY_PROFILE_PENDING_FRIEND_REQUEST'); ?></span>
								</div>
							<?php endif ?>
						<?php endif; ?>
					<?php endif ?>
					<?php } ?>
				</div>

This change will check if user is logged in and conditionally display buttons: if ($juser->id != 0).


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Marin
10 years 1 month ago
  • Marin's Avatar
    Topic Author
  • Marin
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you Michal!
This worked perfectly. I am very happy :)

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW