Pligg Support

I'm getting ready to try installing the WordPress login plugin / Pligg module again. Hoping to get it working this time.

One caveat is I'm running WordPress in the root directory with Pligg answering from it's own directory via a htaccess redirect. Had to do it this way as some of my sites require WordPress running under multi-site.

I need to know the Pligg 'Salt_Length' and any other tips would be appreciated. If I get it working I'll try to document everything and make that available to everyone who needs it.

I also want to get it working with my older sites running 1.2.2 but the site I'm going to put this on runs 2.0.x.

Possible Answers

    I appreciate the offer and might even need to take you up on that before it's over.


    | Posted 573 days ago | Permalink | Hide Replies

    I can't find where it's declared as a variable but I did find it in the database but couldn't get the module/plugin to work when I originally set it up.

    Is it a random number? It always seems to be set to the same length in all my Pliggs.

    So, anyway, thinking about it..... I think my problem is the login mechanism always returns to a non-existent page causing a 404. I'm thinking, if you don't actually render a page - you don't set the cookies. So when I get back to this I'll need to fix that problem and then it should work.


    | Posted 573 days ago | Permalink | Hide Replies

    The Pligg SALT_LENGTH is set in the config table.

    Good luck!

    | Posted 574 days ago | Permalink | Hide Replies

    I would also definitely be interested in finding a way to integrate wordpress into pligg. Thanks for posting here if you've succeeded!

    | Posted 572 days ago | Permalink | Hide Replies

    I am ready, just let me know. One thing you need to know, I've never worked with wordpress, but I am very familiar with all of Pligg programming.

    | Posted 573 days ago | Permalink | Hide Replies

    The SALT_LENGTH is a defined parameter. It is the same in pligg as you mentioned, however it can be changed before you install Pligg.

    It is needed in the account creation and password verification.

    You won't find it as a declared variable. The config parameters are all compiled, I believe in the \internal\ classes (I am dissecting how it is done).

    What is useful to you is that it is available and you can use it. The usage of SALT_LENGTH is found:


    LINE # 642 ..... $salt = substr(md5(uniqid(rand(), true)), 0, SALT_LENGTH ); }

    LINE # 644 ..... $salt = substr($salt, 0, SALT_LENGTH );


    LINE # 858 ..... PLIGG_SALT_LENGTH _Title = "SALT_LENGTH "

    LINE # 859 ..... PLIGG_SALT_LENGTH _Desc = "SALT_LENGTH "


    LINE # 73 ..... $saltedpass = generateHash($pass, substr($user->user_pass, 0, SALT_LENGTH ));


    LINE # 113 ..... $salt = substr(md5(uniqid(rand(), true)), 0, SALT_LENGTH );


    LINE # 435 ..... $saltedpass=generateHash($oldpass, substr($userX->user_pass, 0, SALT_LENGTH ));

    Check it out and let me know if you need any help.

    | Posted 573 days ago | Permalink | Hide Replies

Who Upvoted this Story's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.