Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Display One User Rank Instead of Multiple?
Avatar
Acreo Aeneas
Member
Free Members
Offline
Dec 4, 2011 - 4:00 pm

With 4.4.5 users with special ranks only had their special ranks shown instead of both regular forum ranks and special ranks.  Is it possible in V5 to have special ranks take precedence over regular forum ranks?  So that if a user has a special rank assigned, their regular forum rank is hidden and only the special rank is shown?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Dec 4, 2011 - 4:09 pm

of course. look in the theme you are using.  if using one of ours, you will see a call to display the special rank and one call to display the special rank...  remove the one you dont want...

if you want to make it conditional, the theme is simply php so you can do anything you can do in php wink  perhaps something like

if (empty($spThisPostUser->special_rank)) sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

then it only outputs the forum rank if they dont have a special rank...

remember, we highly recommend you dont edit our themes, but instead copy it into your own theme or else you could lose any mods if you upgrade our themes...  our codex (http://codex.simple-press.com) shows you how to create your own theme...

Avatar
Acreo Aeneas
Member
Free Members
Offline
Dec 4, 2011 - 4:16 pm

I don't know PHP, so what would the call line I should look for look like?  Which line(s) should I replace with the line you wrote above?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Dec 4, 2011 - 4:23 pm

replace

sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

with

if (empty($spThisPostUser->special_rank)) sp_PostIndexUserRank('tagClass=spPostUserRank spCenter');

now, have to say this is untested, but think its right...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Dec 4, 2011 - 4:30 pm

ya know...  I think this should be another optional argument to the display forum rank template tag...  so ticket open and will get it added...

Avatar
Acreo Aeneas
Member
Free Members
Offline
Dec 4, 2011 - 4:35 pm

Um, where do I go open a ticket for this?  Or are you telling me you already went ahead and opened a ticket?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Dec 4, 2011 - 4:43 pm

No, I already opened a ticket... and committed the changes... so if you are running from svn, you can svn up and get it... otherwise you can get if from the nightly builds later tonight or catch it in the next beta update...

Avatar
Acreo Aeneas
Member
Free Members
Offline
Dec 4, 2011 - 10:34 pm

Any idea when the next beta update will be?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Dec 4, 2011 - 11:50 pm

which method?

svn updates are instantly available...

nightly updates build every night but you have to manually apply the downloaded file...

updates through the wp updater are made when there are enough changes to warrant pushing out a new version...

If you are waiting for the wp updates, I would expect we would push out a new beta version next weekend...

Avatar
Acreo Aeneas
Member
Free Members
Offline
Dec 5, 2011 - 1:11 pm

Mr Papa said

If you are waiting for the wp updates, I would expect we would push out a new beta version next weekend...

Yes, that's the method I was thinking about.  Next weekend sounds good.  🙂

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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625