![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Remove registration Hello everyone, I'm looking for a way to remove all registration/user account features. I want anonymous users to have full access to voting/posting without any log in requirements. I would limit multiple votes by IP address. I've been trying to manually go through the code and remove all the log in requirements, but I keep running into fatal errors. What would be the best way to go about accomplishing this? Thanks in advance. -JSS |
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| ||||
| frontend: remove the {if $user_authenticated ne true} and the trailing {/if} of the stuff you want to show To your users. submitting: - The tpl files of the submit pages don't have {if $user_authenticated ne true}, so you don't have to touch those - why not remove these lines in submit.php (line 29 and 30)? Guess that should work. Code: // make sure user is logged in force_authentication(); editing their own submitted stories: I really don't know. Probably just don't fix that and don't give them that feature. commenting: Dude, you don't want that to be open!
__________________ Like my work? Donations are welcome if you would like to support my work! Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com Last edited by beatniak : 04-22-2007 at 10:06 PM. |
| |||
| Thanks for the response beatniak. I did what you recommended, and stumbled upon an error. If I try to submit a story without being logged in, I can get past the first step. But on step 3 (before submission), I get the error: "Incorrect key." After doing some detective work, I found this in submit.php: PHP Code: PHP Code: Fatal error: Call to a member function on a non-object in /home/jssolomo/public_html/Secrets/libs/link.php on line 339 Line 339 in link.php is PHP Code: |
| ||||
| Deleting the if($_POST['randkey'] !== $linkres->randkey) function is not the solution. Removing the errorchecking won't help ---you must make sure there are no errors. EDIT: Just found out there's some php code in submit_step_3.tpl that is the reason for the randkey error: Code: if($linkres->votes($current_user->user_id) == 0 && auto_vote == true) {
$linkres->insert_vote($current_user->user_id, '10');
$linkres->store_basic();
$linkres->read(FALSE);
} Code: if (link_errors($linkres)) {
return;
} Also the stuff that will/might give you an error in submit.php: in function do_submit1() line 89: Code: global $main_smarty, $db, $dblang, $current_user, $the_template; Code: $linkres->author=$current_user->user_id; line 243: Code: $trackres->author=$linkres->author;
__________________ Like my work? Donations are welcome if you would like to support my work! Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com Last edited by beatniak : 04-23-2007 at 03:13 AM. Reason: forgot the php code in submit_step_3.tpl |
| |||
| One random thought on this, what about automatically logging everyone in with a default username/pass anytime they try to do a user-based action? Then perhaps you can edit out the instances of the username based text in the text file and possibly achieve a similar effect? -P |
| ||||
|
__________________ I accept donations for my time helping users like you on the forum and IRC. FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove "about Pligg box" in sidebar | yom23 | General Help | 9 | 11-21-2006 05:20 PM |
| Remove Story Details | seantrades | Pligg Mods | 0 | 10-13-2006 02:59 PM |
| Is Moderated Registration possible? | djdrue | General Help | 7 | 10-10-2006 06:36 PM |
| Registration and voting not working | stephencarr | Installation and Upgrade Help | 3 | 10-08-2006 06:57 PM |




Linear Mode

