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
DianaRae
Registered User
Posts: 163
Joined: Fri Mar 22, 2002 9:45 pm
Contact:

Post by DianaRae »

Tyger wrote:
J. Realm wrote: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..
Tyger, are you using phpBB for your forum? I went to your site, I see an invisionboard....
Diana Rae
~I was blonde in another life..that explains a LOT of things~
Tyger
Registered User
Posts: 68
Joined: Tue Feb 10, 2004 3:19 am
Location: Canada
Contact:

Post by Tyger »

DianaRae wrote: Tyger, are you using phpBB for your forum? I went to your site, I see an invisionboard....


Yes, that's a different board.
But I'm using phpBB on the board I need support.
And I dun like Invision, I find phpBB better...

But can anybody answer my question?
disfunkt
Registered User
Posts: 74
Joined: Sun Apr 04, 2004 10:20 am
Location: SF Bay Area, Ca.
Contact:

Post by disfunkt »

does anyone know how i might create multiple blank pages ?

when i tried to create a second page i got an error in page_header.php

any help would be greatly appreciated.
thank you
Tyger
Registered User
Posts: 68
Joined: Tue Feb 10, 2004 3:19 am
Location: Canada
Contact:

Post by Tyger »

disfunkt wrote: does anyone know how i might create multiple blank pages ?

when i tried to create a second page i got an error in page_header.php

any help would be greatly appreciated.
thank you


I was able to do more than one?
Try it again? Maybe you forgot something?
dr4gon
Registered User
Posts: 60
Joined: Sun Jan 11, 2004 7:58 am

Post by dr4gon »

Is it possible to require users to log in to view the blank pages?
Tyger
Registered User
Posts: 68
Joined: Tue Feb 10, 2004 3:19 am
Location: Canada
Contact:

Post by Tyger »

Does anybody help other people on this topic?
JimDandy
Registered User
Posts: 134
Joined: Thu Jul 15, 2004 2:50 pm
Location: Norway

Post by JimDandy »

DianaRae wrote: I have used this mod & it works great. My main page is Smartor's EzPortal.

I have the standard "overall header" of course in all the pages including the blank mod ones.

My problem is I also have a Side menu on the Portal page. I have tried to figure out how to pass that menu through to the blank page mod pages as well, so I don't have to add them every single time via HTML. If I have to that means every time I have to make a change to the menu I have to pull down every blank_page_mod.tpl to fix the side menu.

Any ideas how to make it so I can make a side menu that would be pulled in to these pages without having to include it each time in each page?

I know somehow it could be done in an "includes" like the overall header & the page footer, but I am not sure how to do this.

Any help would be greatly appreciated.


Did you find a solution to this? I saw PsYpEr posted a link to his site, nice work around. Unfortunately though, this will add the menu to all pages, including the forum. I just wish to keep my custom content pages in the middle as with the Announcements.

Anyone?

Jim
"Ah! Opposable digits!"
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

dr4gon wrote: Is it possible to require users to log in to view the blank pages?


Back a few posts, I posted this link.

http://www.phpbb.com/phpBB/viewtopic.ph ... group+auth
Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 »

Error 502 Bad Gateway

Powered by Zeus Technology
on that link
User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Post by Gremlinn »

:arrow: Shof515: That is an error that I have seen a few times while browsing. That is not an issue with the link being incorrect. There is a gateway/proxy that errored. Try it again.

It is strange that the error comes up for you. I thought it was something that my company caused because I mostly browse from work and haven't seen it from home.
JimDandy
Registered User
Posts: 134
Joined: Thu Jul 15, 2004 2:50 pm
Location: Norway

Post by JimDandy »

[bump: three posts up]
"Ah! Opposable digits!"
Murrian
Registered User
Posts: 56
Joined: Wed Feb 19, 2003 1:51 am
Location: In Ga Ga Land
Contact:

Post by Murrian »

Code: Select all

Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 519

Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 521

Warning: Cannot add header information - headers already sent by (output started at /usr/www/varkoume/public_html/mdp/phpBB2/MDP001.php:2) in /usr/www/varkoume/public_html/mdp/phpBB2/includes/page_header.php on line 522
Is a problem i'm having, here's the code i've used:
MDP001.php

Code: Select all

<?php 

// standard hack prevent 
define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

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

// set page title 
$page_title = 'MDP#001 - DJHYPNOTICSTATE - SHULMAN HYPNOTIZED'; 

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

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

$template->pparse('body'); 

// standard page footer 
include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 

?>

Code: Select all

#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
# 
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	'L_MDP001' => $lang['MDP001'],
	'U_MDP001' => append_sid('MDP001.'.$phpEx),

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewonline.php

# 
#-----[ FIND ]------------------------------------------ 
# 
				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
				case PAGE_MDP001:
					$location = $lang['MDP001'];
					$location_url = "MDP001.$phpEx";
					break;.

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/index.php

# 
#-----[ FIND ]------------------------------------------ 
# 
						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
						case PAGE_MDP001:
							$location = $lang['MDP001'];
							$location_url = "MDP001.$phpEx?pane=right";
							break;

# 
#-----[ FIND ]------------------------------------------ 
# 
					case PAGE_FAQ:
						$location = $lang['Viewing_FAQ'];
						$location_url = "index.$phpEx?pane=right";
						break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
					case PAGE_MDP001:
						$location = $lang['MDP001'];
						$location_url = "MDP001.$phpEx?pane=right";
						break;

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$lang['MDP001'] = 'MDP001';

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/constants.php

# 
#-----[ FIND ]------------------------------------------ 
# 
define('PAGE_GROUPCP', -11);

# 
#-----[ AFTER,  ADD ]------------------------------------------ 
# 
define('PAGE_MDP001', -1045);
And here's what i have for lines 519-522 in my page_header.php starting at 510:

Code: Select all

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

?>
Thanks for helping me out :D
\m/ (^_^) \m/
User avatar
psychowolfman
Registered User
Posts: 70
Joined: Wed May 14, 2003 8:16 pm
Location: Saskatoon, SK, Canada
Contact:

Post by psychowolfman »

Whew, been a while since I've been to phpbb.com

Life, you know.

Anyhow, I'd like to ask the community if anyone would like to take this MOD as their own and provide support, as obviously I no longer am providing anything (Notice my last post was a *few* months ago).

Seems a few people really have this thing down, so it would be nice if one of you would take over completely in the interest of fairness to the community.

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

Post by psychowolfman »

I'd like to announce that Poupoune has taken over this MOD and all related support.

He's also the admin over at the official french phpbb support forums (http://www.phpbb-fr.com) so you know it'll be in good hands.

Thank you!
Poupoune
Former Team Member
Posts: 702
Joined: Sun Apr 18, 2004 4:04 pm
Location: In the stars... where you left me, and where I will wait for you... always...
Contact:

Post by Poupoune »

Murrian > try this, open includes/page_header.php, find :

Code: Select all

if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
   header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
   header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache'); 
Replace it with :

Code: Select all

if(!headers_sent()){
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
   header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
   header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache'); 
}
I'll be absent for few weeks ( against my will ! I won't have internet for a month ), so I will update that MOD during that period :wink: .
Poupoune - http://www.poup.net
My styles : [ La courbe de tes yeux ] - [ Stars are for dying ] - [ Plenitude ] - [ genElectro ]
Post Reply

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