Forum Replies Created
-
Here is a link to the site and where you can see the effect happening http://schmoovies.com/biographies/
The usernames without a number at the end you see on that page is because the user edited their display name.
I don’t see anything unusual on the Setup Pages screen, but here is a screenshot of it http://nimb.ws/RDT6mv
It isn’t happening to the pages, it just seems that when a user creates a new account, those numbers get appended to the end of their name.
I’m not sure if it is happening only during a manual (old-fashioned style account) creation by a user, or how it also occurs when account creation happens via social network login.
in reply to: Numbers added to the end of user namesPlease note that I’m also using v2.5
in reply to: Upload profile picture not working.I just tested all those fixes as well and am receiving the same error.
I get the same output in my debug log
[30-Sep-2014 19:30:34 UTC] PHP Fatal error: Class ‘finfo’ not found in /home/teatrade/public_html/my-development-site.com/wp-content/plugins/userpro/lib/fileupload/fileupload.php on line 21in reply to: Upload profile picture not working.Okay, I’ve tracked it down. The conflict is the Jetpack, specifically, the Photon module (this is kind of an important one too, used to off-load images onto Automattic’s CDN).
When Photon is activated the TimThumb script fails on the initial page load and reports: Failed to load resource: the server responded with a status of 400 (Bad Request)
I absolutely want to use Photon and I’m sure I might not be the only interested in the speed it provides. Can you guys take a look at this and investigate where the issue is?
in reply to: UserPro Bookmarks images brokenAny updates on this? I’d like to get a solid integration with BuddyPress.
Thank you, I look forward to seeing what you come up with. I think this would be a useful feature.
in reply to: Default Heading ColorInteresting….. when I browse to another collection tab the thumbnail images display fine after the ajax load. They just aren’t loading on the initial page load. I have no caching running on this site at the moment.
http://schmoovies.prometheusfire.me/ social login is active so you can login with an account and try it out.
in reply to: UserPro Bookmarks images brokenThank you @Ahmed for this tutorial. I almost switched to BuddyPress until I found this since for my site I need deep integration with those commenter links to the profile. This tutorial was concise and painless. It actually took me less than 5 minutes to implement.
There are a couple things missing, though. You’ve forgotten the instructions about where to find the callback function.
For those of you struggling with this. All themes will have comments.php, in that file you will find wp_comments_list() with a callback. That callback is reaching out to a function located in another file in the theme which contains the HTML template information for the comments section. That function is usually located in functions.php.
To deploy this integration correctly, you should be doing this in a Child Theme. This is important. I won’t go into the reasons why, because there are many. But if you want to integrate UserPro, you need to learn about Child themes.
So, with that said, to enhance ahmed’s tutorial above.
Go to your parent theme’s functions.php and locate the function that is called from the comments.php. Copy the entire function into the functions.php file in your child theme. Mine looked like this: http://pastebin.com/6g0x2STR
Next, rename the function to something unique to you or your theme. I renamed mine from:
function ttrust_comments($comment, $args, $depth) {
to
function mychildtheme_comments($comment, $args, $depth) {
That is just the first line of the function. Then you need to follow Ahmed’s instructions above to modify the function itself. With the small modifications, mine went from the function I linked to above to this: http://pastebin.com/LzvTzC2G If you compare it to the other carefully, you can see the edits I made. I just copy/pasted like Ahmed instructed.
Finally, there is one more step. You’ll need to modify the callback in comments.php. However, again, you cannot do this in the parent theme’s file. Make a copy of the parent theme’s comments.php and put it into your child theme folder. WP will use this to override the parent theme’s file so any changes you make here will take precedence. In the new comments.php file of your child theme you need to change the callback.
In my theme, I changed it from:
<?php wp_list_comments('callback=ttrust_comments'); ?>
to
<?php wp_list_comments('callback=mychildtheme_comments'); ?>
You’ll see that the callback is reaching out for the new function you created in your functions.php file which holds the HTML template information for your comments list.
This integration takes only a few minutes and it is wasteful of Ahmed’s time to send him your files and asking him to modify them. He does give excellent support, but this is a mundane task and easily done by anyone who can read a tutorial. I’d rather that Ahmed has his time to further develop this excellent and provide tutorials and documentation instead of doing tasks that the users here can do themselves. It took me more time to write this post than it did for me to finish this integration.
in reply to: Integrating UserPro with your theme comments!Ahmed, have you had a chance to work on this yet? Getting good SEO is important and this is a step in the right direction. I noticed the demo here is still showing the words “My Profile” for the page. Any updates on this?
in reply to: Displaying the right name in title