Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: What we already have

  1. #11
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Now I get the scrollbars

  2. #12

    Default

    Hi Own3mall so as starting point using your kfm can you change all the mysql access and fields to point to a central X-null database on AAAA as a test to see if you can use the existing data their - I can post all the fields and details..............

    Also can anyone help with creating a new basic page to see if we can read the data off a shared X-null database on AAAA - I am wondering if we can just rip some of this -: which is a main record page for an entry on the database

    Code:
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    .style2 {color: #FFFFFF}
    .style3 {color: #FFBF55}
    -->
    </style>
    <div class="field field-type-text field-field-mapname style2">
      <table width="1091" border="1" cellpadding="3" cellspacing="3">
        <tr>
          <td width="272"><h3 class="field-label  style3">Mod Name</h3>
            <div class="field-items ">
              <div class="field-item"><?php print $node->field_modname[0]['view'] ?>
    </div>
          </div></td>
          <td width="284"><h3 class="field-label  style3">Mod File (number of downloads)</h3>      
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modfile[0]['view'] ?><?php
    $item = $node->field_modfile[0]; // change this to the correct field name
    if($item['filesize'] < 1024) {
       print ($item['filesize']);
       print (" bytes");
    }
    elseif ($item['filesize'] < 1048576) {
       $filesize = $item['filesize'];
       $filesize = $filesize / 1024;
       $filesize = round($filesize, 2);
       print ($filesize);
       print (" kB");
    }
    else {
       $filesize = $item['filesize'];
       $filesize = $filesize / 1048576;
       $filesize = round($filesize, 2);
       print ($filesize);
       print (" MB");
    }
    ?></div>
            </div>
          </td>
          <td width="243" rowspan="2"><h3 class="field-label  style3">Mod Screen shot</h3>
            <div class="field-items">
              <?php foreach ((array)$node->field_modscreen as $item) { ?>
              <div class="field-item"><?php print $item['view'] ?></div>
              <?php } ?>
            </div></td>
          <td width="243" rowspan="2"><h3 class="field-label  style3">Total Views of this Mod </h3>
            <div class="field-items ">
              <div class="field-item"><?php print $node->links['statistics_counter']['title'] ?></div>
          </div>        </td>
        </tr>
        <tr>
          <td><h3 class="field-label  style3">Mod Version </h3>
            <div class="field-items ">
              <div class="field-item"><?php print $node->field_modversion[0]['view'] ?> </div>
          </div></td>
          <td width="284"><h3 class="field-label  style3">Mod File Tested and Validated </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modtested[0]['view'] ?> <span class="style3 field-label"><strong>By - <?php print $node->field_modtestedby[0]['view'] ?></strong></span></div>
          </div></td>
        </tr>
        <tr>
          <td rowspan="2"><h3 class="field-label  style3"> Mod Type</h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_typeofmod[0]['view'] ?> </div>
          </div>        </td>
          <td rowspan="2"><h3 class="field-label  style3">Server or Client Mod </h3>      
            <div class="field-items">
              <div class="field-item"><?php print $node->field_serverclient[0]['view'] ?>
                  <?php
    $item = $node->field_serverclient[0]; // change this to the correct field name
    if($item['filesize'] < 1024) {
       print ($item['filesize']);
       print (" ");
    }
    elseif ($item['filesize'] < 1048576) {
       $filesize = $item['filesize'];
       $filesize = $filesize / 1024;
       $filesize = round($filesize, 2);
       print ($filesize);
       print (" kB");
    }
    else {
       $filesize = $item['filesize'];
       $filesize = $filesize / 1048576;
       $filesize = round($filesize, 2);
       print ($filesize);
       print (" MB");
    }
    ?>
    </div>
            </div>        </td>
          <td rowspan="2"><h3 class="field-label  style3">&nbsp;</h3>
            <h3 class="field-label  style3">Mod Info External</h3>        <div class="field-items">
              <?php foreach ((array)$node->field_modextlinks as $item) { ?>
              <div class="field-item"><?php print $item['view'] ?></div>
              <?php } ?>
    </div>        </td>
          <td><h3 class="field-label  style3">Mod Status</h3>      
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modstatus[0]['view'] ?></div>
          </div></td>
        </tr>
        <tr>
          <td><h3 class="field-label  style3">Mod compatable with Reborn </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modreborncompat[0]['view'] ?></div>
          </div></td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Short Description </h3>
          <div class="field-items">
              <div class="field-item"><?php print $node->field_shortdescription[0]['view'] ?></div>
          </div>      </td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Description</h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_moddescription[0]['view'] ?></div>
            </div>        <div class="field-items"></div>        <div class="field-items"></div>        </td>
        </tr>
        <tr>
          <td><div class="field field-type-text field-field-submitterrating">
              <div class="field-items"></div>
            </div>
              <div class="field field-type-fivestar field-field-maprating">
                <h3 class="field-label  style3">Mod Rating </h3>
                <div class="field-items">
                  <div class="field-item"><?php print $node->field_modrating[0]['view'] ?>
                      <p>&nbsp;</p>
                  </div>
                </div>
            </div></td>
          <td><h3 class="field-label  style3">&nbsp;</h3>
          <div class="field-items">
            <h3 class="field-label  style3">Mod videoDirect Link </h3>
            <div class="field-items">
              <?php foreach ((array)$node->field_modvideolink as $item) { ?>
              <div class="field-item"><?php print $item['view'] ?></div>
              <?php } ?>
            </div>
          </div></td>
          <td colspan="2" rowspan="2"><h3 class="field-label  style3">Mod Xfire / Youtube Video of Map </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modvideoembed[0]['view'] ?></div>
          </div>        <div class="field-items"></div></td>
        </tr>
        <tr>
          <td><h3 class="field-label  style3">Submitter Initial Rating </h3>
              <div class="field-items">
                <div class="field-item"><?php print $node->field_modsubratiing[0]['view'] ?></div>
            </div>        </td>
          <td><h3 class="field-label  style3">Please Vote for This Mod</h3>        
            <div class="field-items">
              <div class="field-item">
                <?php
    print fivestar_widget_form($node); 
    ?>
              </div>
          </div></td>
        </tr>
        <tr>
          <td><h3 class="field-label  style3">Mod Percentage</h3>
            <div class="field-items">
              <div class="field-item">
                <p><?php print $node->field_modrating[0]['rating'] ?></p>
              </div>
          </div></td>
          <td><h3 class="field-label  style3">Mod's File External Link </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modfileext[0]['view'] ?> </div>
          </div>        <div class="field-items"></div></td>
          <td><h3 class="field-label  style3">Mod Creator</h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modcreator[0]['view'] ?></div>
          </div></td>
          <td><h3 class="field-label  style3">Mod Support </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modsupport[0]['view'] ?></div>
          </div></td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Credits </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modcredits[0]['view'] ?> </div>
          </div>        <div class="field-items"></div></td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Requirements </h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modrequires[0]['view'] ?></div>
          </div></td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Install Info</h3>
            <div class="field-items">
              <div class="field-item"><?php print $node->field_modinstall[0]['view'] ?></div>
          </div></td>
        </tr>
        <tr>
          <td colspan="4"><h3 class="field-label  style3">Mod Config / setup </h3>
              <div class="field-items"><div class="field-item">
                <div class="field-items">
                  <div class="field-item"><?php print $node->field_modconfigs[0]['view'] ?></div>
                  </div>
                </div>
              </div>          <div class="field-items"></div>          <div class="field-items"></div></td>
        </tr>
      </table>
      <h3 class="field-label">&nbsp;</h3>
    </div>

  3. #13

    Default

    I am working on some basic PHP to get this running may be some time because I am shit at coding but getting their and enjoying it but less time playing MOHAA ((

  4. #14

    Default

    Well, integrating an outside database into kfm would be a nightmare. I would suggest going with your system, but we need a category and game field in your database. It would be nice to have a db for MOHSP and MOHBR even though our focus is MOHAA.

  5. #15

    Default

    Quote Originally Posted by own3mall View Post
    Well, integrating an outside database into kfm would be a nightmare. I would suggest going with your system, but we need a category and game field in your database. It would be nice to have a db for MOHSP and MOHBR even though our focus is MOHAA.
    Ok not looked at KFM code was hoping the DB access and fields could be re mapped to another DB (((

    For the category what are you thinking of ? as mod type (type of mod) covers this -:
    type of mod2.jpg

    Yeh I guess at present its MOHAA but dont see a problem once we got it running external from AAAA adding the other MOH games..........

    Was just checking the fields and yeh looks like Single player not covered......................Think I would add this to this section Server or Client mod: so SP is listed their ?

    Above all quick fix's - I need to get the external code working with DB connect so I can show what can be done to get others onboard and prove we can run it without all the Drupal interface...........

  6. #16
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    I think that by category own3mall meant categories like: MoHAA mods, MoHSH mods, MoHBT mods and so on

  7. #17

    Default

    Quote Originally Posted by Razo[R]apiD View Post
    I think that by category own3mall meant categories like: MoHAA mods, MoHSH mods, MoHBT mods and so on
    Ok no problem adding that or any other fields that are suggested................

    Ok got some basic code running now had to get my head round some PHP stuff for remote servers and do a lot of google LOL

    Ok this test page is on my clan site so its external to the MOD database and server and is raw no Drupal 6 involvement - This just Remote connects to the mysql database and dumps one field all records - in this case the field "mod names"
    http://www.mega-clan.co.uk/moddatabase1.php

    So Now I got that sorted in my head will map all the fields and add some new ones to the script and start to build some basic display pages........

    So we need........
    Index page (searchable by field types so such as Mod type,category and so on)
    Main display page for each record.
    Data Entry Page for submitting to the database.

    Things also to think about Permission Management hoping you can help with this James so where ever you host the pages can be controlled here - I guess just must be registered to post that sort of thing but also moderators who will have access to delete and update existing records.

    Xnull theme for the pages

    James can you sort out some fileupload access for me so I can run the test pages here and others who come on board to help have access also ?
    Last edited by heatsinkbod; August 26th, 2012 at 01:46 PM.

  8. #18

    Default

    Quote Originally Posted by heatsinkbod View Post
    Ok not looked at KFM code was hoping the DB access and fields could be re mapped to another DB (((

    For the category what are you thinking of ? as mod type (type of mod) covers this -:
    type of mod2.jpg

    Yeh I guess at present its MOHAA but dont see a problem once we got it running external from AAAA adding the other MOH games..........

    Was just checking the fields and yeh looks like Single player not covered......................Think I would add this to this section Server or Client mod: so SP is listed their ?

    Above all quick fix's - I need to get the external code working with DB connect so I can show what can be done to get others onboard and prove we can run it without all the Drupal interface...........
    Yes, the screenshot you posted is what I'm thinking of for category. Game would be MOHAA, MOHSH, or MOHBR. Good job on the file dump... it would be easy for other systems to use the external database... assuming they are relatively similar. Unfortunately, KFM is written in JQuery and Javascript which makes it a pain in the ass to work on.

  9. #19
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    I'm off this week, so I'll investigate in some sort of management and get it all sorted for you guys!

  10. #20
    Administrator JoTo's Avatar
    Join Date
    May 2010
    Location
    www.scapp.net
    Posts
    1,953

    Default

    I would need 4 extra fields. Will describe in extra thread here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •