Moderator: Integra Moderator
################################################################## Modified for Integramod 140 by HelterSkelter####MOD Title: CBACK SupportTicket Assistant for phpBB Support Sites## MOD Author: CBACK < [url=http://www.community.cback.de#]http://www.community.cback.de#[/url]# MOD De.scription: 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-integramod 140#### 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/fisubice/posting_body.tpl## Included Files: n/a################################################################ For Security Purposes, Please Check: [url=http://www.phpbb.com/mods/downloads/]http://www.phpbb.com/mods/downloads/[/url] 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: [url=http://www.phpbb.com/mods/downloads/#]http://www.phpbb.com/mods/downloads/#[/url]############################################################### 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 <s><img><s>################################################################## MOD History:#### 2007-01-05 - Version 1.0.0-integramod 140 #### 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/fisubice/posting_body.tpl ##-----[ FIND ]------------------------------------------#<END><tr><td><span>{L_SUBJECT}:</span></td><td><input></td></tr> ##-----[ AFTER, ADD ]------------------------------------------# <input><BEGIN> <tr> <th>Mithril Crowns Application</th> </tr> <tr> <td> <span>{CST_HEAD}</span> </td> </tr> <tr> <td><span><b>{CST_NAME}</b></span></td> <td> <span> <input> </span> </td> </tr> <tr> <td><span><b>{CST_AGE}</b></span></td> <td> <span> <input> </span> </td> </tr> <tr> <td><span><b>{CST_SHAREPGE}</b></span></td> <td> <span> <textarea></textarea> </span> </td> </tr> <tr> <td><span><b>{CST_SHAREWBMC}</b></span></td> <td> <span> <textarea></textarea> </span> </td> </tr> <tr> <td><span><b>{CST_PLE}</b></span></td> <td> <span> <textarea></textarea> </span> </td> </tr> <tr> <th>{CST_HEAD_MSG}</th> </tr><END> ##-----[ FIND ]------------------------------------------# <td>{S_HIDDEN_FORM_FIELDS}<input> <input></td></tr> ##-----[ REPLACE WITH ]------------------------------------------# <td> {S_HIDDEN_FORM_FIELDS} <BEGIN> <input> <END> <input></td> </tr> ##-----[ OPEN ]------------------------------------------# language/lang_english/lang_main.php ##-----[ FIND ]------------------------------------------#//// Private Messaging// ##-----[ BEFORE, ADD ]------------------------------------------#//// CBACK SupportTicket System//$lang['cst_errmessage'] = 'You didn't enter a title for your post. Please press the Back Button of your browser to correct this.';$lang['cst_errmessage1'] = 'You didn't enter your Character Name. Please fill in your Character Name.'; $lang['cst_name'] = 'Character Name';$lang['cst_age'] = 'Real life Age';$lang['cst_sharepge'] = 'Share something about your previous game/guild experience.';$lang['cst_sharewbmc'] = 'Share something about why you feel you belong with Mithril Crowns.';$lang['cst_ple'] = 'If interested in leadership, say something about your past experience and why you feel you could help lead the Mithril Crowns.'; $lang['cst_head_msg'] = 'De.scription and Message';$lang['cst_head'] = 'Welcome to the Mithril Crowns. Please fill out the application below. Our Leadership/Officers will review your application and get back to you ASAP.';//// ##-----[ OPEN ]------------------------------------------# language/lang_german/lang_main.php ##-----[ FIND ]------------------------------------------#//// Private Messaging// ##-----[ BEFORE, ADD ]------------------------------------------#//// CBACK SupportTicket System//$lang['cst_errmessage'] = 'You didn't enter a title for your post. Please press the Back Button of your browser to correct this.';$lang['cst_errmessage1'] = 'You didn't enter your Character Name. Please fill in your Character Name.'; $lang['cst_name'] = 'Character Name';$lang['cst_age'] = 'Real life Age';$lang['cst_sharepge'] = 'Share something about your previous game/guild experience.';$lang['cst_sharewbmc'] = 'Share something about why you feel you belong with Mithril Crowns.';$lang['cst_ple'] = 'If interested in leadership, say something about your past experience and why you feel you could help lead the Mithril Crowns.'; $lang['cst_head_msg'] = 'De.scription and Message';$lang['cst_head'] = 'Welcome to the Mithril Crowns. Please fill out the application below. Our Leadership/Officers will review your application and get back to you ASAP.';////// ##-----[ 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']) : ''; $topic_desc = ( !empty($HTTP_POST_VARS['topic_desc']) ) ? trim($HTTP_POST_VARS['topic_desc']) : ''; $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; ##-----[ AFTER, ADD ]------------------------------------------#//// CBACK SupportTicket System// $cstmcapp = $HTTP_POST_VARS['mcapplication']; if ($cstmcapp == 'engaged') { $name = $HTTP_POST_VARS['name']; $age = $HTTP_POST_VARS['age']; $sharepge = $HTTP_POST_VARS['sharepge']; $sharewbmc = $HTTP_POST_VARS['sharewbmc']; $ple = $HTTP_POST_VARS['ple']; // Nachricht formatieren $u1 = $lang['cst_name']; $u2 = $lang['cst_age']; $u3 = $lang['cst_sharepge']; $u4 = $lang['cst_sharewbmc']; $u5 = $lang['cst_ple']; $u6 = $lang['cst_head_msg']; $messagetemp = "[b]" . $u1 . "[/b] " . $name . " [b]" . $u2 . "[/b] " . $age . " [b]" . $u3 . "[/b] " . $sharepge . " [b]" . $u4 . "[/b] " . $sharewbmc . " [b]" . $u5 . "[/b] " . $ple . " [b]" . $u6 . "[/b]nn" . $message; $message = $messagetemp; } ##-----[ FIND ]------------------------------------------#$template->assign_vars(array( 'USERNAME' => $username, 'SUBJECT' => $subject, 'MESSAGE' => $message, ##-----[ BEFORE, ADD ]------------------------------------------#//// CBACK SupportTicket System// $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 ]------------------------------------------#//// CBACK SupportTicket System// 'CST_MODE' => $mcapplication, 'CST_HEAD' => $lang['cst_head'], 'CST_NAME' => $lang['cst_name'], 'CST_AGE' => $lang['cst_age'], 'CST_SHAREPGE' => $lang['sharepge'], 'CST_SHAREWBMC' => $lang['cst_sharewbmc'], 'CST_PLE' => $lang['cst_PLE'], 'CST_HEAD_MSG' => $lang['cst_head_msg'], ##-----[ 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 ([url=http://www.community.cback.de]http://www.community.cback.de[/url])
Registered users: App360MonitorBot, Bing [Bot]