• I have finished my first hack and have it ready for the world to view.
    wp-People is a hack that will replace people’s names with a link to a pop-up bio information screen. (1.0+ Compatible)
    You can find out more information and download the zip from my forum.
    wp-people forum thread
    I also put the information on the Wiki.

Viewing 15 replies - 16 through 30 (of 52 total)
  • I will check it now, and try to run it locally first. I will post back – Thank you!

    hi again,
    great about the lowercase/uppercase implementation.
    But sadly, i tried it in my blog and just came up with a bunch of errors. Every time it was supposed to do a link, i came up with this instead, as soon as i had used the new syntax:
    Javascript:myVoid()” onClick=”peoplePop(8);”>Javascript:myVoid()” onClick=”peoplePop(1);”>John
    where “john” was the name it was supposed to create a pop up window for. I tried both the syntax mentioned in your forum, as well as downloading the whole zip file and replacing the text in my myhacks.php with the text in your textfile, as to make sure i hadn’t copied something wrong, but both were no go.
    it seems to sometimes create the links correctly, but as of yet i haven’t determined where the differences are between the error-names and non-error-names. ??
    if i do find the differance i will post it here. You might be able to see these errors here: https://www.nicedyke.net/blog/ (depending on whether i fix them first or not) ??
    but thanks for looking into it.
    -perry

    ok well i seem to have found what caused the error, i had a friend in my db called “J” and it seems the single character name fscked it up. She is now called “J_” and that seems to be ok and doesn’t create link errors. Now i have the problem that the hack only creates the popup-links if the name is spelt lowercase:
    https://www.nicedyke.net/blog/index.php?p=55
    as you can see i tried all names in lowercase, all in first letter uppercase (as they are entered into the db) and then all in uppercase.
    In the first example, it *looks* like they were first letter uppercase as the hack transforms the link, when in reality all the letters are lowercase.
    i’d have a look at the php code myself but my php skills are still a bit too lacking to make much sense of it :-/
    -perry

    Thread Starter LoganSix

    (@logansix)

    It will only link once per article.
    Part of the search and replace function.
    So, if you want to test upper, lower, and sentence, you’ll have to switch it around and try it again or create three separate articles.

    ahh! /me slaps forehead
    i get it. cheers. seems to be working now. Sweet. Thanks for the patience ??
    -perry

    Hey LoganSix,
    Just to let you know that in the end i didn’t install the hack. I decided towait for WP1.2, ’cause there will be a wp_list_authos() function, that’s more like to what i am looking for.
    Thanks anyway!

    Thread Starter LoganSix

    (@logansix)

    @lectique – great! I didn’t want to give you a hard time about it. ??
    @anatman – hmmmm, will it have the same feature as wp-people?

    Thread Starter LoganSix

    (@logansix)

    Is that your complete my-hacks.php file?
    Because if it is, you are missing the opening
    <?php
    Other than that, I can’t see anything wrong.
    I have a break in the script to allow for th JavaScript tag. So there are two sets of <?php ?> in the hole file.

    LoganSix,
    No, the function wp_list_authors() will not do the same as your hack. It will just allow one to display a list of authors on the menu bar, and clicking the author will display his posts. It seems easy to ad a small gif or link beside each author as a link to a “who am i” static page, which is more what i am looking for.
    Your hack seems more comprehensive: it converts names anyhwere to links, and any name you choose to register…
    keep it up, i think it is a nice tool!
    Eduardo

    That fixed the problem! I just assumed your script would work out-of-the-box so to speak…

    Ok, now I don’t get that error, but having another problem. Where are the links suppose to appear on the site? I’ve checked in the comments and the poster names, but they aren’t links.

    Thread Starter LoganSix

    (@logansix)

    @laebshade – The links appear in the post content. You have to have the name (case insensitive) the same as it is in the database.
    Do you have a URL I can look at?

    Thread Starter LoganSix

    (@logansix)

    @mark – Yeah, I noticed that and fixed it on my side, but wasn’t going to upload a new version until I had the nickname part working.
    Glad everything is working for you now.

    hmm..two issues with this.
    1) it doesn’t work…
    https://www.matthewtancock.co.uk/wordpress
    i created a test post with two “people” and I get a funny error in the pop-up page…
    SQL/DB Error:
    [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 ” at line 3]
    SELECT people_name, people_bio, people_url, people_image_url, people_image_title_nm FROM wp_people WHERE people_ID=
    Warning: Invalid argument supplied for foreach() in home/public_html/wordpress/wp-people-popup.php on line 14
    the other issue is, the links don’t work at all when using permalink/archive structure cos of mod_rewrite…i’m sure there’s probably some simple rule you can add to get around this one…but I don’t have a clue ??
    First issue is more pressing really…
    cheers!

    no…i ran the admin script and it seemed to do it’s thing +install the table, then i entered 4 people…which it’s picking up the links for…and if i go to the admin page i can edit the people and view all the details so it’s obviously managing to get that out of the database i guess?

Viewing 15 replies - 16 through 30 (of 52 total)
  • The topic ‘wp-People’ is closed to new replies.