vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   forms on main page (https://vborg.vbsupport.ru/showthread.php?t=47516)

sweetmercifulcr 01-08-2003 08:25 PM

forms on main page
 
hey guys. I got a request for a hack, I searched for it but came up with nothing. Sorry if it's out there, if it is link me please.

on my main page, I have forms, and one of the input fields is name. I think it would be cool if a memeber is loged in, or a session is found, inside that field is their username. If you understood that... :smoke:

Xenon 01-09-2003 11:38 AM

have you requiread your global.php in your mainpage?

if yes, just use $bbuserinfo[username] as the default value of the form.

if no, reuire it first and then do as above

Logik 01-09-2003 12:37 PM

Xenon is a PHP God.. Cant forget hellsatan though. And arunan. And all them others :OI

sweetmercifulcr 01-10-2003 02:10 AM

Quote:

Originally posted by Xenon
have you requiread your global.php in your mainpage?

if yes, just use $bbuserinfo[username] as the default value of the form.

if no, reuire it first and then do as above

I thought about this, however never tried it. I wasn't even sure what to put as the value of the form, but knew I'd have to require some file (I'm knew to vb)

thanks though, I'll give it a shot.

Edit: gave it a shot, got this:

PHP Code:

WarningUnable to access ./admin/config.php in /home/virtual/site10/fst/var/www/html/forum/global.php on line 129 


Auero 01-10-2003 02:43 AM

Hmm, don't see why you're getting that error. From what I understand of Xenon's post you shouldn't have actually edited the global.php file. Only added $bbuserinfo[username] into the forumhome_xxxx template.

Xenon 01-10-2003 10:32 PM

instead of just
PHP Code:

require('forum/global.php'); 

try this one:
PHP Code:

chdir('forum');
require(
'global.php'); 



All times are GMT. The time now is 04:22 PM.

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.01954 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_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