CabConModding Help Desk Wiki - Community Development Project

Discussion in 'Web Development' started by CabCon, Feb 2, 2017.

  1. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    Hello guys :handwaving:,
    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.. :wink: 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... :grinning: So I thought why not making a community project, where we guys work on it together :dab:! 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:
    [​IMG]
    There is a Index bar left with all asset categories. :grinning: If you click on something it will display the asset list on the main page. :grinning:

    Also there is a footer with some short links: [​IMG]



    That's the terrible html code (I'm sure we can do that better):[​IMG]

    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 :grinning: 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:

    Here is the HTML source solution: Please login or register to view links or downloads!


    Second try, the PHP version:
    [​IMG]
    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($filename4);
                                        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. :grinning:

    Download the PHP source: Please login or register to view links or downloads!

    Third, how to continue?
    Now, it's your turn!
    :grinning: 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:

    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! :grinning:

    Please login or register to view links or downloads!


    Best regards,
    happy coding,
    your CabCon :cabconmodding:!


    (New Smiley, hehe: :dab:)
     

    Attached Files:

    Last edited: Feb 5, 2017
    SCP, Harry, King and 2 others like this.
  2. iGArabZz

    iGArabZz Active Member

    79
    79
    18
    Credits:
    480
    Awesome! One question though? Have you coded this within the forum? As it has the CCM background design? You maybe done it within the control panel?
     
  3. Tusta

    Tusta Head Member Donator

    12
    13
    14
    Credits:
    3,198
    Good Job CabCon :grinning:
     
    CabCon likes this.
  4. Harry

    Harry I'm 'Serious'ly a better Developer

    1,158
    956
    398
    Credits:
    5,506
    I'll download a template and do it xD
     
    CabCon likes this.
  5. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    I built this completely by hand with the framework bootstrap and yes I rebuilt the design a little bit! It's not done due a control panel. :smile:
     
  6. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    Thank you! :smile:
     
  7. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    Awesome to hear! :smile: Be sure to share if you have first results.
     
  8. iGArabZz

    iGArabZz Active Member

    79
    79
    18
    Credits:
    480
    Good, you done a great job! As I wouldn't recommend coding in PHP with Xenforo as they have there own Syntax and Functions which can be hard to get grips on!
     
    CabCon and SCP like this.
  9. SCP

    SCP Moderator Staff Member Donator

    389
    377
    173
    Credits:
    3,456
    Good job @CabCon! Can't wait to see a finished released version.
     
    iGArabZz and CabCon like this.
  10. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    Yes, I know! :smile: I want to build the site separated. :smile:
     
    iGArabZz likes this.
  11. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,012
    2,615
    403
    Credits:
    173,271
    ~Update 1~

    Hello everyone,
    today I worked a little bit on the wiki site. It's now working like a CMS (Content Management System), it will generate the html code through a PHP code. :grinning: That makes the customization of the website easy and the load speed for the server and visitor better!

    Here you can find the first working online version:
    Please login or register to view links or downloads!

    You can download this build here: Please login or register to view links or downloads!

    What's next?
    • Create a Tool Overview. A Overview with all tools which will provide the 'wiki' page. (Currently not available)
    • Meta-Optimization. We need to optimize the meta for the website that people can find it better!
    • Design-Optimization. There are a few issues with the current design on mobiles and tablets.
    • A Site Logo, I just created really fast a 'example'-logo, if you want to help out and create one you can find the current files here: img_wikilogo.jpg Photoshop: Please login or register to view links or downloads!
    • Your idea which you will write below now!

    Best regards,
    CabCon.
     

    Attached Files:

Related Content

  1. MivioMods
  2. AssumingAgate
  3. CabCon
  4. NV
  5. CabCon

Share This Page