We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
[ C ] Secondary Group Displayed in Legend
Topic Started: Dec 27 2014, 06:52 AM (459 Views)
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Board Address: http://s15.zetaboards.com/Injustice_Fan_Forum/index/
Board Software: ZetaBoards
Description: Is there anyway I can make this (highlighted section: Posted Image) display a secondary group rather than the primary groups?

Thank you so much for any responses!
Offline Profile Goto Top
 
Kankuro
Member Avatar
かんくろ
[ *  *  *  *  * ]
Just create a copy of the group and use different icons.

So if that's a global mod group just create another with the exact same settings and just give it a different name/icon.

For example my board has 2 admin groups. 1 only I'm in called "Owner" and the other is called "Admins". Both are essentially the same group with the exact same permissions (except for the fact I'm Root Admin) but have different names.

A code isn't needed for this at all, unless I'm not understanding what you're wanting.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Both of those groups in the pictures are administrator groups. I'd like to be able to make it so a secondary can be displayed in the legend so each administrative group won't be separately displayed
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Just a question, have you been giving staff icons using new groups rather than a code? That could cause problems in the future.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
That's generally how I've always done it and I've never had any issues in the past. What sort of issues could occur?

I feel like it'd be easier to allow secondary groups to replace primary groups in the legend in all honesty
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Bad Bieber
Dec 27 2014, 07:15 PM
Both of those groups in the pictures are administrator groups. I'd like to be able to make it so a secondary can be displayed in the legend so each administrative group won't be separately displayed
So basically you're wanting it so only one 'Green Lantern' group displays and when you click on the link it will show the active users from both groups on one page instead of the active users in the groups being on two separate pages?
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Cory
Dec 29 2014, 11:29 AM
Bad Bieber
Dec 27 2014, 07:15 PM
Both of those groups in the pictures are administrator groups. I'd like to be able to make it so a secondary can be displayed in the legend so each administrative group won't be separately displayed
So basically you're wanting it so only one 'Green Lantern' group displays and when you click on the link it will show the active users from both groups on one page instead of the active users in the groups being on two separate pages?
Yes sir. I'd like to create a third group titled Green Lanterns with the actual lantern representing the group rather than the individual lanterns. Would that be possible?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It's possible with AJAX. I'll need the group ID of the third Green Lantern user group.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Cory
Dec 31 2014, 12:07 AM
It's possible with AJAX. I'll need the group ID of the third Green Lantern user group.
1519347

Would I be able to do something in the future to edit the code to where I could do the same with future groups? Or would that not be possible?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It would take some JavaScript knowledge to understand how to edit the code for future groups.

Do you want this third Green Lantern group to always appear on the legend or only when someone in one of the other two Green Lantern groups are online?
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Cory
Dec 31 2014, 12:15 AM
It would take some JavaScript knowledge to understand how to edit the code for future groups.

Do you want this third Green Lantern group to always appear on the legend or only when someone in one of the other two Green Lantern groups are online?
I'm fine with however you'd want to do it. I'm honestly just thankful to get support. :3

And would the javascript knowledge be like actually editing code? Or cloning and editing certain preset parts like in other mods?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
if (location.href.indexOf('/online/?g=1519347') !== -1) {
$.get(main_url + 'online/?g=1520494&force_ads', function(data) {
$('#active_list tr[class*="row"]', data).insertAfter('#active_list tbody tr:eq(0)');
});

$.get(main_url + 'online/?g=1519347&force_ads', function(data) {
$('#active_list tr[class*="row"]', data).insertAfter('#active_list tbody tr:eq(0)');
});
}

$('#stats_legend').prepend('<a href="' + main_url + 'online/?g=1519347" class="member"><img src="http://i60.tinypic.com/2v14yg1.png" alt="Posted Image"><strong><span style="color:green">Green Lantern</span></strong></a>');
$('#stats_legend').html($('#stats_legend').html().replace(/ · /ig, ''));
$('#stats_legend a:not(:last)').after(' · ');
//]]>
</script>
If you don't understand any of the above code, then it's best you just re-request support to help you accomplish the same effect for future groups.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Cory
Dec 31 2014, 12:46 AM
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
if (location.href.indexOf('/online/?g=CHANGETOGROUPID') !== -1) {
$.get(main_url + 'online/?g=1520494&force_ads', function(data) {
$('#active_list tr[class*="row"]', data).insertAfter('#active_list tbody tr:eq(0)');
});

$.get(main_url + 'online/?g=CHANGETOGROUPID&force_ads', function(data) {
$('#active_list tr[class*="row"]', data).insertAfter('#active_list tbody tr:eq(0)');
});
}

$('#stats_legend').prepend('<a href="' + main_url + 'online/?g=CHANGETOGROUPID" class="member"><img src="CHANGETOPICTUREOFLANTERN" alt="Posted Image"><strong><span style="color:CHANGETOCOLOROFGROUP">CHANGETONAMEOFGROUP</span></strong></a>');
$('#stats_legend').html($('#stats_legend').html().replace(/ · /ig, ''));
$('#stats_legend a:not(:last)').after(' · ');
//]]>
</script>
If you don't understand any of the above code, then it's best you just re-request support to help you accomplish the same effect for future groups.
Would I need to change anything further than what I've found in the code?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It looks like you understand it pretty well, you just forgot one group ID.
Offline Profile Goto Top
 
Bad Bieber
Member Avatar
Sir Epic
[ *  * ]
Cory
Dec 31 2014, 01:01 AM
It looks like you understand it pretty well, you just forgot one group ID.
Code:
 

'online/?g=1520494&force_ads',


Would this be what your referring too? If so, I didn't bother it because the ID was different than the others. Is that the group that each person actually has as their primary?

EDIT:

Actually, looking at the group IDs, I think I had it backwards. The other group IDs go for the primary group and the one I missed is the secondary group to be displayed.
Edited by Bad Bieber, Dec 31 2014, 01:05 AM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1