Draco Posted June 18, 2007 Posted June 18, 2007 Copy the following and save it as cstaff.php This produces a form that has a select list of all members with a user_level greater than 1, the list is ordered by user_level. Subject of mail is set to "Staff contact form". You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. *edit to change filename Quote
Cronus Posted June 19, 2007 Posted June 19, 2007 Re: Contact Staff Form [FREE] What version of the code does the mass mail function come in? Doesn't it have an option to mass mail just staff? Wouldn't this be the same thing? Quote
-Matt- Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] looks like v1 can any 1 convert it to v2 for me Quote
$$ ?????? $$ Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] <?php include "globals.php"; if($_POST['go']) { $to = (int) $_POST['staff']; $_POST['text'] = strip_tags($_POST['text']); $msg = str_replace(array("\n"),array(" "),htmlentities($_POST['text'])); mysql_query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'Staff contact form','$msg')",$c) or die(mysql_error()); print "Your mail to the selected staff member has been sent. Please allow 24 hours for a response to be returned. Thank You. "; } else { $q=mysql_query("SELECT * FROM users WHERE user_level > 1 ORDER BY user_level",$c); print "Contact Staff <form action='cstaff.php' method='post'> Staff Member: <select name='staff'>"; while($z=mysql_fetch_array($q)) { print "<option value='{$z['userid']}'>{$z['username']}</option>"; } print "</select> Message to staff member: <textarea name='text' rows='7' cols='40'>Send a mail to the selected staff member</textarea> <input type='hidden' name='go' value='true'> <input type='submit' value='Send' /> </form>"; } $h->endpage(); ?> Their I Converted it To V2 For You :wink: Quote
Isomerizer Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] Woah you deleted You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replaced it with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Genius. :roll: Quote
-Matt- Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] lol i did not look at that Quote
-Matt- Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] is there a missing part i send the pessage then it comes up with cstaff.php with i dod not have wat thd code for that? Quote
Isomerizer Posted July 12, 2007 Posted July 12, 2007 Re: Contact Staff Form [FREE] is there a missing part i send the pessage then it comes up with cstaff.php with i dod not have wat thd code for that? Probaly where bullet didnt convert it properly.... Quote
-Matt- Posted July 13, 2007 Posted July 13, 2007 Re: Contact Staff Form [FREE] can any 1 finish then? Quote
oxidati0n Posted July 13, 2007 Posted July 13, 2007 Re: Contact Staff Form [FREE] What version of the code does the mass mail function come in? Doesn't it have an option to mass mail just staff? Wouldn't this be the same thing? By the looks of it, It allows normal members to mail staff. mass mail is only for staff. Quote
$$ ?????? $$ Posted July 14, 2007 Posted July 14, 2007 Re: Contact Staff Form [FREE] matt i converted it to v2 for you and i didn't miss out anything btw Quote
Isomerizer Posted July 14, 2007 Posted July 14, 2007 Re: Contact Staff Form [FREE] matt i converted it to v2 for you and i didn't miss out anything btw Yes you did, in other v2 conversions ive seen before the mysql query they have something like $db-> Quote
Draco Posted July 14, 2007 Author Posted July 14, 2007 Re: Contact Staff Form [FREE] What version of the code does the mass mail function come in? Doesn't it have an option to mass mail just staff? Wouldn't this be the same thing? This is for players to mail staff. ------------------------------------ is there a missing part i send the pessage then it comes up with cstaff.php with i dod not have wat thd code for that? You did copy that code and saved it in a file as cstaff.php correct? If not find the line: <form action='cstaff.php' method='post'> Change cstaff.php to whatever you named the file ------------------------------------ As for v2 conversion.....I have never seen v2 code, can't help there... Quote
Magictallguy Posted July 15, 2007 Posted July 15, 2007 Re: Contact Staff Form [FREE] Is there any way to get this mod to send an e-mail to the actually e-mail address of the staff members? And for the staff members to choose if they wish to be listed? If so please post :-) Quote
Jesse60905 Posted July 25, 2007 Posted July 25, 2007 Re: Contact Staff Form [FREE] V2 converted properly: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I am 99.9% sure that will work. I own both V1 and V2 so I convert often =) Quote
John99 Posted July 25, 2007 Posted July 25, 2007 Re: Contact Staff Form [FREE] yeah mysql_ replace with $db-> and in some in v1 if fetch_array some times in v2 num_row or rows hehe Quote
gurpreet Posted October 20, 2007 Posted October 20, 2007 Re: Contact Staff Form [FREE] Thanks Very Much Jesse60905 works perfectly. +1 :mrgreen: Quote
Jesse60905 Posted October 21, 2007 Posted October 21, 2007 Re: Contact Staff Form [FREE] I feel special :-D Quote
halo2master Posted October 22, 2007 Posted October 22, 2007 Re: Contact Staff Form [FREE] This is what it should be this works tested on my game. as Jesse60905 did not convert it propaly i think :roll: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Jesse60905 Posted October 23, 2007 Posted October 23, 2007 Re: Contact Staff Form [FREE] V2 converted properly: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I am 99.9% sure that will work. I own both V1 and V2 so I convert often =) VS. This is what it should be this works tested on my game. as Jesse60905 did not convert it propaly i think :roll: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Yeah... I did that when just learning. Looking over it again I do see quite a few places where I messed up. But I still feel special =) Thanks Very Much Jesse60905 works perfectly. +1 :mrgreen: Quote
A12Alex Posted October 23, 2007 Posted October 23, 2007 Re: Contact Staff Form [FREE] thats all well and good but it's better to let the staff know that you have sent the message. so were do i add? lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Klikoka Posted November 4, 2007 Posted November 4, 2007 Re: Contact Staff Form [FREE] nice mod +1 :-D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.