vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   lost... sorry double post! (https://vborg.vbsupport.ru/showthread.php?t=209495)

externalaw.com 03-26-2009 11:32 AM

lost... sorry double post!
 
Ok,

I have a page with user information, stocks.php?u=3

In the postbit it works fine if i use this

Code:
<br><div class="smallfont"><a class="smallfont" href="stockts.php?$session[sessionurl]u=$post[userid]">Portfolio</a></div>
So the above works great in postbit

But, when I put the same in MEMBERSINFO it doesnt work, all I get is this

stocks.php?u=

Without the USER ID

How can I fix this?

TigerC10 03-26-2009 12:18 PM

$post[userid] is a variable that only exists when you're dealing with posts in threads. Hense the "post" part of the variable name. Try using the $userinfo[userid] for the memberinfo template instead.

Your code should be:
Code:

<br><div class="smallfont"><a class="smallfont" href="stockts.php?$session[sessionurl]u=$userinfo[userid]">Portfolio</a></div>
Also, use the [code][/code] bbcode tags when you share code with people in the future ;)

externalaw.com 03-26-2009 02:02 PM

that finally did the trick, thank you soo much!

Marco van Herwaarden 03-26-2009 02:30 PM

$userinfo will use the info for the user that is visting the page, not for the profile visited.

TigerC10 03-26-2009 04:07 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1777510)
$userinfo will use the info for the user that is visting the page, not for the profile visited.

I think you're thinking about $bbuserinfo, not $userinfo. ;)


All times are GMT. The time now is 03:40 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.01079 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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