[RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by BigBlockMopar »

Nice and simple Mod. Good work!
I'm using it on 2 of my forums already.

Now I would like to know how one can make sure only users of certain USERGROUPS or RANKS can see the content of such a custom page?
I did found out how to hide content for users who are not logged in.
Signatures are overrated...
Sergiy
Registered User
Posts: 14
Joined: Fri Aug 03, 2007 3:49 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by Sergiy »

where can we change title of page?

I don't like see Array any more ;)
ndss
Registered User
Posts: 28
Joined: Wed Jul 25, 2007 12:13 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by ndss »

Great mod but I would also like to edit the title. I will look into this but if anyone knows howto edit, be my guest. This mod works great with ProSilver also!
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by playerfr »

I have stargate portal, is this compatible with it ? And is thier any progress on Dev ? any new version commign soon ?

Thanks :)
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
User avatar
carita
Registered User
Posts: 60
Joined: Tue Jul 25, 2006 8:23 pm
Location: Finland
Contact:

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by carita »

Exactly what I've been looking for. However it doesn't include the foother or header :S I don't know why! Does anyone else know?
User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by playerfr »

I htink this mod is been abandoned :( as AUthor did not replies for so long :cry:
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com
User avatar
carita
Registered User
Posts: 60
Joined: Tue Jul 25, 2006 8:23 pm
Location: Finland
Contact:

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by carita »

Well maybe there is someone smart out there that can answer our questions! :mrgreen:
User avatar
Trinity
Registered User
Posts: 474
Joined: Wed Dec 11, 2002 10:06 pm
Location: Hollywood, CA

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by Trinity »

Yeah if someone could figure out how to change the page title that would be awesome :)

Edit: See below :geek:
Last edited by Trinity on Thu Aug 30, 2007 3:21 pm, edited 2 times in total.
Shop smart, shop S-mart.
User avatar
Trinity
Registered User
Posts: 474
Joined: Wed Dec 11, 2002 10:06 pm
Location: Hollywood, CA

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by Trinity »

Okay, I deleted my original modification and really figured it out.

You need to add something in the language file.

What I did was go into the language/en/common.php and added this:

Code: Select all

$lang = array_merge($lang, array(
	'TRIBUTE'		=> 'Thomas Newman Tribute',
));
Then I went back into the custom_page.php and changed the

Code: Select all

page_header($user->lang);

to this:

Code: Select all

page_header($user->lang['TRIBUTE']);
Then, it worked! :lol:

Just change 'TRIBUTE' and 'Thomas Newman Tribute' to whatever you want.
Shop smart, shop S-mart.
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by BigBlockMopar »

This only 'works' if you have only 1 custom_page.php in use.
I've already got several under different filenames.

I think the PageHeader title-variable should be set in the custom_page.php-file, so you can change it everytime you use the custom_page.php-file under a different name.

So just change this line;

Code: Select all

page_header(@user_lang);
into...

Code: Select all

page_header('Your Page Title');
Signatures are overrated...
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by ChriZathens »

At the end of the page I don't see the small table with the link "Board index"..

So, I edit the html pages , adding
<!-- INCLUDE breadcrumbs.html -->
at the end but it doesn't work...
What am I doing wrong ?
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
Elias
Registered User
Posts: 5138
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by Elias »

Very nice MOD you got there!
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|
Offering private web hosting. Contact me for details.
akakenny
Registered User
Posts: 4
Joined: Sat Aug 18, 2007 10:35 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by akakenny »

Hello, nice mod, just one question, how would i make it so onlyl logged in members can view it? thanks
akakenny
Registered User
Posts: 4
Joined: Sat Aug 18, 2007 10:35 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by akakenny »

Never mind ive found a fix,

in custom_pages.php under //start session manager
add

Code: Select all

//login
if ($user->data['user_id'] == ANONYMOUS)
{
	$message = 'You must be logged in to view this page. Click <a href="login.php">HERE</a> to login';
	trigger_error($message);
}
Granit
Registered User
Posts: 266
Joined: Sun Aug 27, 2006 3:17 pm

Re: [RC2] Custom Pages for phpBB Olympus 3.0 Beta5-RC3

Post by Granit »

How to add more then one page?
Locked

Return to “[3.0.x] MODs in Development”