Blank Page Template

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
72
64%
Very Good
21
19%
Good
10
9%
Fair
2
2%
Poor
8
7%
 
Total votes: 113

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27733
Joined: Sat Aug 16, 2003 7:36 am

Blank Page Template

Post by Extensions Robot » Thu Oct 09, 2003 2:52 pm

Modification name: Blank Page Template
Author: Raimon
Modification description: An easy way to add a blank page to your phpbb that uses session management
Modification version: 1.0.3
Tested on phpBB version: See below

Download file: blank_page_template.zip
File size: 2641 Bytes

Modification overview page: View


Selected tags:
  1. Category
    1. Add-Ons
  2. phpBB
    1. 2.0.23
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Sun May 11, 2008 6:48 pm, edited 2 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Thu Nov 06, 2003 12:26 am

MOD Validated/Released

This is a great help for anyone who wants to add new pages to their board but don't know how.
Eric

User avatar
Jamy
Registered User
Posts: 429
Joined: Mon Mar 24, 2003 12:02 pm
Location: Mississippi

Post by Jamy » Thu Nov 06, 2003 8:10 pm

lol like me :)

Zoombini
Registered User
Posts: 128
Joined: Fri Apr 04, 2003 6:51 pm
Location: In front of my PC.

Post by Zoombini » Thu Nov 06, 2003 9:13 pm

Can I ask what this blank page could be used for & how it would be accessed?
Do you have a demo at all?
No longer bothering with forums.
Too much hassle.

User avatar
Seven2
Registered User
Posts: 379
Joined: Fri Oct 17, 2003 4:37 am
Location: Tomah, WI
Contact:

Post by Seven2 » Thu Nov 06, 2003 9:52 pm

A demo would be nice...I was going to use the blank page as a guild listing for my server...I was hoping the tables to match the theme.
Image

User avatar
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Thu Nov 06, 2003 10:14 pm

wGEric wrote: This is a great help for anyone who wants to add new pages to their board but don't know how.


It just tells you how to add a new page to your forum.
Eric

User avatar
psychowolfman
Registered User
Posts: 70
Joined: Wed May 14, 2003 8:16 pm
Location: Saskatoon, SK, Canada
Contact:

Post by psychowolfman » Thu Nov 06, 2003 10:45 pm

You can see how it works by going to my site:

http://www.saskmetal.com/phpbb

The menu at the top has a few entires that use the blank page:

CONTACT
MERCHANDISE
PARTNERS
RADIO

You can put ANYTHING you want in your TPL file and have it displayed this way. And since it uses sessions from phpbb you can track where people are on your forums.

I also recommend using the Extreme Styles MOD so you can use php in tpl files, as it makes it easier to use php on your new pages.

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn » Fri Nov 07, 2003 1:46 pm

I used this while it was still in BETA. Worked great then. I am sure it is still working great.

Thanks again psychowolfman. I have many pages at my forum using this mod. http://dfsquad.gnet-rpg.net

User avatar
psychowolfman
Registered User
Posts: 70
Joined: Wed May 14, 2003 8:16 pm
Location: Saskatoon, SK, Canada
Contact:

Post by psychowolfman » Fri Nov 07, 2003 2:06 pm

I am glad that I could provide something useful. I don't know the first thing about php or programming in general (Except LISP, if anyone is familiar) I just hacked this together out of 10 different posts on this board and others that explain how to add a page. I figured it would be useful if it were an official MOD. (As I know there are lots of people that would use it)

If you read the notes in the MOD distribution I would like to add/remove pages through an admin interface. I do not, nor will I ever, know how to do this without a lot of reading and learning first. If someone wants to take my stuff and write an admin interface, that would be super.

Damn, this turned into a speech...haha...catch you all later!

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn » Fri Nov 07, 2003 3:06 pm

Is this what you were thinking about for the ACP?

http://mods.db9.dk/viewforum.php?f=61

User avatar
psychowolfman
Registered User
Posts: 70
Joined: Wed May 14, 2003 8:16 pm
Location: Saskatoon, SK, Canada
Contact:

Post by psychowolfman » Fri Nov 07, 2003 3:25 pm

All the ACP would really have to do is:

1.)create the files template.php in phpbb root and template.tpl in your current templates directory.

2.)add required lines into files for sessions to work

3.)edit the line in template.php to point to template.tpl

Then, the user would have to edit the template.tpl file to include the content they wanted as well as add a link to the new template.php file someplace on the site. Optionally, there could be a text area for user input that would accept HTML and PHP (If they have extreme styles MOD installed)

So basically, the admin panel would ask you for the page name (To be put in the line:

Code: Select all

// set page title 
$page_title = 'TEMPLATE'; 
in the template.php file

the filename to call the template.php and template.tpl files (And to place into the line:

Code: Select all

// assign template 
$template->set_filenames(array( 
        'body' => 'template.tpl') 
); 

$template->pparse('body'); 
in template.php

If you get what I'm saying. Sometimes I don't even understand what I'm talking about. ;-)

leoz
Registered User
Posts: 35
Joined: Wed Nov 12, 2003 6:35 am
Location: Nashville, TN, USA.
Contact:

RE: ACP?

Post by leoz » Fri Nov 14, 2003 1:50 am

I am not sure what an "ACP" is, but I am working on an ADMIN ADD NEW BLANK PAGE MOD.

I need help in how to determine if a user is an ADMIN or not?

More details at:

http://www.phpbb.com/phpBB/viewtopic.php?t=151296

BTW: GREAT MOD.
leoz.

User avatar
psychowolfman
Registered User
Posts: 70
Joined: Wed May 14, 2003 8:16 pm
Location: Saskatoon, SK, Canada
Contact:

Post by psychowolfman » Fri Nov 14, 2003 2:10 am

ACP = Admin Control Panel

And I've looked at your development...looks interesting..I will have to keep an eye on that.

User avatar
Fluffy Llama
Registered User
Posts: 34
Joined: Tue May 20, 2003 11:52 am
Location: Australia

Post by Fluffy Llama » Fri Nov 21, 2003 3:29 am

now that ive installed the mod, how do i add the menus (overallheader/footer) ? so that if i edit the overallheader its the same over all the pages, like the forum. not just a direct copy of the code.... ?

thanks again

User avatar
Fluffy Llama
Registered User
Posts: 34
Joined: Tue May 20, 2003 11:52 am
Location: Australia

Post by Fluffy Llama » Fri Nov 21, 2003 3:35 am

pretty much just carry the theme over all the pages... :D

(makes more sense than all that dribble in the last post)

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 17 guests