Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rank images problem #3285

Closed
tyupika93 opened this issue Jul 15, 2018 · 7 comments

Comments

@tyupika93
Copy link

commented Jul 15, 2018

Something does not appear in the user's profile for rank images
adminrtank
rank_user

@KiraTheUltimate

This comment has been minimized.

Copy link

commented Jul 15, 2018

I confirm this... the rank images doesn't appears on my site too.

@Jimmi08

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2018

I confirm. It uses this shortcode ($ldata is empty array, so nothing is displayed):

	function sc_user_level($parm) 
	{
		$pref = e107::getPref();
		//FIXME - new level handler, currently commented to avoid parse errors
		//require_once(e_HANDLER."level_handler.php");
		//$ldata = get_level($this->var['user_id'], $this->var['user_forums'], $this->var['user_comments'], $this->var['user_chats'], $this->var['user_visits'], $this->var['user_join'], $this->var['user_admin'], $this->var['user_perms'], $pref);
		$ldata = array();
		if (isset($ldata[0]) && strstr($ldata[0], "IMAGE_rank_main_admin_image"))
		{
			return LAN_USER_31;
		}
		elseif(isset($ldata[0]) && strstr($ldata[0], "IMAGE"))
		{
			return LAN_USER_32;
		}
		elseif(isset($ldata[1]))
		{
			return $ldata[1];
		}
	}

example how to use it is in top.php (e107::getRank()->getRanks())

@Moc Moc added this to the e107 2.1.8 milestone Jul 15, 2018
@Moc Moc added bug and removed testing required labels Jul 15, 2018
@SimSync

This comment has been minimized.

Copy link
Contributor

commented Jul 17, 2018

The first image shows the admin area and it shows no image, because this field is inline edit enabled.
This can be changed to show the image, but to modify, you will than have to edit the whole item. @CaMer0n What do you think, show image or inline edit?

The user profile is empty because of an issue. This can be fixed once the first question is decided.

@CaMer0n CaMer0n modified the milestones: e107 2.1.8, e107 2.1.9 Jul 18, 2018
@CaMer0n CaMer0n closed this in cf9c222 Jul 20, 2018
CaMer0n added a commit that referenced this issue Jul 20, 2018
fixes #3285 No rank images displayed in backend and on profile page
@tyupika93

This comment has been minimized.

Copy link
Author

commented Jul 21, 2018

rang
rang2

The admin panel now displays a rank, but no profile yet. :(

@SimSync

This comment has been minimized.

Copy link
Contributor

commented Jul 21, 2018

Custom template for the profile page? Or custom theme shortcode, that overwrites the build in shortcode?
On my standard bootstrap3 it looks like this:
grafik

@tyupika93

This comment has been minimized.

Copy link
Author

commented Jul 21, 2018

screenshot_20180721-112721
Not custom user template. :(

@tyupika93

This comment has been minimized.

Copy link
Author

commented Jul 21, 2018

Thank you very much. Now it's good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.