[21/01/07] Page Permissions

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!
24
80%
Very Good
4
13%
Good
1
3%
Fair
1
3%
Poor
0
No votes
 
Total votes: 30

User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

@Dogs and things, if you haven't noticed in the /contrib folder is a document called newpage.zip that describes how to do what you are looking for. 8)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
dougle00
Registered User
Posts: 324
Joined: Mon Jul 10, 2006 5:34 pm
Contact:

Post by dougle00 »

I have installed and changed all files. I am just now struggling to understand how to make a page appear on my forum. Can anyone advise?
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Post by Dogs and things »

drathbun wrote: @Dogs and things, if you haven't noticed in the /contrib folder is a document called newpage.zip that describes how to do what you are looking for. 8)

Yes,

I had found that. :wink: And after some minor struggles I even managed to add my first page. It´s not that hard, mainly thanks to your very clear and to-the-point instruccions.
For phpBB2 support visit phpBB2refugees.
dougle00
Registered User
Posts: 324
Joined: Mon Jul 10, 2006 5:34 pm
Contact:

Post by dougle00 »

Dogs and things wrote:
drathbun wrote:@Dogs and things, if you haven't noticed in the /contrib folder is a document called newpage.zip that describes how to do what you are looking for. 8)

Yes,

I had found that. :wink: And after some minor struggles I even managed to add my first page. It´s not that hard, mainly thanks to your very clear and to-the-point instruccions.


I found the page too, but cannot seem to make a page visable on my main forum page.

Please can someone advise?

How did you do it Dogs?
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Post by Dogs and things »

I just followed the instruccions. :D

This MOD doesn´t make a new page appear on your main page, it adds a new page to your forum root folder. To make people find that page you´ll have to insert an url somewhere on your board.

And in your ACP you´re able to determine what users are allowed to view that page, to enable/disable it and to edit a message that shows up when page is disabled.

Shoot me if I´m wrong. :P
For phpBB2 support visit phpBB2refugees.
dougle00
Registered User
Posts: 324
Joined: Mon Jul 10, 2006 5:34 pm
Contact:

Post by dougle00 »

Thanks Dogs that has helped me understand it. I now have my page set up as newpage, but cannot seem to link the permissions to it.
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Post by Dogs and things »

You have to add your new page to the list, there´s a button for that, at the bottom.
For phpBB2 support visit phpBB2refugees.
dougle00
Registered User
Posts: 324
Joined: Mon Jul 10, 2006 5:34 pm
Contact:

Post by dougle00 »

Thanks Dogs I think its working. I forgot the .php when trying to add newpage

Thanks again
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Thanks, Dogs and things for supporting a fellow user. :-) Seems like everything is straightened out. @dougle00, I've made the same mistake. In another MOD related to page names I have added code to automatically append the value of $phpEx to the end of the page name. I'll have to dig up the code and post it here.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
clapton
Registered User
Posts: 53
Joined: Thu Nov 09, 2006 7:44 am

Post by clapton »

Sorry if this question is a bit stupid, but I'm learning...

I see there's another zip folder inside the zip I downloaded. I see that you've been speaking about it earlier in the thread.

But my question is: should I leave it as a zip and try to install everything (I use Easymod), anyway? I mean does Easymod handle that by itself?

Or should I extract the zipped files first? If so, where do I put the extracted files?

Thanks for ANY feedback (baby talk, please)
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

The extra zip file is in the /contrib folder. That folder is designed to hold supplementary (extra) items that are related to the MOD but not directly part of the install. The zip file you mention (newpage.zip) is a sample page that shows you how you can create a new page for your board and integrate it with the login system and so on.

EasyMOD should ignore anything in the /contrib folder.

Hope that helps explain things. :-)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
clapton
Registered User
Posts: 53
Joined: Thu Nov 09, 2006 7:44 am

Post by clapton »

Thanks a lot for explaining... really appreciate it.

I'm editing this as I have just tried to install the MOD.

And I get the following message:

Identifier "key" is a reserved keyword (reference: SQL 99), statement: 1, table: "phpbb_pages"

What do I do? Do I carry on?

Thanks in advance.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

What database are you using?
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
clapton
Registered User
Posts: 53
Joined: Thu Nov 09, 2006 7:44 am

Post by clapton »

My host uses MySQL client version: 4.1.10. I'm not sure that answers your question - I hope so...

Thanks for reading.
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

That should work fine. If it's complaining about the position of the word "key" then please make sure that you have copied the entire SQL to execute. The way I write SQL code is a bit different than what some folks expect, but it has a reason. :-) The SQL to create that table should be:

Code: Select all

CREATE TABLE phpbb_pages
(page_id		mediumint(5) unsigned not null auto_increment
,page_name		varchar(32) not null
,page_parm_name		varchar(32) default ''
,page_parm_value	varchar(32) default ''
,page_key		varchar(255) default ''
,member_views		int(11) unsigned default 0
,guest_views		int(11) unsigned default 0
,disable_page		tinyint(1) unsigned default 0
,auth_level		tinyint(2) unsigned default 0
,min_post_count		mediumint(8) unsigned default 0
,max_post_count		mediumint(8) unsigned default 0
,group_list		varchar(255) default ''
,disabled_message	varchar(255) default ''
,primary key (page_id)
,unique key (page_key)
);
Note that the commas , are at the beginning of a line rather than at the end. Sometimes that confuses people.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Post Reply

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