Jump to content
Sign in to follow this  

[Invisionize.eu] Starting from Scratch - Hello World! - An IPB.Board 3 mod - Part 2

Recommended Posts

The folder structure, and mandatory filenames within some of those folders mean that it's worth taking an existing application, copying it, and then starting to rename things. And that's exactly what I decided to do. I chose the calendar application and copied all the files from /admin/applications_addon/ips/calendar to /admin/applications_addon/other/helloapp .

If I now look in the /admin/applications_addon/other/helloapp/modules_public folder, every folder in there contains a module for my application. Ay the moment the only folder is called calendar but I decided to call it hellomod so I renamed the folder to that name.

Looking in the /admin/applications_addon/other/helloapp/modules_public/hellomod folder there are 2 files: defaultSection.php and calendars.php .

defaultSection.php is a tiny file which IP.Board uses to decide what section should be used if there is no &section= argument in the URL. Unsurprisingly, it contains the line:

$DEFAULT_SECTION = 'calendars';

'calendars'.php happens to be the name of the other file in the folder. I've decided that my section should be called 'hellosec', so I changed the line to:

$DEFAULT_SECTION = 'hellosec';

and changed the name of the calendars.php to hellosec.php

If I go back to the public side of the boad, click the 'Hello World' tab now that I have some code in folders, does anything display? Nope. I need to take a look at the contents of hellosec.php (previously called calendars.php)

Zobacz Artykuł w pełnej wersji

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

W celu świadczenie usług przez nasz Serwis na najwyższym poziomie, w ramach Serwisu wykorzystujemy pliki Cookies (tzw. ciasteczka). Korzystając ze stron Serwisu IPSBEYOND.PL bez zmiany ustawień przeglądarki będą one zapisane w pamięci urządzenia. Jeżeli nie dokonacie Państwo zmiany ustawień przeglądarki internetowej to wyrażacie zgodę na zapisywanie plików Cookies.