Blank Page Template

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
Locked
kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

Blank Page Template

Post by kenerly »

Like this one that is for phpbb2 http://phpbbhacks.com/download/1945

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Blank Page Template

Post by EXreaction »


kenerly
Registered User
Posts: 79
Joined: Fri May 23, 2003 6:25 am

Re: Blank Page Template

Post by kenerly »

Thanks bro, perfect...

User avatar
shadow07
Registered User
Posts: 34
Joined: Fri Nov 23, 2007 12:25 am

Re: Blank Page Template

Post by shadow07 »

Why is the phpbb 3 version for making blank pages take more work than the phpbb 2 ones? in phpbb 2 all we had was the template page and thats pretty much it, just put your stuff in it and add it to the phpbb files..

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Blank Page Template

Post by EXreaction »

shadow07 wrote:Why is the phpbb 3 version for making blank pages take more work than the phpbb 2 ones? in phpbb 2 all we had was the template page and thats pretty much it, just put your stuff in it and add it to the phpbb files..
It really isn't when you know the system. Both take the same amount of work to setup, just a few lines at the top of the PHP file and a template file if you need one.

roark1138
Registered User
Posts: 21
Joined: Wed Mar 27, 2002 8:05 pm
Location: St Louis, MO
Contact:

Re: Blank Page Template

Post by roark1138 »

EXreaction wrote:... Both take the same amount of work to setup, just a few lines at the top of the PHP file and a template file if you need one.
I'd prefer to not use the templates and just drop all of my code php, markup, etc, right into the php page. How do I set it up to not use the template? I tried out the instructions from http://olympuswiki.naderman.de/Adding_pages, tried commenting out the template call, but get the error "template->_tpl_load(): No file specified for handle body"... :/

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Blank Page Template

Post by EXreaction »

It would take quite a bit more work to ignore the template system.

Just use it, it is much easier and cleaner than throwing the HTML code in the PHP files.

Ckyacer
Registered User
Posts: 10
Joined: Thu Oct 25, 2007 2:02 am

Re: Blank Page Template

Post by Ckyacer »

I'm having problems with this. I'm not sure if its a file that hasn't been updated or something else.

It says:
Something about add_user_avatar can't be found in the New_page.php page.

Can I have some support on this?
Thanks

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Blank Page Template

Post by EXreaction »

I am guessing it says the function can't be found?

I am pretty sure that the add_user_avatar function does not exist in phpBB3.

Ckyacer
Registered User
Posts: 10
Joined: Thu Oct 25, 2007 2:02 am

Re: Blank Page Template

Post by Ckyacer »

Could it be something to do with the update?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Blank Page Template

Post by EXreaction »

What update?

Are you sure the add_user_avatar function ever existed?

Locked

Return to “[3.0.x] MOD Requests”