WordPress.org

Ready to get started?Download WordPress

Forums

Multiple users hack (8 posts)

  1. Cena
    Member
    Posted 10 years ago #

    Looks like a great hack (on your page) but the code just shows up as:
    Author List
    $data[1]
    \n"; } ?>

  2. Cena
    Member
    Posted 10 years ago #

    What file does this code go into, and where? :)

  3. otaku42
    Member
    Posted 10 years ago #

    @Jesuit: I noticed that on your site the value for "page generated in xyz seconds" is wrong. Additionally, when there is no posts from the selected author (test it with "Brandon Brown", author=5), no value for "queries executed" is displayed:
    page generated in 1064395934.905846 seconds : queries executed
    Though I'm not sure if this is something that is a result of your mod, because it also can be seen when not choosing an author at all.
    Bye, Mike

  4. Chris J. Davis
    Member
    Posted 10 years ago #

    otaku42: Well as for the page generated that is stock from the factory as it were, so if it is broken it is not something I did. I am going to look into it, but probably will be taking it off, since it doesn't serve any real purpose for me.
    Cena: Sorry I thought that would be obvious, simply place an include in your page that points to the author.php file. i.e. for my purposes below the emails I have
    <?php include("author.php"); ?>
    You could insert the code directly into the page, but I prefer to include this sort of thing so any changes can be made on all pages at once. Let me know if there is anything else that deals with this hack.

  5. ThePimpress
    Member
    Posted 10 years ago #

    Even better:
    <?php $query = "SELECT ID, user_nickname from $tableusers where user_nickname <> 'admin' ORDER BY user_nickname";
    $result =mysql_query($query);
    while ($data = mysql_fetch_row($result)) {
    echo "$data[1]
    \n";
    } ?>
    Maybe someone finds this useful.
    (the &92; in the last row is supposed to be a backslash in the source-code

  6. Chris J. Davis
    Member
    Posted 10 years ago #

    I have added a link to the updated the code for this hack to the wiki;
    http://wiki.wordpress.org/index.php/WPHacks
    Look under Just because it can be done mods
    Later

  7. Chris J. Davis
    Member
    Posted 10 years ago #

    Done and Done Matt. I also added a page for my other hack, last (n) comments.
    Chris

  8. Chris J. Davis
    Member
    Posted 10 years ago #

    This hack is now officially dead.
    If you want one that works just as well, go to the wiki and get matt's sanatized version.
    Latest(n)Comments is dead as well, as is the copyright hack, at least as far as releasing them to the general public.
    You will still be able to find the code @http://www/chrisjdavis.org but I won't be releasing them here anymore. I might announce when something has reached a decent level of maturity, but that is about it.
    Peace people.
    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic