- Messages
- 5,093
- Reaction score
- 2,881
- Points
- 1,103
Hello guys ,
a few of you already know it. I started working on a 'Wiki' page (don't know how to call it xD) for CabConModding with functions, assets, lists and more.. Since I started working on the website with html I every time thought to create this better with php or something else to manage the site easier. I started working on it with php but it's not far and not the best way... So I thought why not making a community project, where we guys work on it together ! Here is what I did so far:
First try, the HTML version:
When I started the project I thought to just create a Black Ops 3 Asset List, if you guys are interested in it let's make more:
There is a Index bar left with all asset categories. If you click on something it will display the asset list on the main page.
Also there is a footer with some short links:
That's the terrible html code (I'm sure we can do that better):
The Problem with the html solution:
The problem with that is very simple, if I want to change something on the footer/header or somewhere else I need to change all html pages which are 109 with all asset lists... so I thought this is a quite bad way to do that A better way would be a full php coded website with which we could easier edit the page and which got the content of the asset list dynamically from a folder where are .txt files with the assets or from a database.
Here is the HTML source solution: html_ccm_bo3_assets_wiki.rar
Second try, the PHP version:
This time it will generate the assetlist via a php code in a item.php file:
This way is much easier to edit but it will load the assets any time when you click on something. And I think we can do that better.
Download the PHP source: PHP_ccm_wiki_build_2.rar
Third, how to continue?
Now, it's your turn! If you are a php developer, html/css designer or a simple random who want to help out in this project! Download the sources and start working on this project and update everyone with a reply to this thread! Change the design, make a new idea, share what you're thinking! We appreciate any help!
My plan is maybe to make a php code which generates the website in html, like some content management systemes do. What do you think about that?
Let's see if we can build this site together!
UPDATE 1
Best regards,
happy coding,
your CabCon !
(New Smiley, hehe: )
a few of you already know it. I started working on a 'Wiki' page (don't know how to call it xD) for CabConModding with functions, assets, lists and more.. Since I started working on the website with html I every time thought to create this better with php or something else to manage the site easier. I started working on it with php but it's not far and not the best way... So I thought why not making a community project, where we guys work on it together ! Here is what I did so far:
First try, the HTML version:
When I started the project I thought to just create a Black Ops 3 Asset List, if you guys are interested in it let's make more:
There is a Index bar left with all asset categories. If you click on something it will display the asset list on the main page.
Also there is a footer with some short links:
That's the terrible html code (I'm sure we can do that better):
The Problem with the html solution:
The problem with that is very simple, if I want to change something on the footer/header or somewhere else I need to change all html pages which are 109 with all asset lists... so I thought this is a quite bad way to do that A better way would be a full php coded website with which we could easier edit the page and which got the content of the asset list dynamically from a folder where are .txt files with the assets or from a database.
Here is the HTML source solution: html_ccm_bo3_assets_wiki.rar
Second try, the PHP version:
This time it will generate the assetlist via a php code in a item.php file:
PHP:
$verzeichnis = "c/";
if ( is_dir ( $verzeichnis ))
{
if ( $handle = opendir($verzeichnis) )
{
while (($file = readdir($handle)) !== false)
{
$filesarray[] = $file;
}
closedir($handle);
}
}
sort($filesarray);
foreach($filesarray as $file)
{
$filename = preg_replace('/\\.[^.\\s]{3,4}$/', '', $file);
$displayname = substr($filename, 4);
if(strpos($file, 'txt') !== false)
{
if($filename == $_GET['id'])
echo "<li><a href='item.php?id=".$filename."'><b>".$displayname."</b></a></li>";
else
echo "<li><a href='item.php?id=".$filename."'>".$displayname."</a></li>";
}
}
This way is much easier to edit but it will load the assets any time when you click on something. And I think we can do that better.
Download the PHP source: PHP_ccm_wiki_build_2.rar
Third, how to continue?
Now, it's your turn! If you are a php developer, html/css designer or a simple random who want to help out in this project! Download the sources and start working on this project and update everyone with a reply to this thread! Change the design, make a new idea, share what you're thinking! We appreciate any help!
My plan is maybe to make a php code which generates the website in html, like some content management systemes do. What do you think about that?
Let's see if we can build this site together!
UPDATE 1
Best regards,
happy coding,
your CabCon !
(New Smiley, hehe: )
Attachments
Last edited: