Hello,
I have my forum all branches are under. The sequence of this is wrong! How can I change this?
Screenshot: http://www.mupload.nl/img/v7znhsi4z3e.png
Regards, Thijs.
Sorry, but I can not English well, so I do not know if this topic is under this category belongs .. ;-)
The order of the online groups is alphabetic. How would you like to have it?
If English is not your primary language, maybe you can post your question in your language's support board ;)
*Ninja follows this topic since he wants to understand where that function is loaded and how, also because I could have asked this myself :) *
Quote from: margarett on September 01, 2014, 11:16:45 AM
The order of the online groups is alphabetic. How would you like to have it?
If English is not your primary language, maybe you can post your question in your language's support board ;)
For example:
Technisch manager - Team leider - Moderator - Proef moderator - Ex-teamlid - VIP - Donateur
If not mistaken, I thought there was a mod on the mod site for this...
Ow! Do you know the name of this mod?
I can't even remember if it was for 1.1.x or 2.0.x, let alone the name....lol
No there was one to list only the membergroups with online members but I couldn't find one being able to edit the order of the membergroups... :(
Btw the one you were talking about is this one but it doesn't do what he asked for: http://custom.simplemachines.org/mods/index.php?mod=2456
I just spent good 15 minutes trying to find it (as I also think there was something like that...) but... nothing :(
Google on the other end, helped :P
http://custom.simplemachines.org/mods/index.php?mod=1077 (highly outdated, though...)
Quote from: ♦ Ninja ZX-10RR ♦ on September 01, 2014, 01:15:51 PM
Btw the one you were talking about is this one but it doesn't do what he asked for: http://custom.simplemachines.org/mods/index.php?mod=2456
Really? That was the one I was talking about?
1. You can not ever say that YOU know what OTHER people were talking about in a case like this, as there are a lot of mods out, and you are not a mind reader. ;)
2. That is NOT the mod, as I never actually saw that mod myself, until earlier today. Incidentally, may have to download it, and check it out, though...LOL
3. I have found the one I was talking about, but it is very outdated, and I am in process of trying to get it to work. (Bruno found it, too...LOL) :)
Not sloved
Hi Tegrazone,
First of all lets do a Dutchie high-five ;)
If you ever need support in Dutch, know there's a separate board right here: http://www.simplemachines.org/community/index.php?board=66.0
I just had a read through the code, and the default behaviour is to sort by group name. Try to clear your cache, and if that doesn't work, can you attach your Subs-Membergroups.php file here, please?
Quote from: BurkeKnight on September 01, 2014, 01:47:48 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 01, 2014, 01:15:51 PM
Btw the one you were talking about is this one but it doesn't do what he asked for: http://custom.simplemachines.org/mods/index.php?mod=2456
Really? That was the one I was talking about?
1. You can not ever say that YOU know what OTHER people were talking about in a case like this, as there are a lot of mods out, and you are not a mind reader. ;)
Yup I am not but since I couldn't find *any* other mod regarding that I thought you were talking about what I was thinking being the only? :P
Quote from: BurkeKnight on September 01, 2014, 01:47:48 PM
2. That is NOT the mod, as I never actually saw that mod myself, until earlier today. Incidentally, may have to download it, and check it out, though...LOL
I need the opposite thing so I won't download it but seeing that it's from SimpleDesk... Just go for it if you need it :D
Quote from: BurkeKnight on September 01, 2014, 01:47:48 PM
3. I have found the one I was talking about, but it is very outdated, and I am in process of trying to get it to work. (Bruno found it, too...LOL) :)
Yeah O.o sure I couldn't find it "Membergroup Color Legend II.2" wth is that -.-" should have been something like "Re-arrange group key order" or something similar...
Indeed so, it could have been named better....LOL
Now you see why I could not remember the name...
I actually had to look through my old discs of my older site backups from 2009.
Here is a link to the latest version of that mod- http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758
I installed it on a 2.0.8 forum, and it worked like it should.
Awesome catch but... It didn't work here O.o I installed it with only one error in the language files (fixed it manually) and it made a mess... The list was still showing in the wrong order (it was setup correctly) and also it was shown with a messy .css adding 2 useless borders as well... Uninstalled it :( BK if you get it to work in a better way let us know ;)
Did you do a hard refresh?
I also noticed that it doesn't work on every theme, so a manual edit in a specific theme may be needed. On the board you installed it on, check the default theme and see if it shows correctly there.
I was talking about the default theme, unfortunately. :(
Ok, this is odd. I just went to install this on another test site. It didn't work at first, but this is what I had to do to make it appear in the order I wanted: I emulated to version 2.0. Then when trying to install, I got an error where I had to manually add the code into languages/Help.english.php. Then installed the mod.
I then set the order I wanted the membergroup to appear. After that I went into current theme and UN-checked the "Show group key on board index:" box, and once I did that, it all worked.
Odd that for the order to appear the way you want, you have to uncheck the group key box for it to show.
Indeed that works, disabling the checkbox made the order to work but the .css is still messy, look at this, it sucks hard :(
Quote from: br360 on September 02, 2014, 01:11:54 AM
I then set the order I wanted the membergroup to appear. After that I went into current theme and UN-checked the "Show group key on board index:" box, and once I did that, it all worked.
Odd that for the order to appear the way you want, you have to uncheck the group key box for it to show.
It could be that way, as it is a replacement feature for the original, as the original author had stated that the default needs to be unchecked.
I have submitted a new mod, that is basically the same, just made to work with 2.0.8 and text cleaned up a bit. It also states in settings to uncheck the default, instead of just in the little help section that a lot of people do not read....lol
Maybe yours doesn't make a mess with my .css like that one? ;) =_=
I tested it out on a test site, and no css issues.
So what you say, I can not speak English .. This mod is good?
Error?
./Sources/ManageSettings.php
./Themes/default/languages/Help.english.php
Please wait, a new mod hopefully will be approved soon. :)
Done manually
Some texts did not make sense;)
Doesn't work
Quote from: Tegrazone on September 02, 2014, 07:14:28 AM
So what you say, I can not speak English .. This mod is good?
What is your first language?
Quote from: Irisado on September 02, 2014, 08:48:45 AM
Quote from: Tegrazone on September 02, 2014, 07:14:28 AM
So what you say, I can not speak English .. This mod is good?
What is your first language?
As already stated it's Dutch, and he has already been pointed to Dutch board in case he needs assistance in his language by Nanosector (http://www.simplemachines.org/community/index.php?topic=527152.msg3737810#msg3737810)... But you probably missed it since you asked ;)
Quote from: BurkeKnight on September 02, 2014, 07:29:57 AM
Please wait, a new mod hopefully will be approved soon. :)
Sooooo many thanks for this :D I'm waiting, can you post again in this topic when it gets approved? So that Tegrazone can download it? (As well as me? :P )
Is there a file where I can change? Manually
As already said...
Quote from: BurkeKnight on September 02, 2014, 07:29:57 AM
Please wait, a new mod hopefully will be approved soon. :)
Something like this - "Gelieve te wachten, een nieuwe mod hopelijk wordt binnenkort goedgekeurd" (Google translate so don't blame me xD)
OK. I use of Google ;-)
I doubt the mod would do what Tegrazone wants. He wants to reorder the membergroups on the board index, to a custom order.
They're ordered alphabetically by default. To change this, is more complicated because there's no way to order the groups.
I am able to make changes to this, but not today (not a lot of time).
For this I'll need FTP and MySQL/phpMyAccess access.
Please read this before sending me: http://www.simplemachines.org/community/index.php?topic=228940.0
Same message following in Dutch...
Ik denk niet dat de mod zal doen wat je (Tegrazone) wil. Van wat ik begrijp is dat je de groepen opnieuw wilt inrichten op de board index.
Ze zijn standaard op alfabetische volgorde gerangschikt. Dit veranderen is moeilijker omdat er geen manier is om handmatig groepen te sorteren in SMF.
Ik zou de wijzigingen kunnen maken, maar niet vandaag (ik heb er weinig tijd voor).
Hiervoor heb ik FTP en MySQL/phpMyAdmin toegang nodig.
Lees alsjeblieft dit voordat je me iets stuurt: http://www.simplemachines.org/community/index.php?topic=228940.0
(als je in de toekomst ondersteuning wil in het Nederlands, kun je hier posten: http://www.simplemachines.org/community/index.php?board=66.0 )
De mod is overigens nog niet uit, hij staat nog in de wachtrij om op de mod site te komen.
Please continue the discussion in English, or if you want to I can move this to Dutch.
Yes, and that mod, and the mod I submitted, ALLOWS you to change the order.
I'm not seeing any mod in the queue that allows you to do that. Group Key Style comes closest, but doesn't allow you to rearrange them.
Look at Group Key Order.
Not seeing that in the queue.
Well, it is there. Check Latest Submissions?
Huh, weird. I'll investigate it.
Maybe only customizers can see mods awaiting for approval? I dunno...
The whole team should be able to see mods awaiting approval, but only customizers and people with approval power should be able to approve them.
Yes, I can see it now, but it doesn't appear in the queue...
the mod ended up on page 2 of the queue, it is there and will be reviewed as time allows.
Quote from: Illori on September 02, 2014, 11:40:37 AM
the mod ended up on page 2 of the queue, it is there and will be reviewed as time allows.
Ups, never noticed that there were pages.
/me slaps himself
The pagination widget is small enough that it is easy to miss.
I had a mod, but the order was neatly stand ...
Quote from: BurkeKnight on September 02, 2014, 11:00:43 AM
Well, it is there. Check Latest Submissions?
Can you send the file to me? Then I do not have to wait;)
1. I do not post my mods here, until they are approved.
2. That does not mean that they can't be found on my site. ;)
Oke
It doesn't work :/
Please use BK's support forum for any support you may require until the mod is released here.
Those other worked not already. That was not like him and worked with other well?
Sorry, I didn't understand your last post... :-\
Ik gebruik Google vertalen..,
Bij een andere mod lukte het ook al niet, en bij andere mensen allemaal wel.
Ohh. Translation:
"With another mod I couldn't get it to work either, but other people managed to get it working..."
Suggest you wait for Burke's mod, then, because it's more recent = more chance of success in newer versions vs a mod (yet) not updated for a while.
Ik raad je aan om even op Burke's mod te wachten, omdat het recenter is dus meer kans op succes in nieuwere versies vs een mod die (nog) niet geupdate is voor een tijd.
I can only change order of default branches. I have added tendrils themselves and can not be added?
I don't want nieuweling, junior lid etc.
I understand though. Thanks for you help everybody.
If have additional membergroups, you can add them to the list.
In edit membergroups, you can find the membergroup ID number to add to the list.
Works *WAY* better but I still have those damn borders :( it's something related to .css from the defaul theme, I'm trying to figure out how to improve it.
Thanks anyway, at least it works as intended with no errors in the error log :D
You talking about the brackets?
That is normal SMF coding that adds them to the key.
Quote from: ♦ Ninja ZX-10RR ♦ on September 02, 2014, 03:42:50 PM
Works *WAY* better but I still have those damn borders :( it's something related to .css from the defaul theme, I'm trying to figure out how to improve it.
Thanks anyway, at least it works as intended with no errors in the error log :D
Are you talking about this border- between the memberlist and the legend?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi60.tinypic.com%2F11ttv2o.png&hash=85e1995c2c2a629764e617bf73c30010d33d0982)
if so-
find in boardindextemplate.php-
if (!empty($context['membergroups']))
echo '<div style="padding-top: 2px; margin-top: 2px; border-top: 1px solid #c6c6c6; font-size: 10px">
[' . implode('] [', $context['membergroups']) . ']', '</div>';
and replace with-
if (!empty($context['membergroups']))
echo '<div style="padding-top: 2px; margin-top: 2px; font-size: 10px">
[' . implode('] [', $context['membergroups']) . ']', '</div>';
I edited the mod, and added my group key style mod to it. :)
Group Key Order and StyleLatest Version: 1.0
Compatible With SMF: 2.0.x
Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/)
For Support: The mod's Support topice at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).
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 -> Features and options -> Membergroup legend display arrangement.
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).
To enable the display of the membergroup legend, disable the built-in group key from
Admin -> Current Theme: uncheck "Show group key on board index" checkbox.
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.
You may use any HTML code to adjust the looks of the group key.
Be sure to close the HTML tags in reversed order.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-sa%2F3.0%2F88x31.png&hash=deae454f52f8e584e09b3b261c6df3f0e56c64b3) (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US).
Nice job BK, and happy birthday. ;)
Thank you, and thank you... :)
Nope I have those same dark stripes I had with the other mod, one dotted and the other one not dotted, I managed to get rid of the dotted one but I still have to remove an useless amount of space under the membergroups and I actually don't know how to do it. I'll investigate.
EDIT: wait that's what br360 posted. Hmm yeah basically it's that one but the problem is that space left blank for no reason... Thinking about it I will keep the upper border/stripe whatever thingy and remove that space, if I can figure out where the heck to find it since it appears I am the only one with that space...
I attach a screenshot and the index.css
EDIT 2: dang I had so many things to do this post was left open for so much time... Well if it's your birthday happy birthday BK :D and thanks again for the mod :D
try looking at the edits the mod made to boardindex.template.php
That is what I have been doing, as I also get the added space, yet I can't find anything to do to prevent it.
Might be something in Sources/BoardIndex.php that is doing it.
as i said... check the edit the mod does to boardindex.template.php... it is right there.
I am there, and I removed all but default, and it still was spaced.
did you remove the whole div? of course if you wrote the mod you would know exactly what makes it happen as you put it there.
Yes, I removed the div to check...
Somehow, I think it is the coding in Sources/BoardIndex.php that may be doing it.
Here is what is changed in there:
<file name="$sourcedir/BoardIndex.php">
<operation>
<search position="before"><![CDATA[$context['membergroups'] = cache_quick_get('membergroup_list', 'Subs-Membergroups.php', 'cache_getMembergroupList', array());]]></search>
<add><![CDATA[
elseif (!empty($modSettings['arrange_groupkeyorder']))
{
// group color legend
global $smcFunc, $scripturl;
$context['groupkeyorder'] = array();
$result = $smcFunc['db_query']('', '
SELECT online_color, group_name, id_group
FROM {db_prefix}membergroups',
array()
);
while ($row = $smcFunc['db_fetch_assoc']($result))
{
if (allowedTo('view_mlist'))
$link = '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $row['id_group'] . '" ' . ($row['online_color'] ? 'style="color: ' . $row['online_color'] . '"' : '') . '>' . $row['group_name'] . '</a>';
else
$link = !empty($row['online_color']) ? '<span style="color: ' . $row['online_color'] . ';">'. $row['group_name'] . '</span>' : $row['group_name'];
$context['groupkeyorder'][] = array (
'id' => $row['id_group'],
'link' => $link,
);
}
$smcFunc['db_free_result']($result);
$context['gko_group'] = explode(',', $modSettings['arrange_groupkeyorder'], 30);
foreach($context['gko_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['groupkeyorder']); $i++)
if ($context['groupkeyorder'][$i]['id'] == $context['gko_group'][$key])
$context['membergroups'][] = $context['groupkeyorder'][$i]['link'];
}]]></add>
</operation>
</file>
A bit unorthodox, but I fixed the issue, by removing the div and adding a line break.
Unknown why it added a line break after the div, as there was no call for one in my code, but it may have to do with something in the SMF file for Board Index somewhere...LOL
Downloads section at my site, and mod site here updated.
Now there are commas between the membergroups and the line above them disappeared... This has started to drive me crazy... Square brackets and the border to make some kind of a space between online members and membergroups? :(
The commas are there as a separator, since the brackets are gone.
The line above was a border for the div which was removed.
Look at the info center here, there is no divider line here either.
I could always add another line break above the groups, though.
This topic started as a mod request, went from a mod teaser to coding discussion to mod announcement and now goes as mod support. Nothing like a good old off topic to make us all smile :P
Now, can we please stop? ;)
Where would the fun be in that, my friend? LOL :P
From now on, support for this mod, until approved at the mod site, can be held at it's topic at BurkeKnight Enterprises.
Link for site in my sig.
Yes but it's actually related to what the OP asked since "we" (actually BK, not me XD) are trying to tweak the mod before making it publicly accessible on smf.org itself and also to provide a better solution, the ways are quite strange (the path is indeed the one you outlined :P ) but the objective is basically to provide a real solution compatible with 2.0.8 and working without "weird" things happening ;)
But yeah switching there and then maybe coming back here when the tweak will be over is wise :)