PDA

View Full Version : Looking for two scripts..



djyox
October 26th, 2006, 02:19
The first on the list is a contact forum. I have a PHP script now, but I can't get it to work (cuz I messed with it...)

The big thing with this script is though, is I want to be able to upload/send pictures, up to 4 at a time.... also have a few spots they can fill in more so than just a message box.

If you would like to see what I was trying to do go to:
http://www.brapski.com/contact.php











2nd script I am looking for, is one that would let someone edit their own page. I posted up about this before, got some good answers, but not exactly what I am looking for as of yet.

Take a look at this page: http://www.brapski.com/sxrfor.html

By looking at that page, I want the user to be able to edit the pictures and info such as:
Year
Make
Model
Color
Ski and you
Current Mods
Future Mods


Any way we can get something like that? just a basic script, password/login... If you know of one, or maybe where I can search for one myself, please pass on any info that could help me... Thanks a lot guys!!:beer:

krakjoe
October 26th, 2006, 05:37
<?php session_start();
error_reporting(0);
/**
* Contact form with file uploads
**
* Settings
**/
$uploads = true; # switch to false to disable
$upload_fields = 10; # Upload fields
$reply_to = ""; # Reply to email address
$uploads_dir = "uploads/";# CHMOD to 777
$admin_email = "KRAK_JOE@hotmail.com"; # Email addres to send contact to
$script_url = "http://mycpanelbackup.com/uploads/"; # Include trailing /

if ($_POST)
{
foreach ($_POST as $key => $value)
{
if ($value == "") {
$msgs[] .= "Please fill in $key";
}
}
if ($msgs == "") {
foreach ($_FILES["pix"]["error"] as $key => $error)
{
if (isset($_FILES["pix"]["filename"]))
{
if ($error == UPLOAD_ERR_OK)
{
$tmp_name = $_FILES["pix"]["tmp_name"][$key];
$name = $_FILES["pix"]["name"][$key];
move_uploaded_file($tmp_name, $uploads_dir . "/" . $name);
}
else {
if ($name != "")
{
$msgs[] = "Uploading of $name failed";
}
}
}
}
$message .= "<b>Details :</b><br>";
foreach ($_POST as $key => $value)
{
if ($key != "Submit")
$message .= "<b>$key :</b> $value<br>";
}
foreach ($_FILES['pix']["name"] as $value)
{
if ($value != "")
$message .= "<img src=\"$script_url$uploads_dir$value\"></img><br>";
}
}
if ($message)
{
if (mail($admin_email, "New message from $_POST[name]", $message, "From: ".$_POST['name']."\nReply-To:".$_POST['email']."\nContent-Type: text/html"))
{
$msgs[] = "Email Sent";
}
else {
$msgs[] = "Email NOT sent";
}
}

}
?>
<form action="" method="post" enctype="multipart/form-data">
<table width="100%" border="0" align="left" cellpadding="5" cellspacing="0">
<tr>
<td colspan="2">
<?
foreach ($msgs as $value) {
echo $value . "<br>";
}
?>
</td>
</tr>
<tr>
<td>Name/User Name/Screen name:</td>
<td><input name="name" type="text" id="name" value="" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input name="email" type="text" id="email" value="" /></td>
</tr>
<tr>
<td>Year:</td>
<td><input name="year" type="text" id="year" value="" /></td>
</tr>
<tr>
<td>Make:</td>
<td><input name="make" type="text" id="make" value="" /></td>
</tr>
<tr>
<td>Model:</td>
<td><input name="model" type="text" id="model" value="" /></td>
</tr>
<tr>
<td>Color:</td>
<td><input name="color" type="text" id="color" value="" /></td>
</tr>
<tr>
<td>Ski and You:</td>
<td><textarea name="skiyou_text" cols="40" rows="4" id="skiyou_text"></textarea></td>
</tr>
<tr>
<td>Current Mods:</td>
<td><textarea name="curmods_text" cols="40" rows="4" id="curmods_text"></textarea></td>
</tr>
<tr>
<td>Future Mods:</td>
<td><textarea name="futmods_text" cols="40" rows="4" id="futmods_text"></textarea></td>
</tr>
<tr>
<td>Picture Upload: </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="pix[]" type="file" id="user_file" /></td>
</tr>
<tr>
<td><input name="pix[]" type="file" id="user_file" /></td>
</tr>
<tr>
<td><input name="pix[]" type="file" id="user_file" /></td>
</tr>
<tr>
<td><input name="pix[]" type="file" id="user_file" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Send Contact" />
</div></td>
</tr>
</table>


Contact form for you ...... and the second one, you want them to have an online html editor or what ?

djyox
October 26th, 2006, 06:02
Well, I just want them to fill in a few blanks, and be able to upload pictures. and place them in either their main picture spot, or bottom spots.

But if you wanted to get real detailed, it would be more than fine to let them edit text, colors on the main page (not to let them edit the website's template) , even if I could just keep the top and bottom of the page as is and uneditable.


I may not be making it clear what I am looking for, but really, I almost want their own "myspace page" but not as editable, and I don't want the forums/chat/etc... Just let them edit their own page, and text.... Maybe if they want to pick to use HTML editor they can, but really just need them to fill in some blanks, and upload thier pictures, and maybe pick from a few color themes...

djyox
October 26th, 2006, 06:07
Contact form for you ...... and the second one, you want them to have an online html editor or what ?
I already do have a config.php script.... It would be www.brapski.com/config.php

Do you think maybe you could tell me what you edited? I need to learn whats going on, and do that best by looking at whats wrong, and whats right....

Sorry I'm at work, and can't get to an FTP uploader to try to cut and copy code...

krakjoe
October 26th, 2006, 06:16
I can't see the contents of config.php and don't really know what it's for.....

You can see the script working @ http://mycpanelbackup.com/uploads

So, you want something close to a profile page ?

djyox
October 26th, 2006, 06:21
actually, that is what I want is a profile page... But more user friendly to edit... and easy for members and non-members to view the page.

I also plan on using a user picture gallery maybe even using the the same user login/pass. The only thing that is holding me from downloading a premade setup is I really want to stick to the site's layout that it has now..



Thanks for all the help!!!

krakjoe
October 26th, 2006, 06:24
when u finish work contact me on my username at hotmail dot com on messenger and I'll see what I can do .....

djyox
October 26th, 2006, 06:27
its 5:15am now, I don't get home from work untill 9am.. But I will message you as soon as home.

djyox
October 26th, 2006, 06:30
Honestly, if I can get a user able to edit their own page, I don't have a need for the email script. I just wasn't sure if anyone would actually be able to make me what I wanted....

Thanks for helping out in advance!

djyox
October 26th, 2006, 10:14
http://www.free-php-scripts.net/P/Contact_Form

This is the script I chopped into to add more areas to fill out, and files to upload at once....

Any help with this?

djyox
October 26th, 2006, 10:31
After doing some more searching, I may be able to find the script I want though hotscripts.com....maybe....