|
Include your custom pages in Mybb
|
|
09-13-2008, 03:09 PM
Post: #91
|
|||
|
|||
|
RE: Include your custom pages in Mybb
This has got to be a piece of cake for someone. Please help me out.
|
|||
|
09-15-2008, 01:38 AM
Post: #92
|
|||
|
|||
|
RE: Include your custom pages in Mybb
Why is no one acknowledging this thread?
|
|||
|
09-16-2008, 10:40 AM
Post: #93
|
|||
|
|||
|
RE: Include your custom pages in Mybb
How long will I have to bump this thing until someone responds?
|
|||
|
09-22-2008, 09:25 PM
(This post was last modified: 09-22-2008 09:44 PM by dvb.)
Post: #94
|
|||
|
|||
|
RE: Include your custom pages in Mybb
Ok, I finally managed to find some free time to take a look at this.
This error occurred because PHP think the file that requiring the './inc/init.php' is the first custom file, instead of global.php and therefore goes for the wrong path. You'll have to manually edit your global.php file. I've managed to find two solutions for this problem: 1. using the __FILE__ magic variable of php 2. make some string manipulation on the paths to find the correct path I think the __FILE__ method is better, but I'm not sure, I've never used this before. I'll attach my solutions in a minute... UPDATE: what a waste of time... almost 30 minutes for nothing, after creating and testing my solutions on my testing board (v1.4.0) I've checked it also on an updated board (v1.4.2) just to find that - MyBB FIXED this problem in the last update! BTW, they're using the __FILE__ method. my conclusion: ALWAYS update your board to the last version, even the testing/development board! Be a fountain, not a drain. Rex Hudler, quoted in 'Sports Illustrated' Creativity is a drug I cannot live without. Cecil B. DeMille (1881 - 1959) |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help




