davidjmorin
December 12th, 2010, 07:52 AM
is anyone here familiar with jomsocial app?
I have a question regarding information from db to appear in a new place on users page. I have contacted support but at day 4 i still have heard nothing....
under the about me there are a few fields that ajppear....
Gender
birthday
About Me
PIN
I want to move the PIN to another spot on the page......
here is my code for the profile.index.php page
<?php
/**
* @package JomSocial
* @subpackage Template
* @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
* @license GNU/GPL, see LICENSE.php
**/
defined('_JEXEC') OR DIE();
?>
<script type="text/javascript"> joms.filters.bind();</script>
<!-- begin: #cProfileWrapper -->
<div id="cProfileWrapper">
<?php echo $adminControlHTML; ?>
<!-- begin: .cLayout -->
<div class="cLayout clrfix">
<?php $this->renderModules( 'js_profile_top' ); ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_top' ); ?>
<!-- begin: .cSidebar -->
<div class="cSidebar clrfix">
<?php $this->renderModules( 'js_side_top' ); ?>
<?php $this->renderModules( 'js_profile_side_top' ); ?>
<?php echo $sidebarTop; ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_side_top' ); ?>
<?php echo $about; ?>
<?php echo $friends; ?>
<?php if( $config->get('enablegroups')){ ?>
<?php echo $groups; ?>
<?php } ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_side_bottom' ); ?>
<?php echo $sidebarBottom; ?>
<?php $this->renderModules( 'js_profile_side_bottom' ); ?>
<?php $this->renderModules( 'js_side_bottom' ); ?>
</div>
<!-- end: .cSidebar -->
<!-- begin: .cMain -->
<div class="cMain">
<div class="page-actions">
<?php echo $blockUserHTML;?>
<?php echo $reportsHTML;?>
<?php echo $bookmarksHTML;?>
<div id="editLayout-stop" class="page-action" style="display: none;">
<a onclick="joms.editLayout.stop()" href="javascript: void(0)"><?php echo JText::sprintf('CC STOP EDIT PROFILE APPS LAYOUT') ?></a>
</div>
</div>
<?php echo @$header; ?>
<?php $this->renderModules( 'js_profile_feed_top' ); ?>
<?php echo $content; ?>
<div id="activity-stream-nav" class="filterlink">
<div style="float: right;">
<a class="p-active-profile-and-friends-activity active-state" href="javascript:void(0);"><?php echo JText::sprintf('CC PROFILE OWNER AND FRIENDS' , $profileOwnerName );?></a>
<a class="p-active-profile-activity" href="javascript:void(0);"><?php echo $profileOwnerName ?></a>
</div>
<div class="loading"></div>
</div>
<div class="activity-stream-profile">
<div id="activity-stream-container">
<?php echo $newsfeed; ?>
</div>
</div>
<?php $this->renderModules( 'js_profile_feed_bottom' ); ?>
<div id="apps-sortable" class="connectedSortable" >
</div>
</div>
<!-- end: .cMain -->
<?php if($isMine) $this->renderModules( 'js_profile_mine_bottom' ); ?>
<?php $this->renderModules( 'js_profile_bottom' ); ?>
</div>
<!-- end: .cLayout -->
</div>
<!-- begin: #cProfileWrapper -->
and here is the profile.about.php
<?php
/**
* @package JomSocial
* @subpackage Template
* @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
* @license GNU/GPL, see LICENSE.php
*
* @param profile A Profile object that contains profile fields for this specific user
* @param profile->
* @params isMine boolean is this profile belongs to me?
*/
defined('_JEXEC') or die();
?>
<div class="cModule">
<h3><?php echo JText::_('CC ABOUT ME');?></h3>
<?php if( $isMine ): ?>
<a class="edit-this" href="<?php echo CRoute::_('index.php?option=com_community&view=profile&task=edit');?>" title="<?php echo JText::_('CC EDIT PROFILE'); ?>">[ <?php echo JText::_('CC EDIT PROFILE'); ?> ]</a>
<?php endif; ?>
<?php foreach( $profile['fields'] as $groupName => $items ): ?>
<?php if( $groupName != 'ungrouped' ): ?>
<h4><?php echo JText::_( $groupName ); ?></h4>
<?php endif; ?>
<dl class="profile-right-info">
<?php foreach( $items as $item ): ?>
<dt><?php echo JText::_( $item['name'] ); ?></dt>
<?php if( !empty($item['searchLink']) && is_array($item['searchLink']) ): ?>
<dd>
<?php foreach($item['searchLink'] as $linkKey=>$linkValue): ?>
<?php $item['value'] = $linkKey; ?>
<a href="<?php echo $linkValue; ?>"><?php echo CProfileLibrary::getFieldData( $item ) ?></a><br />
<?php endforeach; ?>
</dd>
<?php else: ?>
<dd>
<?php if(!empty($item['searchLink'])) :?>
<a href="<?php echo $item['searchLink']; ?>">
<?php endif; ?>
<?php echo CProfileLibrary::getFieldData( $item ); ?>
<?php if(!empty($item['searchLink'])) :?>
</a>
<?php endif; ?>
</dd>
<?php endif; ?>
<?php endforeach; ?>
</dl>
<?php endforeach; ?>
</div>
any help is much appreciated
I have a question regarding information from db to appear in a new place on users page. I have contacted support but at day 4 i still have heard nothing....
under the about me there are a few fields that ajppear....
Gender
birthday
About Me
PIN
I want to move the PIN to another spot on the page......
here is my code for the profile.index.php page
<?php
/**
* @package JomSocial
* @subpackage Template
* @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
* @license GNU/GPL, see LICENSE.php
**/
defined('_JEXEC') OR DIE();
?>
<script type="text/javascript"> joms.filters.bind();</script>
<!-- begin: #cProfileWrapper -->
<div id="cProfileWrapper">
<?php echo $adminControlHTML; ?>
<!-- begin: .cLayout -->
<div class="cLayout clrfix">
<?php $this->renderModules( 'js_profile_top' ); ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_top' ); ?>
<!-- begin: .cSidebar -->
<div class="cSidebar clrfix">
<?php $this->renderModules( 'js_side_top' ); ?>
<?php $this->renderModules( 'js_profile_side_top' ); ?>
<?php echo $sidebarTop; ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_side_top' ); ?>
<?php echo $about; ?>
<?php echo $friends; ?>
<?php if( $config->get('enablegroups')){ ?>
<?php echo $groups; ?>
<?php } ?>
<?php if($isMine) $this->renderModules( 'js_profile_mine_side_bottom' ); ?>
<?php echo $sidebarBottom; ?>
<?php $this->renderModules( 'js_profile_side_bottom' ); ?>
<?php $this->renderModules( 'js_side_bottom' ); ?>
</div>
<!-- end: .cSidebar -->
<!-- begin: .cMain -->
<div class="cMain">
<div class="page-actions">
<?php echo $blockUserHTML;?>
<?php echo $reportsHTML;?>
<?php echo $bookmarksHTML;?>
<div id="editLayout-stop" class="page-action" style="display: none;">
<a onclick="joms.editLayout.stop()" href="javascript: void(0)"><?php echo JText::sprintf('CC STOP EDIT PROFILE APPS LAYOUT') ?></a>
</div>
</div>
<?php echo @$header; ?>
<?php $this->renderModules( 'js_profile_feed_top' ); ?>
<?php echo $content; ?>
<div id="activity-stream-nav" class="filterlink">
<div style="float: right;">
<a class="p-active-profile-and-friends-activity active-state" href="javascript:void(0);"><?php echo JText::sprintf('CC PROFILE OWNER AND FRIENDS' , $profileOwnerName );?></a>
<a class="p-active-profile-activity" href="javascript:void(0);"><?php echo $profileOwnerName ?></a>
</div>
<div class="loading"></div>
</div>
<div class="activity-stream-profile">
<div id="activity-stream-container">
<?php echo $newsfeed; ?>
</div>
</div>
<?php $this->renderModules( 'js_profile_feed_bottom' ); ?>
<div id="apps-sortable" class="connectedSortable" >
</div>
</div>
<!-- end: .cMain -->
<?php if($isMine) $this->renderModules( 'js_profile_mine_bottom' ); ?>
<?php $this->renderModules( 'js_profile_bottom' ); ?>
</div>
<!-- end: .cLayout -->
</div>
<!-- begin: #cProfileWrapper -->
and here is the profile.about.php
<?php
/**
* @package JomSocial
* @subpackage Template
* @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
* @license GNU/GPL, see LICENSE.php
*
* @param profile A Profile object that contains profile fields for this specific user
* @param profile->
* @params isMine boolean is this profile belongs to me?
*/
defined('_JEXEC') or die();
?>
<div class="cModule">
<h3><?php echo JText::_('CC ABOUT ME');?></h3>
<?php if( $isMine ): ?>
<a class="edit-this" href="<?php echo CRoute::_('index.php?option=com_community&view=profile&task=edit');?>" title="<?php echo JText::_('CC EDIT PROFILE'); ?>">[ <?php echo JText::_('CC EDIT PROFILE'); ?> ]</a>
<?php endif; ?>
<?php foreach( $profile['fields'] as $groupName => $items ): ?>
<?php if( $groupName != 'ungrouped' ): ?>
<h4><?php echo JText::_( $groupName ); ?></h4>
<?php endif; ?>
<dl class="profile-right-info">
<?php foreach( $items as $item ): ?>
<dt><?php echo JText::_( $item['name'] ); ?></dt>
<?php if( !empty($item['searchLink']) && is_array($item['searchLink']) ): ?>
<dd>
<?php foreach($item['searchLink'] as $linkKey=>$linkValue): ?>
<?php $item['value'] = $linkKey; ?>
<a href="<?php echo $linkValue; ?>"><?php echo CProfileLibrary::getFieldData( $item ) ?></a><br />
<?php endforeach; ?>
</dd>
<?php else: ?>
<dd>
<?php if(!empty($item['searchLink'])) :?>
<a href="<?php echo $item['searchLink']; ?>">
<?php endif; ?>
<?php echo CProfileLibrary::getFieldData( $item ); ?>
<?php if(!empty($item['searchLink'])) :?>
</a>
<?php endif; ?>
</dd>
<?php endif; ?>
<?php endforeach; ?>
</dl>
<?php endforeach; ?>
</div>
any help is much appreciated