Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2003, 02:25 PM
imported_hinch imported_hinch is offline
 
Join Date: Jan 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-06-2003, 02:31 PM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You seem to be missing your copyright notice.
Reply With Quote
  #3  
Old 05-06-2003, 02:33 PM
imported_hinch imported_hinch is offline
 
Join Date: Jan 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 05-07-2003, 05:02 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest you work on your footer first then before others begin to warn you to put it back.
Reply With Quote
  #5  
Old 05-07-2003, 08:14 AM
imported_hinch imported_hinch is offline
 
Join Date: Jan 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 05-07-2003, 09:13 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That pretty much is what consists in the footer so you should be fine.
Reply With Quote
  #7  
Old 05-07-2003, 11:14 AM
imported_hinch imported_hinch is offline
 
Join Date: Jan 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 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.07846 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete