Guests can add news

Download plugins, language packs and stuff.

Guests can add news

Postby FI-DD » Tue Apr 18, 2006 8:14 pm

With this file you can allow your guests to post news without being a user of your page.

Of course, the news only appear on your page after you approved them.



Installation:

Put the file into your main CuteNews.RU directory and change the configuration in the head of the file.

Pay attention to the installation instruction in the head of the file.



Edit:

This hack now supports the captcha hack.
Attachments
guest.zip
guest.php
(2.18 KiB) Downloaded 792 times
Last edited by FI-DD on Fri Nov 30, 2007 2:59 pm, edited 4 times in total.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby joshers » Tue May 02, 2006 4:30 pm

Its working great.

Preview: http://readourpapers.com/submit



thanks FI-DD
joshers
 
Posts: 68
Joined: Mon Nov 14, 2005 8:03 am

Postby Falconer » Sat Jun 10, 2006 12:44 pm

Yup, works good, but... Has a bug when used in conjuntion with the Multiple Authors mod: The authorname is changed into whoever is listed at the top of the pull down menu of authors.
Falconer
 
Posts: 50
Joined: Wed Feb 01, 2006 10:51 pm

Postby afxback » Wed Jun 14, 2006 2:38 am

It is very usefull but one bug said in the previous post. The other important thing is it dose not mail the news posts to admin. while it is too necessary to recieve an email from guest posters when the item posted.



Thanks
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Wed Jun 14, 2006 1:53 pm

1. Bug:

I changed the multiple authors plugin (download it again) - it should work now.



2. Mail:

You can add a simple mail(); command right above the thank you message in guest.php:

Code: Select all
mail("mail@yourdomain.com", "New guest news", "There's a new guest news", "From:mail@yourdomain.com");
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby afxback » Wed Jun 14, 2006 6:24 pm

dear FI-DD!

you'r very helpnig people! ok. all fro free!

Thanks. it works well.

can I add also the command to track guest Ip who posts news as is implemented in commenting section?

and how can prevent from flood posting?

could you explain it here if possible?

I realy need this script but now I fear if guest feel free to post too much since I have high trafic.

regards
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Wed Jun 14, 2006 7:11 pm

That's already part of the hack. Please, have a look at the head of the file:

Code: Select all
//Config maximum unapproved

$max_unapproved = 50;

///////////////////////////
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby afxback » Wed Jun 14, 2006 11:37 pm

sorry!

that is fine.

sory for asking again.

why It dose not display the "default value" of xfields?
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby scottdallas » Thu Jun 15, 2006 12:37 am

i dont know how i skipped this little gem. this is fantastic for submitting videos to flixrating.com
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby scottdallas » Sat Jul 01, 2006 2:05 am

If I set max unapproved to 0 does it translate to unlimited? I got 999 for now just in case. Do you think spammers would spam on this? Does captcha work on this? Not necessary? Mostly I was interested in the 0/unlimited thing though..
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Sat Jul 08, 2006 6:38 pm

0 doesn't work as unlimited.



Captcha (with modifications) should work.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby FI-DD » Thu Jul 20, 2006 10:34 am

This hack now supports the captcha hack. If you don't have it yet you can download it in the captcha thread.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Thu Jul 20, 2006 3:32 pm

wow! fantastic work fi-dd. i hope you make lots of money for how smart you are. thanks for lettin me know about the '0'. i put it at 9999999999999999 now i figured that would be plenty of room. im stickin captcha in right now.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby afxback » Mon Jul 24, 2006 12:34 am

an it configure so that in a separate file with another name you can post through it as admin, without approval?

I mean concerning security isuess as well
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby scottdallas » Thu Jul 27, 2006 2:27 am

it looks like it's a pretty basic submission form. i dont think it even pays attention to what username you put in there. i usually make an 'admin' account standard on every cutenews.ru installation and i can say im admin with the guest can add news and i have to go check it out as the REAL admin and be like.. ok that's not really from the admin.. then i use my multiple authors hack and put the correct person on it.. or just change the name all together to something else. i dont think there is anyway to use this guest can add news hack to submit news without approval first. if you're going to do that just add news regular style logged in. although i noticed if i really ripped apart pieces of cutenews that i shouldn't have such as the stylesheet or the nav bar at the top of cutenews, i can make it look like the add news page is the guest can add news page.. then i can have a more powerful submit news area that recognizes usernames and whether or not you're logged in.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron