Info
- 129 posts
- 44 voices
- Started 4 years ago by louisedade
- Latest reply from EnglishMeetup
- This topic is resolved
Plugin: Avatar Upload
-
- Posted 2 years ago #
cita:
"To get Avatar tab in the profile working under Alpha-2 -
edit avatar-upload.php in the bbpress root
change line 7 from
bb_auth(); // logged in?
to
bb_auth('logged_in'); // logged in?" by Batrachoid -
- Posted 2 years ago #
NuMaverick, BRILLIANT!
I've been plauged by this problem for a few hours now. I was very confused, if there was some sort of ranking system here, I would give this 5 stars :P (Assuming 5 stars is the maximum of course!)
-
- Posted 2 years ago #
OK basically that last fix does work, but for some reason my image uploads for the users but then it goes to a blank screen and when going back to the profile there is no image there, even though it is in the folder uploaded? I tried setting the permissions to 777 but to no avail. Any ideas anyone?
-
- Posted 2 years ago #
Does anyone have any suggestions for showing the bbpress avatar next to comments in wordpress. I know a couple suggestions were given here, but, I don't want to try the first suggestion, because they say to delete a file in my plugins, and I have a feeling that will cause more trouble than it's worth. I saw another suggestion, tried it, but the avatar didn't show. This probably won't happen, but, it would be nice if there was a sister plugin to this one for wordpress... and you installed it and magically the bbpress avatars showed up. :) Wouldn't that be nice. Unfortunately I don't know php very well.
Here's hoping someone can come up with a solution!
-
- Posted 2 years ago #
When I upload an avatar for a user, it's correctly displayed on the avatar upload page, but never makes it to the forum itself. Any ideas?
Thanks!
-
- Posted 2 years ago #
@jamesb4551 ► +1 me to :(
-
- Posted 2 years ago #
Hi,
This plugin use a SQL table ?
-
- Posted 2 years ago #
@wilcosky and everyone else who's asked here and on the other thread, having cracked it this afternoon with the aid of a couple of online code snippets and my limited PHP skills, here's how to display your avatars from this plugin in WP if you have WP and bbPress integrated and sharing the same user table.
In your sidebar, or wherever you want to have them (or a "welcome, guest" message or whatever) appear, put this code snippet...
<?php global $user_login; get_currentuserinfo(); if ($user_login == '') { echo('Welcome Guest'); } else { $directory = '/your/DOCUMENT_ROOT/path/to/forum/avatars/'; $flag = false; $ext = array( '.jpg' , '.gif' , '.png' ); for( $i = 0; count( $ext ) > $i; $i++ ) { if( file_exists( $directory . $user_login . $ext[$i] ) ) { $flag = true; $name = $user_login . $ext[$i]; } } if( $flag == true ) { echo "<img src=\"http://www.yoursite.com/forum/avatars/".$name."\" />"; } } ?>Note that the path for $directory is your DOCUMENT_ROOT one (you can use an 'echo' or 'print' PHP command to find it if you don't know it, google for instructions; it's usually something like '/home/user/public_html/'), while the later image source path is the standard http one. If your avatar directory is somewhere other than /yoursite.com/forum/avatars/ then, obviously, you'll need to edit accordingly.
If you use a different set of possible image file extensions than the usual .jpg, .gif and .png trio you'll also need to edit the $ext array (so if you don't allow .gifs, it'd be
$ext = array( '.jpg' , '.png' )for instance). -
- Posted 1 year ago #
Hi,
I had error below(while I pressed Avatar button):Warning: Cannot modify header information - headers already sent by (output started at /home/content/83/4464383/html/wordpress-mu/forums/profile.php:4) in /home/content/83/4464383/html/wordpress-mu/forums/bb-includes/functions.bb-pluggable.php on line 232
Pls heeeeeeelp!
Lillian -
This topic is
closed