vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   USERID question... (https://vborg.vbsupport.ru/showthread.php?t=41602)

Boofo 07-27-2002 05:58 PM

USERID question...
 
Can anyone please tell me why this link keeps giving me the "try some different terms" error on the forumhome when I click on it there? It works great in the getinfo template, but not on forumhome.

Code:

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">Your Recent Posts</a>
EDIT: I figured it out. I am putting it in the forumhome_welcometext template which is called in the forumhome template. If I put it in the forumhome template, it works. It won't work when I put it in the forumhome_welcometext template. And ideas how to make it work there? :)

Xenon 07-27-2002 09:35 PM

Code:

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">Your Recent Posts</a>
just works if $userinfo[userid] exists

are you sure you don't want to use $bbuserinfo?
Code:

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$bbuserinfo[userid]">Your Recent Posts</a>

Boofo 07-27-2002 09:45 PM

Don't you ever die, Xenon!!! I'd be lost without you. :)

That worked great. Why would the first one work in the forumhome template and not the forumhome_welcometext? I'm lost on that one. :)

Also, can you explain something else to me then? In one of my forum listings on the main forumhome screen, it gives me the errorid error when I click on the thread name in the last post column, but all of the other ones work great! Is this the same kindof problem as what you fixed here?

And thank you very much, by the way. :)

Quote:

Originally posted by Xenon
Code:

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">Your Recent Posts</a>
just works if $userinfo[userid] exists

are you sure you don't want to use $bbuserinfo?
Code:

<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$bbuserinfo[userid]">Your Recent Posts</a>


Xenon 07-27-2002 09:52 PM

:)

good question why the first one works there ;)
normally it shouldn't because there must be something like $userinfo=$bbuserinfo in index.php, but i don't find such ;)


hmm, perhaps you have deleted the hthread and not updatet counters?
don'T know exactly...

Boofo 07-27-2002 10:34 PM

Well, it works now, that's all that really matters. :)

On the thread...the thread is there and I had already updated the counters. Got me on this one. :)

Quote:

Originally posted by Xenon
:)

good question why the first one works there ;)
normally it shouldn't because there must be something like $userinfo=$bbuserinfo in index.php, but i don't find such ;)


hmm, perhaps you have deleted the hthread and not updatet counters?
don'T know exactly...



All times are GMT. The time now is 11:09 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.01877 seconds
  • Memory Usage 1,722KB
  • 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
  • (5)bbcode_code_printable
  • (2)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