2006-11-06, 04:31 PM
Pages: 1 2
2006-11-06, 04:37 PM
oh i havent actually gotten round to implimenting it yet.
2006-11-06, 05:43 PM
argh it doesnt work, it not actually using the file templates. As i have altered them yet nothing happens. However if i edit them through the admin panel it changes.
2006-11-06, 06:11 PM
errrr fixed. Updated in my first post.
2006-11-07, 07:44 PM
Ahh i hit a snag, for some reason it only shows 1 category the original ones,I have made some more but they do not wish to show. http://www.forummods.net
2006-11-07, 09:09 PM
I don't follow?
Okey, maybe I understand now, might be caused by include_once, try my new attachment.
Okey, maybe I understand now, might be caused by include_once, try my new attachment.
2006-11-07, 09:42 PM
yeah thanks that works amazingly, thank you so much you have been great help!
2006-11-07, 09:53 PM
also if anyone else wants to use this i made a script that will go though the database.
<?php
$hostname = "localhost";
$username = "username";
$password = "password";
$dbname = "databasename";
$nyconnect = mysql_connect($hostname, $username, $password) or die(mysql_error());
mysql_select_db($dbname, $nyconnect) or die(mysql_error());
$query = mysql_query("SELECT title, template FROM mybb_templates ");
while($row = mysql_fetch_array($query)) {
$ourFileName = $row['title'];
$ourFileHandle = fopen($ourFileName.".html", 'w') or die("can't open file");
fwrite($ourFileHandle, $row['template']);
fclose($ourFileHandle);
@chmod($ourFileName.'.html', 0777);
}
?>
thats it i thinkPages: 1 2