Jump to content

Community

Nathan Explosion

+Clients
  • Posts

    4,289
  • Joined

  • Last visited

  • Days Won

    46

Community Answers

  1. Nathan Explosion's post in Event disappears when started was marked as the answer   
    This is the line that is used later on in the query to retrieve the events:
    $_today = new \IPS\calendar\Date( "now", \IPS\Member::loggedIn()->timezone ? new \DateTimeZone( \IPS\Member::loggedIn()->timezone ) : NULL ); Changing the "now" to "today" and you'll get those already started events to appear - but that's a direct code edit.
    I think I might be able to do a plugin to help you with this though...gimme a few minutes to check.
    Here you go - try this out:
     
     
    (NE) Upcoming Events - show recently started events.xml
  2. Nathan Explosion's post in Where are Announcement Stored? was marked as the answer   
    Well, doing that is likely to end up causing a problem with trying to do it the correct way...
    Go to your Moderator CP, and click Announcements
  3. Nathan Explosion's post in Can I import a calendar from Google Calendar? was marked as the answer   
    Yes

  4. Nathan Explosion's post in HTTP Error 500 after upgrading PHP from 7.2 to 7.3 was marked as the answer   
    Make sure you have PHP's mbstring extension loaded.
  5. Nathan Explosion's post in See who reacted to your post? was marked as the answer   
    Group setting

  6. Nathan Explosion's post in How to disable auto jump to last reply/comment??? was marked as the answer   
    Member profiles settings in the ACP:

  7. Nathan Explosion's post in Banned User Redirect? was marked as the answer   
    Check your PMs - just threw something together over lunch.
  8. Nathan Explosion's post in display category description on the list of posts was marked as the answer   
    The template you would need to edit it is forums -> front -> topics ->topic.
    Search for the following in there:
    {{if $topic->canEdit()}} <span class='ipsType_break ipsContained' data-controller="core.front.core.moderation"> <span data-role="editableTitle" title='{lang="click_hold_edit"}'>{$topic->title}</span> </span> {{else}} <span class='ipsType_break ipsContained'> <span>{$topic->title}</span> </span> {{endif}} Within that, you can add in the following items to display information about the forum:
    {$topic->container()->metaTitle()} {$topic->container()->metaDescription()} Example - replacing the above with the below gives you the result in the image:
    {{if $topic->canEdit()}} <span class='ipsType_break ipsContained' data-controller="core.front.core.moderation"> <span data-role="editableTitle" title='{lang="click_hold_edit"}'>{$topic->title}</span> <br> <span>{$topic->container()->metaTitle()}</span> <span>{$topic->container()->metaDescription()}</span> </span> {{else}} <span class='ipsType_break ipsContained'> <span>{$topic->title}</span> <br> <span>{$topic->container()->metaTitle()}</span> <span>{$topic->container()->metaDescription()}</span> </span> {{endif}}
  9. Nathan Explosion's post in Remove Newsletter block from notifications center was marked as the answer   
    Yup, it's not ideal but it's the best that could potentially be done from a CSS point of view.
    @Apfelstrudel a way to see how the CSS can 'go wrong' would be to disable your Messenger....this will then remove it from the notifications list, and Newsletters will have a different numbered row and then something else will be hidden.
    Here's a plugin which will do it the @Daniel F way 😉
     
    (NE) Remove 'Newsletters' from notification settings.xml
  10. Nathan Explosion's post in How to remove sidebar? was marked as the answer   
    Search for 'topic summary' in your ACP
  11. Nathan Explosion's post in Change Message On Attachment Download Error Screen? was marked as the answer   
  12. Nathan Explosion's post in Restricing guests from using the "Report" functionality was marked as the answer   
    Group setting, "Can report content?"
  13. Nathan Explosion's post in License key not recognized was marked as the answer   
    They are having issues with their license server at the moment.
  14. Nathan Explosion's post in What tables contain any upload paths/URL's ? was marked as the answer   
    I'm off out...try to navigate yourself to the following URL:
    admin/?app=core&module=overview&controller=files&do=configurationForm&id=1
    And then modify the field that contains the 'Directory'
    If you cannot do the above, then either:
    1) Search in phpmyadmin for the path you currently have or
    2) Log a ticket with support.
  15. Nathan Explosion's post in Like Button for Postings was marked as the answer   
    Search your ACP for 'Reputation' and you will find the relevant settings - enabling it, setting what each user group can do etc.
  16. Nathan Explosion's post in Been trying to upgrade my software manually.... was marked as the answer   
    One question...have you purchased the 'Commerce' application (used to be called 'nexus') when you did the following:
    "So I was forced to purchase the software all over again "
    because what you are being told there is that you have it on your site but the files are not for the version you are trying to upgrade to.....in other words they are not included in the package of files you have uploaded.
  17. Nathan Explosion's post in Making Active Users invisible to Guests & Anonymous Log-Ins was marked as the answer   
  18. Nathan Explosion's post in IBP 4.5 - Editing a string on the forum index page was marked as the answer   
    It will only affect your account to allow you do the action it provides.
    The action leads to a result, which all will see.
    Just try it.
  19. Nathan Explosion's post in 4.5.4 - Profile picture max size? was marked as the answer   
    Type 'profile' in to the ACP search...

  20. Nathan Explosion's post in Marketplace Link To Support Thread Gone? was marked as the answer   
    Click the 'Additional information' tab (although in the case of that one there isn't a support topic listed)
    Anyway...that is where the support link (if provided) is now displayed.
  21. Nathan Explosion's post in FA Icons was marked as the answer   
    IPS supports FA4, not FA5, at present.
  22. Nathan Explosion's post in Customize WYSIWYG editor for URL override to embed object was marked as the answer   
    OK.
    Let's take Youtube as an example.....
    This link https://www.youtube.com/watch?v=Z1BCujX3pw8 is sent to the youtube endpoint https://www.youtube.com/oembed with a query string: https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=Z1BCujX3pw8 (click that link to see what Youtube outputs)
    That type of response is what you need to generate somehow....I'd suggest a PHP file on your own server which will take a URL query string, process it and return the JSON format that is needed to provide the 'html' information that IPS code will then process to return the embed HTML.
     
  23. Nathan Explosion's post in Generate Purchases was marked as the answer   
    Is this really an 'IPS Development Gateway' question?
    Anyway....click the 'Generate Purchase' button...

    Go to the Marketplace Click on 'My Paid Files' Click on your app/plugin Click the button.
  24. Nathan Explosion's post in A common variable share by Parent forum and its subforums was marked as the answer   
    The reason it isn't working is because in postContainer, there is no $forum variable declared:

    So this cannot evaluate.....
    {{if ! $comment->mapped('first') and ($forum->id == 5 or $forum->parent_id == 5)}} EDIT:
    This will get you the forum id of a post in a topic in a forum:
    $comment->item()->container()->id This will get you the parent forum id of a post in a topic in a subforum:
    $comment->item()->container()->parent_id This should work for you:
    {{if(!$comment->mapped('first') AND ($comment->item()->container()->id === 2 OR $comment->item()->container()->parent_id === 2))}} {{endif}}  
  25. Nathan Explosion's post in Check if Custom Profile Field is Yes/No was marked as the answer   
    This post onwards gives you the answer as to why it doesn't equal 0/1 or no/yes, and provides a method to overcome it:
    {{if \IPS\Member::loggedIn()}} {{$member = \IPS\Member::loggedIn();}} {{$fieldData = $member->ProfileFields()['core_pfieldgroups_4']['core_pfield_14'];}} {{if $fieldData === $member->language()->addToStack('yes')}} {CONTENT I WANT TO DISPLAY} {{endif}} {{if $fieldData === $member->language()->addToStack('no')}} {CONTENT I WANT TO DISPLAY} {{endif}} {{endif}}  
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy