Jump to content

Rikki

Members
  • Posts

    24,413
  • Joined

  • Last visited

  • Days Won

    84

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Rikki

  1. Maybe y'all develop differently to me, but personally I wouldn't browse through a random CSS file to find classnames - there's no context (beyond the classname anyway; you don't get any of the cascade, inherited properties etc. that might affect it).

    It makes much more sense to use the web inspector to see what is actually being applied to the element you want to change.

    It may be a difficult transition at first but i would consider this an opportunity to improve your own development process.

  2. You don't have 'a' server when running in the cloud. Our cloud platform has hundreds of instances (which doesn't even necessarily equal the number of actual physical servers) and your site is running on all of them at once. Which one actually handles a user request is decided by a load balancer.

  3. The underline is being added because by default we underline all links in content created within the editor, and so when you wrap the review box in a link, all text inside it becomes underlined. This is the expected behavior even though it doesn't look 'correct' in this specific instance.

    You could exclude the review widget by adding something like this to your custom.css file:

    .grw-net-widget,
    .grw-net-widget * {
    	text-decoration: none !important;
    }

     

  4. On 1/16/2022 at 1:30 PM, Ocean West said:

    I was playing with the RestAPI, it seems to me that the put of data seems fine as you are adding a single item like a topic or post. 

    However the GETs are kind of limited and each GET doesn't include parameters for other ID's other than their own.

    Case in point I wanted to GET all the recent topics from all the forums either all within a particular category or by providing some array. - no joy there.

    Will the RESTAPI be getting more endpoints or will we convert to some kind of web hooks with publish and subscribe abilities?

     

     

    At some point we will be making the GraphQL API available for general-purpose use, and that would likely suit your usecase better. Keep an eye out for news of that in due course.

  5. 2 minutes ago, MMXII said:

    There are quite a few very, very powerful page builders out there, which do a great job at giving you easy-to-use tools to create awesome-looking and super-customizable (!) pages without any coding knowledge. Wordpress has these, Joomla has these, Drupal (to some extend) has these... just to name some big, free CMS.

    Yep - and that's where we (or at the very least, I) see the future of Pages - but those apps also have huge open-source communities or a large development team focusing only on that product. It's not something we can click our fingers and bring to life, but it is in our minds.

    Speaking personally, I have a pretty clear picture of what Pages could be and what would set it apart from the other visual page builders out there, but for the time being that'll stay internal until a definite roadmap is planned out.

  6. We have an outstanding bug open whereby child themes don't inherit new theme settings that are added to a parent, but aside from that, child themes should pretty much work as you describe, including custom CSS.

    When we build multi-brand themes in-house, we tend to add the 'master' brand styles to custom.css, then don't edit that in the child theme at all - let it inherit so that it's always up to date. If there are any styles used that we actually want to be branded, we use CSS variables for those. Then create separate CSS files in the child themes that have any styles specific to that brand, and also set our brand-specific CSS variable values.

    So something like

    /* custom.css in parent theme */
    .someTitle {
      font-family: ...;
      font-size: 30px;
      color: var(--branded-title, #000);
    }
    
    /* sub.css in a child theme */
    :root {
      --branded-title: #ff0000;
    }

     

  7. We only automatically convert colors primarily because they make the most sense as CSS variables. CSS variables also have to be valid CSS values, so we can't easily convert all theme settings into CSS variables. If you only use a theme setting in a couple of places, it probably won't be worth making it a CSS variable - just use the theme setting as before.

    You are correct that the font size plugin converts to px. If you need other units, simply use them directly, or make them a CSS variable - but you can't pass the CSS variable into the font size plugin like your example. Instead just use them directly; assuming the value of your theme setting was "3rem", you could do font-size: var(--theme-your_setting);.

    For your last example, remember the variable value has to be a valid CSS value. So the --theme-my_line_margin_top variable should include the % symbol - you can't concatenate it like you've done.

    Based on the examples you've described, I would just continue using your theme settings as before.

     

     

  8. 6 minutes ago, Dean_ said:

    Could I for example, have someone be awarded a badge for creating a topic in a certain category and then also be awarded based on their specific group?

    While you currently show rank images, could we also have an option to display badges on the Authorpane in topic view?

    While we have user group icons, I'd like to show special badges as part of the user group.

    You can do location based rules, so you could have one that awards a badge when a topic is posted in a certain forum, yes. You can't award certain badges based on member group though.

    Showing some recent badges is in the postbit is a good idea that we can consider. I'm wary of adding too much noise though, so it'd be a balance.

    The badge system we're discussing doesn't interact with member groups right now. We have spoken about tying the achievement and group promotion systems together in future, and that'd likely open up more possibilities along those lines.

  9. 1 minute ago, CoffeeCake said:

    I think the gist of the ask here is that administrators have the ability to write something in conjunction with the title of the achievement that is viewable by the member. A free text field. Maybe you need to "Loot all four houses of Hogwarts and find the hidden muggle" or "Demonstrate the ability to be an expert problem solver" or "Unlock four Schrute Nickels" or leave the description blank--what ever makes sense at the individual community and achievement level.

    Badges already support this - when you create the rule that awards the badge, you can enter a member-facing summary of the rule, e.g. "You posted 50 replies!".

  10. 1 hour ago, Morrigan said:

    I'm not sure I was particularly clear in my question. What I mean is explain how to earn each rank. I don't mind hidden achievements where its a secret to get it, those are fun too but like rank 1 was it create at least one topic and post in ten others?

    Something like what you see on any other achievement system:

    image.png.c66577af7336795247306715be047bfc.png

    What you're describing is closer to the Badges part of the system, where you earn a badge for doing a particular thing. We don't currently list all badges and what you have to do to get them (but may later), but when you earn a badge we do indicate in your profile what you did to earn it.

    Ranks however are based on points, and you earn points by doing all sorts of things in the community, with the rules defined by admins. You could earn enough points by creating one topic, or by replying to ten topics, or reacting fifty times - it could be any combination of actions, there's no one thing you have to do.

×
×
  • Create New...