Jump to content

Nathan Explosion

Friends
  • Posts

    6,982
  • Joined

  • Days Won

    127

Community Answers

  1. Nathan Explosion's post in API REST - /api/core/messages was marked as the answer   
    Show more code 😉
    Here's a working example:
    <?php $path = 'http://localhost/test/ips_47_test/'; $key = 'd5921836b2c8343d890a5faccb9e73af'; //Private message test $endpoint = '/core/messages'; $post = [ 'from' => 1, 'to' => [2], 'title' => 'title of private message', 'body' => 'send by api', ]; $params = http_build_query($post); $curl = curl_init($path . 'api' . $endpoint . '?' . $params); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_USERAGENT => "MyUserAgent/1.0", CURLOPT_POST => 1, CURLOPT_USERPWD => $key )); curl_exec($curl);  

  2. Nathan Explosion's post in Question about best answer was marked as the answer   
    @Marc Stridgen
    It's early morning so happy to be wrong but I think the logic on the check for that section may be flawed if you are viewing your own topic and you are a Moderator.
    Here's the code:
    {{if $topic->canSolve() AND ! $topic->isSolved() AND $topic->isNotModeratorButCanSolve()}} <div class='cContentMessage cContentMessage_color ipsMessage_success ipsMargin_vertical' data-controller='forums.front.topic.solved'> <h3 class='cContentMessage__header'>{lang="solved_did_it_tho_title" sprintf="\IPS\Member::loggedIn()->name"}</h3> <div class='ipsPadding'> {lang="solved_did_it_tho_desc"} {{if member.members_bitoptions['no_solved_reenage']}} <div class='ipsMargin_top'> <a href="#" data-action="mailSolvedReminders" class="ipsButton ipsButton_verySmall"><i class="fa fa-envelope"></i>&nbsp; {lang="solved_reengage_on"}</a> </div> {{endif}} </div> </div> {{endif}} If checks 3 things
    canSolve = true isSolved = false isNotModeratorButCanSolve = true If you are a moderator and have created a topic that can be solved, that message won't display to you. See attached video.
     
    My question is... - Questions - YNWA.TV (Test site) — Mozilla Firefox 2023-03-29 09-50-32.mp4    
     
  3. Nathan Explosion's post in How to hide pinned topics from fluid view - Am I missing something? was marked as the answer   
    Turn this off

  4. Nathan Explosion's post in Recommendations for user name when registering was marked as the answer   
    The above would be relevant for logging in - but the user isn't talking about that, they are talking about discouraging the use of the email address as the display name.
    Go to the following area in the ACP (Customization -> (Localization) Languages) and click 'Add phrase' and create an entry with username_desc as the key, and put your content into the default value field.
    Result:

    Where to go in the ACP:

     

     
  5. Nathan Explosion's post in Where to add a script to add it to my footer? was marked as the answer   
  6. Nathan Explosion's post in Is there a newsletter sign-up widget? was marked as the answer   
    Yes...just take a look at the widgets/blocks that are available via the Block Manager

  7. Nathan Explosion's post in getting category id in database records was marked as the answer   
    OK - assumptions made:
    You are creating a custom manual HTML block that contains that code You are placing that block in the sidebar when viewing a record {{if request.app == 'cms' }} {{$databaseId = \IPS\cms\Databases\Dispatcher::i()->databaseId;}} {{$class = "\IPS\cms\Records".$databaseId;}} {{$record = $class::load(\IPS\Request::i()->id);}} {{$categoryId = $record->container()->id;}} {block="articles_related_articles_{$categoryId}"} {{endif}} If that doesn't work (and there is probably a better way of doing it, this was a quick throw-togehter) then I've got no idea where you are putting it.
  8. Nathan Explosion's post in Color @pseudo was marked as the answer   
    Edit your theme's settings, go to the "front-end colors" tab and modify the following:

  9. Nathan Explosion's post in Restore default theme was marked as the answer   
    Simple as that - create a new one = the current IPS theme.
  10. Nathan Explosion's post in Finding setting to show email address in messages was marked as the answer   
  11. Nathan Explosion's post in first post on topic end? was marked as the answer   
    Don't need to go near the database - go to the post that is the real first post, and edit it. You can set the publish date back to a prior date, and save the edit.
  12. Nathan Explosion's post in Conversion tools missing from 4.7.7 installation package? was marked as the answer   
    Did you tick the indicated box when downloading?

  13. Nathan Explosion's post in share button in the quote block was marked as the answer   
    Try clicking it - you go to the post from which the quote was taken.
  14. Nathan Explosion's post in Marektplace doesn't work in 4.5? was marked as the answer   
    Which would be a bug if it was showing, as you can only see resources that are compatible with the version you are running.
    The more correct answer would be related to the fact you are in the Members group on here, and not Clients... which would be an indication that your license has expired. If you have just renewed then you need to logout and back in to trigger the group movement to occur.
    And an even more correct answer is that the resource is not available for purchase, as the vendor is also not in the Clients group.
  15. Nathan Explosion's post in CSRF Protection issue was marked as the answer   
    If you ever want to test later versions of Chrome safely, install Chrome Beta (which is the 'Next' version) and Chrome Dev (which is the next beta) from the Google Play store. 3 separate browsers, thrice the fun!
     
  16. Nathan Explosion's post in Can moderators see reports? was marked as the answer   
    Yes - it's a moderation permission. If they can't use it currently then you have likely set up restrictions - the below is on the 'Content' tab:

  17. Nathan Explosion's post in "Recommend" Settings was marked as the answer   
    Toggle this one off:

    Result:

  18. Nathan Explosion's post in can not change logos after upgrading from 4.3 to 4.7 was marked as the answer   
    System -> (Support) Get Support -> Clear System Caches
  19. Nathan Explosion's post in Looking for a "NEED HELP" side tab was marked as the answer   
    Take a look at this, in that case:
     
  20. Nathan Explosion's post in How do I remove downloads? was marked as the answer   
    And if you are self-hosted, you would then delete the /applications/downloads folder (I am assuming that the folder is called 'downloads') from your installation.
  21. Nathan Explosion's post in Preventing a member from posting was marked as the answer   
  22. Nathan Explosion's post in Creating Stand Alone pages without the main navigation? was marked as the answer   
    When creating a page, select the 'Manual HTML' option and then deselect 'Use suite HTML wrapper' in the resulting configuration - it can't be done with the Page Builder, as far as I am aware (although probably could be achieved if you want to begin hiding things using CSS)
  23. Nathan Explosion's post in dumb question about ranks and points in 4.7 was marked as the answer   
    Got to achievements settings, click the rebuild button.
  24. Nathan Explosion's post in Hiding theme selector was marked as the answer   
    If a user has access to more than one theme then they see the theme selector - so if you don't want the theme selector seen, modify permissions on themes theme to not make them available to groups.
  25. Nathan Explosion's post in Importing Members via Active Directory was marked as the answer   
    Importing uses an upload of a CSV file to populate the member list, so if you can create the source file then go for it - but it wouldn't be associated with AD.
    However, you could always look at implementing the LDAP login method and allow your users to register using their AD credentials. If it's Azure AD, or your on-premise AD is sync'ed to Azure AD, then you could use the Microsoft login method instead.
     

×
×
  • Create New...