2010-06-12 2 views
0

기본적으로 phpbb는 기본 사이트의 포럼으로 사용되며 이미지에는 캡션이 있으며 포럼의 제어판에 사용자 정의 프로필 필드를 추가하여 사용자가 원하는지 묻는 메시지가 표시됩니다 재미있는 또는 설명 캡션.PHPBB 사용자 정의 필드 사용 외부

다음은 내가 생각해 낸 것이지만, 끔찍한 일입니다. 나는 갇혀 있습니다.

기본 캡션을 설명해야한다, 그래서

if ($user->data['is_registered']){ 
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); 
$user->get_profile_fields($user->data['user_id']); 
$user->profile_fields['pf_captions']; 
if (pf_captions_value == descriptive) 
echo "Lassoed, Hogtied, and Captured..."; 
else { 
echo "Not your typical $18..."; 
} 
} 

도 그래서 phpBB를 당신이 그것을 원하는 경우에 저에게 물어 연결하는 코드가있다.

답변

1

데이터베이스에 무엇인지 아직

if ($user->data['is_registered']){ 
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); 
$user->get_profile_fields($user->data['user_id']); 
if ($user->profile_fields['pf_captions']== 'descriptive') 
echo "Lassoed, Hogtied, and Captured..."; 
else { 
echo "Not your typical $18..."; 
} 
} 
+0

감사를 작동하지만 어떻게 사람이 Lassoed 손발 볼 것이다, 당신은 acualy "desciptive"가 가정, 등록하지 않고 캡처? 사용자가 등록되면 설정에 따라 캡션이 표시됩니다. –

관련 문제