Please help, Clan emblem doesnt show in game I DID EVERYTHING RIGHT I THINK!

Results 1 to 3 of 3
  1. #1
    Proficient Member afnan123 is offline
    MemberRank
    May 2012 Join Date
    Brooklyn, New YLocation
    161Posts

    Please help, Clan emblem doesnt show in game I DID EVERYTHING RIGHT I THINK!

    Hi,

    I'm having problem with clan emblem, i upload it on my Gunz website fine it's uploaded on my gunz clan/emblem folder and database as well. However the clan emblem doesn't show up on my Clients emblem folder in document. and reason i cant see it on game.


    Here's my system.mrs

    PHP Code:
    <?xml version="1.0" ?>
    <XML>
        <XMLHEADER>version="1.0"</XMLHEADER>

        <SKIN>Default</SKIN>

        <DEFFONT>Arial</DEFFONT>

        <IME>false</IME>

        <BAREPORT>
            <ADDR>www.battlearena.com</ADDR>
            <DIR>incoming/gunz_US</DIR>
        </BAREPORT>

        <EMBLEM_URL>http://gunztest.com/clan/emblem/</EMBLEM_URL>
        <TEMBLEM_URL>http://gunztest.com/clan/emblem/</TEMBLEM_URL>

        <CASHSHOP_URL>http://gunztest.com</CASHSHOP_URL>

        <HOMEPAGE>
            <URL>http://gunztest.com</URL>
            <TITLE>GunZ the Dual</TITLE>
        </HOMEPAGE>

        <LOCATORLIST>
            <LOCATOR id="1" IP="My Ip" />
            <LOCATOR id="2" IP="My Ip" />
        </LOCATORLIST>

        <TLOCATORLIST>
            <LOCATOR id="1" IP="My Ip" />
            <LOCATOR id="2" IP="My Ip" />
        </TLOCATORLIST>
    </XML>
    And here's my
    upload.php for website


    PHP Code:
    <?
    SetTitle
    ("Gunz The test - i lick my balls! - Upload Clan Emblem");
    if (
    $_SESSION['AID'] == ""){
        
    alertbox("Login first!","index.php");
        die();
        }
    ?>
    <style type="text/css">
    <!--
    .Estilo1 {font-weight: bold}
    -->
    </style>

    <table width="802" height="500" border="0" align="center">
      <tr>
        <td width="100" align="center" valign="top">
          <table width="100" height="10" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="10" align="center"></td>
            </tr>
          </table></td>
        <td width="160" height="26" align="center" valign="top"><? include"other/leftblock.php" ?></td>
        <td width="237" align="center" valign="top"><table width="422" height="724" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" bgcolor="#2f5374" valign="top"><table width="422" border="0">
              <tr>
                <td align="left" class="estilo2">
                  <table width="415" height="40" border="0" cellpadding="0" cellspacing="0">
                    <tr bgcolor="#000000">
                      <td height="10" colspan="2"></td>
                      </tr>
                    <tr>
                      <td class="estilo2" width="27"><img src="img/mini_detail.gif" width="27" height="25"></td>
                      <td height="30" class="estilo6"><strong>UPLOAD CLAN EMBLEM</strong></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td align="center" class="Estilo1"><? 
    if (isset($_GET['step'])) {
        
    $argv explode('-',$_GET['step']);
        
    settype($argv,'array'); 
        
    $_GET['step'] = @$argv[0];
        
    $_GET['url'] = @$argv[1];
        
    $_GET['do'] = @$argv[2];
        
    $_GET['mess'] = @$argv[3];
    }
    $step = !isset($_GET['step']) ? home $_GET['step'] ;
            if (
    $step == '1') { echo'
    <FORM METHOD=POST ACTION="index.php?gunz=upload&step=2">
    <table width="350" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
        <td colspan="2" align="center" class="Estilo1">Log in to upload your clan emblem! (Only Leader)</td>
        </tr>
      <tr>
        <td class="Estilo1" align="left" height="20"></td>
        <td class="Estilo1" align="right"></td>
      </tr>
      <tr>
        <td class="Estilo1" align="left">User:</td>
        <td class="Estilo1" align="right"><input name="user" type="textfield" class="login"/></td>
      </tr>
      <tr>
        <td class="Estilo1" align="left" height="20"></td>
        <td class="Estilo1" align="right"></td>
      </tr>
      <tr>
        <td class="Estilo1" align="left">Password:</td>
        <td class="Estilo1" align="right"><input name="pass" type="password" class="login"/></td>
      </tr>
      <tr>
        <td class="Estilo1" align="left" height="20"></td>
        <td class="Estilo1" align="right"></td>
      </tr>
        <tr>
        <td colspan="2" align="center" class="Estilo1"><input name="submit" type="submit" value="Login" class="login"/></td>
        </tr>
    </table></form> '

     } if (
    $step == '2') { 
    $user1 clean($_POST['user']);
    $pass1 clean($_POST['pass']);
        if (
    clean(Array($user1,$pass1)) == TRUE)
    {
     
    $query mssql_query("SELECT AID From Login Where UserID = '$user1' AND Password = '$pass1' ");
                while(
    $r mssql_fetch_array($query)){
    if (
    mssql_num_rows($query) == 1){
                            
    $query2 mssql_query("SELECT Login.UserID, Login.Password, ClanMember.Grade, Clan.EmblemUrl, Clan.Name, Clan.CLID
    FROM ClanMember INNER JOIN
                          Clan ON ClanMember.CLID = Clan.CLID INNER JOIN
                          Login INNER JOIN
                          Character ON Login.AID = Character.AID ON ClanMember.CID = Character.CID Where Login.UserID = '
    $user1' and Login.Password = '$pass1' and ClanMember.Grade = '1' ");
                          if (
    mssql_num_rows($query2) >= '1'){
                          echo 
    '<form enctype="multipart/form-data" action="index.php?gunz=upload&step=done" method="POST">
      <p class="estilo1">Select the image:<br><br>
        <input name="uploaded" type="file" class="login"/>
      </p>
      <p><br />
        <input type="submit" value="Upload" class="login"/>
        </p><select name="clan" class="login">'
    ;
                                for(
    $i='';$i < @mssql_num_rows($query2);++$i){
                                
    $row = @mssql_fetch_row($query2);
                                
    $ClanName $row[4];
                                echo 
    '<option value="'.$row[4].'">';echo $row[4];echo'</option>' ;
                                }echo
    '</select></form>';
                                }}else { echo 
    " Something wrong, probably you are not clan leader? ";} }
                                }
                ;
            }  
        ;
        if (
    $step == 'done') {                   
        
    $emblem $_POST['uploaded'] ;
        
    $CLID $_POST['clan'];
    $target "clan/emblem/";
    $target $target basename$_FILES['uploaded']['name']) ;
    $ok=1;
    if (!(
    $_FILES['uploaded']['size']  > '104000'))
    {
    //echo "Tu imagen es muy grande!.<br>";
    $ok=1;
    if((
    $_FILES['uploaded']['type'] == "image/jpeg"))

    $ok=1;
    //echo "Error de tipo de imagen.<br>";
    }
    if((
    $_FILES['uploaded']['type'] == "image/PNG"))

    $ok=1;
    //echo "Error de tipo de imagen.<br>";
    }
    }
    else { 
    $ok=0;}

    //


    if ($ok==0)
    {
    echo 
    "Sorry, the file was not sent!<br />";
    echo 
    "Please, check the size of your emblem.";
    }
    else
    {
    if(
    move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
    {
    mssql_query ("UPDATE Clan SET EmblemChecksum = EmblemChecksum + 1 WHERE Name = '$CLID'");
    mssql_query ("UPDATE Clan SET EmblemUrl = 'http://gunztest.com/".$target."' WHERE Name = '$CLID'");
    alertbox("Clan Emblem has been uploaded!","index.php");
    }
    else
    {
    echo 
    "Sorry, this account does not exist or dont have access to upload the emblem.";
    }}
    };
    ?></td>
              </tr>
              <tr>
                <td height="5" align="center"></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="190" align="center" valign="top"><? include"other/rightblock.php" ?></td>
        <td width="100" align="left" valign="top"><? include"mininew/rightnew.php" ?></td>
      </tr>
    </table>


  2. #2
    Proficient Member afnan123 is offline
    MemberRank
    May 2012 Join Date
    Brooklyn, New YLocation
    161Posts

    Re: Please help, Clan emblem doesnt show in game I DID EVERYTHING RIGHT I THINK!

    Bump please help!!!

  3. #3
    num num num <3 rootbeer daniel131605 is offline
    MemberRank
    Jul 2008 Join Date
    New YorkLocation
    573Posts

    Re: Please help, Clan emblem doesnt show in game I DID EVERYTHING RIGHT I THINK!

    this is what mine looks like, the "67.249.46.56" is the ip address you're using for your server. then its your folder in lets say xampp
    "C:/xampp/htdocs/secondwebsite/clanemblem"


    <?xml version="1.0" encoding="UTF-8" ?>
    <XML>
    <XMLHEADER>version="1.0" encoding="UTF-8"</XMLHEADER>

    <SKIN>Default</SKIN>

    <DEFFONT>Arial</DEFFONT>

    <IME>true</IME>

    <BAREPORT>
    <ADDR>www.battlearena.com</ADDR>
    <DIR>incoming/gunz_global</DIR>
    </BAREPORT>

    <HOMEPAGE>
    <URL>http://www.gunzonline.com</URL>
    <TITLE>GunZ the Dual</TITLE>
    </HOMEPAGE>

    <EMBLEM_URL>http://67.249.46.56/secondwebsite/clanemblem</EMBLEM_URL>

    <TEMBLEM_URL>http://67.249.46.56/secondwebsite/clanemblem</TEMBLEM_URL>


    <LOCATORLIST>
    <LOCATOR id="1" IP="25.188.117.60" />
    </LOCATORLIST>

    <TLOCATORLIST>
    <LOCATOR id="1" IP="25.188.117.60" />
    </TLOCATORLIST>

    </XML>
    http://67.249.46.56/secondwebsite/clanemblem <-- old server address that im not currently using btw, the 25.188.117.60 is my current server ip

    also... im pretty sure when you create a clan im just remembering this from when i've done this forever ago, my test server doesnt have a character with a clan on it yet but im pretty sure....

    go into your sql database then edit the top 200 rows of dbo.clanboard
    "filename" "link" "html" theres probably something wrong in there it might be looking for the images in a wrong place



Advertisement