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這樣問我,如果你想它的代碼。
謝謝,但怎麼會有人看到Lassoed,Hogtied和未經註冊捕獲?如果用戶已註冊,則會根據其設置回顯標題? – 2010-06-13 17:00:45