Wow the forumotion form looks awesome!
Can you guys share how we can implement this trick into our forums??
Can you guys share how we can implement this trick into our forums??
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
<form enctype="multipart/form-data" name="post" method="post" action="/post">
<div class="panel">
<fieldset>
<dl>
<dt><label>Select Forum :</label></dt>
<dd>
<select name="f">
<option value="1">Forum 1</option>
<option value="2">Forum 2</option>
<option value="3">Forum 3</option>
</select>
</dd>
</dl>
<dl>
<dt><label>Topic title :</label></dt>
<dd><input type="text" name="subject" class="inputbox medium"/></dd>
</dl>
<dl>
<dt><label>Message :</label></dt>
<dd><textarea id="text_editor_textarea" name="message"></textarea></dd>
</dl>
<div style="text-align:center;">
<input class="button1" name="post" value="Send" type="submit"/>
<input name="mode" value="newtopic" type="hidden"/>
</div>
</fieldset>
</div>
</form>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<title>Automaatne formaatija</title>
<style>
#container {
position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
#container hr {
width:80%;
height:1px;
border:none;
background:#cbcbcb;
}
#container select {
padding:5px;
margin:20px;
outline:none;
}
#continue {
border:1px solid #cbcbcb;
background:#FAFAFA;
border-radius:3px;
padding:5px 10px;
margin:20px;
-webkit-transition:box-shadow .5s, background .5s;
-moz-transition:box-shadow .5s, background .5s;
-o-transition:box-shadow .5s, background .5s;
transition:box-shadow .5s, background .5s;
outline:none;
color:#3B5998;
}
#continue:hover {
background:#f2f2f2;
box-shadow:0px 0px 2px #ccc;
}
#continue:active {
background:#B3B3B3;
}
#container h1 {
text-align:center;
}
#container h1, #container h2 , #container h3 , #container h4 {
font-family:"Segoe UI";
font-weight:Lighter;
}
input[type=radio] {
visibility:hidden;
display:none;
}
input[type=radio] + label {
margin-bottom:5px;
}
input[type=text] {
outline:none;
border:1px solid #cbcbcb;
font-family:"Segoe UI";
width:225px;
margin:5px 0px;
padding:5px;
}
label {
display: inline-block;
cursor: pointer;
position: relative;
padding-left: 20px;
margin-right: 15px;
font-size: 15px;
font-family: sans-serif;
}
label:before {
content: "";
display: inline-block;
border:1px solid #cbcbcb;
border-radius:100%;
width: 16px;
height: 16px;
margin-right: 10px;
position: absolute;
left: 0;
bottom: 0px;
}
input[type=radio]:checked + label:before {
content: "\2022";
color: rgba(0,0,0,0.6);
font-size: 30px;
text-align: center;
line-height: 18px;
}
.holder {
width:470px;
height:470px;
margin:0px auto;
}
#time {
width:60px;
}
#imgr {
background:#121211;
width:60px;
height:25px;
border-radius:3px;
padding:10px;
}
#upld {
width:80px;
height:30px;
padding:10px;
}
button {
cursor:pointer;
}
textarea {
resize:none;
width:500px;
height:200px;
}
#other_link {
font-family:"sans-serif";
}
</style>
<div id="container">
<h1 id="info">1. Täida taotlus</h1>
<hr />
<div class="holder">
<center>
<select id="srvrs" >
<option value="" selected="selected">Serverid</option>
<option value="pub">1# Relax Publik</option>
<option value="jb">2# Relax Jailbreak</option>
<option value="hns">3# Relax HNS</option>
<option value="surf">4# Relax Surf</option>
<option value="war3">5# Relax WAR3FT</option>
<option value="dr">6# Relax Deathrun</option>
<option value="zm">7# Relax Zombie</option>
</select><br />
</center>
<div class="nimi" style="display:inline-block">
<h2>Su nickname</h2>
<input type="text" id="nimi" />
</div>
<div class="reason" style="display:inline-block">
<h2>Põhjus</h2>
<input type="text" id="reason" />
</div>
<div class="bannija" style="display:inline-block">
<h2>Kes bannis?</h2>
<input type="text" id="banner" />
</div>
<div class="aeg" style="display:inline-block">
<h2>Kellaaeg?</h2>
<input type="text" id="time" maxlength="5" />
</div><center>
<br/> <div class="pilt" style="display:inline-block">
<h2>Pilt</h2>
<a href="http://www.imgur.com" target="_blank" ><img src="http://s.imgur.com/images/imgur.gif" id="imgr" /></a>
<a href="http://www.upload.ee/" target="_blank"><img id="upld" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMsAAABHCAMAAACeV0OiAAAABGdBTUEAAL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Xmg2HZCnmHiYTpkmeU0x4FXwDKyY4Cjxa0ysOjS9Ypit/Sy+uc/p5Br0rDxDo/qarqZJfD9BhLoGMZoDAIwtpHB0qiPdpfVA8564P+PsLFhEaHQrr0532W+RAnQVB6R1BPV5XEHOm9I586Kq+C1RkyG2yr2rbPSUnE05bE12PMGS8/HiEbsrbPKgNyggD4Ydi5rSB8YGI0DvwROaZYqfpzn2fHFoLqqDlUzxpoGcbaz/kiyjzPO1116pyDlff5kVJEwJqTn/wj0mSft/v87Oet8Cuj9nnA+0OZHwEqLAxt3psux3gieg+h1WI38R1Bfu5Lv8urPSa4hgNkfoJ1Nq9LSJuqUmVlRIlrYilwGpz4CLMAQwAzg4ATDM5Px+f/1/fU5anLU5enLk9dnro8dXnq8tTlqcv/oi7/AfLoS38h0xYVAAAAAElFTkSuQmCC" /></a>
<br /><input type="text" id="pilt" />
</div></center>
<div class="ready">
<input id="other" type="text" style="width:300px" />
<center><textarea id="ready" ></textarea>
<p id="other_link">Taotluse saad postitada <a id="other_link_link" href="#">siia</a>.
</div></center>
</div>
<center><button id="continue" onClick="fifth()">Edasi</button></center>
</div>
<script>
$("#other").hide();
$(".ready").hide();
$("#other_link").hide();
function fifth() {
var vreason = $('#reason').val();
var vnimi = $("#nimi").val();
var vbanner = $("#banner").val();
var vpilt = $("#pilt").val();
var vaeg = $("#time").val();
var vserver = $(".holder option:selected").val();
if(vnimi == "" || vreason == "" || vbanner == "" || vpilt == "" || vaeg == "" || vserver == "" ) {
alert("Taotlus on poolik :/");
} else {
$("#other").show();
$(".reason").hide();
$(".bannija").hide();
$("#srvrs").hide();
$(".aeg").hide();
$(".pilt").hide();
$(".nimi").hide();
$(".pilt").hide();
$("#info").text("Valmis!");
$(".ready").show();
$("#other").val("[Unban] " + vnimi + " & [Kaebus] " + vbanner );
$("#ready").text("[b]Nickname: [/b][i]" + vnimi + "[/i] \n" + "[b]Kelle poolt banni on saadud: [/b][i]" + vbanner + "[/i] \n"+ "[b]Aeg: [/b][i]" + vaeg + "[/i] \n" + "[b]Põhjus: [/b][i]"+vreason+"[/i] \n" + "[b]Pilt: [/b]"+" [url="+vpilt+"]Ban pilt[/url]");
$("#other_link").show();
}
if(vserver == "pub") {
$("#other_link_link").attr("href", "http://goo.gl/qpq2G0");
} else if( vserver == "jb") {
$("#other_link_link").attr("href", "http://goo.gl/nceIBG");
} else if(vserver == "hns") {
$("#other_link_link").attr("href", "http://goo.gl/nUUp2v");
} else if(vserver == "surf") {
$("#other_link_link").attr("href", "http://goo.gl/sPK1pD");
} else if(vserver == "war3") {
$("#other_link_link").attr("href", "http://goo.gl/frDk0m");
}else if(vserver == "dr") {
$("#other_link_link").attr("href", "http://goo.gl/3SMbvr");
} else if(vserver == "zm") {
$("#other_link_link").attr("href", "http://goo.gl/CSRV1I");
} else {
$("#other_link_link").attr("href", "#");
}
}
</script>
Sorry, sometimes these topics float past me...PA wrote:Ange..
"you'll need to create a javascript which adds a menu for specific forums. I'd need to know your forum version for this"
Please, reveal your secrets to us proles!
.dropdown {
background:#EEE;
border:1px solid #CCC;
padding:3px;
position:absolute;
}
$(function(){
var page = '/h1-', forums = '1|2|3|4';
$('.i_post').parent().each(function(){
if (RegExp('/post\\?f=('+forums+')&mode=newtopic').test($(this).attr('href'))) {
$(this).after('<div class="dropdown" style="display:none;"><p>Select a mode</p><a href="'+page+'">Advanced</a><a href="'+$(this).attr('href')+'">Simple</a></div>').click(function() {
var a = $(this).next();
a.css('display') == 'none' ? a.css('display','block') : a.css('display','none');
return false;
});
}
});
});
page : the link to your HTML page.
forums : the id of the forums you want this applied to. IDs should be separated by |
var page = '/h1-', forums = '1|2|3|4';
$(function(){
var page = '/h1-', forums = '1|2|3|4|45';
$('.i_post').parent().each(function(){
if (RegExp('/post\\?f=('+forums+')&mode=newtopic').test($(this).attr('href'))) {
$(this).after('<div class="dropdown" style="display:none;"><p>Select a mode</p><a href="'+http://www.pottersarmy.net/h8-hope-this-works+'">Advanced</a><a href="'+$(this).attr('href')+'">Simple</a></div>').click(function() {
var a = $(this).next();
a.css('display') == 'none' ? a.css('display','block') : a.css('display','none');
return false;
});
}
});
});
$(function(){
var page = 'http://www.pottersarmy.net/h8-hope-this-works', forums = '1|2|3|4|45';
$('.i_post').parent().each(function(){
if (RegExp('/post\\?f=('+forums+')&mode=newtopic').test($(this).attr('href'))) {
$(this).after('<div class="dropdown" style="display:none;"><p>Select a mode</p><a href="'+page+'">Advanced</a><a href="'+$(this).attr('href')+'">Simple</a></div>').click(function() {
var a = $(this).next();
a.css('display') == 'none' ? a.css('display','block') : a.css('display','none');
return false;
});
}
});
});
Ange Tuteur wrote:Hi @PA,
We cannot give out the form, but you can ask permission to the original author if you like.
As for your questions, to change the new topic button, you'll need to create a javascript which adds a menu for specific forums. I'd need to know your forum version for this
As for the form itself, you'll need to create an HTML page. Here's a quick example I wrote up :
Administration Panel > Modules > HTML pages management > Create a new HTML
Use your forum header / footer : Yes
- Code:
<form enctype="multipart/form-data" name="post" method="post" action="/post">
 <div class="panel">
  <fieldset>
   <dl>
    <dt><label>Select Forum :</label></dt>
    <dd>
     <select name="f">
      <option value="1">Forum 1</option>
      <option value="2">Forum 2</option>
      <option value="3">Forum 3</option>
     </select>
    </dd>
   </dl>
  Â
   <dl>
    <dt><label>Topic title :</label></dt>
    <dd><input type="text" name="subject" class="inputbox medium"/></dd>
   </dl>
  Â
   <dl>
    <dt><label>Message :</label></dt>
    <dd><textarea id="text_editor_textarea" name="message"></textarea></dd>
   </dl>
  Â
   <div style="text-align:center;">
    <input class="button1" name="post" value="Send" type="submit"/>
    <input name="mode" value="newtopic" type="hidden"/>
   </div>
  </fieldset>
 </div>
</form>
Result (phpbb3) :
Some more advanced methods would require JavaScript to add some field values to the message body.