![]() |
Help with creating Custom pages in a folder other than mybb root. - Printable Version +- MyBB-Plugins Forums (http://forums.mybb-plugins.com) +-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion) +--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help) +--- Thread: Help with creating Custom pages in a folder other than mybb root. (/Thread-Help-with-creating-Custom-pages-in-a-folder-other-than-mybb-root) |
Help with creating Custom pages in a folder other than mybb root. - b.h. - 12-11-2017 I have been creating custom pages using the following code.... and it works great..... if I place it in the mybb root directory of my forum. PHP Code: <?php However I am now needing to move the php page to a sub folder. and When I move it to a sub folder I get an error finding the .global.php file. I have tried changing path, but I can't get it to work. So lets say my mybb root directory is MYBBSUPPORT and my new subfolder is MYBBSUPPORT/Book7 Can can someone help me fix my code so it will work? RE: Help with creating Custom pages in a folder other than mybb root. - Diogo Parrinha - 12-11-2017 Hi, PHP Code: require "../global.php"; Notice the two dots (goes up one folder in the directory path). ![]() RE: Help with creating Custom pages in a folder other than mybb root. - b.h. - 12-11-2017 Ahhhhh..2 dots.. so simple.. yet.. ![]() Thanks RE: Help with creating Custom pages in a folder other than mybb root. - b.h. - 12-19-2017 Is it a 3rd dot if I go down to another sub folder? example: MYBBSUPPORT/Book7/page1 PHP Code: require ".../global.php"; cause it does not seem to work ![]() RE: Help with creating Custom pages in a folder other than mybb root. - Diogo Parrinha - 12-19-2017 Hi, No ![]() You want Code: ../../ Regards, Diogo RE: Help with creating Custom pages in a folder other than mybb root. - b.h. - 12-19-2017 of course it is ![]() ![]() ![]() Thanks again |