1############################################################################### 2# default.Other.template # 3############################################################################### 4# YaBB: Yet another Bulletin Board # 5# Open-Source Community Software for Webmasters # 6# Version: YaBB 2.6.11 # 7# Packaged: December 2, 2014 # 8# Distributed by: http://www.yabbforum.com # 9# =========================================================================== # 10# Copyright (c) 2000-2014 YaBB (www.yabbforum.com) - All Rights Reserved. # 11# Software by: The YaBB Development Team # 12# with assistance from the YaBB community. # 13############################################################################### 14$othertemver = 'YaBB 2.6.11 $Revision: 1611 $'; 15 16$my_session = 'session.png'; 17 18## IPlookup ## 19$my_ipdiv = qq~ 20<table class="tabtitle"> 21 <tr> 22 <td style="padding-left:1%"><img src="$micon_bg{'ip'}" alt="" /> $lookup_txt{'iplookup'} - {yabb ip}</td> 23 </tr> 24</table> 25<table class="pad_4px cs_thin"> 26 <tr> 27 <td class="windowbg2"> 28 <div style="font-weight: bold; margin-bottom: 10px;">$lookup_txt{'01'} {yabb ip} $lookup_txt{'02'}</div> 29 <div>{yabb lookuplink} </div> 30 <div style="width: 100%; text-align: center;"><a href="javascript:history.go(-1);">$maintxt{'193'}</a></div> 31 </td> 32 </tr> 33</table>~; 34 35## AddModerators 36$myshowProfile = qq~<tr class="windowbg"> 37 <td><label for="addmod"><b>$addmod_txt{'addmod_title'}: </b><br /><span class="small">$addmod_txt{'addmod_text'}</span></label></td> 38 <td> 39 <select name="addmod" id="addmod" multiple="multiple" onchange="selectnum();"> 40 {yabb addbdmod} 41 </select> 42 <input type="checkbox" name="selAll" id="selAll" onclick="if (this.checked) selectAll(true); else selectAll(false);" /> <label for="selAll"><span class="small">$addmod_txt{'addmod_all'}</span></label> 43 <script type="text/javascript"> 44 function selectAll(_v) { 45 for(var i=0; i < document.creator.addmod.length; i++) 46 document.creator.addmod[i].selected = _v; 47 } 48 49 function selectnum() { 50 document.creator.selAll.checked = true; 51 for(var i=0; i < document.creator.addmod.length; i++) { 52 if (! document.creator.addmod[i].selected) { document.creator.selAll.checked = false; } 53 } 54 } 55 </script> 56 </td> 57 </tr>~; 58 59$myselectmods = qq~<div style="position: relative; top: 0; left: 0; height: 1px; width: 350px; border: 0; z-index: 100002;"> 60 <div id="modsettings" style="position: absolute; top: 0; left: 0; width: 350px; padding: 1px; color: #000; background-color: #808080; display: none;"> 61 <form action="$scripturl?action=modsearch2;toboard={yabb to_board}" method="post" name="moderatoradd" id="moderatoradd" accept-charset="$yymycharset"> 62 <div class="bordercolor" style="width:350px"> 63 <table class="cs_thin pad_3px" style="width:350px"> 64 <tr> 65 <td class="titlebg"><label for="letter">$addmod_txt{'modsearch'}</label></td> 66 </tr><tr> 67 <td class="windowbg2"> 68 <span class="small">$addmod_txt{'instruct'}</span> 69 </td> 70 </tr><tr> 71 <td class="windowbg2"> 72 <div style="float:left"><input type="text" name="letter" id="letter" onkeyup="LetterChange(this.value)" style="width:300px" /></div> 73 <div style="float:right"><img src="$imagesdir/mozilla_gray.gif" id="load" alt="" /></div> 74 </td> 75 </tr><tr> 76 <td class="windowbg"> 77 <select name="rec_list" multiple="multiple" id="rec_list" size="6" style="width: 340px; font-size: 11px;" ondblclick="copy_option('moderators')"><option disabled="disabled" value="">--</option></select> 78 </td> 79 </tr><tr> 80 <td class="windowbg"> 81 <input type="button" class="button" onclick="copy_option('moderators')" value="$addmod_txt{'addselected'}" style="width: 340px;" /> 82 </td> 83 </tr>~; 84 85$myselectmods_b =qq~<tr> 86 <td class="windowbg2"><span class="small"><b>{yabb addmod_list}</b></span></td> 87 </tr><tr> 88 <td class="windowbg"> 89 <select name="moderators" id="moderators" multiple="multiple" size="4" style="width: 340px;"> 90 {yabb modmbr} 91 <option value="" disabled="disabled">--</option> 92 </select> 93 </td> 94 </tr> 95 ~; 96 97$myselectmods_c = qq~<tr> 98 <td class="windowbg2"><span class="small"><b>{yabb addgrp_list}</b></span></td> 99 </tr><tr> 100 <td class="windowbg"> 101 <select multiple="multiple" name="moderatorgroups" id="moderatorgroups" size="4" style="width: 340px;"> 102 {yabb modgrp} 103 </select> 104 </td> 105 </tr>~; 106 107$myselectmods_d = qq~<tr> 108 <td class="windowbg"> 109 <input type="submit" class="button" value="$addmod_txt{'addmod_save'}" style="width: 170px;" /><input type="button" class="button" onclick="ModSettings()" value="$addmod_txt{'pageclose'}" style="width: 170px;" /> 110 </td> 111 </tr> 112 </table> 113 </div> 114 </form> 115 <div id="response" style="display:none"> </div> 116 </div> 117</div>~; 118 119## Sessions 120 121$my_sessions = qq~ 122<br /><br /> 123<form action="$scripturl?action=revalidatesession2" method="post" name="sesform" accept-charset="$yymycharset"> 124<div class="bordercolor" style="padding: 1px; width: 50%; margin-left: auto; margin-right: auto;"> 125<table class="tabtitle"> 126 <tr> 127 <td> 128 <img src="$imagesdir/$my_session" alt="" /><b>$img_txt{'34a'}</b> 129 </td> 130 </tr> 131</table> 132<table class="pad_3px"> 133 <tr> 134 <td class="windowbg" colspan="3"> 135 {yabb sesstext3}<br /><br />{yabb sesstext4} {yabb sesremark} 136 </td> 137 </tr><tr> 138 <td class="windowbg right"> 139 <label for="sesanswer"><b>{yabb sesquestion}:</b></label> 140 </td> 141 <td class="windowbg"> 142 <input type="{yabb sestype}" name="sesanswer" id="sesanswer" size="20" tabindex="1" /> 143 <input type="hidden" name="sredir" value="{yabb sesredir}" /> 144 </td> 145 </tr><tr> 146 <td class="catbg center" style="padding: 8px;" colspan="2"> 147 <input type="submit" value="$img_txt{'34a'}" tabindex="2" class="button" /> 148 </td> 149 </tr> 150</table> 151</div> 152</form> 153<script type="text/javascript"> 154 document.sesform.sesanswer.focus(); 155</script> 156~; 157 158## Smilies 159 160$my_smiliebg_a = q~windowbg2~; 161$my_smiliebg_b = q~windowbg~; 162#in the event you want a banner for the smilies header # 163$my_banner = 'banner.gif'; 164 165$smilie_window_a = 166qq~<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 167<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$abbr_lang" lang="$abbr_lang"> 168<head> 169<title>$smiltxt{'1'}</title> 170<meta http-equiv="Content-Type" content="text/html; charset=$yymycharset" /> 171<link rel="stylesheet" href="$yyhtml_root/Templates/Forum/$usestyle.css" type="text/css" /> 172<style type="text/css"> 173.moresmiles {vertical-align:bottom; cursor:pointer;} 174</style> 175<script type="text/javascript"> 176function AddText(text) { 177 if (window.opener && !window.opener.closed) { 178 if (opener.document.postmodify.message.createTextRange && opener.document.postmodify.message.caretPos) { 179 var caretPos = opener.document.postmodify.message.caretPos; 180 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? 181 text + ' ' : text; 182 } else if (opener.document.postmodify.message.setSelectionRange) { 183 var selectionStart = opener.document.postmodify.message.selectionStart; 184 var selectionEnd = opener.document.postmodify.message.selectionEnd; 185 var replaceString = text + opener.document.postmodify.message.value.substring(selectionStart, selectionEnd); 186 opener.document.postmodify.message.value = opener.document.postmodify.message.value.substring(0, selectionStart) + replaceString + opener.document.postmodify.message.value.substring(selectionEnd); 187 opener.document.postmodify.message.setSelectionRange(selectionStart + text.length, selectionEnd + text.length); 188 } else { 189 opener.document.postmodify.message.value += text; 190 } 191 opener.autoPreview(); 192 } 193} 194opener.autoPreview(); 195moresmiliecode = new Array({yabb more_smilie_array}) 196 197function MoreSmilies(i) { 198 AddTxt=moresmiliecode[i]; 199 AddText(AddTxt); 200} 201</script> 202</head> 203<body style="background: #{yabb popback}; min-width:400px;"> 204<p style="color:#{yabb poptext}; text-align:center">$smiltxt{'21'}</p> 205{yabb my_output} 206{yabb evenmoresmilies} 207</body> 208</html> 209~; 210 211$smilie_window_advanced = 212qq~<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 213<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$abbr_lang" lang="$abbr_lang"> 214<head> 215<title>$smiltxt{'1'}</title> 216<meta http-equiv="Content-Type" content="text/html; charset=$yymycharset" /> 217<link rel="stylesheet" href="$yyhtml_root/Templates/Forum/$usestyle.css" type="text/css" /> 218<script type="text/javascript"> 219function AddText(text) { 220 if (window.opener && !window.opener.closed) { 221 if (opener.document.postmodify.message.createTextRange && opener.document.postmodify.message.caretPos) { 222 var caretPos = opener.document.postmodify.message.caretPos; 223 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? 224 text + ' ' : text; 225 } else if (opener.document.postmodify.message.setSelectionRange) { 226 var selectionStart = opener.document.postmodify.message.selectionStart; 227 var selectionEnd = opener.document.postmodify.message.selectionEnd; 228 var replaceString = text + opener.document.postmodify.message.value.substring(selectionStart, selectionEnd); 229 opener.document.postmodify.message.value = opener.document.postmodify.message.value.substring(0, selectionStart) + replaceString + opener.document.postmodify.message.value.substring(selectionEnd); 230 opener.document.postmodify.message.setSelectionRange(selectionStart + text.length, selectionEnd + text.length); 231 } else { 232 opener.document.postmodify.message.value += text; 233 } 234 } 235} 236 237moresmiliecode = new Array({yabb more_smilie_array}) 238function MoreSmilies(i) { 239 AddTxt=moresmiliecode[i]; 240 AddText(AddTxt); 241} 242</script> 243</head> 244<body style="background: #{yabb popback}; min-width:400px;"> 245 <table class="bordercolor pad_4px cs_thin"> 246{yabb smiliesheader} 247 <tr> 248{yabb smilieslist} 249 </tr> 250 </table> 251</body> 252</html>~; 253 254$my_smilie_window_td = qq~ 255 <td class="center h_60px {yabb smiliescolor}"><img src="{yabb tmpurl}" alt="" onclick='javascript:MoreSmilies({yabb i})' class='cursor' /><br /><span style="font-size:xx-small; color:#{yabb poptext}">{yabb SmilieDescription}</span></td>~; 256 257$my_smilie_window_td_line = qq~ 258 <td class="center h_60px {yabb smiliescolor}"><img src="$yyhtml_root/Smilies/{yabb line}" alt="" onclick="javascript:MoreSmilies({yabb i})" style="cursor:pointer" /> 259 <br /><span style="font-size: xx-small; color:#{yabb poptext}">{yabb line}</span> 260 </td>~; 261 262$my_smilie_window_blnk = qq~ 263 <td class="center h_60px {yabb smiliescolor}"> </td>\n~; 264 265$my_smilie_banner_header = qq~<tr> 266 <td class="center" style="background-color:#{yabb popback}" colspan="4"> 267 <img src="$yyhtml_root/Smilies/$my_banner" alt="" /> 268 </td> 269 </tr>~; 270 271$my_smilie_header = qq~<tr> 272 <td class="center" colspan="4"><b><span class="small">$smiltxt{'21'}</span></b></td> 273 </tr>~; 274 275$my_smilie_window_tr = qq~ 276 </tr><tr>~; 277 278 279## Error 280 281$my_show_error = qq~ 282<table class="system-info"> 283 <tr> 284 <td>$maintxt{'error_description'}</td> 285 </tr> 286</table> 287<table class="system-info-body"> 288 <tr> 289 <td>{yabb errormessage}</td> 290 </tr> 291</table> 292<br /><div style="width: 100%; text-align: center;"><a href="javascript:history.go(-1)">$maintxt{'193'}</a></div> 293~; 294 295 2961; 297