Jump to content

teraßyte

Clients
  • Posts

    33,821
  • Joined

  • Last visited

  • Days Won

    55

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Projects

Release Notes v5

Invision Community 5 Bug Tracker

Forums

Events

Store

Gallery

Everything posted by teraßyte

  1. It all started with this plugin: After seeing it I was asked if I could do the same for the solved/poll/pinned/featured icons but there's no reliable way to target only those icons (not that I can see at least) with a theme hook: {{if $row->isSolved()}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="this_is_solved"}'><i class='fa fa-check'></i></span></span> {{endif}} {{if $row->mapped('poll')}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_neutral" data-ipsTooltip title='{lang="topic_has_poll"}'><i class='fa fa-question'></i></span></span> {{endif}} {{if $row->mapped('pinned') || $row->mapped('featured') || $row->hidden() === -1 || $row->hidden() === 1}} {{if $row->hidden() === -1}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{$row->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span></span> {{elseif $row->hidden() === 1}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span></span> {{elseif $row->canToggleItemModeration() and $row->itemModerationEnabled()}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{lang="topic_moderation_enabled"}'><i class='fa fa-user-times'></i></span></span> {{endif}} {{if $row->mapped('pinned')}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span></span> {{endif}} {{if $row->mapped('featured')}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span></span> {{endif}} {{endif}} As a solution for now I'm thinking of running a direct str_replace() on the outputted HTML, but if a custom theme changes even slightly the HTML there it won't work anymore. Would it be possible to add some kind of unique value to everything in a future version to make it easier to target them? Something like a data-icon="XXX" or whatever you want to add: {{if $row->mapped('pinned')}} <span data-icon="pinned"><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span></span> {{endif}} {{if $row->mapped('featured')}} <span data-icon="featured"><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span></span> {{endif}} etc. If you do implement it the question templates and all other ips apps should be updated with it, too.
  2. Uploaded new 1.0.1 version: Just waiting for IPS to approve it. The update is also already available on my site.
  3. First let me remind you to take a backup of the core_members table before running these queries just to be safe. === The column you need to edit is a bitoption one so you can't just use a straight field=value query. You can use these queries but, as @Marc Stridgen already mentioned, you'd switch it off even for new members who never accepted them in the first place: # Reset privacy policy UPDATE core_members SET members_bitoptions2 = members_bitoptions2 & ~32; # Reset registration terms UPDATE core_members SET members_bitoptions2 = members_bitoptions2 & ~64; You can try limiting how many members you reset based on their join date (or last visit/activity) to limit it to older accounts (which are likely to have accepted them already): # Reset privacy policy UPDATE core_members SET members_bitoptions2 = members_bitoptions2 & ~32 WHERE joined < XXX; # Reset registration terms UPDATE core_members SET members_bitoptions2 = members_bitoptions2 & ~64 WHERE joined < XXX; Just replace XXX with the timestamp/date you want. Or use last_visit, last_activity or any other fields you might want to check.
  4. When you move topics and leave a link this is the text the option has: If you want to delete it right away simply select the link in forum view and delete it. Doing so will delete only the link in the old forum. The topic in the new forum will be left untouched.
  5. That's not possible. You need an application (or a plugin) for that kind of functionality. I don't remember seeing anything like that in the marketplace though so you'll need one coded for you.
  6. I have just submitted a new 4.1.0 version: Just waiting for IPS to approve it now. In case you don't want to wait the new version is already available for download on my site.
  7. Confused. Do you want a list of topics or members with that code? Because it currently loads multiple topics and joins the members table. If there are multiple topics by the same user you end up with the duplicates in your screenshot. If you want topics you should use: foreach ($sql as $row) { $topics[] = \IPS\forums\Topic::constructFromData($row); } If, instead, you indeed want a list of users then you should check the user hasn't been added to the array already: foreach ($sql as $row) { if (!isset($users[ $row['member_id'] ]) ) { $users[ $row['member_id'] ] = \IPS\Member::constructFromData($row); } } Or change the query that loads the data.
  8. Most likely tyhe CSRF key is getting regenerated at some point: //<php /** * Regenerate CSRF Key * * @return void */ public function regenerateCsrfKey() { $this->csrfKey = md5( \IPS\SUITE_UNIQUE_KEY . "&{$this->member->email}& " . ( $this->member->member_id ? $this->member->joined->getTimestamp() : 0 ) . '&' . $this->id ); } While unique key, email, id, and joined timestamp don't change the session ID can change. When it does the csrfKey hash changes as well causing the error in your screenshot.
  9. New 1.0.1 version just submitted (pending IPS approval). Here's the changelog:
  10. Yes, as Marc said adding a redirect to the login page can be done with a plugin. It would also be a quick thing to code.
  11. Asking everyone to clear their cookies often turns out to be a problem. A way to bypass this step would be to change the COOKIE_PREFIX constant too. That way old cookies (with the wrong domain set) won't be checked anymore. 😉 (Everyone would have to login again though.)
  12. This is the support topic for this plugin:
  13. Yeah, 8.1 is not supported officially since they haven't gotten around to fixing all bugs with it just yet.
  14. New 4.0.0 version is already out. Next version (coming soon) will have a debump option. 😉
  15. It's Sunday today so I guess not. Someone from IPS will have a look tomorrow most likely. P.S.: Captcha and Q&A are not plugins so disabling those wouldn't have any effect on the error. You need to check either in Applications or Plugins for modifications causing the issue.
  16. @Thomas Hop If you're interested I have submitted to the marketplace a plugin that changes the default sorting for Questions-type forums. Just waiting for IPS to approve it: (The plugin is already available on my site too, but you won't get the automatic marketplace updates with it.)
  17. The error log only mentions hook318 which doesn't help unfortunately. Do you have any applications or plugins related to the registration process? Like a plugin adding a field for new registrations or something.
  18. No, an outdated theme shouldn't be able to cause a MySQL server has gone away error. The error means the mysql server timed out trying to return the requested data. Well, the best option here is to run the support tool to fix that template error. Once that's fixed your host won't be able to keep saying it's the "outdated theme's fault". 🙄
  19. Unless I remember wrong that setting has been removed quite a while ago. The code now always strips any previous quotes inside the content when you hit the quote button.
  20. If switching to the default IPS theme makes it work again it's probably better if you ask the theme's author for help. A first guess would be that the theme was not imported properly. Try deleting and re-importing it. If that still doesn't work maybe you're using the wrong theme version compared to the forum version you're using.
  21. Usually an empty index.html file is created inside those folder so that nobody can browse them for files. Also, you should be able to block this at the server level. It depends on your hosting/server config/etc though.
  22. What is being underlined there is not "text" but a "link", so yeah, links are usually underlined to make them more visible. You could try adding the CSS class ipsType_noUnderline to your A element in that code, but from what I see looking at it it seems that some of the links are added by the Javascript running. Depending on the final HTML added by the JS you should be able to add some custom CSS rule in the custom.css file. That said, as @Marc Stridgen pointed out above, this is not something IPS can help with since it's a customization based on your usage.
  23. Since it's related to payments try contacting IPS directly and see if they can do something about it: https://invisioncommunity.com/contact-us/
  24. This is the support topic for this application:
  25. As Jim advised it's best to change the setting to log only errors of level 3 or above then: === Good point. If he converted the database to utf8mb4 before the upgrade all tables are duplicated.
×
×
  • Create New...