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