Seite 1 von 1

Join us / Fight us MODS???

Verfasst: 11.02.2006 14:50
von Warrior-of-Dune
Ich suche folgende MODS/Hacks/Add-on für eine ClanPage:

Formulare für "Join us", "Fight us" und einen "War Planer". Hat wer so was schon im Einsatz und kann es unseren Clan zur Verfügung stellen?

Verfasst: 12.02.2006 14:44
von Warrior-of-Dune
*push*
Ich bin schon mal ein Stückchen weiter.
Es gibt ein "Forum" Tool, was sich Clan Manager Pro nennt. Dort sind die Funktionen vereint und der Quellcode für ein "Fight Us" Formular poste ich mal hier

Code: Alles auswählen

<?PHP
$dropdown = 'sel';
$text = 'schrift10';
$feld = 'jufufield';
$button = 'submit';

######## Ab hier nichts ändern ########

   INCLUDE('../cmpro_header.inc.php');
   INCLUDE($sitepath.'layout/lay_header.inc.php');
   INCLUDE($sitepath.'cmpro.ext/textformat.inc.php');

   $tbl_jufu = $db_praefix."jufu";

   $sql67 = "SELECT * FROM $tbl_jufu WHERE id = '1'";
   if(!$query = mysql_query($sql67, $db_conn))
   {
	echo dberror();
   }
   $udat = mysql_fetch_array($query);
   $empfaenger = $udat[fightus];
   
   
   $sql68 = "SELECT * FROM $tbl_jufu WHERE id = '2'";
   if(!$query = mysql_query($sql68, $db_conn))
   {
	echo dberror();
   }
   $udat2 = mysql_fetch_array($query);
   $showsmilies = true;
   $futext = format_output($udat2[fightus]);
  
   ?>
   <?php
   if ($send == '1') {
      if ($kontaktperson == '' || $clanname == '' || ($icqnummer == '' && $email == '') || $tag == '' || $uhrzeit == '') {
         echo "<div class=\"schrift10\" style=\"color: #ff5522\"><center>Einige der notwendigen Felder wurden nicht ausgefüllt...</center></div>";
      }
      else {
         $nachricht="$team wurde von/vom $clanname gefordert:\n\n".
                    "Clanpage: ".$clanpage."\n".
                    "Kontaktperson: ".$kontaktperson."\n".
                    "ICQ-Nummer: ".$icqnummer."\n".
                    "Emailadresse: ".$email."\n".
                    "Spiel: ".$game."\n".
                    "Matchtyp: ".$matchtyp." - ".$gametyp."\n".
                    "Map: ".$map."\n".
                    "Datumsvorschlag: ".$tag.".".$monat.".".$jahr." um ".$uhrzeit."Uhr \n".
                    "Kommentar: ".$kommentar;
         mail($empfaenger, $clanname." - Fight Us Forderung", $nachricht, "From: ".$cm_clantag." <".$cm_webmaster.">")
            or die("Konnte die Nachricht aufgrund technischer Schwierigkeiten nicht verschicken!");
         echo "<div class=\"schrift10\"><center>Vielen Dank f&uuml;r eure Forderung. Wir werden uns umgehend mit euch in Verbindung setzen. :)</center></div>";
         INCLUDE($sitepath.'layout/lay_footer.inc.php');
         INCLUDE($sitepath.'cmpro_footer.inc.php');
         die(); 
      }
   } else {
      ?>
	 <center><table><tr><td><span class="<?php echo $text; ?>"><?php echo $futext; ?></span></td></tr></table><br></center>
	 <script type="text/javascript">
	 <!--
	 var day, month, today, year;
	 today = new Date();
	 year=today.getYear();
	 day=today.getDate();
	 month=today.getMonth()+1;
	 if (month < 10) {
		month="0"+month;
	 }
	 if (day < 10) {
		day="0"+day;
	 }
	 function setValues() {
		document.getElementsByName("tag")[0].value   = day;
		document.getElementsByName("monat")[0].value = month;
		document.getElementsByName("jahr")[0].value  = year;
	 }
	 document.body.onload=setValues;
	 // -->
	 </script>    
      <?php
   }
   ?>


<center>
<form action="<?php echo $PHP_SELF ?>?send=1" name="fight" method="POST">
<table>
<tr><td class="<?php echo $text; ?>">Euer Clanname&nbsp; </td><td><input size="35" maxLength="35" type="text" name="clanname" class="<?php echo $feld; ?>" value="<?php echo $clanname; ?>"></td></tr>
<tr><td class="<?php echo $text; ?>">URL Clanpage&nbsp; </td><td><input size="35" maxLength="35" type="text" name="clanpage" value="http://" class="<?php echo $feld; ?>" value="<?php echo $clanpage; ?>"></td></tr>
<tr><td class="<?php echo $text; ?>">Kontaktperson&nbsp; </td><td><input size="35" maxLength="35" type="text" name="kontaktperson" class="<?php echo $feld; ?>" value="<?php echo $kontaktperson; ?>"></td></tr>
<tr><td class="<?php echo $text; ?>">ICQ-Nummer&nbsp; </td><td><input size="35" maxLength="10" type="text" name="icqnummer" class="<?php echo $feld; ?>" value="<?php echo $icqnummer; ?>"></td></tr>
<tr><td class="<?php echo $text; ?>">Emailadresse&nbsp; </td><td><input size="35" maxLength="35" type="text" name="email" class="<?php echo $feld; ?>" value="<?php echo $email; ?>"></td></tr>
<tr><td class="<?php echo $text; ?>">Spiel&nbsp; </td><td>
<select name="game" class="<?php echo $dropdown; ?>">
<?PHP

   $sql69 = "SELECT id, typefull FROM $tbl_games ORDER BY typefull ASC";
   if(!$query = mysql_query($sql69, $db_conn))
   {
      dberror();
   }

   while($dat = mysql_fetch_array($query))
   {
	$option = "<option";
        if ($game == $dat[typefull]) $option = $option." selected";
        $option = $option.">$dat[typefull]</option>";
	echo $option;
   }
?>
</select></td></tr>
<tr><td class="<?php echo $text; ?>">Squad&nbsp; </td><td>
<select name="team" class="<?php echo $dropdown; ?>">
<?PHP

   $sql69 = "SELECT id, teamname FROM $tbl_team WHERE hidden != '1' ORDER BY teamname ASC";
   if(!$query = mysql_query($sql69, $db_conn))
   {
      dberror();
   }

   while($dat = mysql_fetch_array($query))
   {
	$option = "<option";
        if ($game == $dat[teamname]) $option = $option." selected";
        $option = $option.">$dat[teamname]</option>";
	echo $option;
   }
?>
</select></td></tr>
<tr><td class="<?php echo $text; ?>">Match-Typ&nbsp; </td><td>
<select name="matchtyp" class="<?php echo $dropdown; ?>">
<?PHP

   $sql69 = "SELECT id, name FROM $tbl_typ ORDER BY name ASC";
   if(!$query = mysql_query($sql69, $db_conn))
   {
      dberror();
   }

   while($dat = mysql_fetch_array($query))
   {
	$option = "<option";
        if ($matchtyp == $dat[name]) $option = $option." selected";
        $option = $option.">$dat[name]</option>";
	echo $option;
   }
?>
</select>&nbsp;
<select name="gametyp" class="<?php echo $dropdown; ?>">
<?PHP

   $sql69 = "SELECT id, typeshort FROM $tbl_gametyp ORDER BY typeshort ASC";
   if(!$query = mysql_query($sql69, $db_conn))
   {
      dberror();
   }

   while($dat = mysql_fetch_array($query))
   {
	$option = "<option";
        if ($gametyp == $dat[typeshort]) $option = $option." selected";
        $option = $option.">$dat[typeshort]</option>";
	echo $option;
   }
?>
</select></td></tr>
<tr><td class="<?php echo $text; ?>">Map&nbsp; </td><td>
<select name="map" class="<?php echo $dropdown; ?>">
	<option <?php if ($map == '...was ist eure Wahl?') echo "selected"; ?>>...was ist eure Wahl?</option>
	<option <?php if ($map == 'C&C_Islands') echo "selected"; ?>>C&C_Islands</option>
	<option <?php if ($map == 'C&C_Volcano') echo "selected"; ?>>C&C_Volcano</option>
	<option <?php if ($map == 'C&C_Under') echo "selected"; ?>>C&C_Under</option>
	<option <?php if ($map == 'C&C_Field') echo "selected"; ?>>C&C_Field</option>
	<option <?php if ($map == 'C&C_Complex') echo "selected"; ?>>C&C_Complex</option>
	<option <?php if ($map == 'C&C_Canyon') echo "selected"; ?>>C&C_Canyon</option>
	<option <?php if ($map == 'C&C_Mesa') echo "selected"; ?>>C&C_Mesa</option>
	<option <?php if ($map == 'C&C_Hourglass') echo "selected"; ?>>C&C_Hourglass</option>
	<option <?php if ($map == 'C&C_City') echo "selected"; ?>>C&C_City</option>
	<option <?php if ($map == 'C&C_City_Flying') echo "selected"; ?>>C&C_City_Flying</option>
	<option <?php if ($map == 'C&C_Walls') echo "selected"; ?>>C&C_Walls</option>
	<option <?php if ($map == 'C&C_Walls_Flying') echo "selected"; ?>>C&C_Walls_Flying</option>
</select></td></tr>
<tr><td class="<?php echo $text; ?>">Datumsvorschlag&nbsp; </td><td><input size="1" maxLength="2" type="text" name="tag" class="<?php echo $feld; ?>" value="<?php echo $tag; ?>">.
                                       <input size="1" maxLength="2" type="text" name="monat" class="<?php echo $feld; ?>" value="<?php echo $monat; ?>"><span class="<?php echo $text; ?>">.</span>
                                       <input size="3" maxLength="4" type="text" name="jahr" class="<?php echo $feld; ?>" value="<?php echo $jahr; ?>"><span class="<?php echo $text; ?>">&nbsp;&nbsp;Zeit</span>
                                       <input size="4" maxLength="5" type="text" name="uhrzeit" value="18:45" class="<?php echo $feld; ?>" value="<?php echo $uhrzeit; ?>"></td></tr>
<tr><td valign="top" class="<?php echo $text; ?>">Kommentar&nbsp; </td><td><textarea rows="5" maxLength="200" cols="37" name="kommentar" class="<?php echo $feld; ?>"><?php echo $kommentar; ?></textarea></td></tr>
<tr><td>&nbsp; </td><td><br /><input type="submit" value="Fordern" class="<?php echo $button; ?>"></td></tr>
</table>
</form>


</center>
   
  <?PHP
   INCLUDE($sitepath.'layout/lay_footer.inc.php');
   INCLUDE($sitepath.'cmpro_footer.inc.php');
?>
Jetzt kommt die Schwierigkeit. CMPro gibt keinen Support für die Implementierung für CMPro in phpbb2. Vielleich kann einer dieses Script in phpbb2 umbauen???

Verfasst: 21.02.2006 08:48
von Warrior-of-Dune
*push*

Verfasst: 26.02.2006 09:25
von Eoleon
kann man dieses Script irgendwo in Funktion sehen?

Verfasst: 29.04.2007 15:09
von Knut77
Hi,
sry, wenn ich diesen Thread wieder erwecke...ich möchte auch gern ein Fight us Formular einbauen...

Also habe ich mir erstmal ein simples besorgt, es angepasst (das aussehen aber noch nicht den Code zu 100 %), dann Phpbb Includet, also das es das Design von meiner Seite hat.

Wenn ich die Seite aufrufe ist alles gut, sobald ich aber auf Send klicken möchte, sagt er
The requested URL /$PHP_SELF was not found on this server.
Ich habe schon im Internet geguckt, aber bin nicht richtig schlau daraus geworden...

Es gehört zwar nicht direkt zu phpbb, wäre aber nett wenn sich das mal wer angucken könnte!

Hier die Datei als txt verlinkt.
www.a-rush.net/fightus.txt

Es geht um diesen Teil :
<form action=$PHP_SELF?action=fightus method=post class=fightus>

Verfasst: 30.04.2007 19:30
von Knut77
Ich suche mir irgendein anderes....

Braucht nicht mehr antworten