PDA

View Full Version : custom template help


drives fast
01-17-2003, 04:03 PM
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:
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
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)
<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/showthread.php?s=&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 :)