Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
custom template help Details »»
custom template help
Version: , by drives fast drives fast is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-17-2003 Last Update: Never Installs: 0
 
No support by the author.

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?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-17-2003, 04:05 PM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry...posted in the wrong forum....ca one of the mods move it to the correct one please?
Reply With Quote
  #3  
Old 01-18-2003, 12:30 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-18-2003, 12:34 AM
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
Location: Harrisburg, PA
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad to see you figured it out
Reply With Quote
  #5  
Old 01-18-2003, 12:45 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 01-18-2003, 12:48 AM
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
Location: Harrisburg, PA
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 01-18-2003, 01:57 AM
drives fast's Avatar
drives fast drives fast is offline
 
Join Date: Nov 2001
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 01-18-2003, 02:29 AM
EchoHype.com's Avatar
EchoHype.com EchoHype.com is offline
 
Join Date: Mar 2002
Location: Harrisburg, PA
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep,no problemo

I'm glad to help, it's my favorite part of being a forum member
Reply With Quote
Reply

Thread Tools

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 09:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04811 seconds
  • Memory Usage 2,272KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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