Support Forum

How to delete Post User Rank

MI Massimo Interlandi
Massimo Interlandi
Member

… 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.png

9 Answers

New Answer

BR Brandon
Brandon
Member

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.

MP Mr Papa
Mr Papa
Member

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.

BR Brandon
Brandon
Member

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');
MP Mr Papa
Mr Papa
Member

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…

MI Massimo Interlandi
Massimo Interlandi
Member

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

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

MI Massimo Interlandi
Massimo Interlandi
Member

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

MP Mr Papa
Mr Papa
Member

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/codex/faq/troubleshooting/what-is-this-jquery-conflict/

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

MI Massimo Interlandi
Massimo Interlandi
Member

Shure here it is:

http://cuffiehifi.info/forum

PM in case you need to get deeper inside …

thanks Mr Papa

BR Brandon
Brandon
Member

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-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?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.