Kann mir hier zu keiner eine passende Schablone anfertigen bitte???
Code: Alles auswählen
##############################################################
## MOD Title: CBACK SupportTicket Assistant for phpBB Support Sites
## MOD Author: CBACK < webmaster@cback.de > (Christian Knerr) http://www.community.cback.de
## MOD Description: This MOD adds an Assistant to your phpBB
## Supportforum wich asks the user to important information
## supporters need to help Users with support questions.
##
## You simply have to add your Support-Forum IDs into the
## array into the common.php, then this Assistant will only
## be shown into these Forums. If its not a support Forum ID
## you have the normal phpBB Post System.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 8 Minutes
## Files To Edit: 6
## common.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
## posting.php
## includes/functions_post.php
## templates/subSilver/posting_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## Into this MOD I made a change at the file common.php and I add the var $stforums. Here
## you have to insert your support Forums IDs (you'll find your forum ID by looking at the
## forum links (...viewforum.php?f=1) the number after f= is your forum ID.) Please insert
## these IDs into the ID Line, sepearated with ","!
##
## I didn't use a MySQL Database or ACP Module cause I thought support forums aren't
## changed often so this is a simpel and fast method.
##
## I hope you enjoy ;)
##
##############################################################
## MOD History:
##
## 2005-04-30 - Version 1.0.0
## - First Release
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END switch_privmsg -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
</span> </td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<input type="hidden" name="supportsystem" value="{CST_MODE}">
<!-- BEGIN cback_sts -->
<tr>
<th colspan="2">CBACK Supportticket System</th>
</tr>
<tr height="40px">
<td colspan="2" style="vertical-align: top;" class="row2">
<span class="genmed">{CST_HEAD}</span>
</td>
</tr>
<tr>
<td class="row1" width="22%"><span class="gen"><b>{CST_PHPBBVERSION}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="phpbbversion" size="10" maxlength="10" style="width:450px" tabindex="2" class="post" value="2.0." />
</span> </td>
</tr>
<tr>
<td class="row1" width="22%" style="vertical-align:top;"><span class="gen"><b>{CST_PHPBBTYPE}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="radio" name="phpbbtype" value="1" checked="true"> {CST_STANDARD}<br>
<input type="radio" name="phpbbtype" value="2"> {CST_PREMOD}<br>
<input type="radio" name="phpbbtype" value="3"> {CST_ANDDIST}
</span> </td>
</tr>
<tr>
<td class="row1" width="22%" style="vertical-align:top;"><span class="gen"><b>{CST_MODS}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="radio" name="phpbbmods" value="1"> {CST_YES}<br>
<input type="radio" name="phpbbmods" value="0" checked="true"> {CST_NO}
</span> </td>
</tr>
<tr>
<td class="row1" width="22%" style="vertical-align:top;"><span class="gen"><b>{CST_KNOWLEDGE}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="radio" name="phpbbknowledge" value="1" checked="true"> {CST_BEGINNER}<br>
<input type="radio" name="phpbbknowledge" value="2"> {CST_BASICKNOW}<br>
<input type="radio" name="phpbbknowledge" value="3"> {CST_EXTENDED}<br>
<input type="radio" name="phpbbknowledge" value="4"> {CST_PROFI}
</span> </td>
</tr>
<tr>
<td class="row1" width="22%" style="vertical-align:top;"><span class="gen"><b>{CST_BEFOREERR}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<textarea name="phpbbdescvf" rows="4" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post"></textarea>
</span> </td>
</tr>
<tr>
<td class="row1" width="22%" style="vertical-align:top;"><span class="gen"><b>{CST_SELFSOLUTION}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<textarea name="errselfsolution" rows="4" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post"></textarea>
</span> </td>
</tr>
<tr>
<td class="row1" width="22%"><span class="gen"><b>{CST_BOARDLINK}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="boardlink" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="http://" />
</span> </td>
</tr>
<tr>
<td class="row1" width="22%"><span class="gen"><b>{CST_PHPVER}</b> ({CST_OPTIONAL})</span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="phpversion" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="" />
</span> </td>
</tr>
<tr>
<td class="row1" width="22%"><span class="gen"><b>{CST_SQLVER}</b> ({CST_OPTIONAL})</span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="mysqlversion" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="" />
</span> </td>
</tr>
<tr>
<th colspan="2">{CST_HEAD_MSG}</th>
</tr>
<!-- END cback_sts -->
#
#-----[ FIND ]------------------------------------------
#
<td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}
<!-- BEGIN cback_vorschau -->
<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" />
<!-- END cback_vorschau -->
<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// Private Messaging
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// CBACK SupportTicket System
//
$lang['cst_phpbbversion'] = 'Your phpBB Version:';
$lang['cst_errmessage'] = 'You didn\'t entered a title for your post. Please press the Back Button of your browser to correct this.';
$lang['cst_phpbbtype'] = 'Your phpBB Type:';
$lang['cst_standard'] = 'Standard phpBB (also called Vanilla)';
$lang['cst_premod'] = 'Premodded phpBB';
$lang['cst_anddist'] = 'other phpBB Distribution';
$lang['cst_mods'] = 'Do you have MODs (Modifications) installed at your forum?';
$lang['cst_yes'] = 'Yes';
$lang['cst_no'] = 'No';
$lang['cst_knowledge'] = 'Your knowledge:';
$lang['cst_beginner'] = 'Beginner';
$lang['cst_basicknow'] = 'Basic Knowledge';
$lang['cst_extended'] = 'Advanced Knowledge';
$lang['cst_profi'] = 'Professional';
$lang['cst_beforeerr'] = 'What have you done before the problem was there?';
$lang['cst_selfsolution'] = 'What have you already tryed to solve the problem?';
$lang['cst_boardlink'] = 'Boardlink:';
$lang['cst_phpver'] = 'PHP Version:';
$lang['cst_sqlver'] = 'MySQL Version:';
$lang['cst_head_msg'] = 'Description and Message';
$lang['cst_optional'] = 'not required';
$lang['cst_head'] = 'This Assistant helps you to give the supporters enaugh Information to help you. Please fill out as many fields you can. Only with these informations its possible to help you efficient and fast.';
//
//
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// Private Messaging
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// CBACK SupportTicket System
//
$lang['cst_phpbbversion'] = 'Deine phpBB Version:';
$lang['cst_errmessage'] = 'Du hast keinen Titel für Deinen Post eingegeben! Bitte drücke die Zurück-Taste Deines Browsers um die falschen Angaben zu korrigieren!';
$lang['cst_phpbbtype'] = 'Typ Deines phpBB Forums:';
$lang['cst_standard'] = 'Standard phpBB (auch Vanilla genannt)';
$lang['cst_premod'] = 'Premodded phpBB';
$lang['cst_anddist'] = 'andere phpBB Distribution';
$lang['cst_mods'] = 'Hast Du MODs (Modifikationen) zu Deinem Board hinzugefügt?';
$lang['cst_yes'] = 'Ja';
$lang['cst_no'] = 'Nein';
$lang['cst_knowledge'] = 'Dein Wissensstand:';
$lang['cst_beginner'] = 'Einsteiger';
$lang['cst_basicknow'] = 'Grundwissen';
$lang['cst_extended'] = 'Fortgeschritten';
$lang['cst_profi'] = 'Profi';
$lang['cst_beforeerr'] = 'Was hast Du gemacht, bevor das Problem aufgetreten ist?';
$lang['cst_selfsolution'] = 'Was hast Du bereits versucht um das Problem zu lösen?';
$lang['cst_boardlink'] = 'Link zu Deinem Forum:';
$lang['cst_phpver'] = 'PHP Version:';
$lang['cst_sqlver'] = 'MySQL Version:';
$lang['cst_head_msg'] = 'Fehlerbeschreibung und Nachricht';
$lang['cst_optional'] = 'optional';
$lang['cst_head'] = 'Dieser Assistent hilft Dir, den Supportern alle notwendigen Informationen zu geben, die sie benötigen um Dir schnell und kompetent weiterzuhelfen. Bitte fülle so viele Felder wie möglich aus! Nur so kann Dir effizient geholfen werden!';
//
//
//
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// CBACK SupportTicket System (Support Forum IDs)
// please add here the forum IDs wich are Support Forums at your board and
// where you want to use the CBACK SupportTicket System.
//
// Example:
// $stforums = array('2','4','6');
//
$stforums = array('0');
//
// END CBACK SupportTicket System
//
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
case 'reply':
$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$cstsupport = $HTTP_POST_VARS['supportsystem'];
if ($cstsupport == 'engaged')
{
$phpbbversion = $HTTP_POST_VARS['phpbbversion'];
$phpbbtype = $HTTP_POST_VARS['phpbbtype'];
$phpbbmods = $HTTP_POST_VARS['phpbbmods'];
$phpbbdescvf = $HTTP_POST_VARS['phpbbdescvf'];
$phpbbknowledge = $HTTP_POST_VARS['phpbbknowledge'];
$boardlink1 = $HTTP_POST_VARS['boardlink'];
$phpversion = $HTTP_POST_VARS['phpversion'];
$mysqlversion = $HTTP_POST_VARS['mysqlversion'];
$errselfsolution = $HTTP_POST_VARS['errselfsolution'];
$messagetemp = '';
// phpBB Typ Optionsfeld umwandeln
if ($phpbbtype == '1')
{
$phpbbtype = $lang['cst_standard'];
}
else if ($phpbbtype == '2')
{
$phpbbtype = $lang['cst_premod'];
}
else
{
$phpbbtype = $lang['cst_anddist'];
}
// Mods Optionsfeld umwandeln
if ($phpbbmods == '0')
{
$phpbbmods = $lang['cst_no'];
}
else
{
$phpbbmods = $lang['cst_yes'];
}
// Wissenstand umwandeln
if ($phpbbknowledge == '1')
{
$phpbbknowledge = $lang['cst_beginner'];
}
else if ($phpbbknowledge == '2')
{
$phpbbknowledge = $lang['cst_basicknow'];
}
else if ($phpbbknowledge == '3')
{
$phpbbknowledge = $lang['cst_extended'];
}
else
{
$phpbbknowledge = $lang['cst_profi'];
}
// Nachricht formatieren
$u1 = $lang['cst_phpbbversion'];
$u2 = $lang['cst_phpbbtype'];
$u3 = "MODs:";
$u4 = $lang['cst_knowledge'];
$u5 = $lang['cst_boardlink'];
$u6 = $lang['cst_phpver'];
$u7 = $lang['cst_sqlver'];
$u8 = $lang['cst_beforeerr'];
$u9 = $lang['cst_selfsolution'];
$u0 = $lang['cst_head_msg'];
$messagetemp = "[b]" . $u1 . "[/b] " . $phpbbversion . "
[b]" . $u2 . "[/b] " . $phpbbtype . "
[b]" . $u3 . "[/b] " . $phpbbmods . "
[b]" . $u4 . "[/b] " . $phpbbknowledge . "
[b]" . $u5 . "[/b] [url]" . $boardlink1 . "[/url]\n
[b]" . $u6 . "[/b] " . $phpversion . "
[b]" . $u7 . "[/b] " . $mysqlversion . "\n\n
[b]" . $u8 . "[/b]\n[i]" . $phpbbdescvf . "[/i]\n\n
[b]" . $u9 . "[/b]\n[i]" . $errselfsolution . "[/i]\n\n\n
[b]" . $u0 . "[/b]\n\n" . $message;
$message = $messagetemp;
}
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'USERNAME' => $username,
'SUBJECT' => $subject,
'MESSAGE' => $message,
'HTML_STATUS' => $html_status,
'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.$phpEx?mode=bbcode") . '" target="_phpbbcode">', '</a>'),
'SMILIES_STATUS' => $smilies_status,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$aktuellesforum = $_GET['f'];
$aktuellermodus = $_GET['mode'];
$temp = 0;
$supp = 0;
$supportsystem = 'disabled';
foreach($stforums as $temp)
{
if ($temp == $aktuellesforum)
{
$supp++;
}
}
if (($aktuellermodus == 'newtopic') and ($supp > 0))
{
$template->assign_block_vars('cback_sts', array());
$supportsystem = 'engaged';
}
else
{
$template->assign_block_vars('cback_vorschau', array());
}
#
#-----[ FIND ]------------------------------------------
#
'L_NOTIFY_ON_REPLY' => $lang['Notify'],
'L_DELETE_POST' => $lang['Delete_post'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'CST_MODE' => $supportsystem,
'CST_HEAD' => $lang['cst_head'],
'CST_PHPBBVERSION' => $lang['cst_phpbbversion'],
'CST_PHPBBTYPE' => $lang['cst_phpbbtype'],
'CST_STANDARD' => $lang['cst_standard'],
'CST_PREMOD' => $lang['cst_premod'],
'CST_ANDDIST' => $lang['cst_anddist'],
'CST_MODS' => $lang['cst_mods'],
'CST_YES' => $lang['cst_yes'],
'CST_NO' => $lang['cst_no'],
'CST_KNOWLEDGE' => $lang['cst_knowledge'],
'CST_BEGINNER' => $lang['cst_beginner'],
'CST_BASICKNOW' => $lang['cst_basicknow'],
'CST_EXTENDED' => $lang['cst_extended'],
'CST_PROFI' => $lang['cst_profi'],
'CST_BEFOREERR' => $lang['cst_beforeerr'],
'CST_SELFSOLUTION' => $lang['cst_selfsolution'],
'CST_BOARDLINK' => $lang['cst_boardlink'],
'CST_SQLVER' => $lang['cst_sqlver'],
'CST_PHPVER' => $lang['cst_phpver'],
'CST_HEAD_MSG' => $lang['cst_head_msg'],
'CST_OPTIONAL' => $lang['cst_optional'],
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
$error_msg .= (!empty($error_msg)) ? '<br />' . $lang['Empty_subject'] : $lang['Empty_subject'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))
{
message_die(GENERAL_MESSAGE, $lang['cst_errmessage']);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
#
# This MOD was created with: CBACK MIRO ModEditor (http://www.community.cback.de)
Wäre jedem sehr sehr dankbar der mir diesens ermöglichen könnte