<ID>
Custom Page Mod for YaBB 2.6.11
</ID>

<Author>
James Andrews
</Author>

<Homepage>
http://www.yabbforumsoftware.com
</Homepage>

<Version>
0.8
</Version>

<Mod info>

General Features:

- Add as many custom web pages as you like.
- Enables you to transform your board into a website, while keeping the same template used for every page.
- Easily add in the HTML for the body of the page in admin center and it will give you a link for your new page.
- Modify and delete current pages.
- URL helpers in case you change the location of your board. Use {yabb url} for the URL of YaBB.pl/.cgi. E.g. {yabb url}?action=ml.
- Add a title for each page.
- Add counters to pages.
- Add pages to the menu.

Mod History:
- Version 0.8 updated to 2.6.11 on 12/13/2014
- Version 0.7 updated to 2.6.1 on 04/09/2014
- Version 0.6 updated to 2.6.0 on 09/07/2014
- Version 0.5.1 on 19/10/2010 - Again small modifications
- Version 0.5 on 09/09.2010 - Updated for YaBB 2.5 with small changes
- 0.3 BETA (7/1/08) - Updated to support YaBB 2.2
- 0.2           - No Changes. No bugs found, stable version.
- 0.2 BETA (24/6/06)    - Added page counters.
            - Added menu.
            - Added disable guest access.
- 0.1 BETA (22/6/06)    - First version released.

Installation:

Use BoardMod or manually edit files.

Modify and Upload:
- AdminIndex.pl
- YaBB.pl
- Admin/AdminSubList.pm
- Admin/Modlist.pm
- Languages/English/Admin.lng (ASCII)

upload
- Admin/Mods/CustomPage.pm (ASCII)
- Languages/English/Mods/CustomPage.lng (ASCII)
- Sources/Mods/CustomPage.pm  (ASCII)
- Variables/Pages/.htaccess (ASCII)
</Mod info>

<edit file>
Languages/English/Admin.lng
</edit file>

<search for>
1;
</search for>

<add before>
## Custom Pages Mod ##
$mod_list{'cp'} = 'YaBB Custom Pages';
$mod_list{'cp1'} = 'Create, edit or delete YaBB Custom Pages';
</add before>

<edit file>
YaBB.pl
</edit file>

<search for>
    elsif ( $INFO{'num'} ne q{} ) {
</search for>

<add before>
    elsif( $INFO{'custompage'} ) {
        require Sources::Mods::CustomPage;
        CustomPage();
    }
</add before>

<edit file>
Admin/AdminSubList.pm
</edit file>

<search for>
1;
</search for>

<add before>
## Custom Pages Mod ##
$director{'pagemodify'} = 'Mods/CustomPageAdmin.pm&PageModify';
$director{'pagemodify2'} = 'Mods/CustomPageAdmin.pm&PageModify2';
$director{'pagedelete'} = 'Mods/CustomPageAdmin.pm&PageDelete';
$director{'pagedelete2'} = 'Mods/CustomPageAdmin.pm&PageDelete2';
$director{'custompage'} = 'Mods/CustomPageAdmin.pm&CustomPage';
$director{'pagecreate'} = 'Mods/CustomPageAdmin.pm&PageCreate';
$director{'pagecreate2'} = 'Mods/CustomPageAdmin.pm&PageCreate2';
</add before>

<edit file>
Admin/ModList.pm
</edit file>

<search for>
### END BOARDMOD ANCHOR ###
</search for>

<add before>
    $custompage = "Custom Page Mod for YaBB 2.6.11|James Andrews. Updated for YaBB 2.6.11 Dandello|Add an unlimited amount of custom webpages to your board, adds them into a menu.|0.8|12/13/14";
    push @installed_mods, $custompage;
</add before>

<edit file>
AdminIndex.pl
</edit file>

<search for>
### END BOARDMOD ANCHOR ###
</search for>

<add before>
    $custompage = "custompage|$mod_list{'cp'}|$mod_list{'cp1'}|";
    push @boardmod_mods, $custompage;
</add before>