Need a barebones .php file in which to build an addon mod.

The 2.0.x discussion forum has been locked; this will remain read-only. The 3.0.x discussion forum has been renamed phpBB Discussion.
Locked
securitynut
Registered User
Posts: 43
Joined: Tue Jan 16, 2007 7:20 am

Need a barebones .php file in which to build an addon mod.

Post by securitynut » Thu Aug 09, 2007 10:06 am

Hi guys,

I am wanting to create an addon for my forum which will require some SQL queries and checking some other stuff. Does anyone have a sort of barebones .php file with all the basics required for a new feature? (eg. parsing a basic template et cetera). I tried chopping the guts out of profile.php however it's a bit too far over my head. If there were just a basic .php file that generated, say, a generic error page, I could build up some code within that and take snippets from other files as necessary (eg. check if user is logged in).

Could anyone help? Does anyone have something like this? I would guess the developers have some sort of barebones php template...

Thanks.

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10941
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: Need a barebones .php file in which to build an addon mod.

Post by battye » Thu Aug 09, 2007 10:18 am

Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

securitynut
Registered User
Posts: 43
Joined: Tue Jan 16, 2007 7:20 am

Re: Need a barebones .php file in which to build an addon mod.

Post by securitynut » Thu Aug 09, 2007 10:49 am

Excellent!

I noticed this is from late 2004. Can anyone verify if it is still secure?

Regardless I am going to have a poke around. This is very interesting! Thanks for helping with the search, battye. I didn't think to search for "blank page template" :)

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10941
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: Need a barebones .php file in which to build an addon mod.

Post by battye » Thu Aug 09, 2007 10:52 am

I can't imagine it *not* working now :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

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

Re: Need a barebones .php file in which to build an addon mod.

Post by drathbun » Thu Aug 09, 2007 5:42 pm

If you have questions related to that MOD, please ask them in the related topic, thanks. :)
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image

Locked

Return to “2.0.x Discussion”