miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

GoDaddy / IIS hosting troubles when installing / running the board

 
Author Paul
Lead Developer 
#1 | Posted: 9 Feb 2006 10:52 
If you are using GoDaddy hosting, their servers have Windows IIS. In that case, miniBB can not work, because PHP's function fread is not correctly executed on Windows. Another words, miniBB function makeUp (in bb_functions.php) will not work.

What do you need to do on Windows:

1) Edit bb_functions.php and find the function makeUp
2) Find this piece of code:

$fd=fopen ($addDir."{$name}.{$ext}", 'rb');
$tpl=fread ($fd, filesize ($addDir."{$name}.{$ext}"));
fclose($fd);

(where template is read from HDD to memory via fread)

and replace it to:

$tpl=file_get_contents($addDir."{$name}.{$ext}");

So your function will look like:

function makeUp($name,$addDir='') {
if($addDir=='') $addDir=$GLOBALS['pathToFiles'].'templates/';
if (substr($name,0,5)=='email') $ext='txt'; else $ext='html';
if (file_exists($addDir."{$name}.{$ext}")) {
$tpl=file_get_contents($addDir."{$name}.{$ext}");
return $tpl;
}
else die ("TEMPLATE NOT FOUND: $name");
}

This is 100% tested and works on GoDaddy server.

Author pelle
Guest
#2 | Posted: 9 Feb 2006 17:22 
thx alot that hit the spot

Author almost gotit
Guest
#3 | Posted: 25 Feb 2006 22:56 
I have followed the manual to modify the setup_options.php and I have modified the bb_functions.php Markup Function to read:


function makeUp($name,$addDir='') {
if($addDir=='') $addDir=$GLOBALS['pathToFiles'].'templates/';
if (substr($name,0,5)=='email') $ext='txt'; else $ext='html';
if (file_exists($addDir."{$name}.{$ext}")) {
$tpl=file_get_contents($addDir."{$name}.{$ext}");
return $tpl;
}
else die ("TEMPLATE NOT FOUND: $name");

The data base is setup in mySQL and tables have been defined. I cannot access the admin login page though or the index.php page. I just get a Page Not found error in Internet Explorer. Am I completely blowing it?? I'm a newbie so speaking to me in lamens terms will not be disrespectful.... Thanks for any suggestions.

Author _Marco
Partaker
#4 | Posted: 25 Feb 2006 23:43 
Hard to tell what the problem is. I would suggest you use the original bb_functions.php untill the forum is working. Otherwise you won't know where the problem is.
What is the url to your forum?

_Marco

Author Team
8-)
#5 | Posted: 27 Feb 2006 09:53 
_Marco
No, GoDaddy hosting (on Windows) requires this modification, and user has done it right.

However, admin panel is not the index.php file. It is called bb_admin.php by default, and you must rename it for security reasons.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 GoDaddy / IIS hosting troubles when installing / running the board
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Private Messaging add-on: allow your miniBB-forums members to communicate with each other.


  ⇑