PDA

View Full Version : Frustrated...need your help!


Sylvus
11-11-2003, 02:53 AM
I've created a Profile Field in the CP called Extra. It's field11.

In showthread.php I am doing the following:

if ($thread['forumid'] == 41) {

if ($bbsuerinfo['field11'] != "Welcome")
{
eval("standarderror(\"".gettemplate("error_notspecial")."\");");
}

}


I've given myself the word "Welcome" for my Profile field11 yet it does not work. I always get the notspecial error template I made to test this. I've tried the following other variables as well.

$post[field11]
$bbuserinfo['$post[field11]']

Basically, I want anyone who I have not given the word "Welcome" in Profile Field 11 to receive the notspecial error template when they attempt to view any thread in forumid #44. It works if I substitute ($bbsuerinfo['field11'] != "Welcome") with if ($bbuserinfo['username'] != "Sylvus", as an example so I know the general basics of the code works, but it's the field11 that's causing the problem.

I am logged in when I attempt this.

Syl...

assassingod
11-11-2003, 05:58 AM
I've created a Profile Field in the CP called Extra. It's field11.

In showthread.php I am doing the following:

if ($thread['forumid'] == 41) {

if ($bbsuerinfo['field11'] != "Welcome")
{
eval("standarderror(\"".gettemplate("error_notspecial")."\");");
}

}


I've given myself the word "Welcome" for my Profile field11 yet it does not work. I always get the notspecial error template I made to test this. I've tried the following other variables as well.

$post[field11]
$bbuserinfo['$post[field11]']

Basically, I want anyone who I have not given the word "Welcome" in Profile Field 11 to receive the notspecial error template when they attempt to view any thread in forumid #44. It works if I substitute ($bbsuerinfo['field11'] != "Welcome") with if ($bbuserinfo['username'] != "Sylvus", as an example so I know the general basics of the code works, but it's the field11 that's causing the problem.

I am logged in when I attempt this.

Syl...
You've spelt bbuserinfo wrong:

if ($thread['forumid'] == 41) {

if ($bbuserinfo['field11'] != "Welcome")
{
eval("standarderror(\"".gettemplate("error_notspecial")."\");");
}

}

Sylvus
11-11-2003, 12:05 PM
Nah, still doesn't work. It's correct in my showthread.php file, typed it wrong in the post.

Any other suggestions?

EDIT: Got it working. I found another spelling mistake :speechless:

Syl...