vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   adding this to the header without.. (https://vborg.vbsupport.ru/showthread.php?t=42897)

Xelation 08-29-2002 01:37 PM

adding this to the header without..
 
hey everyone I was just wondering if anyone could tell me how I could add the following information to the header without editing the phps files...

Welcome back, Xelation
View New Posts
Members: 2, Threads: 2, Posts: 17
Welcome to our newest member, Xeo The time now is 10:35 AM.
You last visited: 08-28-2002 06:05 PM.

and the $logincode

thanks

DrkFusion 08-29-2002 04:55 PM

If you mean to the header template, Im not sure it can be done without editing, those information is found in the Forum Home templates, and the coding for that is found in index.php, I think header is run off global.php

DrkFusion 08-29-2002 04:58 PM

I just took a look in global.php
Code:

$header='';
$footer='';

// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));

// parse css, header & footer ##################
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");

// parse other global templates

eval("\$gobutton = \"".gettemplate('gobutton')."\";");

$timediff='';
if ($bbuserinfo['timezoneoffset']!=0) {
  if (abs($bbuserinfo['timezoneoffset'])==1) {
    $timediff=" $bbuserinfo[timezoneoffset] hour";
  } else {
    $timediff=" $bbuserinfo[timezoneoffset] hours";
  }
}

$timenow=vbdate($timeformat,time());

eval("\$timezone = \"".gettemplate('timezone')."\";");

Im not sure if this will work, but you best bet to get those info into the header would be to copy and paste the code from index.php below
Code:

// parse css, header & footer ##################

Erwin 08-29-2002 05:32 PM

Add it to the phpinclude template. There is no need to edit any php files then.


All times are GMT. The time now is 06: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.00976 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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