Changeset 1718 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 08/27/2009 09:18:10 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-classes.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r1706 r1718 12 12 var $enable_forum; 13 13 var $date_created; 14 15 var $avatar_thumb; 16 var $avatar_full; 17 14 18 15 var $user_dataset; 19 16 … … 52 49 $this->date_created = strtotime($group->date_created); 53 50 $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' ); 54 55 $gravatar_url = apply_filters( 'bp_gravatar_url', 'http://www.gravatar.com/avatar/' );56 57 if ( !$group->avatar_thumb || strpos( $group->avatar_thumb, 'none-thumbnail' ) )58 $this->avatar_thumb = $gravatar_url . md5( $this->id . '@' . $bp->root_domain ) . '?d=identicon&s=50';59 else60 $this->avatar_thumb = $group->avatar_thumb;61 62 if ( !$group->avatar_full || strpos( $group->avatar_thumb, 'none-' ) )63 $this->avatar_full = $gravatar_url . md5( $this->id . '@' . $bp->root_domain ) . '?d=identicon&s=150';64 else65 $this->avatar_full = $group->avatar_full;66 51 67 52 if ( $get_user_dataset ) { … … 95 80 $this->enable_forum = apply_filters( 'groups_group_enable_forum_before_save', $this->enable_forum, $this->id ); 96 81 $this->date_created = apply_filters( 'groups_group_date_created_before_save', $this->date_created, $this->id ); 97 $this->avatar_thumb = apply_filters( 'groups_group_avatar_thumb_before_save', $this->avatar_thumb, $this->id );98 $this->avatar_full = apply_filters( 'groups_group_avatar_full_before_save', $this->avatar_full, $this->id );99 82 100 83 do_action( 'groups_group_before_save', $this ); … … 111 94 enable_wire = %d, 112 95 enable_forum = %d, 113 date_created = FROM_UNIXTIME(%d), 114 avatar_thumb = %s, 115 avatar_full = %s 96 date_created = FROM_UNIXTIME(%d) 116 97 WHERE 117 98 id = %d … … 125 106 $this->enable_wire, 126 107 $this->enable_forum, 127 $this->date_created, 128 $this->avatar_thumb, 129 $this->avatar_full, 108 $this->date_created, 130 109 $this->id 131 110 ); … … 141 120 enable_wire, 142 121 enable_forum, 143 date_created, 144 avatar_thumb, 145 avatar_full 122 date_created 146 123 ) VALUES ( 147 %d, %s, %s, %s, %s, %s, %d, %d, FROM_UNIXTIME(%d) , %s, %s124 %d, %s, %s, %s, %s, %s, %d, %d, FROM_UNIXTIME(%d) 148 125 )", 149 126 $this->creator_id, … … 155 132 $this->enable_wire, 156 133 $this->enable_forum, 157 $this->date_created, 158 $this->avatar_thumb, 159 $this->avatar_full 134 $this->date_created 160 135 ); 161 136 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)