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.

Rating:

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

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

Post by Gremlinn »

Authorization is another mod :wink: Look at this one.

http://www.phpbb.com/phpBB/viewtopic.ph ... group+auth
piperfecto
Registered User
Posts: 8
Joined: Tue Jan 27, 2004 12:16 am

reg check

Post by piperfecto »

Gremlinn wrote: Authorization is another mod :wink: Look at this one.


I just added this

After

Code: Select all

// set page title 
$page_title = '';
Add

Code: Select all

// auth check
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=$page_title.$phpEx", true));
}

If your $page_title is in caps or not the file name replace the $page_title in the added code with the file name of the page without the file extension.

It seems to do the trick.

Thanks for the mod link you sent.

That Group Auth mod is a mess if you just want to check to see if they are registered.
User avatar
Isfahan
Registered User
Posts: 9
Joined: Sat Jun 19, 2004 12:22 pm

Post by Isfahan »

Hello,

I have installed two pages, at the same time, when i try to view them i get this error:

phpBB : Critical Error

Error updating sessions table

DEBUG MODE

SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list'

UPDATE phpbb_sessions SET session_time = 1087930124, session_page = PAGE_TEMPLATE WHERE session_id = 'a75fc89de8aaf3b57d9501d1f1d1742f'

Line : 267
File : /usr/home/godfart/public_html/isi/bbs/includes/sessions.php


I dont know how to fix this error, can somebody please tell me.

I appreciate it very much, thank you.

Regards,
isfahan
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

For you all getting this...
SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list'


Ensure you fully complete this step!!

Code: Select all

#-----[ OPEN ]------------------------------------------ 

template.php (what you named your php file) 

# 
#-----[ FIND ]------------------------------------------ 
# 

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_TEMPLATE); 
init_userprefs($userdata); 

// set page title 
$page_title = 'TEMPLATE'; 

// standard page header 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 

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

# 
#-----[ REPLACE ]------------------------------------------ 
# 
# Replace EVERY location that says "clowns" with your title
#

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_CLOWNS); 
init_userprefs($userdata); 

// set page title 
$page_title = 'CLOWNS'; 

// standard page header 
include($phpbb_root_path . 'includes/page_header.'.$phpEx); 

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

Specific instructions/example here.
sinergy
Registered User
Posts: 19
Joined: Sat Jun 26, 2004 5:25 pm

Post by sinergy »

I saw the little link at the bottom of the post above.. fixed all my probs.

Might want to make that a bit bigger so ppl wont miss it :) and will stop asking the same q over and over :)

thanks much!
User avatar
lozt
Registered User
Posts: 527
Joined: Thu Aug 15, 2002 5:11 am
Location: Paradise

Post by lozt »

Hello everyone,

I had not been able to work on my forum for some time now and decided to jump back in the game.

For this mod, I got everything working, but there seems to be one problem I failed to solve.

When I click on a link to the new template page, its shows that I am no longer logged in the forum. Does anyone know what maybe causing this or maybe a fix for this problem?

Any advice would be very much appreciated!

Thanks

phpBB Version 2.0.6

General server information:
Operating system Linux
Kernel version 2.4.27-rc2
Apache version 1.3.31 (Unix)
PHP version 4.3.7
MySQL version 4.0.18-standard
murphyz
Registered User
Posts: 207
Joined: Wed Dec 04, 2002 12:42 pm
Location: London, UK
Contact:

Post by murphyz »

Do you have a link to the site and page in question?

Mxx
User avatar
Robert Tetenman
Registered User
Posts: 414
Joined: Mon Apr 26, 2004 6:49 pm
Location: Huntington Station, NY

Post by Robert Tetenman »

I installed this MOD and saw the potential for using it to bring other pages into the forum template system. Once I saw it working I then, like many here wanted to know how to get it working with multiple new pages and after reading the thread saw how simple it was and many that had errors were just due to syntax or perhaps an oversight. I just added 6 pages to my site and I am thrilled that I can integrate them. This mod is outstanding.

The only thing I was not sure of and I guessed (it did not seem to be covered in the posts regarding editing for multiple pages) was the code that goes into the constants.php file.

This is the default code for adding one page. I knew I had to change the name but the numbering system was not explained as far as what the new numbers should be if you are using multiple pages.

Code: Select all

define('PAGE_TEMPLATE', -1045);
Anyway, I left the first page at -1045 and made all subsequent pages increase negatively (if that is possible..loll) so additional pages were:
-1046, -1047, -1048, etc....


Great MOD!!!!
murphyz
Registered User
Posts: 207
Joined: Wed Dec 04, 2002 12:42 pm
Location: London, UK
Contact:

Post by murphyz »

yep, that's the thing to do. The mods have an allocated number of constants reserved for them (check out this thread - this mod has 1045 - 1049 reserved).

You can use other numbers, but make sure that if you install other mods that you do not have 2 of the same number.

Mxx
User avatar
Robert Tetenman
Registered User
Posts: 414
Joined: Mon Apr 26, 2004 6:49 pm
Location: Huntington Station, NY

Post by Robert Tetenman »

Everything is working great withi this MOD. It is what I was looking for. I wanted to implement a customized user feedback page and although there is a feedback MOD I did not like it and was not ure if it was at all protected from spammers.
I have been using a php Mail script written by a programmer and developer and a modetator of the Adobe GoLive forums and the GoLive Central sites and he has proven to be an outstanding programmer. Anyone interested can see his site and the NateMail program as it is called at http://www.mindpalette.com/formprocessing/index.php.
Anyway, this was not intended to praise him but to ask a question about the new pages that are aded.

In the title bar of each forum page it displays thwe Site Name :: Page Name and in al instances of the default forum pages they come up in upper and lower case. The new pages added are all coming up in UPPER CASE, making them display as Site Name :: PAGE TEMPLATE and they should be appearing as Site Name :: Page Template.

How do I change the titles to appear in the correct case?

Robert


NEVER MIND: I FIGURED IT OUT
User avatar
lozt
Registered User
Posts: 527
Joined: Thu Aug 15, 2002 5:11 am
Location: Paradise

Post by lozt »

im sorry for the delay in reply, i was away for the holiday weekend, but the fix worked, thanks guys!
:)
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy »

hey, just added your mod.
been through the whole of this thread and double checked all my code, but i'm still getting this when i try to access my new page -

Code: Select all

Parse error: parse error in /home/mrikasu/public_html/cherokeered/includes/template.php(127) : eval()'d code on line 20
any ideas?
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
J. Realm
Registered User
Posts: 1
Joined: Tue Jul 06, 2004 3:02 pm

Post by J. Realm »

Hi all!..
First of all, thanks for the mod...
I installed it i made some changes, now my "enter.php" seems to be working well.
I made my template using the html code which i have prepared before, now i add some "things" like:

Code: Select all

{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER} {TOTAL_USERS_ONLINE} {RECORD_USERS}
My problem is some of these codes work, and some of do not..
Ex: Record users is working great, or l_username...
But total_posts, total_users, newest_user do not..

What kind of problem this is? Any ideas?

Thanks..

Edit: By the way, i'm using 2.0.8, can it be the problem?
yukisho
Registered User
Posts: 130
Joined: Tue Jun 08, 2004 4:32 am
Contact:

Post by yukisho »

This was a blessing to us people that dont know much php. I use this to make FAW's, guides, pretty much anything.
Tyger
Registered User
Posts: 68
Joined: Tue Feb 10, 2004 3:19 am
Location: Canada
Contact:

Post by Tyger »

J. Realm wrote: Hi all!..
First of all, thanks for the mod...
I installed it i made some changes, now my "enter.php" seems to be working well.
I made my template using the html code which i have prepared before, now i add some "things" like:

Code: Select all

{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER} {TOTAL_USERS_ONLINE} {RECORD_USERS}
My problem is some of these codes work, and some of do not..
Ex: Record users is working great, or l_username...
But total_posts, total_users, newest_user do not..

What kind of problem this is? Any ideas?

Thanks..

Edit: By the way, i'm using 2.0.8, can it be the problem?


Yes, I'm encountering the same problem. The blank pages don't seem to record the people viewing them?
Help please?
Post Reply

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