vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   login boxes at the top of screen (https://vborg.vbsupport.ru/showthread.php?t=86864)

imported_hinch 05-06-2003 02:25 PM

login boxes at the top of screen
 
ok this is a rather confusing situation.

im running vbb2.3.0 with vbportal3.0pr2

now on the vbportal front end ive managed to sucessfully move the login boxes to the top of the screen and have them dissapearing when a user is logged in to be replaced when "you are logged in please click here to logout"

todo this i edited the vbp header.php

and changed it from

PHP Code:

eval("\$themeheader = \"".gettemplate("P_themeheader")."\";"); 

to

PHP Code:

if ($bbuserinfo['userid']!=NULL) {
eval(
"\$themeheader = \"".gettemplate("P_themeheaderLI")."\";");
}else{
eval(
"\$themeheader = \"".gettemplate("P_themeheader")."\";");



ok fair enough now both the vbb back end and the portal both use $themeheader to generate the site header and it works fine on the vbp end.

so i found where vbb calls $themeheader from which is phpinclude templace

and i changed it to read

PHP Code:

if (!isset($mainfile)){
include(
"../vbp_includes.php");
}else{
include(
"../config.php");
if (!isset(
$bbuserinfo['userid'])) {
eval(
"\$themeheader = \"".gettemplate("P_themeheader")."\";");
}else{
eval(
"\$themeheader = \"".gettemplate("P_themeheaderLI")."\";");
}


now the login box appears perfectly and i can login fine however it doesnt dissapear when the user is logged in

anybody have any suggestions on how to fix this?
if you wanna have a quick look at the site and see if you can work out what i wanna do then its at http://sharp.gazellesolutions.net

Austin Dea 05-06-2003 02:31 PM

You seem to be missing your copyright notice.

imported_hinch 05-06-2003 02:33 PM

i also appear to be missing an entire footer due to the fact i havent implemented the new one yet

i need to get teh front end working then look at making the forums look better however its still undecided if the forums are even going to be public visiable and just using teh vbb engine as a content management engine for the portal.

first things first ehh

Tony G 05-07-2003 05:02 AM

I suggest you work on your footer first then before others begin to warn you to put it back.

imported_hinch 05-07-2003 08:14 AM

well ive added your little text back in till i get round to putting the proper footer

now i still have the slight problem of not being able to get the login box swap to work

Tony G 05-07-2003 09:13 AM

That pretty much is what consists in the footer so you should be fine.

imported_hinch 05-07-2003 11:14 AM

by proper footer i mean the one the site actually requires with all the stats and relevent admin options in and various other things.

now any clues as to how to make the login boxes dissapear on login? im still confused as to why it works on the front end when reading the logged in variable but refuses to work on the vbb end of it unless the header tempate variable call isnt in the phpinclude template


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