MyBB Community Forums

Full Version: vip status
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there some code plus a icon that shows whos doanted in forums pls
like with a donnor star or something thx Big Grin
You can put an image in the VIP usergroup username style.
so if i do that?? hmm what im needing is a donor star to add under their profile
What about creating a custom profile field?!!! which we will customize later when displaying it in the post bit or profile?!


---------
edit

i will go directly with my recommendation

In the Admin CP create a new Custom profile field. Set it not to be editable and to be hidden. After you finish on the main page of the Custom profile field you can find the FID of the new added field. Remember it.

Now open ./inc/functions_post.php

Find

eval("\$post['user_details'] = \"".$templates->get("postbit_author_user")."\";");
Above it add
if($post['fidX'] == "king")
		{
			$post['rank'] = "<img src=\"./images/king.gif\" />";
		}
		else
		{
			$post['rank'] = "<img src=\"./images/prince.gif\" />";
		}

in fidX replace X with the fid i have asked you to check in the admin cp a while ago. King is one of the Selectable Options criteria you have set while creating the new field, of course what you set might be different, just modify this.

Now in Admin CP go to postbit_author_user template and add

{$post['rank']}

anywhere you want.

Now to add the thingy to the profile

open member.php
find
eval("\$profile = \"".$templates->get("member_profile")."\";");
above it add
	if($profilefield['fidX'] == "king")
	{
		$rank = "<img src=\"./images/king.gif\" />";
	}
	else
	{
		$rank = "<img src=\"./images/prince.gif\" />";
	}

Do the same with fidX

now in the member_profile template add

{$rank}

of course... those php codes has to be modified according to the criterias you have added. maybe you will need other elseif statement etc...

now.. whenever you want to give this user some VIP status.. you go edit his profile, set this new custom profile field to a desired one.
well that looks great zaher1988 just the ticket cheers Smile
hmm any one got any king/prince gifs
cool crakter
yeah zaher looks better have to get some one with gfx skills