[Customisation Database Commits] r1098 - in /trunk/titania/includes/overlords: posts.php users.php

Nathan Guse exreaction at phpbb.com
Tue Apr 20 03:22:31 BST 2010


Author: exreaction
Date: Tue Apr 20 03:22:30 2010
New Revision: 1098

Log:
Now we have working CP Fields ^_^

Modified:
    trunk/titania/includes/overlords/posts.php
    trunk/titania/includes/overlords/users.php

Modified: trunk/titania/includes/overlords/posts.php
==============================================================================
*** trunk/titania/includes/overlords/posts.php (original)
--- trunk/titania/includes/overlords/posts.php Tue Apr 20 03:22:30 2010
***************
*** 298,303 ****
--- 298,305 ----
  		// load the user data
  		users_overlord::load($user_ids);
  
+ 		phpbb::_include('functions_profile_fields', false, 'custom_profile');
+ 		$cp = new custom_profile();
  		$post = new titania_post($topic->topic_type, $topic);
  		$attachments = new titania_attachment(false, false);
  
***************
*** 337,343 ****
  			{
  				foreach ($cp_row['blockrow'] as $field_data)
  				{
! 					$template->assign_block_vars('posts.custom_fields', $field_data);
  				}
  			}
  	//S_IGNORE_POST
--- 339,345 ----
  			{
  				foreach ($cp_row['blockrow'] as $field_data)
  				{
! 					phpbb::$template->assign_block_vars('posts.custom_fields', $field_data);
  				}
  			}
  	//S_IGNORE_POST

Modified: trunk/titania/includes/overlords/users.php
==============================================================================
*** trunk/titania/includes/overlords/users.php (original)
--- trunk/titania/includes/overlords/users.php Tue Apr 20 03:22:30 2010
***************
*** 30,38 ****
  
  	public static function load($user_ids)
  	{
- 		// Only get the rows for those we have not gotten already
- 		$user_ids = array_diff($user_ids, array_keys(self::$users), array(0));
- 
  		self::load_users($user_ids);
  		self::load_cp_fields($user_ids);
  		self::load_status($user_ids);
--- 30,35 ----




More information about the customisationdb-commits mailing list