vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Frustrated...need your help! (https://vborg.vbsupport.ru/showthread.php?t=58522)

Sylvus 11-11-2003 02:53 AM

Frustrated...need your help!
 
I've created a Profile Field in the CP called Extra. It's field11.

In showthread.php I am doing the following:

Code:

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

Quote:

Originally Posted by Sylvus
I've created a Profile Field in the CP called Extra. It's field11.

In showthread.php I am doing the following:

Code:

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:
PHP Code:

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...


All times are GMT. The time now is 06:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01091 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete