Advertisement:

Author Topic: Main groups and post count groups.  (Read 5059 times)

Offline angrybanana5000

  • Semi-Newbie
  • *
  • Posts: 29
    • Gamers Crib
Main groups and post count groups.
« on: August 06, 2008, 12:06:23 PM »
How can I make the icons of the main group, (like the red stars for admin) and the icons for post count groups (the little yellow stars) both appear in topic view?
So it would look like this,

Top arrow are the red stars (I have it is an icon like here)
Bottom arrow is where I want the stars.

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,806
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Main groups and post count groups.
« Reply #1 on: August 10, 2008, 02:48:03 AM »
As an administrator, can I hide my "newbie" status? - Do the opposite of this.  Then in the Display.template.php file move the location of the stars displayed to be below the avatar image call.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline angrybanana5000

  • Semi-Newbie
  • *
  • Posts: 29
    • Gamers Crib
Re: Main groups and post count groups.
« Reply #2 on: August 12, 2008, 01:52:21 PM »
I don't want the text I want the stars. So my post count groups have little blocks. I want the blocks and the badge to appear.

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,806
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Main groups and post count groups.
« Reply #3 on: August 12, 2008, 06:15:26 PM »
Well if you reverse the you should get the post count group little blocks displayed.  This is for people with primary membergroups defined, all other should be already showing your post count blocks?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline angrybanana5000

  • Semi-Newbie
  • *
  • Posts: 29
    • Gamers Crib
Re: Main groups and post count groups.
« Reply #4 on: August 13, 2008, 02:11:29 PM »
They show for normal users in the post count group but not for members in non post count groups. I have hide OFF and it is like that.

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,806
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Main groups and post count groups.
« Reply #5 on: August 13, 2008, 06:31:08 PM »
Ah I see what you mean now, sorry I had a different train of thought.  The primary membergroup override the 'stars' display.  So it's either one or the other.

This mod might help:
Stars and Badges
But then again I think it will only work for non Post Count group stars.

For what you want you'd probably have to create a new 'variable' from $message['member']['group_stars'] that always called the post count groups, so you could have the 'normal' membergroup stars and post count stars.

Load.php
Code: [Select]
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline angrybanana5000

  • Semi-Newbie
  • *
  • Posts: 29
    • Gamers Crib
Re: Main groups and post count groups.
« Reply #6 on: August 14, 2008, 09:30:38 PM »
Ok I have that code you posted added to Load.php. Now what?

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,806
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Main groups and post count groups.
« Reply #7 on: August 14, 2008, 09:33:44 PM »
Well that code is already in there, so I'm not sure the purpose of adding it again.  I was referring to the fact you'll need to edit a possible new entry to extract the Post Count images all the time.  Where as that code I'm sure changes the rank image based on membergroup access and Post Count groups.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]