1

Topic: Understanding Templates

I am seeking a template that will display the footer only on a custom template.  For testing purposed I created template called testing.tpl with this code

<!-- INCLUDE header.tpl -->
<!-- BEGIN profiles --> <!-- BEGIN items --> {top.loggedin} <!-- END items --> <!-- END profiles -->
<!-- INCLUDE footer.tpl -->

.  I also created custom page in VLD CP called testing.

I placed the testing.tpl in current theme template folder as well as in templates.includes.

Calling the template in browser by

results in displaying the home page.  Calliing the template in browser by link created in the custom page utility

results in a page with the header and footer displayed but content area blank as I left that blank when creating custom page.

I have looked in forums and not able to resolve this as of yet.  I need to have a template or custom page that I can insert content section and display only footer.  I am really trying to utilize the footer chat bar on another page.

THanks,
Brian

2

Re: Understanding Templates

for the first call:
http://www.site.com/index.php?m=testing

you need a lib file,
all m=action calls are handled by their respective php lib file

so for your m=testing you would need to have a lib.testing.php file inside the include/lib/ folder

3

Re: Understanding Templates

Okay that works well misulicus...Thanks...Can you or someone advise how would I accomplish to make a page that will be completely blank except for displaying just footer with chatbar???

I would like the blank page with footerbar and then try to have this footer called by another program.

4

Re: Understanding Templates

try this (havent tested)

on the lib.testing.php file

<?php
$TEMPLATE->set_template("testing.tpl");
?>

create a testing.tpl file and put it inside your template folder
inside it add this:

<!-- INCLUDE footer.tpl -->

if i`m right when you go to: index.php?m=testing it should show a blank page with the footer only
if something goes wrong on that page add to the template file above the footer call

<!-- INCLUDE header.tpl -->

i think the chat needs the footer part loaded to load its javscripts or whatever it needs

Last edited by misulicus (2010-08-31 08:45:06)

5

Re: Understanding Templates

Okay so again that works well misulicus...Thanks....
Well almost...  By including

<!-- INCLUDE footer.tpl -->

only the footer displays without any format.  The following displays across the whole page. 

Invite friends | Contact us | Terms of service | Powered by vldPersonals
Settings
Settings
My status Online Invisible
Sound notifications
Notifications
Notifications
You don't have any notifications at this time.
Friends
Online friends
No friends are online right now
XshortusernameX
XusernameX
View profile Block
Settings
Settings
My status Online Invisible
Sound notifications
Notifications
Notifications
You don't have any notifications at this time.
Friends
Online friends
No friends are online right now
XshortusernameX
XusernameX
View profile Block

So what do I need to show the footer with chatbar in correct format.  Do I need to incluce footer_panel.tpl in some way??

Thanks again,
Brian

6

Re: Understanding Templates

try putting the header.tpl include call
cause thats where the CSS style is and all the formatting