vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   custom template help (https://vborg.vbsupport.ru/showthread.php?t=47805)

drives fast 01-17-2003 04:03 PM

custom template help
 
I searched and searched with no luck for the answer to this.....please help me with this one.

in global.php and my index.php (vbindex2.1) I have this in the right places:
PHP Code:

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

but for some reason I can't make the template show in the header template. I can make it show on forumhome but not header.

is there some trick I am missing to make this display in the header template?

drives fast 01-17-2003 04:05 PM

sorry...posted in the wrong forum....ca one of the mods move it to the correct one please?

drives fast 01-18-2003 12:30 AM

well...stupid question......no need for a custom template to be added to the header template when you can just put the html from the custom template right in there.

anyway.....the problem I was trying to solve was to remove the wrap table from the header and footer templates and then add that code to every template that has the call for the header and footer and then I could call my custom template on the pages I choose.

thanks anyway.

EchoHype.com 01-18-2003 12:34 AM

glad to see you figured it out :)

drives fast 01-18-2003 12:45 AM

thanks....but now that I know somebody is reading this...I have another question

I know this is the wrong area for this question but hopefully you can help me.

I have some custom scripting integrated into my admin panel but many times I see this at the top
Quote:

Warning: Cannot add header information - headers already sent by (output started at /xxxx/xxxxxxx/xxxxxxxxx/xxxxx/admin/fixacc.php:6) in /xxxx/xxxxxxx/xxxxxxxxx/xxxxx/admin/functions.php on line 1651
what is causing this?

here is an example of a script I call from the admin cp and I get that error as well sometimes (it mentiones main.php rather than fixacc though)
PHP Code:

<html>
<head>
<title>The Other Admin</title>
<link rel="stylesheet" href="../cp.css">
</head>
<body>

<p><font size='1'>From here, you can control all aspects of your donations and files.
Please select what you need from the links below.</font><p>

<?php

error_reporting
(7);

require(
"./global.php");

doformheader("dunno","stilldunno");
maketableheader("Other Admin Stuff");

?>

<tr class="firstalt">
    <td><a href="donman.php?action=doit">Donation Management</a></td>
</tr>
<tr class="secondalt">
    <td><a href="fileman.php?action=doit">Files Management</a></td>
</tr>
<tr class="firstalt">
<td><a href="donman.php?action=chalkey">Manage Challenge Codes</a></td>
</table>
</td></tr></table>

</body>
</html>


EchoHype.com 01-18-2003 12:48 AM

Look in this thread, it's all about what you want :)
have fun bud, I'm glad I could help ya!


https://vborg.vbsupport.ru/showthrea...threadid=47126

drives fast 01-18-2003 01:57 AM

yup...simple as that.....you turned me onto the exact information I was looking for. Solved my errors with minimal scratching of the noggin.

thank you again.

EchoHype.com 01-18-2003 02:29 AM

yep,no problemo

I'm glad to help, it's my favorite part of being a forum member :)


All times are GMT. The time now is 07: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.01067 seconds
  • Memory Usage 1,730KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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