vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   $vbulletin->userinfo['userid'] always returns 0 (https://vborg.vbsupport.ru/showthread.php?t=265887)

Boofo 06-27-2011 09:36 PM

Look closer at my change. I didn't add the first dot.

codeit 06-27-2011 09:42 PM

Boofo:
I knew that.. the first part of my previous reply about the syntax error was for the exact change you gave, then I just tried a little more than what you suggested.. sorry didn't make it clear enough.

It's for sure a directory issue, I just tried to move test.php into the forums directory and removed the chdir stuffs and it works, so must be the chdir stuffs...

kh99 06-27-2011 09:45 PM

In the ACP under "Cookies and HTTP Header Options", what do you have "Path to Save Cookies" set to? According to the help for that option, unless you have it set to '/', the cookies won't work in other directories. (I guess that's what Adrian meant by "path").

codeit 06-27-2011 09:57 PM

YES! I just got it.. damn it
kh99: you're just right on, I actually just found out by comparing the settings on the two hosts, then got it to work.. then came back here and see your post exactly the same as what I found.

I recently moved my boards to vB so I'm still new to it, these little things will kill me more :)

Thank you all for your helps.

Adrian Schneider 06-27-2011 10:00 PM

Glad to hear you figured it out. :)

kh99 06-27-2011 10:24 PM

You got it in one, it just took us a bit to catch up with you. ;)

Boofo 06-27-2011 11:13 PM

I was way off.

codeit 06-28-2011 04:33 AM

Although replies don't answer the question directly sometimes, they contribute to the brainstorming :)
So.. they're all appreciated.

LT Mote 06-28-2011 07:59 AM

Quote:

Originally Posted by Boofo (Post 2213712)
Did you try $bbuserinfo['userid']?

" $bbuserinfo['userid'] " doesn't work on 4.x

socialteenz 06-28-2011 12:36 PM

Did you try?

{vb:raw userinfo.fieldx}


All times are GMT. The time now is 02:08 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.01051 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete