ilch Forum » Allgemein » Anfragen / Angebote » JoinUS umbauen

Geschlossen
  1. #1
    User Pic
    MonkeyOnKeyboard Moderator
    Registriert seit
    10.02.2014
    Beiträge
    457
    Beitragswertungen
    22 Beitragspunkte
    Hi leute ich brauche Hilfe beim Umbauen des JoinUS.
    Ich habe leider kaum Codingkenntnisse und weiß nicht mehr weiter....


    Bitte um Hilfe. Es Soll dann so aussehen wie auf den Bilder unter dem LINK.


    Link zu den Bildern
    drive.google.com/folderview?id=0B6jGuUfQ7vBZb241UGthcF96WTQ&usp=sharing


    verwendete ilch Version: 1.1 P

    betroffene Homepage: disruptive-wolfpack.eu

    Bis jetzt sehen die Dateien so aus

    <form action="index.php?joinus" method="POST">
    <fieldset>
    	<legend><b>{_lang_yourdata}:</b></legend>
    	<label style="float:left; width:100px; ">{_lang_joininfo}</label>{_lang_plsfilloutallfields}<br />
      <label style="float:left; width:100px; ">{_lang_name}</label><input name="name"{readonly} maxlength="15" value="{name}" /><br />
      <label style="float:left; width:100px; ">Onlinezeit?</label><select name="online">{online}
    	<option>Sehr oft</option>
    	<option>Mittelmäßig</option>
    	<option>Selten</option>
    	<option>Am Wochenede</option>
    	<option>Unterschiedlich</option>
    	</select><br />
    	<label style="float:left; width:100px; ">{_lang_skill}?</label><select name="skill">{skill}</select><br />
    	<label style="float:left; width:100px; ">{_lang_mail}</label><input type="text" name="mail" value="{mail}" /><br />
    	<label style="float:left; width:100px; ">{_lang_age}</label><input type="text" name="age" value="{age}" /><br />
    	<label style="float:left; width:100px; ">{_lang_hometown}</label><input type="text" name="hometown" value="{hometown}" /><br />
    	<label style="float:left; width:100px; ">{_lang_squad}</label><select name="squad">{squad}</select /><br />
    	<br>
    	<label style="float:left; width:100px; ">{_lang_wotlink}</label><input type="text" name="wotlink" value="{wotlink}" /><br />
    	<label style="float:left; width:100px; ">{_lang_esllink}</label><input type="text" name="esllink" value="{esllink}" /><br />
    	<label style="float:left; width:100px; ">{_lang_noobmlink}</label><input type="text" name="noobmlink" value="{noobmlink}" /><br />
    	<br />
    	<br />
    	<br />
    	<label style="float:left; width:100px; ">{_lang_joininfo}</label>{_lang_panzer}<br />
    	<br />
    	<label style="float:left; width:100px; ">Heavy Tanks</label><input type="checkbox" value="yes" name="IS7" />IS7 &nbsp; <input type="checkbox" value="yes" name="IS4" />IS4 &nbsp; <input type="checkbox" value="yes" name="T57Heavy" />T57Heavy &nbsp; <input type="checkbox" value="yes" name="T110E5" />T110E5 &nbsp; <input type="checkbox" value="yes" name="FV215b" />FV215b &nbsp; <input type="checkbox" value="yes" name="Maus" />Maus &nbsp; <input type="checkbox" value="yes" name="E100" />E100 &nbsp; <input type="checkbox" value="yes" name="AMX50B" />AMX50B &nbsp; <input type="checkbox" value="yes" name="113" />113 <br />
    	<br />
    	<label style="float:left; width:100px; ">Medium Tanks</label><input type="checkbox" value="yes" name="T62A" />T62A &nbsp; <input type="checkbox" value="yes" name="Obj140" />Obj. 140 &nbsp; <input type="checkbox" value="yes" name="Obj430" />Obj. 430 &nbsp; <input type="checkbox" value="yes" name="M48Pattopn" />M48 Patton &nbsp; <input type="checkbox" value="yes" name="FV4202" />FV4202 &nbsp; <input type="checkbox" value="yes" name="E50M" />E50 Ausf. M &nbsp; <input type="checkbox" value="yes" name="BatChat25t" />Bat.Chat.25t &nbsp; <input type="checkbox" value="yes" name="121" />121 <br />
    	<br />
    	<label style="float:left; width:100px; ">Tank Destroyers</label><input type="checkbox" value="yes" name="Obj268" />Obj. 268 &nbsp; <input type="checkbox" value="yes" name="Obj263" />Obj. 263 &nbsp; <input type="checkbox" value="yes" name="T110E3" />T110E3 &nbsp; <input type="checkbox" value="yes" name="T110E4" />T110E4 &nbsp; <input type="checkbox" value="yes" name="FV215B183" />FV215b (183) &nbsp; <input type="checkbox" value="yes" name="WT100" />WT a. E100 &nbsp; <input type="checkbox" value="yes" name="JagdPzE100" />JagdPz E100 &nbsp; <input type="checkbox" value="yes" name="AMX50F155" />AMX 50 Foch (155) <br />
    	<br />
    	<label style="float:left; width:100px; ">SPG</label><input type="checkbox" value="yes" name="Obj261" />Obj. 261 &nbsp; <input type="checkbox" value="yes" name="T92" />T92 &nbsp; <input type="checkbox" value="yes" name="GWE100" />G.W.E 100 &nbsp; <input type="checkbox" value="yes" name="ConqGC" />Conqueror GC &nbsp; <input type="checkbox" value="yes" name="BatChat155" />Bat Chattilon 155 <br />
    	<br />
    	<br />
    	<label style="float:left; width:100px; ">{_lang_favpanzer}</label><input type="text" name="favpanzer" value="{favpanzer}" /><br />
    	<br />
    	<br />
    	<br />
    	<label style="float:left; width:100px; ">{_lang_pch}</label><textarea name="pch" cols="40" rows="5">{pch}</textarea><br />
    	<br>
    	<br />
    	<label style="float:left; width:100px; ">{_lang_groundj}</label><textarea name="groundj" cols="40" rows="5">{groundj}</textarea><br />
    	<br>
    	<br />
    	
    	
    	
    	
    	{EXPLODE}<label style="float:left; width:100px; ">{_lang_rules}</label><input type="checkbox" name="rules" value="{_lang_yes}" />{_lang_rulzreaded}<br />
      {EXPLODE}{RULES}{EXPLODE}<br />
    	{ANTISPAM}
    	<label style="float:left; width:100px; ">&nbsp;</label><input type="submit" name="sub" value="{_lang_formsub}" /><br />
    </fieldset>
    </form>



    <?php
    #   Copyright by: Manuel
    #   Support: www.ilch.de
    defined ('main') or die ( 'no direct access' );
    //-----------------------------------------------------------|
    
    $title = $allgAr['title'].' :: Joinus';
    $hmenu = 'Joinus';
    $design = new design ( $title , $hmenu );
    $design->header();
    
    if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_groups WHERE show_joinus = 1") ) {
    	echo $lang['noteamthere'];
    	$design->footer();
    	exit ();
    }
    
    $skill_ar = array (
      1 => $lang['verybad'],
      2 => $lang['bad'],
    	3 => $lang['middle'],
    	4 => $lang['good'],
    	5 => $lang['verygood'],
    );
    
    $far = array (
    		'name',
    		'online',
    		'skill',
    		'mail',
    		'age',
    		'hometown',
    		'squad',
    		#'ground',
    		'wotlink',
    		'esllink',
    		'noobmlink',
    		
    		'favpanzer',
    		'pch',
    		'groundj',
        'rules'
    	);
    $x = 0;
    foreach ($far as $v) {
    	if (!empty($_POST[$v])) {
    		$$v = escape($_POST[$v], 'string');
    		$x++;
    	} else {
    		$$v = '';
    	}
    }
    
    $xname = escape_nickname($name);
    $ch_name = false;
    if (loggedin()) {
      $ch_name = true;
    } elseif (isset($_POST['sub']) AND $name == $xname AND !empty($name)
       AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) {
      $ch_name = true;
    }
    
    if (count($far) <> $x OR $ch_name == false OR !chk_antispam('joinus')) {
    	$tpl = new tpl ( 'joinus.htm' );
    	$skill  = arlistee ($skill, $skill_ar);
    	$squad  = '<option value="0">choose</option>';
      $squad .= dblistee ($squad, "SELECT id,name FROM prefix_groups WHERE show_joinus = 1 ORDER BY pos");
      if (loggedin()) { $name = $_SESSION['authname']; }
      foreach($far as $v) {
    		if ($x > 0 AND empty($_POST[$v])) {
    			echo 'missing: '.$lang[$v].'<br />';
    		}
    		$tpl->set ($v, $$v);
    	}
      if ($x > 0 AND $name != $xname) {
        echo $lang['wrongnickname'].'<br />';
      } elseif ($x > 0 AND $ch_name == false) {
        echo $lang['namealreadyinuse'].'<br />';
      }
      $name = $xname;
      $tpl->set('readonly', (loggedin()?' readonly': ''));
    	$tpl->out(0);
    	if ($allgAr['joinus_rules'] != 1) {
        $tpl->out(1);
      } else { 
        $rules = '<h2>'.$lang['rules'].'</h2>';
        $rerg = db_query('SELECT zahl,titel,text FROM `prefix_rules` ORDER BY zahl');
        while ($rrow = db_fetch_row($rerg)) {
                $rules .= '<table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">';
                $rules .= '<tr class="Cmite"><td><b>&sect;'.$rrow[0].'. &nbsp; '.$rrow[1].'</b></td></tr>';
                $rules .= '<tr class="Cnorm"><td>'.bbcode($rrow[2]).'</td></tr>';
                $rules .= '</table><br />';
        }
        $rules .= '<input type="checkbox" name="rules" value="'.$lang['yes'].'" />'.str_replace(array('<a target="_blank" href="index.php?rules">','</a>'),'',$lang['rulzreaded']).'<br />';     
        $tpl->set_out('RULES',$rules,2);
      }
      $tpl->set('ANTISPAM', get_antispam('joinus', 100));
      $tpl->out(3);
    } else { # eintragen
      
      $name = $xname;
    	$userreg = $lang['no'];
      if (!loggedin() AND $allgAr['forum_regist'] <> 0) {
        $x = user_regist ($name,$mail,genkey(8));
        $userreg = $lang['yes'];
      }
    
      db_query("INSERT INTO prefix_usercheck (`check`,name,datime,ak,groupid) VALUES ('".genkey(8)."','".$name."',NOW(),4,$squad)");
    
      $squad = escape($squad, 'integer');
    	$abf   = "SELECT `mod1`, `mod2`, `mod4`, name FROM prefix_groups WHERE id = ".$squad;
    	$erg   = db_query($abf);
    	$row   = db_fetch_assoc($erg);
      $rulz  = (isset($_POST['rules'])?$_POST['rules']:$lang['no']);
      $skill = $skill_ar[$skill];
      
      # bitte in der richtigen reihenfolge angeben, sonst das nicht gehen tun, kann.
      $mailtxt = sprintf ($lang['joinusprivmsg'],
        $name,
        $row['name'],
    	$online,
        $skill,
        $mail,
        $hometown,
        $age,
       # $ground,
    	$wotlink,
    	$esllink,
    	$noobmlink,
    	$favpanzer,
    	$pch,
    	$groundj,
        $rulz,
        $userreg
      );
      
      # pm an den leader  
    	sendpm ($_SESSION['authid'], $row['mod1'], 'Joinus Anfrage',$mailtxt, -1);
      # Wenn Co Leader != Leader
    	if ($row['mod2'] != $row['mod1']){
    		sendpm ($_SESSION['authid'], $row['mod2'], 'Joinus Anfrage',$mailtxt, -1);
    	}
    	if ($row['mod4'] != $row['mod1'] AND $row['mod2'] != $row['mod4']){
    		sendpm ($_SESSION['authid'], $row['mod4'], 'Joinus Anfrage',$mailtxt, -1);
    	}
      
    	if (!loggedin() AND $allgAr['forum_regist'] <> 0) {
    		echo $lang['amailhasbeensenttoyouwithmailandpass'].'<br /><br />';
      }
      echo sprintf($lang['leaderofxalert'], $row['name']);
    }
    $design->footer();
    ?>



    Leider bekomm ich beim absenden des Formulars eine Fehler meldung, das zu viele argumente da seien, in der Joinus.php

    Dabei sind noch nicht mal alle Felder drin...

    und wie kann ich die checkboxen auch richtig eingliedern.


    Oder kann man die Joinus in 3-4 Schritte aufspalten?

    Hilfe!!!


    Zuletzt modifiziert von magicmarkus am 11.05.2014 - 12:29:04
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu Anfragen / Angebote

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten