WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-People? (39 posts)

  1. spirit892
    Member
    Posted 9 years ago #

    I remember there used to be a hack called wordpress people that allowed you to have a personal profile page for each friend or family member with a link to that page whenever you typed in their name. Is there a plugin avaliable or similar to that? If not, would someone be interested in developing one? I think many people would find it useful.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

  3. Jinsan
    Member
    Posted 9 years ago #

    Is this 1.5 compatible? I was wondering if there was something like that...though I guess I could use pages....

  4. spirit892
    Member
    Posted 9 years ago #

    Thanks for the link podz. :) Sadly, it is only avaliable as a hack and I was just wondering if it were avaliable as a plugin. :( Anybody else?
    (don't mean that as rude)

  5. LoganSix
    Member
    Posted 9 years ago #

    I have it has a plug-in, but haven't released it yet.
    I need to make a few more changes to make it work with WP 1.5.

    If you would like to test it out for me, I can send it to you.

  6. logista
    Member
    Posted 9 years ago #

    What about using the text replace plugin?

  7. LoganSix
    Member
    Posted 9 years ago #

    My plugin provides a pop-up screen with a bio, picture, and url for the person.

    I plan on adding a 'nickname' feature so that you would type in a persons real name and the WP-People link shows the nickname.

    Eventually I would like to combine this with the user profile, so someone can add their own bio and maybe the author's link could be replaced by this.

  8. LoganSix
    Member
    Posted 9 years ago #

    Okay. A little goofing around at work today.
    Bad for the boss, good for you. I pretty much finished the plug-in.
    I'm pretty happy with it. But, I need some people to test it out.

    Check out my forum to download the latest version of WP-People.
    WP-People

  9. spirit892
    Member
    Posted 9 years ago #

    Thank you so much! :D This just made my day. I have loved this hack (now a plugin) since the day it came out.

  10. spirit892
    Member
    Posted 9 years ago #

    Question:
    When I tried to activate the plugin, I get this message.

    WP People
    You do not have the proper access to edit the WP-People database for this blog.
    Ask for a promotion from your blog admin

    Also, in the readme, what do you edit in wp-admin/menu.php? I don't think it mentions what to edit.

  11. LoganSix
    Member
    Posted 9 years ago #

    You have to be level 7 or higher to add people.
    You have to be level 10 in order to update the database.

    I'll recheck the readme, but you don't have to edit the menu.php anymore. I fixed it so it adds the menu option to the profile page automatically.

  12. bfine107
    Member
    Posted 9 years ago #

    I got this error when I activated the plug-in. Originally I had the wp-people-admin.php in the plug-in file (per wp-people-Readme) and it came up with the error the other person above had. Then I left it just in the admin file (per the Readme) and this is what happened:
    It still says it was activited.

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php on line 85

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php:85) in /homepages/22/d95365795/htdocs/wordpress/wp-admin/admin.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php:85) in /homepages/22/d95365795/htdocs/wordpress/wp-admin/admin.php on line 7

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php:85) in /homepages/22/d95365795/htdocs/wordpress/wp-admin/admin.php on line 8

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php:85) in /homepages/22/d95365795/htdocs/wordpress/wp-admin/admin.php on line 9

  13. bfine107
    Member
    Posted 9 years ago #

    This part of the error shows up on my site too now:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /homepages/22/d95365795/htdocs/wordpress/wp-content/plugins/wp-people.php on line 85

  14. bfine107
    Member
    Posted 9 years ago #

    And no matter what part of the admin tabs I click on that error comes up at the top.

  15. LoganSix
    Member
    Posted 9 years ago #

    AHH!! Big bug!!

    Just realized what spirit892 was talking about. That's an error on activation. I'll have to check it out.

  16. LoganSix
    Member
    Posted 9 years ago #

    Okay. Don't load this yet.
    It's causing a big error on activation.

  17. LoganSix
    Member
    Posted 9 years ago #

    Okay, lesson learned.
    DON'T PUT THE PLUG-IN INFORMATION ON PAGES THAT DON'T NEED IT.

    New zip file uploaded on my forum. Should fix the activation issue.

  18. spirit892
    Member
    Posted 9 years ago #

    The strange thing is I still have an error. My username is set to 10, but wordpress still thinks I need a "promotion". Does anyone know what's wrong?

  19. LoganSix
    Member
    Posted 9 years ago #

    Okay, here's the issue:
    Since I put the plug-in information on both files, you probably tried to install the wrong file. So, you have to deactivate the plug-in. Update with the latest change and then reactivate the plug-in.

    If that doesn't work, let me know. I'll try to figure something out.

  20. spirit892
    Member
    Posted 9 years ago #

    I can't deactivate the wp-people-admin plugin. It won't let me even get to the plugin page. I try just uploading the admin page by itself and I get the same error as before. I am stuck. :(

  21. cricalix
    Member
    Posted 9 years ago #

    You should be able to remove the plugin file from the plugins directory and WP should let you back in.

  22. spirit892
    Member
    Posted 9 years ago #

    Yeah. I deleted them from the site, but I still want to use the plugin. I hope someone can help.

  23. LoganSix
    Member
    Posted 9 years ago #

    if ($user_level < 7)
    {
    die("<div class=\"wrap\">
    <h2>WP People</h2>
    You do not have the proper access (Level " . $user_level . ") to edit the WP-People
    database for this blog. <br>Ask for a promotion from your
    blog admin</div>");
    }

    Try commenting out the above code in the wp-people-admin.php file. That should get you past the first error, so you can deactivate the plug-in. And then get the lastest files and activate the plug-in again.

  24. spirit892
    Member
    Posted 9 years ago #

    Thanks. That solved part of the problem. But now, when I try to access the wp-people-admin and install the table, I get this message:
    The necessary table or columns have not been found - click the install button to perform the database changes now.

    Warning: Invalid argument supplied for foreach() in /home/.waldorf/bando89/band-o.org/wp-content/plugins/wp-people-admin.php on line 220

    Any idea what that is about?

  25. LoganSix
    Member
    Posted 9 years ago #

    Thanks for finding these errors for me. :D

    Okay, that error was in the error message part.
    I put a new zip file up, it's the same link as before.
    The version of the plug-in should be 1.6 now.

    Again, thanks for finding these issues.

  26. spirit892
    Member
    Posted 9 years ago #

    Okay. That fixed pretty much everything. Except the actual script. I go in to install the table in the database and it won't let me. I click install and the page refreshes, but nothing happens. I went into my database and the table wasn't there. I tried putting the MYSQL commands into the database, but I got the following message:
    Error

    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

    ERROR: Unclosed quote @ 313
    STR: '
    SQL: CREATE TABLE 'wp_people' (
    people_ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    user_ID bigint(20) NOT NULL,
    people_name VARCHAR(160) NOT NULL,
    people_nickname VARCHAR(100) NOT NULL,
    people_bio TEXT NOT NULL,
    people_url VARCHAR(255),
    people_image_url VARCHAR(255),
    people_image_title_nm VARCHAR(160)');

    SQL-query :

    CREATE TABLE 'wp_people' ( people_ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user_ID bigint(20) NOT NULL, people_name VARCHAR(160) NOT NULL, people_nickname VARCHAR(100) NOT NULL, people_bio TEXT NOT NULL, people_url VARCHAR(255), people_image_url VARCHAR(255), people_image_title_nm VARCHAR(160)');

    MySQL said:

    You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''wp_people' (
    people_ID INT NOT NULL AUTO_INCREMENT PRIMARY K

    Strange, huh?

  27. spirit892
    Member
    Posted 9 years ago #

    I fixed it by just going through and making the table step by step, but I just wanted to let you know that it wasn't working. Thanks for such a great plugin! :)

  28. LoganSix
    Member
    Posted 9 years ago #

    Sorry for the troubles, I mentioned that I needed people to test it first. It's hard to test every possiblity, especially when I already have the tables setup.

    I'll checked the queries.
    It was actually a typo in the instructions and a typo in the action command to create the table. Fixed. version 1.6.1 is zipped up and put on my site.

  29. Anonymous
    Unregistered
    Posted 9 years ago #

    The problem with that table creation line is there isn't a quote to start the query, but there is one to end it. Simply add ' after 'wp_people' ( to get CREATE TABLE 'wp_people' (' people_ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user_ID bigint(20) NOT NULL, people_name VARCHAR(160) NOT NULL, people_nickname VARCHAR(100) NOT NULL, people_bio TEXT NOT NULL, people_url VARCHAR(255), people_image_url VARCHAR(255), people_image_title_nm VARCHAR(160)');

  30. LoganSix
    Member
    Posted 9 years ago #

    Mark, thanks, but that wasn't the problem.
    The query text shown is from the error message and wasn't 100% the same as the actual query. There was a hidden value in the form to kick off the query. Because the value was "None" and not "none", the query wasn't kicking off.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.