News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Group Key Order and Style

Started by Burke ♞ Knight, September 22, 2014, 07:47:12 AM

Previous topic - Next topic

Burke ♞ Knight

Link to Mod

Group Key Order and Style

Latest Version: 1.1
Compatible With SMF: 2.0.x


Made by: BurkeKnight - BurkeKnight Enterprises
If need support for this mod, please go to BurkeKnight Enterprises and register there.

We have a support ticket system for mod support.

We will no longer be supporting this mod here at the SMF site,
as we feel it is easier to keep all support at our site.



This mod will allow changing the order of the membergroups legend under the list of online members.

The displayed member legend by default is:
    [Administrator] [Global Moderator] [Hero Member] [Sr. Member] [Full Member] [Jr. Member] [Newbie]

Re-arrange the display of groups the way you would like it displayed by going to:
    Admin -> Modification Settings ->Miscellaneous

Remove or add group id's from the list to select the groups you want to be displayed.
Separate the arranged group id with comma except for the the last number (i.e. 1,2,8,7,6,5,4).

After any changes, you will need to clear your forum cache:
Admin » Forum Maintenance » Routine
Click Run Task Now for Empty the file cache




This will also let you change the style for group key in board index.
Has 2 slots, one for HTML code placed before the key, and one for HTML code placed after the key.

Allowed HTML Tags: <strong></strong> <em></em> <span></span>

Be sure to close the HTML tags in reversed order.
Example: In Start Box: <strong><em>
In End Box: </em></strong>







To all users of my mods and themes. I am happy that you have chosen my work to add to your site.
I now have a support ticket system for support of my mods and themes. It is located at:

http://www.burkeknight.com/index.php?action=helpdesk

You have to be registered at my site, to use the support system.
There are 3 departments in the system as of now:

SMF 2.0.x Mod Support
SMF 2.0.x Theme Support
Web Site Templates Support

I would prefer to handle all support for my mods and themes, including any BK-SMF and BK Modding mods and themes there, as I can do that more efficiently. But, I will, of course, still monitor the support topics, here, as well.
This will make things easier for me and the users of my mods and themes, as most of my updates and changes are put on my main site, first.

Thank you, and I apologize for any inconvenience this may cause.

Burke Knight

BurkeKnight Enterprises
Formerly BK Modding and BK-SMF

Ninja ZX-10RR

It got approved finally :P congrats :) (to me as well for pointing out a few issues, if you allow me :))
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Burke ♞ Knight

Indeed so, my friend. :)
Seems the best we can do, is try to help each other. :)

Ninja ZX-10RR

Well, no need to say that I have it installed on my forum and works perfectly with 2.0.8 and both non-utf and utf-8 :D or well I said that anyway :P
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

gaurav09

hi this mod is not installing :'(
showing error, please solve
and i am using wrap theme so please help me.

Burke ♞ Knight

Well, the mod is set to work with the default theme.
If you have some mod that also effects that area, then that could be the reason it has the error.

Manual Installation of Mods

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:16:35 AM
Well, the mod is set to work with the default theme.
If you have some mod that also effects that area, then that could be the reason it has the error.

Manual Installation of Mods
thnaks for fast reply,..
i looked in "BoardIndex.template.php" and found below code, please look...
and in my theme please tell how to fix.

and by looking in my theme which i am using,..see capture2

Burke ♞ Knight

Screenshots of the files are not going to help.
Answering the question I asked, will.

What mods are installed?

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:26:16 AM
Screenshots of the files are not going to help.
Answering the question I asked, will.

What mods are installed?
1.   Quick Spoiler   0.9.5   A month ago at 14:29:47.   [ Uninstall ]
2.   Simple Audio Video Embedder   2.5.1   A month ago at 09:45:23.   [ Uninstall ]
3.   Followers   1.7   A month ago at 18:36:28.   [ Uninstall ]
4.   Improved Displayed Times With Details   1.1   3 months ago at 11:31:25.   [ Uninstall ]
5.   Float BBCODE   1.0.2   3 months ago at 10:04:56.   [ Uninstall ]
6.   SA Shop   1.0 RC1   3 months ago at 08:35:40.   [ Uninstall ]
7.   Buddies Block   1.0   3 months ago at 09:22:51.   [ Uninstall ]
8.   Pretty URLs   1.1.2   3 months ago at 07:19:04.   [ Uninstall ]
9.   Enhancements to purge inactive members   1.3.6   4 months ago at 10:17:58.   [ Uninstall ]
10.   SA GPlus   0.3 REV 9   4 months ago at 10:46:54.   [ Uninstall ]
11.   Activity in Profile   1.1   4 months ago at 09:24:09.   [ Uninstall ]
12.   SMF 2.0.8 Update   1.0   4 months ago at 09:15:00.   [ Uninstall ]
13.   Arantor CAPTCHA   1.0.8   4 months ago at 08:07:14.   [ Uninstall ]
14.   Disable 'last edit by...' for Administrators   1.9   4 months ago at 10:05:49.   [ Uninstall ]
15.   Boilerplates for posts   3.1   4 months ago at 09:01:43.   [ Uninstall ]
16.   Member Awards   3.0   5 months ago at 08:59:39.   [ Uninstall ]
17.   Shoutbox Color Selector - SimplePortal 2.3.5   1.1a   5 months ago at 14:02:00.   [ Uninstall ]
18.   SP-Shoutbox Sounds   1.1   5 months ago at 13:39:36.   [ Uninstall ]
19.   SimplePortal   2.3.5   5 months ago at 11:36:49.   [ Uninstall ]
20.   SimpleAds   1.0.1   6 months ago at 17:34:21.   [ Uninstall ]
21.   Bots VS Browsers   1.2   6 months ago at 10:24:41.   [ Uninstall ]
22.   Add IP2Location to Track IP   1.31   6 months ago at 10:06:49.   [ Uninstall ]
23.   markItUp! for SMF   0.5.4   6 months ago at 09:28:34.   [ Uninstall ]
24.   Footer Menu v.1   v.1   6 months ago at 09:22:03.   [ Uninstall ]
25.   Topic Solved   1.1.1   6 months ago at 08:35:34.   [ Uninstall ]
26.   View IP Permissions   1.1.3   6 months ago at 08:14:14.   [ Uninstall ]
27.   Topic & Recent Posts   0.1   6 months ago at 08:14:01.   [ Uninstall ]
28.   Board Icons   1.0   6 months ago at 08:12:44.   [ Uninstall ]
29.   Advanced Recent Posts   1.1.1   6 months ago at 08:12:14.   [ Uninstall ]
30.   Default Avatar   2.3   6 months ago at 08:09:24.   [ Uninstall ]
31.   Optimus Brave   1.8.7   6 months ago at 15:45:05.   [ Uninstall ]
32.   Block Email Usernames   0.4.2   6 months ago at 18:53:05.   [ Uninstall ]
33.   Watermark.light   1.5   6 months ago at 19:03:11.   [ Uninstall ]
34.   Join Reason   1.4   6 months ago at 09:12:07.   [ Uninstall ]
35.   Time Online on Memberlist   1.00   6 months ago at 08:34:19.   [ Uninstall ]
36.   EmailValidator   1.0   7 months ago at 15:39:24.   [ Uninstall ]
37.   Set order for sticky topics   0.5   7 months ago at 15:38:51.   [ Uninstall ]
38.   Member NotePad   2.0.3   7 months ago at 15:38:15.   [ Uninstall ]
39.   Additional Profile Permissions   1.0.0   7 months ago at 15:37:54.   [ Uninstall ]
40.   Prevent Topic View Increase by Author   1.0   7 months ago at 15:36:20.   [ Uninstall ]
41.   Simple Hide BBC - Hide the Goodies from Lurkers   1.0   7 months ago at 15:34:06.   [ Uninstall ]
42.   Force Topic Read On Login Mod   2.1   7 months ago at 15:33:34.   [ Uninstall ]
43.   Highlight tags   1.1   7 months ago at 15:33:09.   [ Uninstall ]
44.   Sortable Packages (and Installed Time)   1.3.5   7 months ago at 15:32:16.   [ Uninstall ]
45.   [BBCode] Dotted Underline   1.1   7 months ago at 13:19:53.   [ Uninstall ]
46.   Contact Page   3.2   7 months ago at 13:14:19.   [ Uninstall ]
47.   Avatar Rounded Corners   1.0   7 months ago at 13:13:56.   [ Uninstall ]
48.   The Rules   1.31   7 months ago at 13:11:14.   [ Uninstall ]
49.   Registered Links   3.0   7 months ago at 13:10:53.   [ Uninstall ]
50.   Spiders Don't Increase Topic Views   1.1.1   7 months ago at 13:10:37.   [ Uninstall ]
51.   Drafts   2.0.5   7 months ago at 13:09:45.   [ Uninstall ]
52.   Karma Description Mod   2.7.1   7 months ago at 11:10:44.   [ Uninstall ]
53.   SMF 2.0.7 Update   1.0   8 months ago at 10:07:31.   [ Uninstall ]
54.   Auto Refresh Who Index   1.1   8 months ago at 09:22:37.   [ Uninstall ]

Burke ♞ Knight

I do not see anything there that would have changed that area, but something did change it.
Have you done any manual edits to that area?

Here is what you could try, and be sure to BACKUP the files first.

In the BoardIndex.template.php on both themes, replace the areas with this:

if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';


Then see if the errors still show.
But, before you install the mod, make sure you can see the board index on both themes, and that there are no issues.

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:35:22 AM
I do not see anything there that would have changed that area, but something did change it.
Have you done any manual edits to that area?

Here is what you could try, and be sure to BACKUP the files first.

In the BoardIndex.template.php on both themes, replace the areas with this:

if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';


Then see if the errors still show.
But, before you install the mod, make sure you can see the board index on both themes, and that there are no issues.
now i remember,..i have edited BoardIndex.template.php for smf default theme
i replaced this code
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
to this
<div style="text-align: center;">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</div>';

And below code

Quote
   if (!empty($context['users_online']))
   {
      echo '
            ', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

      // Showing membergroups?
      if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
         echo '
            <div style="text-align: center;">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</div>';
   }

   echo '
         </p>
         <p class="last smalltext">
            ', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
            ', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
         </p>';

TO THIS ONE

Quote
   if (!empty($context['users_online']))
   {
      echo '
            ', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

   }

   echo '
         </p>
         <p class="last smalltext">
            ', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
            ', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
         </p>';
   // Showing membergroups?
   if (!empty($context['users_online']) && !empty($settings['show_group_key']) && !empty($context['membergroups']))
      echo '
         <div style="text-align: center;">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</div>';

So now help me by seeing above matter,..thanks :)

Burke ♞ Knight

Okay, now you lost me. I thought that WAS the above issue.
You had the error, due to the file being edited.
I stated how to change it back to default, so you could install the mod.

As for the custom theme, the default I posted should also work, so you can install this mod.

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:49:16 AM
Okay, now you lost me. I thought that WAS the above issue.
You had the error, due to the file being edited.
I stated how to change it back to default, so you could install the mod.

As for the custom theme, the default I posted should also work, so you can install this mod.
means i ignore that 1 error showing in my default theme ? and second error in the there which i am using ??
will this work in the theme which i am using inspite of errors ?  :-\

Burke ♞ Knight

No.


Quote from: BurkeKnight on September 30, 2014, 11:35:22 AM
Here is what you could try, and be sure to BACKUP the files first.

In the BoardIndex.template.php on both themes, replace the areas with this:

if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';


Then see if the errors still show.
But, before you install the mod, make sure you can see the board index on both themes, and that there are no issues.

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:53:38 AM
No.


Quote from: BurkeKnight on September 30, 2014, 11:35:22 AM
Here is what you could try, and be sure to BACKUP the files first.

In the BoardIndex.template.php on both themes, replace the areas with this:

if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';


Then see if the errors still show.
But, before you install the mod, make sure you can see the board index on both themes, and that there are no issues.

i opened my default "BoardIndex.template.php" file and looked the code thats to be replaced, so i am not getting why i am getting error if code is there :(,..
Secondly i opened my "BoardIndex.template.php" of my theme which i am using, there also i found the same that the code is present there which needs to be replaced :(
then you tell why it's not replacing ??...why it's showing error :'(

EDIT: i have attached the error showing files. please fix, thank you

Burke ♞ Knight

1. You do not need to rar php files to attach to posts. :)
2. Just select the area, and paste what I posted above, as there may be spacing differences. (That tends to happen at times...lol)

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:31:58 PM
1. You do not need to rar php files to attach to posts. :)
2. Just select the area, and paste what I posted above, as there may be spacing differences. (That tends to happen at times...lol)
ALL THANKS TO YOU
I LOVE YOU THANKS THANKS THOUSAND TIMES THANKS..
BUT I WONDER JUST BY SPACE DIFFERENCE IT SHOWED ERROR  :P :P :P :P :laugh: :laugh: :laugh: :laugh: :laugh:

Burke ♞ Knight

#17
More likely, when the theme maker made it, that area got adjusted, which could have left a spacing difference.
Hey, it happens... Just be thankful that it was all it was, and not that the area was totally re-written....LOL




If need support for this mod, please go to BurkeKnight Enterprises and register there.

We have a support ticket system for mod support.

We will no longer be supporting this mod here at the SMF site,
as we feel it is easier to keep all support at our site.

gaurav09

Quote from: BurkeKnight on September 30, 2014, 11:47:10 PM
More likely, when the theme maker made it, that area got adjusted, which could have left a spacing difference.
Hey, it happens... Just be thankful that it was all it was, and not that the area was totally re-written....LOL
LoL,..you are saying very correct,..if area was rewritten then  :'( :'(  :o
but it's not :laugh: :laugh:

Advertisement: