- Messages
- 5,066
- Reaction score
- 2,901
- 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. ![Grinning :grinning: :grinning:](/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg)
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. ![Grinning :grinning: :grinning:](/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg)
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.![Grinning :grinning: :grinning:](/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg)
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! ![Grinning :grinning: :grinning:](/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg)
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..
![Dab :dab: :dab:](/styles/default/cabcon_custom_content/content_dab_smiley.png)
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:
![3a859c4410424b62a906fd029ea0ec2a.jpeg](http://image.prntscr.com/image/3a859c4410424b62a906fd029ea0ec2a.jpeg)
There is a Index bar left with all asset categories.
Also there is a footer with some short links:
![f9d8ced4bc274855aa55e30ad2b02b0f.jpeg](http://image.prntscr.com/image/f9d8ced4bc274855aa55e30ad2b02b0f.jpeg)
That's the terrible html code (I'm sure we can do that better):
![d0300e8110d74b759ec19e407902fff0.jpeg](http://image.prntscr.com/image/d0300e8110d74b759ec19e407902fff0.jpeg)
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
Here is the HTML source solution: html_ccm_bo3_assets_wiki.rar
Second try, the PHP version:
![efc7506c96a940d8b6715af0bb577bf1.jpeg](http://image.prntscr.com/image/efc7506c96a940d8b6715af0bb577bf1.jpeg)
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!
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:
![Dab :dab: :dab:](/styles/default/cabcon_custom_content/content_dab_smiley.png)
Attachments
Last edited: