vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   [tip] Never underestimate the power of the phpinclude template (https://vborg.vbsupport.ru/showthread.php?t=85294)

filburt1 05-20-2003 03:08 PM

Provided you used it correctly, it does work.

imported_hinch 05-20-2003 03:28 PM

thats whats confusing me it does work on some pages just not on others

ie: the login box swap works fine on all the portal pages but it refuses to work on the vbb its self. even though both pages load exactly the same header templates and both process the phpinclude template

this is almost the last thing ive been stuck with and its confusing the hell outta me

dstruct2k 06-09-2003 10:37 PM

hinch: I did that same hack... But to the header code itself within vBP's files. I decided a code hack would work better than a template hack. Ironically, I'm getting to opposite of what you are -- The themeheader is only changed within vB pages. vBP pages show the default. So, I think a combination of both our hacks would create exactly what we need. :D

imported_hinch 06-11-2003 07:24 AM

heh possiably

well the vbp header swapping works perfectly all i did was add the template called P_themeheadersLI (LI for logged in)

then in header.php edited the line of code that just said
eval("\$themeheader = \"".gettemplate("P_themeheader")."\";");

to now say

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

thats on line 50 or so of header.php so that should work for you fine. i think

as for the vb one its self fancy giving me a clue im struggling to find even html in the vb files


All times are GMT. The time now is 03:37 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.01122 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete