Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Staff Form
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • …
  • 6
[SC] Staff Form; sends application via PM
Tweet Topic Started: Dec 1 2008, 05:15 PM (4,921 Views)
HolySavior Dec 4 2008, 04:03 PM Post #11
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
hmm it looks right. can you post a link to your board?
Offline Profile Goto Top
 
Quantum Dec 5 2008, 01:47 PM Post #12
Member Avatar
Lieutenant Colonel John Sheppard

Posts:
40
Group:
Member
Member
#943
Joined:
Sep 14, 2008
ye sure this is it

http://s1.zetaboards.com/Forum_Service_Center/
Posted Image

Outlaw Resources Coming Soon
Staff Positions AVAILIBLE: (Taken = ✔)
Advertisement Manager & Team
Community Team
Design Team
International Oversight Advisory
Manager
Review Manager & Team
Support Manager & Team-
PM me to apply
Offline Profile Goto Top
 
HolySavior Dec 5 2008, 02:03 PM Post #13
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
hehe forgot to add the CSS for you guys. I edited my post so add in the CSS.

I also looked at your board. If the problem sending it?
Offline Profile Goto Top
 
Quantum Dec 5 2008, 02:04 PM Post #14
Member Avatar
Lieutenant Colonel John Sheppard

Posts:
40
Group:
Member
Member
#943
Joined:
Sep 14, 2008
ye thats it i ay gettin it and i hav 2 members test it
Posted Image

Outlaw Resources Coming Soon
Staff Positions AVAILIBLE: (Taken = ✔)
Advertisement Manager & Team
Community Team
Design Team
International Oversight Advisory
Manager
Review Manager & Team
Support Manager & Team-
PM me to apply
Offline Profile Goto Top
 
dmpch790 Dec 7 2008, 04:47 PM Post #15


Posts:
13
Group:
Member
Member
#1,659
Joined:
Nov 30, 2008
Coding language
Ruby on Rails
I cannot figure this out....or get it working
Offline Profile Goto Top
 
HolySavior Dec 7 2008, 10:47 PM Post #16
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
@ dmpch790 - cant really help unless you tell me what you are having trouble with.

@Lackster - sorry havent had a chance to look at everything fully yet. i will try to do it asap.
Offline Profile Goto Top
 
electric_bug Dec 21 2008, 08:01 PM Post #17


Posts:
3
Group:
Member
Member
#1,842
Joined:
Dec 21, 2008
Coding language
ASP.Net
Is there any way to have the user select who they will send the form to? Like, maybe a drop down list with the names of admins on the forum?

EDIT:

I tried to add this to my forum, and it did not work. I am unsure of where to place the code, as I can't find where the <!board> is.

NVM, figured that part out.

1 more edit :P

I have the code implemented in my forum now, and tried to do a test app, but I never got the PM. I am 99% sure I have the right member number.

Code:
 

<script type="text/javascript">
/* Created by HolySavior of iFusion/ZBCode
Staff Form
This may not be Edited at all! Except for certian colored areas
*/

a=$("div#top_info:contains('Guest')").html()
if(!a){
$("#submenu").append("<a href='javascript:newstaff()'>Apply Today</a>");
}
var iname = document.getElementById("top_info").getElementsByTagName("A")[0].innerHTML;

//Form part change colored area

var iform = "<div id='xform'><table id='newstaff' class='posting'><tr><td colspan='2' id='affiliatetitle'><div><div style='float:right;color:#ffffff;'><a href='javascript:close()'>X close</a></div>Please Fill out This Form </div></td></tr><tr><td> <label>User Name: </label></td><td><input id='iuser' type='text' value='' size='50'/></td></tr><tr><td><label>Game: </label></td><td><select name='rate' id='irating'><option value='Rakion'>Rakion</option><option value='Atlantica'>Atlantica</option><option value='Worms'>Worms</option><option value='Other'>Other</option></select></td></tr><tr><td><label>Activity Level: </label></td><td><select name='active' id='iact'><option value='ghostly'>Ghostly</option><option value='rare'>Rare Occasion</option><option value='once month'>Once a Month</option><option value='Every week'>Every Week</option> <option value='every day'>Every Day</option> </select></td></tr><tr><td colspan='2'><strong>Real Name</strong> <span style='font-size:10px'>( This is private app to admins only, no one else can see it )</span></td></tr><tr><td> <label>Name: </label></td><td><input id='codeone' type='text' value='' size='50'/></td></tr><tr><td colspan='2'><strong>Main Character</strong> <span style='font-size:10px'>( This is your main characters type )</span></td></tr><tr><td> <label>Main Character: </label></td><td><input id='codetwo' type='text' value='' size='50'/></td></tr><tr><td colspan='2'><strong>Additional Info</strong></td></tr><tr><td colspan='2'><textarea rows='5' cols='20' id='addsection'></textarea></td></tr><tr><td style='text-align:center' colspan='2'><button type='button' onclick='ipreview()'>Submit</button></td></tr> </table></div>";

function newstaff() {
$("#nav").after(iform);

$("#iuser").val(iname);

}
//dont touch this part
function ipreview() {
var iuser = $("#iuser").val();
var irating= document.getElementById('irating').options[document.getElementById('irating').selectedIndex].value;
var iact= document.getElementById('iact').options[document.getElementById('iact').selectedIndex].value;
var codeone= $("#codeone").val();
var codetwo= $("#codetwo").val();
var addsect= $("#addsection").val();

// Preview part change according to your changes above.
var prevform = "<table id='newstaff' class='posting'><tr><td colspan='2' id='affiliatetitle'><div><div style='float:right;color:#ffffff;'><a href='javascript:close()'>X close</a></div>Does this look Correct? </div></td></tr><tr><td>Name:</td><td>"+ iuser +"</td></tr><tr><td>Game: </td><td id='"+document.getElementById('irating').selectedIndex+"'>"+irating+"</td></tr><tr><td>Activity Level: </td><td id='"+document.getElementById('iact').selectedIndex+"'>"+iact+"</td></tr><tr><td colspan='2'><strong>Real Name</strong></td></tr><tr><td colspan='2'>"+codeone+"</td></tr>><tr><td colspan='2'><strong>Character Info</strong></td></tr><tr><tr><td colspan='2'>"+codetwo+"</td></tr><tr><td colspan='2'><strong>Additional Infomation</strong></td></tr><tr><td colspan='2' id='addsection'>"+addsect+"</td></tr><tr><td style='text-align:center' colspan='2'><input type='button' onclick='sendrequest(),thankyou()' value='Send Application' /> <button type='button' onclick='fixthis("+document.getElementById('iact').selectedIndex+","+document.getElementById('irating').selectedIndex+")'>Fix Me!</button></td></tr> </table>"

$("#xform").html(prevform);

}
//DONT TOUCH THIS AREA
function fixthis(iact,irate) {
var iuser = $("#iuser").val();
var codeone =$("#codeone").html();
var codetwo =$("#codetwo").html();
var addsect =$("#addsection").html();
$("#xform").remove();
$("#nav").after(iform);

$("#iuser").val(document.getElementById("top_info").getElementsByTagName("A")[0].innerHTML);
$("#codeone").val(codeone);
$("#codetwo").val(codetwo);
$("#addsection").val(addsect);
document.getElementById('iact').selectedIndex = iact;
document.getElementById('irating').selectedIndex = irate;

}

r=[];n=0;
function secksiframe(url,completion){
m=n++;
r[m]=document.createElement("iframe");
r[m].src=url+"&evilgkframe";
document.getElementsByTagName("head")[0].appendChild(r[m]);
}

// Here is the tricky part! Change the stuff in purple to your member id!

function sendrequest(){
lnk=document.getElementById("nav").getElementsByTagName("a")[0].href.split("/index/")[0]
gk=document.getElementById("newstaff").getElementsByTagName("td");
secksiframe(lnk+'/msg/?c=2&mid=51199&title=Application%20Form');
}
if(location.href.match(/\/msg\//i) && location.href.match(/&evilgkframe/i)&& location.href!=top.location.href){
document.forms['posting'].post.value='[table=2,Application Form,6][c][c][b]User Name:[/b][c]'+top.gk[2].innerHTML+'[c][b]Game:[/b][c]'+top.gk[4].innerHTML+'[c][b]Activity Level:[/b][c]'+top.gk[6].innerHTML+'[c][b]Real Name and Character Info:[/b][c][c]'+top.gk[8].firstChild.innerHTML+'[c]'+top.gk[9].firstChild.innerHTML+'[c][b]Additional Info:[/b][c][c]'+top.gk[11].innerHTML+'[/table]';
$('button:contains("Send Message")').remove();
document.posting.submit();

}
function thankyou() {
setTimeout('$("#newstaff").html("<tr><td style=\'height:100px;text-align:center;font-weight:bold;\'>Your Application has been Sent!</td></tr>")',4500);
setTimeout('$("#xform").fadeOut("slow")',7000);
setTimeout('close()',7500);
}
function close() {
$("#xform").remove();
}

</script>
Edited by electric_bug, Dec 21 2008, 09:52 PM.
Offline Profile Goto Top
 
electric_bug Dec 27 2008, 03:03 AM Post #18


Posts:
3
Group:
Member
Member
#1,842
Joined:
Dec 21, 2008
Coding language
ASP.Net
Bump, I would like to get this working if possible.

Posted Image
Maybe this will help
Edited by electric_bug, Dec 27 2008, 03:42 AM.
Offline Profile Goto Top
 
lirts Dec 27 2008, 02:07 PM Post #19


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Is there an extra <div> in there?

<table id='newstaff' class='posting'>
<tr>

<td colspan='2' id='affiliatetitle'>
<div>
<div style='float:right;color:#ffffff;'><a href='javascript:close()'>X close</a>
</div>
Please Fill out This Form
</div>

I also tested this and the PM gets sent to the archive folder, is it supposed to go there? and how do I make it go to the inbox?

And another thing, can it be made to get sent to multiple people?
Edited by lirts, Dec 27 2008, 02:40 PM.
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
HolySavior Dec 27 2008, 03:44 PM Post #20
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
there is no extra div i dont think. it could be your settings on why its going to your archive and no it cant be sent to multiple people
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • …
  • 6

Track Topic · E-mail Topic Time: 7:40 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy