Anonymous Posting

Register an Account
Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 10-16-2007, 01:20 PM
New Pligger
 
Join Date: Oct 2007
Posts: 7
Quote:
Originally Posted by inggenia View Post
here is a posible solution (it's working for me):

in pligg 7.2, hack this:

1. create a user called "anonymous" or something like that.
2. look for the anonymous's User ID (on DB, for example)
3. go to submit.php code and:

4. change line 21
force_authentication();
for this:
///force_authentication();///

5. change line 120
$linkres->author=$current_user->user_id;
for this:
if($current_user->user_id == 0){
$linkres->author=10;
} else {
$linkres->author=$current_user->user_id;
}

10 is my anonymous user ID, you have to change it.

Explanation:
when you comment line 21, the system doesn't do the force_authentication() function, but it's only a part of the problem, 'cause when you submit the story like that the system doesn't know who is the user posting, so, there appear the "bad key" error. That's because I created "anonymous" user.

Results:
this stories appear "posted by anonymous" in queue news.

I hope that you understand my bad english and that you like this horrible hack...

do you think this will work fine?
Hi!

It went very well until step 3 when the story and confirm form is missing, mays there is some problem with user validation!?
Reply With Quote
  #22 (permalink)  
Old 10-16-2007, 11:10 PM
New Pligger
 
Join Date: Oct 2007
Posts: 7
On my site it works very well on step 1 and 2, but on the third step the submit form is missing.

How may I fix it!?

Very thanks!

Quote:
Originally Posted by inggenia View Post
here is a posible solution (it's working for me):

in pligg 7.2, hack this:

1. create a user called "anonymous" or something like that.
2. look for the anonymous's User ID (on DB, for example)
3. go to submit.php code and:

4. change line 21
force_authentication();
for this:
///force_authentication();///

5. change line 120
$linkres->author=$current_user->user_id;
for this:
if($current_user->user_id == 0){
$linkres->author=10;
} else {
$linkres->author=$current_user->user_id;
}

10 is my anonymous user ID, you have to change it.

Explanation:
when you comment line 21, the system doesn't do the force_authentication() function, but it's only a part of the problem, 'cause when you submit the story like that the system doesn't know who is the user posting, so, there appear the "bad key" error. That's because I created "anonymous" user.

Results:
this stories appear "posted by anonymous" in queue news.

I hope that you understand my bad english and that you like this horrible hack...

do you think this will work fine?
Reply With Quote
  #23 (permalink)  
Old 02-24-2008, 03:13 PM
New Pligger
Pligg Version: 9.9
Pligg Template: heavily moded yGet
 
Join Date: Jan 2008
Posts: 22
Quote:
Originally Posted by calebeaires View Post
On my site it works very well on step 1 and 2, but on the third step the submit form is missing.

How may I fix it!?

Very thanks!
This is a response to an old request but it helped me start a fix so I am posting a solution here.
in Pligg 9.9 remove the below code from submit.php
Code:
if(!$linkres->verify_ownership($current_user->user_id)){
		die($main_smarty->get_config_vars('PLIGG_Visual_Submit2Errors_NoAccess'));
This is what causes the 'blanks screen' on step three.

I have also combined anonymous submissions with the 'pending' solution.
Pending Solution:
http://forums.pligg.com/core-develop...submitted.html
My combined Pending+Anonymous solution
http://forums.pligg.com/core-develop...html#post56779

Last edited by jasxon; 02-24-2008 at 03:41 PM.
Reply With Quote
  #24 (permalink)  
Old 01-09-2009, 04:39 AM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 1
I'm new to the Pligg thing, I'm building a site using the frame work.

I have a few questions about Anonymous Submissions and Anonymous Commenting.

First, what is the current state of these modifications? Do they really work? Are they easy to implement?

I really want the ability for people to just submit news and be able to vote up stories without needing to login or sign up. That's all.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous posting itamaryu Questions and Comments 0 05-24-2009 08:45 AM
Also - anonymous posting... lancey Questions and Comments 9 09-06-2008 09:10 PM
Setting anonymous comments lumpen5 Questions and Comments 22 08-04-2008 09:14 PM
Anonymous Submission on Pligg 9.8.2 calebeaires Questions and Comments 4 07-03-2008 10:39 AM
Star Vote Problems 9.6 - 9.7 not2serious Questions and Comments 7 03-03-2008 07:00 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development