Staredit Network

Staredit Network -> Miscellaneous -> PHP Help
Report, edit, etc...Posted by BeeR_KeG on 2005-04-25 at 18:55:44
Alright as most of you know I'm running http://www.beerkeg.t-rh.com/ and that the only way to submit content it by manually sending me an e-mail and me manually changeing the HTML codes so that you can download the file and view it.

Well, I plan on making an HTML form for the moment where you can e-mail me the content you want to submit automatically by just filling out the boxes and attaching the file, much like an e-mail, but you don't have to open up your e-mail and all that stuff.

I think a better way would be using PHP similar to that of SEN's DLDB. I that it won't be that difficult really because I plan on keeping it simple. I plan on having one of the following two ways.

Create a PHP form page much like the one in the DLDB. Then you would create a separate Admin page where once a person uploads his file it will be brought there for approval. I can automatically download it from there.

Now here is the part where one of two thigns can be done:
1) Just move the approved files to an approved section where I know that that is my job to edit my HTML page. It'll be more organized for me instead of the current way I'm using and I can do it faster.

2) If you can edit an HTML file from another PHP file then that'd be great. I could just hit approve and the file will automatically appear in it's respective section without me having to ever touch the HTML files. If this one is possible then it would eb nice to have a "Content Manager" Registration so that people other than me can help out.

Either of these ways is good. The important thing is that people can easily submit content. Anyone willing to take this job can say so. PHP knowledge is needed and thats pretty much he only requirement. Once we can start working, I'll give you more specific details on directories, and what specific things I need for the work you will be doing.

All I can offer in exchange for this work is my thanks, a spot in the credits & thanks page in my site and maybe a position.
Report, edit, etc...Posted by RexyRex on 2005-04-25 at 19:39:10
Maybe later.
Report, edit, etc...Posted by LegacyWeapon on 2005-04-25 at 19:45:13
I can probably make you an extremely crude way of doing this. I highly doubt you'd want it. What I would plan on doing would be:

Person submits form and it creates a page about the stuff the person submitted. You see the list of files that only admin can see. You look through the pages. You press accept, it will make an entry of that on the list of files able to be downloaded. You press decline, it deletes the page and removes the entry.

The fastest I would get back to you would be tomorrow. I dunno, it'd take me quite some time too and be very inefficient. RexyRex can probably do it perfectly for you tongue.gif

She can put off my page for a while since I really don't need it.
Report, edit, etc...Posted by RexyRex on 2005-04-25 at 19:48:54
Just make a MySQL coulum which is tinyint(1). Name it validated. And then on the download page do select * from downloads where validated = 1.

To validate it do select * from downloads where validated = 0.

Make a link, and then...bleh.

Don't want to explain, figure it out. dry.gif
Report, edit, etc...Posted by BeeR_KeG on 2005-04-25 at 20:25:10
I only need that it works not be fancy. Don't rush yourself really, in this case it's quality > speed.

Only thing that needs to look decent si the place where users submit their file. Which would be something similar to this:

CODE

_____________________ <-- Name of File to submit here

_____________________ <-- Author of file to submit here

_____________________ <-- Insert what type of file it is: UMS Map(What type of map),                                             Melee Map, Article(What type of article), screenshot or replay

_____________________
_____________________ } Insert
_____________________ } File
_____________________ } Description
_____________________ } Here

_____________________ <-- insert File Here


Now the admin section of this can look anyway you want, just make it so that it is understandable.


I sort of understand what RexyRex is trying to say.

Make a page in MySQL where all submited uploads will be uploaded to. I then approve them and do something like this:

*NOTE: This is some invented code I just made*

Display=1 if {inputtype="checkbox" is "checked}

Now in the downloads section I can put this:
if <a href="link">=1 then {display the download}

I really have no clue how to code all of this.
Report, edit, etc...Posted by chuiu on 2005-04-25 at 20:34:23
You should look around http://www.hotscripts.com

They have tons of free premade scripts for just that purpose ... and tons for everything else.
Report, edit, etc...Posted by RexyRex on 2005-04-25 at 23:21:05
Put it this way.

You have a downloads table that holds the files ID's, names, submitters, validation, and file creator.

You have most of that info put in via HTML form.

Then use MySQL to have the data inserted and viewed.

Then use my post up there for validation issues.
Report, edit, etc...Posted by IsolatedPurity on 2005-04-27 at 08:35:45
Why not use this need to start learning? tongue.gif
Report, edit, etc...Posted by RexyRex on 2005-04-27 at 09:56:17
If you do...I'll be on MSN.
Along with Yoshi and IP.

So no worries. happy.gif

(Yeah, it'd be a lot better if you did it yourself with help from other people. It's how I learned. wink.gif)
Report, edit, etc...Posted by BeeR_KeG on 2005-04-27 at 16:42:12
Hehe I already started learning a bit biggrin.gif

CODE

<html>
<body>
<?php

//I have a bit of a clue about what I'm doing
/* If someone can tell me how to use a PHP file I'd be thankfull. As of now, I'm only learning how to write it and I can't seem to find how to use it in W3Schools PHP Tutorial */

&txt1="Am I doing this right?";
&txt2="I still have lots to learn.";
echo &txt1 . "I know that" . &txt2

?>
</body>
</html>


I can't see the file in Firefox the way I used to when making my HTML. How can I view that code on my browser?
Report, edit, etc...Posted by IsolatedPurity on 2005-04-27 at 22:43:34
By opening the file itself...
www.blahblah/whatever.php
Next Page (1)