Jump to content

Meddysong

Clients
  • Posts

    2,172
  • Joined

  • Last visited

  • Days Won

    3

 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 Meddysong

  1. 1 hour ago, Maxxius said:

    @Jordan Invision don't know if you saw it but there is an issue with reactions.

    It's a consequence of forcing the height rather than allowing it to flow. The content in each box isn't a consistent height, so in a case like this one

    OnPaste.20210519-110114.png.c1c9e391bd1bbae7dec6e05349e3d189.png

    where you've got a longer title then three lines of the preview, you're going to need more vertical space than in other in other with less content.

    Ultimately, Jordan's got to decide a) if he definitely wants to keep a consistent height, and b) what that height should be, knowing that if he chooses one to cover the most text-heavy-scenarios, there'll be plenty of empty space in smaller entries:

       OnPaste.20210519-110552.thumb.png.39648332ac87454862cfb2162561faa0.png

    Personally, I think that if he wants to keep a consistent height, the smart thing to do is to say that the title can only occupy two lines maximum, and the preview three, and work it out from there.

  2. 1 minute ago, Esperanto said:

    How do I enter the email address and password combination for the account I wish to log in as?

    Got it: sign out here, then go to the Client Area and sign out there too. This will bring up a pop-up for you to log in. Once you've done this, return to the Community, click "Sign in with email", and it will use the details that you logged into the Client Area with.

    There's probably some room for improvement in this process. That was a frustrating few minutes wasted.

  3. 13 hours ago, Jordan Invision said:

    To set X amount of words/characters before a '...' pops up so it can never be longer than two lines. I know it can be done manually when promoting, but it'd be nice to have it know to do that.

    It appears to be controlled by a line of code in core > front > promote > widgets > promoted:

    <div class="ipsType_richText ipsType_medium ipsSpacer_both ipsSpacer_half" data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='4 lines'>{$text|raw}</div>

    Change '4-lines' to '2-lines' to get the result you're looking for. (If you choose to go to 1 line, bear in mind that you would still use the plural: '1-lines'.)

  4. Blimey, that's a lot of detail, @christopher-w. Thank you for taking the time to write it.

    22 hours ago, christopher-w said:

    It was my go to app for many things, but Isotope doesn't work well with CSS grid given it relies on absolute transitions for the show/hide animations. So much of what Isotope offers can now be easily implemented with CSS grid, for example this:

    I wasn't using Isotope specifically for styling but for filtering. In my case, it was a list of "recommended reading", each item having several attributes. A reader would therefore be able to display only those books exhibiting whichever attributes they were interested in. The prototype worked but I came back a couple of years later and the JS was no longer being called for whatever reason.

    22 hours ago, christopher-w said:

    GSAP (Greensock) is also preferred for animation. In case you haven't used it,

    I bought a GSAP subscription a couple of years ago and made a couple of practice tweens. Unfortunately (well, fortunately, I suppose), I've accidentally ended up becoming a writer, which means that the evenings and weekends for tinkering have been in short supply since.

    22 hours ago, christopher-w said:

    I no longer consider myself capable of producing code good enough to share with 3rd parties, but if you like we can start a new thread and share techniques like the above - most of which are easily installable via modified block templates. 

    That's very decent of you, and I'm grateful for your offer but I fear it would soon be a one-man show. I'm afraid I don't have any spare time for the foreseeable future. If you don't think it would bother you, I'd certainly be willing to catch up with you down the line to see whether there's anything useful we could demonstrate for other people's benefit. I'd have to work out what I'm doing on my own site first, though!

    22 hours ago, christopher-w said:

    Edit: Sorry @Jordan Invision. Hope this hasn't gone too far off topic.

    Ah, sorry. That's my fault.

    That said, Jordan, I'm not a programmer either but have become fairly proficient in some areas. If you'd like to give the basics a try to see how you get on, I thoroughly recommend Jonas Schmedtmann's "Build Responsive Real World Websites with HTML5 and CSS3" course on Udemy. (As is normal, the full price is expensive but they're having one of their periodic sales during the next few hours.)

  5. 19 minutes ago, christopher-w said:

    if anybody is interested

    Consider me a person interested, so there's at least one of us. Please don't rush on my or anybody's account but the idea of adding a degree of interactivity to a page by way of filting and sorting has my interest piqued.

    Do I recall you were once working on something using Isotope? I had something interesting going on with that once though never got around to finishing it, and then came back to it a couple of years later only to find it no longer worked. Do you make use of Isotope anywhere on a live site?

  6. 4 hours ago, Morrigan said:

    Is there a page that explains ranks?  Because I’m 13 of 13 and all I can tell is it’s because I have a million billion posts like the old post rank system. Makes me sad if that’s all I’m rank 13 for.

    I'm 13 having just broken through 2000 posts. I noticed the other day that somebody only just on the other side of that marker was 12, so I suspect you've got a few weeks of deleting posts if you aspire to drop down a level 🙂 

    Edit: No, I've been relegated down a level over the past couple of days!

  7. 37 minutes ago, Greek76 said:

    It looks good but that individual theJackal doesn't look like he supports his add ons so I'll  pass. Thanks though!

    He hasn't been and so is on the process of transferring his apps and plugins to @Adriano Faria, who certainly is supportive. Funnily enough, this particular app appears to have been transferred to Adriano's care on the few minutes since you posted this. 🙂

  8. 4 hours ago, opentype said:

    If I remember correctly @Meddysong uses this as well and has explored the ways to deal with this. So he might know more. 

    Wow, what a spectacularly good memory!

    Yes, I tweak content to so that English text is shown in Pages if English is selected but Esperanto when the user changes language.

    There are a couple of different techniques. The one I've used most often is to add some code within the article itself:

    <h1 class="longer-text"><span>{{if member.language()->id === 1 }}We’re a charity which has the aim of providing education to people in and about Esperanto.{{else}}Ni estas bonfara asocio, kiu celas eduki homojn en Britio, kiuj volas lerni Esperanton.{{endif}}</span></h1>

    English is the language with the id 1, so if the member is using English, then the text in the if-clause shows; otherwise, they see the else-clause.

    Another approach is to use blocks, giving them names with a language marker differentiating them, so block_en and block_eo. That would come in handy for longer pieces of code because you're not forever writing out if-conditions. I can't remember where I've used this but looking through some old blocks, it seems that I have a particular block which creates a variable with the value "en" or "eo" depending on what the current language is:

    {{\IPS\Settings::i()->lingvo = substr(\IPS\Member::loggedIn()->language()->short, 0, 2);}}

    (The variable gets its value from the first two letters of my language packs: en_GB and eo_XX.)

    I presume I must've used that block on a page and then at relevant points added a line within an article to call the relevant block:

    {block="block_{$lingvo}"}

    or something like that.

    My site is such a mess, though, that I can't track down anywhere using that approach. It might be that it didn't work, I suppose. My first approach definitely does work, and a similar one to this second one does with Pages databases too:

    <p>{{if substr(\IPS\Member::loggedIn()->language()->short, 0, 2)=="eo"}}{$record->customFieldDisplayByKey('people_bio_eo', 'display')|raw}{{else}}{$record->_content|raw}{{endif}}</p>

     This was all very experimental a few years ago, though. Now I just stick to the first approach, even though it means dozens of if-clauses. It's a headache at the time but if you're not going to change the content, then it's survivable.

  9. Yes, but you need to know what the tags are, which makes things a bit challenging. {member_name} doesn't mean anything in this software, which is why it's not working for you. 

    If you want to display a member's name, then you need:

    {expression="\IPS\Member::loggedIn()->name"}

    or its shorthand version:

    {expression="member.name"}

    I'm afraid I don't know where you can find a list of these expressions. My technique is to look for similar expressions in the templates and then experiment.

  10. I think he's suggesting that the site isn't actually offline but it will appear to be for an affected user. Whilst everyone else is using the site, the unlucky user will occasionally see an offline screen as though the site were genuinely unavailable. It would be offline for him only at that particular time.

  11. 1 hour ago, Meddysong said:

    If you post a link to your blog, it should be easy for people to check for you.

    Or I suppose you could expect people to track down your blog instead of providing a link to it ...

    Try

    .ipsBadge.ipsBadge_style1.ipsPos_right.cBlogCategoryCount {
      display: none;
    }

    in your custom.css.

  12. There are two approaches which I think you could take:

    1) Purchase the Pages app and make that the default app for the suite. Replicate your HTML page there. Your forums will be found at site.com/forums.

    2) Move your installation of Invision Community from site.com to site.com/forums. That leaves site.com free for whatever you want to put there. Bear in mind that if you purchase further apps, they'll also be at site.com/forums, so you'll get site.com/forums/gallery, etc, rather than site.com/gallery if you take this approach.

  13. 6 hours ago, Milton Sojo said:

    What about the template credential? 

     

    23 hours ago, Meddysong said:

    That would still leave you with the theme information; you would need to purchase copyright removal for that from the designer: https://www.ipsfocus.com/themes/copyright/

    Or do you mean: "Would there be similar implications if I chose to remove it without paying the $20 as there would be if I removed the Invision Community branding?"

×
×
  • Create New...