Viewing 12 replies - 1 through 12 (of 12 total)
  • Something’s majorly messed up with your hacka€??when I put the include in the index.php, it puts a ton of text up at the top of the post, instead of a picture. Weird.
    a€??Andrew

    I did change the extension, but I didn’t find anywhere in the instructions about how it should be chmod’ed to 666. I don’t actually get an error, it’s just that, the php must not think the file is all code; just text, so what it does is put the what was written in wp-userphoto.php where I put the include in the index.php file.
    Weird, eh?

    It worked for me … except only on my front Index page. I use “archive” appended between index.php and the tags set up for “virtual site structure” … pretty url’s without mod_rewrite.
    I don’t have htaccess set up on my site for my own use as of yet, so don’t know if that would mess with your hack or not … but I can say that the hack works nicely on my front page, at the least … but I don’t have anything to show anyone since I renamed the graphics as they aren’t coming in on any post but the front page, and boxes with little red x’s aren’t attractive, IMO ??
    IOW the path to the photos are broken due to my virtual site structure in WP permalink settings.

    Thread Starter wellard1981

    (@wellard1981)

    @andrew: Hmm. Have you put the <?php include(‘wp-userphoto.php’); ?> in the main loop of the index.php?
    It needs to be in between;
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    and
    <?php endforeach; else: ?>
    I’m using the code that I have released, and not getting the problem. Can you provide a link to a screenshot of the error?
    @georginaldy: Glad to hear you got it working! It should work with/without mod_rewrite. Just as long wp-images/users is a real path.
    –Wellard

    Thread Starter wellard1981

    (@wellard1981)

    Ohh er, Very weird! Wouldn’t expect that to happen! – I’ve tried re-creating this problem myself and can’t.
    It looks like the web server is processing it as PHP source not as a PHP script.
    Try downloading https://www.wellardsworld.com/code/wp-userphoto.txt onto your web server and rename it to wp-userphoto.php.
    It may be something really stupid happening somewhere! i.e. your browser not saving the file correctly, or saving it as HTML formatted.
    Let me know if that works.

    Well, it doesn’t display bugs or anything, but I can’t get it to display my picture! Does your picture have to be the same as your user name (i.e. admin)?

    Thread Starter wellard1981

    (@wellard1981)

    Yes, your picture has to be the same name as the user ID.
    For example, my ID is “dave”, so therefore in the wp-images/users directory, I would have an image called “dave.jpg”.

    Hmm. I log in as ‘admin,’ and the picture is located in:
    wp-images/admin/admin.jpg
    In my ‘wp-userphoto.php,’ it should have the right data:
    /* change these values to suit your needs (do not include the trailing slash) */
    $path = “wp-images/users/admin.jpg”;
    $ext = “jpg”;
    Do you have any thoughts on what I might be doing wrong?

    Thanks! It worked!
    Oh, by the way, you put your CSS inside of the comment (in your hack, that is). Was that on purpose, or is the CSS still effective when it’s inside a comment? Oh, and if I try to bring it out of the comment, I get a PHP parse error. Hmm :/
    a€??Andrew

    Thread Starter wellard1981

    (@wellard1981)

    You’ll need to copy that CSS into your wp-layout.css file.

    I keep getting this message:
    Warning: main(0php???): failed to open stream: No such file or directory in /home/pinealpr/public_html/index.php on line 78
    Warning: main(0php???): failed to open stream: No such file or directory in /home/pinealpr/public_html/index.php on line 78
    Warning: main(): Failed opening ‘0php???’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/pinealpr/public_html/index.php on line 78
    I’ve installed it according to how you show it in the file. What am I doing wrong?
    here’s the link:
    https://www.pinealpress.com/

    Nice hack, took me about 5 minutes to get it up and running.
    https://www.expatchron.com

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘User photo hack’ is closed to new replies.