vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Code Hard Coded f=$forum[forumid] (https://vborg.vbsupport.ru/showthread.php?t=68995)

alqadir 09-02-2004 09:28 AM

Code Hard Coded f=$forum[forumid]
 
Is it hardcoded in VB that f always equals f=$forum[forumid].

In a templete If I extract the f value from the URL (URL format is somefile.php?f=$forum[forumid]) then submit the templete to a php file, and in the php file I set a variable "c" to equal c=$forum[forumid], will C have the same value of f?

qd

rake 09-02-2004 09:49 AM

What you're saying doesn't quite make sense. Could you please describe what you are trying to achieve?

nexialys 09-02-2004 10:50 AM

you can play with the resource here to find WHY it's built that way:

in includes/init.php, FIND:
PHP Code:

if ($_SERVER['REQUEST_METHOD'] == 'POST')


... you'll have the needed resource there, as you see why it's hardcoded to f= ...

rake 09-02-2004 12:14 PM

To answer what i think your question was, to make another variable equal to forumid, add
$c = &$f
in your php file.

alqadir 09-02-2004 02:49 PM

My question was is 'f' a system reserved variable that equals $forum[forumid].
From reading nexialys answer, it is by default. Is this correct?

Dean C 09-02-2004 03:13 PM

Moved to General vBulletin Questions


All times are GMT. The time now is 07: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.00958 seconds
  • Memory Usage 1,716KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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