Page 1 of 1

Team Logo's mod

Posted: Wed Feb 02, 2011 12:33 pm
by gec100
Hi all,

I am looking to add a fav team logo under a persons avatar so that it is visable on all the view topic page, and can be changed by them selves on their profile.

Does such a mob excist?

thx

Re: Team Logo's mod

Posted: Wed Feb 02, 2011 1:34 pm
by stellaj
Set the team logos up as ranks and make it possible for the users to pick team up on registration and/or switch rank and join what they prefer?

Re: Team Logo's mod

Posted: Wed Feb 02, 2011 1:43 pm
by gec100
thx stellaj!

but i need ranks to. this is a forum for a virtual flying squad with three regiments. That's why i need team (or in my case regiment) logo under avatar.

plus, we have special military ranks. like lieutenant, sergeant, ...

not to mention that i'm still fighting with putting medal under signatures. :roll:

Re: Team Logo's mod

Posted: Wed Feb 02, 2011 2:13 pm
by stellaj
I suggest you get this mod: http://www.phpbb.com/community/viewtopi ... 0&t=742015
It's no longer updated but I've just installed it on my 3.0.8 forum and it works great
(There are two install info files in that mod, be sure you don't miss that)

The mod lets you add multi image ranks to one user, so you could have both group ranks and team ranks displayed for instance.

Re: Team Logo's mod

Posted: Wed Feb 02, 2011 2:35 pm
by gec100
thx again m8! i'll give it a try.

Re: Team Logo's mod

Posted: Thu Feb 03, 2011 9:27 am
by gec100
hmm ... no go so far :(

i've followed intall.xml in the MOD folder and then prosimver.xml in templates folder.

i have a user that is added to two special groups and to one rank. but i still only see one avatar and one rank image.

what i find odd is that in instal.xml in section where it explains editing of memberlist.php there are two "find" one after another and then "Add After"

Code: Select all

Find
Tip: This may be a partial find and not the whole line.

Code:Select All
case 'viewprofile':
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
$template->assign_vars(show_profile($member));
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
		//added by Nyquist Show Groups Info
		if (isset($config['nyq_showgroupsinfo']))
		{
			//take the image of the default rank from the template
			$nyq_default_rank = $template->_rootref['RANK_IMG_SRC'];
			//extract the groups
			$nyq_groups_ranks_array = nyq_getgroupsarray_new($member['user_id'], $config['nyq_showgroupsinfo'], $nyq_default_rank);
			foreach ($nyq_groups_ranks_array as $single_rank)
			{
				$nyq_listofranks = array(
					'TITLE' => $single_rank['TITLE'],
					'IMAGE' => $single_rank['IMAGE'],
				);
				$template->assign_block_vars('nyq_listofranks', $nyq_listofranks);
			}
		}
		//End added by Nyquist Show Groups Info

i've added the code only after the last "Find"

same thing is happening in includes/functions_user.php to