Team Logo's mod

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
gec100
Registered User
Posts: 12
Joined: Wed Feb 02, 2011 12:18 pm

Team Logo's mod

Post 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
stellaj
Registered User
Posts: 11
Joined: Fri Nov 23, 2007 6:04 am

Re: Team Logo's mod

Post 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?
gec100
Registered User
Posts: 12
Joined: Wed Feb 02, 2011 12:18 pm

Re: Team Logo's mod

Post 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:
stellaj
Registered User
Posts: 11
Joined: Fri Nov 23, 2007 6:04 am

Re: Team Logo's mod

Post 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.
gec100
Registered User
Posts: 12
Joined: Wed Feb 02, 2011 12:18 pm

Re: Team Logo's mod

Post by gec100 »

thx again m8! i'll give it a try.
gec100
Registered User
Posts: 12
Joined: Wed Feb 02, 2011 12:18 pm

Re: Team Logo's mod

Post 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
Locked

Return to “[3.0.x] MOD Requests”