A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
(SPF)Login sidebar widget
Oct 23, 2009
3:00 pm
Member
Forum Posts: 19
Member Since:
Oct 23, 2009
Offline

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?

Oct 23, 2009
8:36 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

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.

Oct 25, 2009
12:57 pm
Member
Forum Posts: 19
Member Since:
Oct 23, 2009
Offline

Thanks for the template tag tip. Usefull. Though I still can't get that sf "current user avatar" to show in this login plugin.

(<?php sf_show_avatar(50); ?>)

Should be inside this plugin code:
===

<td class="avatar" id="LoginWithAjax_Avatar"><br />
<?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.

Oct 25, 2009
3:28 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

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? 

Oct 25, 2009
4:42 pm
Member
Forum Posts: 19
Member Since:
Oct 23, 2009
Offline

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?

Oct 25, 2009
4:48 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

<?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.

Oct 25, 2009
6:08 pm
Member
Forum Posts: 19
Member Since:
Oct 23, 2009
Offline

!!! thats all !!! I messed with the optimization settings. Works now! thanks a lot for quick replies.

Oct 25, 2009
6:09 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

good to hear!

Feb 18, 2010
5:29 pm
Sterling
Guest

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?

Feb 18, 2010
7:24 pm

SP Master
Forum Posts: 23587
Member Since:
Dec 10, 2006
Offline

no, afraid not… the block admin access if for the entire admin… what do they want to update that is not available on the spf profile? with 4.2, you can redirect them to their spf profile page with the block admin

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: chucktho, SPQC
54 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

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

Moderators: Brandon C (158)

Administrators: Yellow Swordfish (22131), Mr Papa (23580)