Jump to content
php.lv forumi

IPB online script !


suport

Recommended Posts

public function list_online_members(){
	$r = '';
	foreach($this->data->members as $member){
		$group = $this->cache->groups[$member->group_id];
		$r.= sprintf(
		[u]	'<td class="%s">%s<td class="member_name"><a href="%s?showuser=%d">%s%s%s</a>%s%s%s</td></td>',[/u]
			preg_replace("/[^a-z0-9\-_]/", "", strtolower($group->g_title)),
			$this->cfg->avatar == true ? $this->format_avatar($member->id) : '',
			self::$url,
			$member->id,
			$this->cfg->group == true ? $group->prefix : '',
			$member->name,
			$this->cfg->group == true ? $group->suffix : '',
			$this->cfg->group == true ? '<br />'.$group->prefix.$group->g_title.$group->suffix : '',
			$this->cfg->last_click == true ? '<br />'.$this->format_time($member->time) : '',
			$this->cfg->location == true ? '<br />'.$this->format_location($member->location) : ''
		);
	}
	$r.= '</ul>';
	return $r;

 

 

pasvitrotaja vieta cik es saprotu , katram lietotajam piescir savu classs , piemeram root admin ir class=rootadmin , member class=memeber , vismaz source skatoties ta ir . Ka to varetu nonemt , esmu meginajis bet nesanaak !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...