Click to See Complete Forum and Search --> : "article approve script"


lavashark.com
10-11-2005, 06:01 PM
Anyone know any open source scripts out there where basically a user would login, view content and "approve".

Ideal would be where the articles waiting for approval can be added via a specified email address.

GUI doesnt have to be that great. Just login, approve, and once approved sends admin an email notifying.

vaaaska
10-12-2005, 06:05 AM
I wrote one...not public yet (lord knows when I'll get around to it).

This would actually be a rather easy thing to add to one of the nice open source cms packages out there.

Jason Batten
10-12-2005, 09:05 AM
Am I the only one who thinks request like this are insane. You can write one in a day, php is so easy and fun to write.


90% of it is motivation *stares at screen waiting for it to hit*



www.hotscripts.com

vaaaska
10-12-2005, 10:26 AM
It's not so easy to write in one day if you account for validations, 'safe' queries, authentication, probably various permissions, plenty of planning, some design/templating/css, etc., etc., etc. And also if you don't know how to do the above.

Otherwise, sure, do it one day and I'm sure it will be a wonderful product.

Jason Batten
10-12-2005, 11:09 AM
Well ofcourse for a days work it wouldn't have the nicest template ;) plus I'm not the nicest template designer any way!

Security! That's a subject I really don't get or should I say know if I get or not. A lot of resources I read are like "Well DUH!" (not all www.phpsec.org is alright). The "solutions" seem so obvious and more like common sense rather than top security tips. Security is something I really would like to have under my thumb but I really don't know if I do or not. So, any resources are greatly appreicated :)

vaaaska
10-12-2005, 11:17 AM
Research, common sense and trying things out. I'm no expert but when Chris Shiflett talks security and I understand him I feel pretty good. There is no magic forumula to security...you have to put in the time before it will start falling into place for you.

Jason Batten
10-12-2005, 11:56 AM
Shall I go hack myself then?

lavashark.com
10-12-2005, 05:10 PM
Am I the only one who thinks request like this are insane. You can write one in a day, php is so easy and fun to write.

Write in one day! When I look at code I go crazy. Designing I'm not so bad, but I'm taking to the whole programming thing pretty slow.

But anyway, I'll get it down one day.

BuzzLY
10-12-2005, 06:59 PM
Take a look at WordPress (http://wordpress.org/). It's got a lot of features that you may not need, but it does have a publish process that sounds like what you are looking for.

lavashark.com
10-12-2005, 10:36 PM
yeah i checked wordpress but im not looking for an entire cms.

just a place where someone can login, see new articles and simply - - check some checkbox. new articles submitted via email. checkbox notification sent via email.

Just wondering if the kind of thing existed. I guess it doesnt.

BuzzLY
10-12-2005, 11:47 PM
It's difficult to find simple applications like that. If you're looking for something that someone has written, you are most likely going to find a full-fledged application like Wordpress. Otherwise, you might as well write it yourself.

Weedpacket
10-13-2005, 05:56 AM
Yup, if you're looking for a pre-existing app that does what you want, then by definition it's not going to be custom-made for your purpose alone.

Jason Batten
10-13-2005, 06:01 AM
Well, you could have had one done by now ;) or at least a detailed plan if you're like vaaaska :)

vaaaska
10-13-2005, 06:47 AM
Well, you could have had one done by now ;) or at least a detailed plan if you're like vaaaska :)

I never said it would take one day...you did.

But I've done it a few times over now...and I do have enough pre-written scripts that I probably could zip one out in just a day...or even half a day (just like many others around here - I'm not special that way).

lavashark.com
10-14-2005, 01:21 PM
zip it out in one day...

one day.
i'm having trouble calling an array.

man i really need to sit down and just learn this stuff.
any tips/suggestions to grip the basics?

vaaaska
10-14-2005, 01:46 PM
Read. Read. Read. Go read this...you can easily get through the important stuff in an evening.

http://www.hudzilla.org/phpbook/

Jason Batten
10-14-2005, 02:28 PM
Larry Ullman's PHP for the WWW, 2nd Ed. (http://www.dmcinsights.com/phpvqs2/)
His book covers all the basics in detail. His writing styles is excellent and the quick start guides series are brilliant for any noob.

lavashark.com
10-14-2005, 07:37 PM
My library didn't have phpbook, but I did check out Larry Ullman's PHP book (first edition) and his MySQL book.

I'm going on a roadtrip to Colorado on Monday. I will read them then.

Jason Batten
10-14-2005, 10:22 PM
Sounds cool, have fun, safe trip :)

lavashark.com
10-29-2005, 03:33 PM
i finished 2 and a half books.

1.) PHP by Larry Ulman
2.) MySQL by Larry Ulman
1/2.) PHP by Julie C Meloni

still not so smart, but i guess it helped me a little.

Jason Batten
10-30-2005, 01:55 PM
Whats Larry's MySQL one like?

lavashark.com
10-30-2005, 02:06 PM
it has a very similiar style/pace.

I definitely had trouble following it as well because, as i was traveling, i didnt have mysql installed on my local machine.

http://images.amazon.com/images/P/0321127315.01._BO2,204,203,200_PIlitb-dp-500-arrow,TopRight,32,-59_AA240_SH20_SCLZZZZZZZ_.jpg (http://www.amazon.com/exec/obidos/tg/detail/-/0321127315/ref=pd_bbs_null_5/102-9269650-8692966?v=glance&s=books)


some chapters include:
basic stuff
sql
w/ php
w/ perl
w/ java
etc.

NappyHead
06-19-2009, 05:35 PM
I have a simple gallery built that allows anonoymous users to upload images.

I'm trying to set it up to send all uploaded images to a queue to await approval from the admin.

I created a table in my database called imgApp and it defaults to 0.

What I want:
When the admin clicks a checkbox, it sets the column to 1, and the photo will then be published.


if($row->imgApp == 1){

echo '<td align="left">Approved</td>';

}else{

echo '<td align="left">Not Approved</td>';
}



If you can point me to something for me to research to be able to develop this, I'd appreciate. I just don't know how to approach it.

Do I set it up to move the uploaded photos to a different directory (the approved photo directory) when the photo is changed from 0 to 1?

scrupul0us
06-22-2009, 12:17 PM
any tips/suggestions to grip the basics?

1) figure out project goal
2) break project into components
3) research methods needed for each component
4) inevitably fail at implementing each component
5) receive assistance via this and/or other forums/google for said failure
6) fix mistakes and learn valuable programming skills
7) repeat 3-6 until project is done

a little dry but that's the basics...

of course any reading material you can get your hands on certainly helps... and just playing around helps you figure stuff out... i for one tend to be a script kiddie out of pure inquisitive nature (how can I write some code to implement/achieve 'X')... due to this i have a rather extensive script library/toolbox than I can always fall back on to re-use for other things

fun little things you can build:

1) simple sessions based app (3 pages) that authenticates against a hard coded user/pass and lets you see a protected page and then logout (using $_SESSIONS (http://us.php.net/manual/en/book.session.php) or $_COOKIES (http://us.php.net/manual/en/features.cookies.php), try both)

2) using above, try adding a tie in to mysql (http://us.php.net/manual/en/book.mysql.php) for the user/pass and maybe one record of data

3) using either simpleXML (http://us.php.net/manual/en/book.simplexml.php) or DOM (http://us.php.net/manual/en/book.dom.php) pick your favorite RSS/XML feed and make a simple reader to dump/format the data/elements onto the screen in a fun way

Those are three very simplistic ideas that will help you get your feet wet using a variety of PHP functions and methods and give you a reasonable base to continue learning from.