Changeset 11014
- Timestamp:
- Mar 13, 2009, 11:03:45 AM (13 years ago)
- Location:
- OpenPNE3/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/trunk/apps/mobile_frontend/modules/community/actions/actions.class.php
r11012 r11014 18 18 class communityActions extends sfOpenPNECommunityAction 19 19 { 20 /** 21 * Executes home action 22 * 23 * @param sfWebRequest $request a request object 24 */ 25 public function executeHome(sfWebRequest $request) 26 { 27 $this->membersSize = 5; 28 29 return parent::executeHome($request); 30 } 31 20 32 /** 21 33 * Executes joinlist action -
OpenPNE3/trunk/apps/mobile_frontend/modules/community/templates/homeSuccess.php
r11012 r11014 8 8 9 9 <tr><td align="center" width="50%" valign="top"> 10 <?php echo image_tag_sf_image($community->getImageFileName(), array('size' => '120x120', 'format' => 'jpg')) ?> 10 11 </td> 11 12 … … 13 14 <font color="#999966">ID:</font><br> 14 15 <?php echo $community->getId() ?><br> 16 <font color="#999966"><?php echo __('Date Created') ?>:</font><br> 17 <?php echo op_format_date($community->getCreatedAt(), 'D') ?><br> 18 <font color="#999966"><?php echo __('Administrator') ?>:</font><br> 19 <?php echo link_to($community_admin->getName(), 'member/profile?id='.$community_admin->getId()) ?><br> 15 20 </td> 16 21 </tr> … … 42 47 <?php 43 48 $list = array(); 44 $c = new Criteria(); 45 $c->addAscendingOrderByColumn(Propel::getDB()->random(time())); 46 foreach ($community->getMembers(5, $c) as $member) { 49 foreach ($members as $member) { 47 50 $list[] = link_to($member->getName(), 'member/profile?id='.$member->getId()); 48 51 } 49 52 $option = array( 50 'title' => __('Community member'),53 'title' => __('Community Members'), 51 54 'border' => true, 52 55 'moreInfo' => array( -
OpenPNE3/trunk/apps/pc_frontend/modules/community/templates/homeSuccess.php
r10920 r11014 10 10 $options = array( 11 11 'title' => __('Community Members'), 12 'list' => $ community->getMembers(9),12 'list' => $members, 13 13 'crownIds' => array($community_admin->getId()), 14 14 'link_to' => 'member/profile?id=', -
OpenPNE3/trunk/lib/action/sfOpenPNECommunityAction.class.php
r11012 r11014 38 38 $this->community_admin = CommunityMemberPeer::getCommunityAdmin($this->id); 39 39 $this->community_admin = MemberPeer::retrieveByPk($this->community_admin->getMemberId()); 40 41 if (!$this->membersSize) 42 { 43 $this->membersSize = 9; 44 } 45 $c = new Criteria(); 46 $c->addAscendingOrderByColumn(Propel::getDB()->random(time())); 47 $this->members = $this->community->getMembers($this->membersSize, $c); 40 48 } 41 49
Note: See TracChangeset
for help on using the changeset viewer.