Topic: php in tpl files?

I don't know if this has been asked, hell i've probably asked it: can you not use php in the main.tpl file?
This would suck because I use php for many parts of the layout (no i can't just get rid of the php)
is there a way to make it work?
Thanks.

Re: php in tpl files?

http://punbb.org/docs/faq.html#faq3_4 explains it.

3 (edited by teenagegluesniffer 2007-02-07 04:37)

Re: php in tpl files?

Okay, thanks. I'm having a few problems with this that are baffling me.
on the forum index the page drops down quite a bit, and there is a lot of whitespace after the forum footer.
when going into the topic list it goes up a little bit and the white space goes away...then when going into a post the top white space goes away completely as well. Has anyone else experienced this, and can they help cause I don't see this anywhere.
Thanks for the help. :\


Solved.

4 (edited by teenagegluesniffer 2007-02-11 15:36)

Re: php in tpl files?

This goes along with what I was doing.
I can't figure out what part of the css is giving me problems here.
Anyway, where it shows the posters information, the background is black...and their post only takes up about half of what it should.
You can view what i'm talking about, here.
Thanks

Edit: Please let me know if the background color of the part of the page containing the forum is brown, and not white.

Edit 2: Where do I find how to change the top, and bottom of the page (colors i can't find it anywhere)...example of top:
Pages: 2                      Forum » Forum1 » Topic1                  Post Reply

Example of bottom:
Pages: 2                      Forum » Forum1 » Topic1                       Post Reply
SUBSCRIBE TO THIS TOPIC

Also, where to change the above equivelance in Viewing the topics.

And where do I find to change the whitespace in some ones profile...the area under

Essentials
Personal
Messaging
Personality
Display
Privacy
Administration

And FINALLY, can anyone tell why the borders aren't working? :s

Re: php in tpl files?

well first off you got no css for the forum.. once you drop ur code in for ur css u stoped the link to the punbb style.  u might have to do a custom css for punbb.... ill try to find the custom one i did for a site long time ago..


lol..
Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: php in tpl files?

then what is the point in the style sheet I have on there?

Re: php in tpl files?

punbb needs it own css and ur css so u need to join the two...

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: php in tpl files?

I'm using punbb css. It's located in the header.php file....I took all the style sheets I found and moved them there.
But it seems as though only part of it is working.

Re: php in tpl files?

Not trying to be a bother here but, can some one take a look at this?

Re: php in tpl files?

http://validator.w3.org/check?verbose=1 … Fpunk.html
I'd suggest taking a look at some of those first

Re: php in tpl files?

Thanks...that helped solve part of the problem. Now, to finish fixing it.