vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Puttin a login in the Header (https://vborg.vbsupport.ru/showthread.php?t=86614)

kamu 03-17-2003 09:32 PM

Puttin a login in the Header
 
Hey everyone I have tryed puttin $logincode in the header and it fails to show up! I have searched this board and nothing :(

I need to know how to put $logincode in the header, so it ACTULAY shows up

thnx all

Vladdy 03-17-2003 09:47 PM

Do this:

Templates ---> Expand all ---> Forum Home Page Templates ---> Expand ----> Forumhome (click "edit" or "change original")

Now just play around and decide where you want to logincode to go. Since you wanted it in your header, I would suggest putting in your "welcome panel" depending on what your's looks like, but either way, just play around with that template until you find exactly where you want to put it...

Tony G 03-18-2003 03:46 AM

I think he means the header template, not just the forumhome.

It would probably require a phpinclude mod to make the login code useable in the header template.

kamu 03-18-2003 05:53 AM

cheers vladdy, not exactly tho ;)

Tony, could you please be more detailed on that..
and WHAT is a phpinclude mod? is it hardcoding it in php?

Vladdy 03-18-2003 06:01 AM

Well my logincode is up in my header but I don't have it coded into phpinclude...

kamu 03-18-2003 06:08 AM

hmm, mine refusus to show

Tony G 03-18-2003 07:44 AM

What variable are you placing in the template, kamu?

kamu 03-18-2003 09:59 AM

$logincode.. lemme double check that..
$logincode yes.. thats whats in there

also i moved it to different places in the templates (header) and no difference

omega buster 03-18-2003 10:01 AM

Well I don't know much about this but AFAIK filburt release mod about this. Maybe can help u bit, just trying to help. :)

http://www.vbulletintemplates.com/mo...?threadid=1729

filburt1 03-18-2003 10:14 AM

It doesn't add the login code, though.

kamu 03-18-2003 10:42 AM

hmm... I wonder why it doesnt want to show up...

omega buster 03-18-2003 11:10 AM

Quote:

Originally Posted by kamu
hmm... I wonder why it doesnt want to show up...

Can u post the header?

kamu 03-18-2003 11:20 AM

Quote:

Originally Posted by omega buster
Can u post the header?

its a massive header

kamu 03-18-2003 11:59 AM

i found something but its been deleted

http://www.vbulletin.com/forum/showt...t=login+header
is this heading the right way?

filburt1 03-18-2003 12:56 PM

If you've ever made a hack then you get the drift of how templates work. The important thing is that not all variables are available in the global scope. For example, $logincode might only be set in index.php.

Tony G 03-18-2003 08:45 PM

It would involve either a php file mod or a phpinclude mod to get them working specifically in other templates. :)

kamu 03-18-2003 09:01 PM

Quote:

Originally Posted by Tony
It would involve either a php file mod or a phpinclude mod to get them working specifically in other templates. :)

and how would I go along doing that? :)

kamu 03-18-2003 09:06 PM

found it in vB.org
should have looked there first, thanx to all for your help!

resource: https://vborg.vbsupport.ru/showthrea...472#post313472

for future.. um people who have problems like me :)

Tony G 03-18-2003 10:12 PM

Yes well, people usually do them for you. Or just request it if not done. It's not very hard as so many were made.

filburt1 03-18-2003 10:37 PM

Give a man a fish...etc. ;)`

Tony G 03-19-2003 03:29 AM

He'll probably do them for you as they're quite simple for him if not already done in phpinclude. :D


All times are GMT. The time now is 05:14 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.01062 seconds
  • Memory Usage 1,747KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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