Topic RSS
I could use a login panel sidebar widget for WP that uses the SPF login data. (I know it's shared data but want to keep user away from WP admin side) After login it should show the users avatar from the SPF profile page. Could this be done for someone without to much coding skills like myself?
Its already built in for the most part.
just use any normal login widget that you want. in spf, on forum – options – global settings, simply activate the block admin feature and it will keep users out of the admin pages. you can even set the block admin level based on the wp user role. you can also set the redirect url (typically to the forum) when admin access is blocked. coming in 4.2, you can make the redirect url be the users profile page.
check out the spf sidedash template tag for displaying some spf user data including avatar in sidebar. see wiki – link in footer for full info on template tags.
Thanks for the template tag tip. Usefull. Though I still can't get that sf "current user avatar" to show in this login plugin.
Should be inside this plugin code:
===
<?php if ( function_exists('bp_loggedinuser_avatar_thumbnail') ) : ?><br />
<?php bp_loggedinuser_avatar_thumbnail() ?><br />
<?php else: ?><br />
<?php echo get_avatar(user_email, $size = '40' ); ?><br />
<?php endif; ?> <br />
</td>
===
Even this single tag line does not seem to work. Suggestions? Thanks.
sorry, not really sure what you are asking. the code snippet you posted uses two different avatars. how are you wanting to add in the spf avatar? or replace those two with the spf avatar?
OK, basicaly the spf template tag for 'current user avatar' does not work when pasted inside a sidebar widget for WP. Question is why. Finaly I would like it to fit within an existing login sidebar plugin. Only want to show the spf avatar for loggedin users within WP environment. More clear this way?
<?php sf_show_avatar(50); ?>
works just fine in sidebar for me… but still not sure thats what you want… that will show the guest avatar for guests…
as to why its not working for you, what have you set up as your optimizations? check forum – configuration – optimizations spf admin panel and make sure use avatar template tags is checked.
!!! thats all !!! I messed with the optimization settings. Works now! thanks a lot for quick replies.
5:29 pm
Mr Papa said:
Its already built in for the most part.
just use any normal login widget that you want. in spf, on forum – options – global settings, simply activate the block admin feature and it will keep users out of the admin pages. you can even set the block admin level based on the wp user role. you can also set the redirect url (typically to the forum) when admin access is blocked. coming in 4.2, you can make the redirect url be the users profile page.
check out the spf sidedash template tag for displaying some spf user data including avatar in sidebar. see wiki – link in footer for full info on template tags.
I'm using the login widget for Wishlist Member (which works great with SimplePress BTW).
The only problem is that now that I blocked admin access as you descibed, users are getting the default Wordpress "permission denied" error when trying to view and update their profile.
Is there any way to have the admin/profile.php redirect to the SimplePress profile editor so they don't get that error message?
Most Users Ever Online: 444
Currently Online: chucktho, SPQC
54 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 485
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2616
Members: 7328
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10839
Posts: 79118
Newest Members: ordie69, mutha66, jawaulk, mastergalen, ikkiamonrah, OlafKS, js, Anne Wayman, vinzMtl, VikingBrent
Moderators: Brandon C (158)
Administrators: Yellow Swordfish (22131), Mr Papa (23580)
Log In
Register
Home
Add Reply
Add Topic
Offline

Quote


Visit

Privacy Policy



