By Fred on Monday, 09 December 2013
Posted in General Issues
Replies 3
Likes 0
Views 1.3K
Votes 0
Is there a setting to remove these two things or do I need to just remove it out of the php file? I Dont see a setting but I was just wondering

Also, where it says

Activities are currently restricted to members only.

Log in to see what's going on.


On the Unity Page, what php file is that located in? I want to create a Register Button there since I'm going to remove the ones that show above.

Thanks
Hello Fred,

That message would only show up when you don't have any activity available for guests. To remove it, you will need to modify the unity theme file located in /components/com_easysocial/themes/wireframe/unity/default.php and locate the codes below,


<?php echo $stream->html( false, $empty ); ?>


Replace it with,


<?php echo $stream->html( false ); ?>
·
Monday, 09 December 2013 13:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark, that was semi what I wanted. You pointed me in the right direction to add my Register Button with that line of code. However I want to remove what I have in the Image Attachment in the first post.
·
Tuesday, 10 December 2013 01:18
·
0 Likes
·
0 Votes
·
0 Comments
·
You mean the login box? Edit that same file and remove the codes below:


<?php if( !$this->my->id ){ ?>
<div class="es-login-box">
<div class="row-fluid">
<div class="span6 login-column">
<div class="login-wrap">
<form name="loginbox" id="loginbox" method="post" action="<?php echo JRoute::_( 'index.php' );?>">
<legend class="mt-20"><?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_TO_ACCOUNT_TITLE' );?></legend>
<fieldset class="mt-20">

<input type="text" class="full-width" name="username" placeholder="<?php echo $this->config->get( 'registrations.emailasusername' ) ? JText::_( 'COM_EASYSOCIAL_LOGIN_EMAIL_PLACEHOLDER', true ) : JText::_( 'COM_EASYSOCIAL_LOGIN_USERNAME_PLACEHOLDER' , true );?>" />

<input type="password" class="full-width" name="password" placeholder="<?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_PASSWORD_PLACEHOLDER' , true );?>" />

<label class="checkbox small mt-10">
<input type="checkbox"> <span class="small"><?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_REMEMBER_YOU' );?></span>
</label>

<button type="submit" class="btn btn-es-success btn-block mt-20">
<?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_TO_ACCOUNT_BUTTON' );?>
</button>
</fieldset>

<?php if( $this->config->get( 'oauth.facebook.registration.enabled' ) && $this->config->get( 'registrations.enabled' ) ){ ?>
<div class="center es-signin-social">
<p class="line">
<strong><?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_SIGNIN_SOCIAL' );?></strong>
</p>

<?php echo $facebook->getLoginButton( FRoute::registration( array( 'layout' => 'oauthDialog' , 'client' => 'facebook', 'external' => true ) , false ) ); ?>
</div>
<?php } ?>

<hr />

<div class="center">
<a class="text-error" href="<?php echo FRoute::profile( array( 'layout' => 'forgetUsername' ) );?>"> <?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_FORGOT_USERNAME' );?></a> /
<a class="text-error" href="<?php echo FRoute::profile( array( 'layout' => 'forgetPassword' ) );?>"> <?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_FORGOT_PASSWORD' );?></a>
</div>

<input type="hidden" name="option" value="com_easysocial" />
<input type="hidden" name="controller" value="profile" />
<input type="hidden" name="task" value="login" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<input type="hidden" name="returnFailed" value="<?php echo base64_encode( JRequest::getURI() ); ?>" />
<?php echo $this->html( 'form.token' );?>
</form>
</div>
</div>

<?php if( $this->config->get( 'registrations.enabled' ) ){ ?>
<div class="span6 register-column">
<div class="register-wrap">
<h3><?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_NO_ACCOUNT' );?></h3>
<p class="center mb-20">
<?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_REGISTER_NOW' );?>
</p>
<a class="btn btn-es-primary btn-large btn-block" href="<?php echo FRoute::registration();?>">
<?php echo JText::_( 'COM_EASYSOCIAL_LOGIN_REGISTER_NOW_BUTTON' );?>
</a>
</div>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
·
Tuesday, 10 December 2013 01:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post