Guests can add news

Download plugins, language packs and stuff.

Postby scottdallas » Fri Jul 28, 2006 11:30 am

Looks like I'm going to have to add captcha to this. Darnit. Well, I'm glad it's available. I logged in to add some news to www.itsgamertime.com and had page 1 and 2 completely full of unapproved BS advertisements all through it. Frustrating. Who does that stuff? What do they think they're gettin away with? It even happens on my phpbb installations. I get sign ups with xanax and phentermine ALL THE TIME! I can't imagine if I had more traffic how much more spam I'd get. I really thought the guest can add news hack wouldn't get spammed though.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

thanks man its wery usefull

Postby RAMI7250 » Thu Aug 10, 2006 3:59 pm

and i have been searching that for along time!



thanks again!
Sorry on my BAD english..
User avatar
RAMI7250
 
Posts: 43
Joined: Wed Jun 07, 2006 10:51 am

Postby afxback » Sun Sep 17, 2006 6:55 pm

I dont know why something in cutenews changes sometime itself.

1.previously I used "guest' mod and it worked well. but once I found after some guest submition, all my database gone!

I tried much to return it. but now, when I turn the captcha config in "guest" mod to "true" and call it in browser , just a white page comes up!

if I turn it to "false", then I have the mod working but recive lots of daily webbot spams!



2.This mod has another problem that once before I asked about but no response recieved. That is : when guest post an article without filling the "required xfields", it says that you have not filled all required fileds and should go back and send again. However, when you sign in as admin you will find all guest posts( including that one rejected before), added to database and waiting for approval?!

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

Postby afxback » Wed Sep 20, 2006 8:35 am

I am a bit getting frustrated when ask a problem repeatedly and recieve no response while this was a verry active forum before.

ok. this is not a criticism indeed and I have posted a dffence here even:

http://english.cutenews.ru/forum/where- ... -t756.html



maybe people have got too busy.
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm

Postby FI-DD » Wed Sep 20, 2006 2:31 pm

2.This mod has another problem that once before I asked about but no response recieved. That is : when guest post an article without filling the "required xfields", it says that you have not filled all required fileds and should go back and send again. However, when you sign in as admin you will find all guest posts( including that one rejected before), added to database and waiting for approval?!

regards


You have to add the XFields to the javascript check. By default it only checks if the short-story is blank:

Code: Select all
if (document.guest.short_story.value == ""){

     document.guest.short_story.focus();

     alert ("The short story can't be blank.");

     return false;

   }




Copy this code and replace "short_story" with the name(s) of your XField(s).
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Tue Oct 10, 2006 9:38 pm

Can I turn approval off? In other words I'd like it so when guests submit news, they are live immediately. Maybe like an approve/unapprove toggle.
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 » Tue Oct 10, 2006 10:14 pm

Just remove or comment out the javascript part from the code.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Oct 11, 2006 1:51 am

doh! that easy!? thanks ;)



update:I tried that just now and it still goes unapproved. Is there anything else I should delete or comment out?



This is exactly what I took out:



Code: Select all
<script type="text/javascript">

function check_fields(){

   if (document.guest.short_story.value == ""){

     document.guest.short_story.focus();

     alert ("The short story can't be blank.");

     return false;

   }

   return true;

}

</script>
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby joshers » Wed Oct 11, 2006 5:49 am

scottdallas wrote:doh! that easy!? thanks ;)



update:I tried that just now and it still goes unapproved. Is there anything else I should delete or comment out?



This is exactly what I took out:



Code: Select all
<script type="text/javascript">

function check_fields(){

   if (document.guest.short_story.value == ""){

     document.guest.short_story.focus();

     alert ("The short story can't be blank.");

     return false;

   }

   return true;

}

</script>




thats the wrong code, that code is for checking fields, to make sure someone typed something in.

in guest.php try changing

Code: Select all
     'values' => array(

         'date'      => $added_time,

         'author'   => ($_POST['name'] ? $_POST['name'] : 'guest'),

         'title'       => replace_news('add', $title),

         'short'       => strlen(replace_news('add', $short_story)),

         'full'      => strlen(replace_news('add', $full_story)),

         'avatar'   => $avatar,

         'category' => $category,

         'url'      => namespace(totranslit($title)),

         'hidden'   => true

         )

     ));




try changing hidden to false.. i dont know if that'll do it,but worth a shot.
joshers
 
Posts: 68
Joined: Mon Nov 14, 2005 8:03 am

Postby scottdallas » Wed Oct 11, 2006 6:03 am

ok i put the javascript back in.. i thought it didn't look like the right thing to change. i also tried changing hidden to false and that made no difference either.. i know there has to be a way! thanks for the help though guys.. when i get this it's going to be sweet!
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 » Wed Oct 11, 2006 8:41 am

Sorry, I misread your question.



Normally, setting hidden to false should work.



Try this instead:

Code: Select all
'hidden'   => '0'
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Oct 11, 2006 10:49 pm

Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Saszoo » Thu Oct 12, 2006 6:18 pm

:lol: :lol: What a Site :lol: :lol:
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby scottdallas » Thu Oct 12, 2006 8:59 pm

haha i know who does that really? thanks for spamming it, i saw your site.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Saszoo » Thu Oct 12, 2006 11:17 pm

haha, yea I couldn't let an oppurtunity like this slip away!

great concept you'll probably see lot of spamming from me :lol:
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

PreviousNext

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests