View Single Post
  #16 (permalink)  
Old 10-02-2006, 04:03 PM
inggenia inggenia is offline
New Pligger
 
Join Date: Sep 2006
Posts: 29
Thanks: 6
Thanked 11 Times in 4 Posts
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
The Following 4 Users Say Thank You to inggenia For This Useful Post: