Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How to delete Post User Rank
Avatar
Massimo Interlandi
Member
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2012 - 9:38 am

... from under the badge on the left of any post?

In Default theme (which I duplicated) on the left, under the badge shows the user rank.

How can I replicate the display you're using in this forum, where in the following order you have:

Picture

Name

Location

Badge

Date...

Thanks a lot

Here is a shot:

User.pngImage Enlarger

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2012 - 5:45 pm

It looks like we have not gotten to that one in the Codex yet.
To display only the badge and not the title would require changing the way the rank function is called.

In the spTopicView.php file in your Simple:Press theme there is a template function sp_PostIndexUserRank()

In supplied themes it looks like thiis:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

Changing it to

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showTitle=0');

should remove the title text but leave the badge showing. You should have a custom theme if you are changing code in the files. See Creating a Themeif you haven't created one yet.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2012 - 6:08 pm

Brandon, think we are talking usergroup badges here and not ranks. If you can update for that template tag vs rank, that would be helpful. Or I can later tonight when home.

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2012 - 7:53 pm

Mr Papa said
Brandon, think we are talking usergroup badges here and not ranks. If you can update for that template tag vs rank, that would be helpful. Or I can later tonight when home.

Quite possible.

@Massimo Interlandi if using a special badge. Where you have gone in and added special forum ranks with badges and assigned them to users in your forum admin at Components - Forum Ranks you would edit sp_PostIndexUserSpecialRank() in the same spTopicView.php file the same way using:

sp_PostIndexUserSpecialRank('tagClass=spPostUserSpecialRank spCenter&showTitle=0');
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 1, 2012 - 7:58 pm

I will have to read this thread when I get home... ;) thought he wanted it like our forum here... which uses the template function:

sp_PostIndexUserMemberships()

for the usergroup badges...

but he could do, as you say, use special ranks too...

Avatar
Massimo Interlandi
Member
Free Members
sp_UserOfflineSmall Offline
Nov 2, 2012 - 2:17 am

thanks guys for your time; yes, what I would like is to avoid rendundance of info since the members badges are already graphically self explanatory:

FORUM-Cuffie-HiFi.png

I'm using the copy of the default theme, but I dont have any php programming skills, so in case I needed to go into editing code I'd need easy to follow steps.

Thanks again for your help.

I also dont get  how to make use of the "post as" function on my new posts since it doesn't exctract the members while I'm typing well known WordPres members names:

post-as.pngImage Enlarger

I do have few hundred members previously registered in WordPress that also show in SP in the Member Info window.

Do I have to activate or map members in a certain way in order for them to show in my "post as" little window?

Thanks again

Avatar
Massimo Interlandi
Member
Free Members
sp_UserOfflineSmall Offline
Nov 2, 2012 - 4:38 am

Brandon C said
It looks like we have not gotten to that one in the Codex yet.
To display only the badge and not the title would require changing the way the rank function is called.

In the spTopicView.php file in your Simple:Press theme there is a template function sp_PostIndexUserRank()

In supplied themes it looks like thiis:

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

Changing it to

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter&showTitle=0');

should remove the title text but leave the badge showing. You should have a custom theme if you are changing code in the files. See Creating a Themeif you haven't created one yet.

OK, this worked out great.

Did the same thing for : sp_PostIndexUserSpecialRank.

Thanks for this.

I'm trying to work out the last issue regarding the "post as" plugin but so far no success rolleys

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 2, 2012 - 8:18 am

no, the post as does not need any special configuration... it does use jquery autocomplete functionality so possible you have some sort of js conflict on your site...

see:  http://codex.simple-press.com/.....-conflict/

if you gave us a link to site, we could look for obvious conflicts...

Avatar
Massimo Interlandi
Member
Free Members
sp_UserOfflineSmall Offline
Nov 2, 2012 - 10:33 am

Shure here it is:

http://cuffiehifi.info/forum

PM in case you need to get deeper inside ...

thanks Mr Papa

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2012 - 9:58 pm

I am seeing this error when trying to use the Post As, changing author and entering any text in the form.

Timestamp: 11/3/2012 7:52:03 PM
Error: TypeError: b.element.propAttr is not a function
Source File: http://cuffiehifi.info/wp-incl.....ver=1.8.20
Line: 5

Don't know if your theme or one of you plugins is loading it but when testing your blog link problem and deactivating plugins I would check that too.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625