Page 1 of 1

The Team Block - Change to user defined

Posted: 23. March 2010 00:08
by Chef_uk
Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge

What have you done before the problem was there?
Checked on here, saw thread but hasn't helped

What have you already tryed to solve the problem?
see above

Description and Message
How can i change "The Team" from showing the Administrators to one of my user definded groups?

Extended Leaders / Team: is ticked yes.

And i have tried to edit the block changing ADMINISTRATORS to my usergroup but to no avail

Code: Select all

// Admin group id...
$sql = 'SELECT group_id
	FROM ' . GROUPS_TABLE . "
	WHERE group_name = 'CLAN_COUNCIL'";
$result = $db->sql_query($sql);
$admin_group_id = (int) $db->sql_fetchfield('group_id');
$db->sql_freeresult($result);
[/i]

Re: The Team Block - Change to user defined

Posted: 26. March 2010 21:16
by Chef_uk
Any ideas on the above, nothing i'm doing is changing it from the Administrators?

EDIT: Fixed, I had to first add the user defined group to the legend. Then make the group the default for each member in that group. The administrators group was still showing so to get rid of that, i had to untick it from showing in the legend. This may not suit everyone as they like to have administrators in the legend but its how to get a user defined group to show in the block "

Finally how do i go about adding custom mini icons for new blocks that reside in theme/images/portal? I've tried copying the code from existing blocks but it completely screws up the portal layout. If i can fix these last two issues i will be done :)

EDIT: Fixed again, i'm on a roll :) I must have missed a character somewhere as after searching again i found i was on the right path adding <!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/IMAGE_NAME_HERE" width="16" height="16" alt="" />&nbsp;<!-- ENDIF --> to said block html file but this time it worked flawlessly.

Site is now ready to go, once i've compiles a full back up of everythign i shall go post it in the show your portal forum for the world to see :)