Thread Rating:
  • 4 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Advanced Sidebox 3.1.19
#31
First of all, you have opened my eyes to some things that I can improve about the plugin. I need to be more consistent about what is available to the admin in templates. Proper customization of the templates really should make everything available for the admin.

For the time being— and to answer your question, I think you are going about it backward.

Set the "Last Poster Avatar?" setting to "No" and then use the formatted username link and build your own avatar HTML:

<img src="{$thread['avatar']}" />



But something needs to be adjusted. Admin should be able to have access to the user's profile link (currently only available with avatar off), formatted and plain username, the avatar HTML (currently only available with avatar on), etc. when the setting is in either position. Only the template used for the name/avatar should change.

I will make an issue on GitHub when I gather my thoughts as to what is needed and the best way to handle it.

Thank you again for your input.
Reply
#32
I use that code but when I have that, if user got no avatar therefore it needs to be used default avatar, that code itself isn't enough to show default avatar for some reason, PHP code and setting avatars off disables it. Only after I switch Last Poster Avatar? to Yes, I can see default avatar.

asb_welcome_membertext, {$lang->since_then} is not working, at least for me.

Is there a way I can make Welcome box's title as "Welcome [user]" ?

and how do I limit (not number) but which staff group should be seen in Active Staff sidebox? I want moderators not visible for example.

Forumdisplay sideboxes aren't working if user got custom theme (I have custom themeSad )
Reply
#33
(10-19-2016, 04:38 AM)Darkrad Wrote: I use that code but when I have that, if user got no avatar therefore it needs to be used default avatar, that code itself isn't enough to show default avatar for some reason, PHP code and setting avatars off disables it. Only after I switch Last Poster Avatar? to Yes, I can see default avatar.

You're right and that needs to change. Let me take a look at the best way to approach this and I'll get an update done when I have time.

(10-19-2016, 04:38 AM)Darkrad Wrote: asb_welcome_membertext,  {$lang->since_then} is not working, at least for me.

That language is used for portal.php, so it would only work for side boxes on that page.

(10-19-2016, 04:38 AM)Darkrad Wrote: Is there a way I can make Welcome box's title as  "Welcome [user]" ?

No, I'm sorry but titles aren't currently evaluated.

(10-19-2016, 04:38 AM)Darkrad Wrote: and how do I limit (not number) but which staff group should be seen in Active Staff sidebox? I want moderators not visible for example.

You can't, but that is a reasonable request and I will take a look at it when I can.

(10-19-2016, 04:38 AM)Darkrad Wrote: Forumdisplay sideboxes aren't working if user got custom theme (I have custom themeSad )

You can get it working. You just have to edit the script info for "Forumdisplay".

The default settings for Header and Footer Search Text are based on the default theme. They may need to be adjusted to get side boxes to show up on some themes.

Go to the template and view the contents. Look for unique sections of code that are in the area you want to wrap with side boxes and copy and paste into the Header and Footer Search Text inputs and test.

If you get stuck, post your forumdisplay_threadlist template and I'll try to help.
Reply
#34
Thank you I will try and see if I can manage it.

Another question, is there a way to disable sideboxes only for mobile users?

There should be option to write width not in pixels but in %. We still can change it from column template though

Also it seems we are unable to stylize avatar in Welcome box, it takes code from somewhere else entirely. I can make avatar bigger right now and it fits in box but I can't.
Reply
#35
(10-20-2016, 05:12 AM)Darkrad Wrote: Another question, is there a way to disable sideboxes only for mobile users?

No there isn't.

(10-20-2016, 05:12 AM)Darkrad Wrote: There should be option to write width not in pixels but in %. We still can change it from column template though

I assume that you mean side box column width. That might become problematic, but I'll consider it nonetheless.

(10-20-2016, 05:12 AM)Darkrad Wrote: Also it seems we are unable to stylize avatar in Welcome box, it takes code from somewhere else entirely. I can make avatar bigger right now and it fits in box but I can't.

I'll take a look at it. Thanks for the report.
Reply
#36
Wildcard, couldn't he use template conditionals to remove for mobile users?
Reply
#37
Sideboxes messes with forum in mobile very badly, most forums show sideboxes 'after' the forum content but in my forum it shows like how it is, next to forum content. I recommended my mobile users to disable sideboxes from their settings, but I don't know to what percent my recommendations can reach.
Reply
#38
(10-21-2016, 06:25 AM)Wage Wrote: Wildcard, couldn't he use template conditionals to remove for mobile users?

Yes. You could insert an empty conditional block and use the opening tag of the IF for the header search text. You would, of course, have to repeat the process for the footer.

(10-21-2016, 03:11 PM)Darkrad Wrote: Sideboxes messes with forum in mobile very badly, most forums show sideboxes 'after' the forum content but in my forum it shows like how it is, next to forum content.  I recommended my mobile users to disable sideboxes from their settings, but I don't know to what percent my recommendations can reach.

I can understand your concerns. Not only is encouraging mobile users to disable side boxes ineffective, it is also a pain to have to switch back when you get home to your desktop. Thanks for bringing this up. I will look for a way to add an option to disable side box display when the user is on a mobile device.
Reply
#39
Someone suggested something similar to this, would it work?

@media (max-width: 500px) {
    .sidebox {
        display: none;
    }
}
Reply
#40
(10-21-2016, 10:29 PM)Darkrad Wrote: Someone suggested something similar to this, would it work?

@media (max-width: 500px) {
    .sidebox {
        display: none;
    }
}

I don't think it would work like that. You could try:

@media screen and (max-width: 480px) {
    #asb_hide_column_left, #asb_left_column_id, #asb_right_column_id, #asb_hide_column_right {
		display: none;
	}
}

But I will work on a built-in solution as soon as I have time.

Thanks for your thoughts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)