Recent content by Jeremy P

  1. Jeremy P

    Cannot reproduce Certain PM title/body causes page cannot be loaded error.

    This will almost certainly just be your ad blocker triggering because the word "ad" appears in the URL. Try disabling it.
  2. Jeremy P

    XF 2.3 Custom style property usage in template

    As if it were a Less mixin: .some-element-class { .xf-sylphian_verify_minecraft_motd(); }
  3. Jeremy P

    XF 2.3 serialize vs json for custom fields

    I see, in this case it's probably best to use the default serialized value behavior so you don't have to duplicate the CustomFieldsHolder behavior. Note that for XF 2.4 that the current behavior is deprecated and replaced with an index table which holds each value in separate rows for arrays.
  4. Jeremy P

    XF 2.3 serialize vs json for custom fields

    Most remaining serialized data in the core was migrated to JSON in XF 2.1.0 seven years ago (though there are vanishingly few places that still use serialized data where appropriate). When in doubt, I'd stick to JSON.
  5. Jeremy P

    Browser issue Slow logout on Chrome on XF.com

    Those are all separate directives that clear different things. Clearing the cache does not clear cookies or storage, and vice versa. Cookies and storage do not need to be cleared during logouts (we have separate handling for this to retain specific items). You can use the config directive in...
  6. Jeremy P

    Fixed Thread title edit duplicates moderator log

    I doubt it was in a template. I can't reproduce it here though. Worth testing on a default style with all add-ons disabled, and if it persists you can post a new bug with reproduction steps. Note this bug specifically occurred when editing the first post in a thread (rather than using the 'Edit...
  7. Jeremy P

    XF 2.3 Is there any official REST API to fetch only Featured Threads?

    Not currently but it is forthcoming in 2.4: https://xenforo.com/community/threads/featured-content-improvements.229454/#-full-rest-api-support
  8. Jeremy P

    XF 2.3 Change row color of thread with certain prefix

    The same technique described here applies: https://xenforo.com/community/threads/custom-prefixes.222693/post-1688837
  9. Jeremy P

    XF 2.3 Change row color of thread with certain prefix

    .structItem.structItem--thread.is-prefix1 { background-color: yellow; }
  10. Jeremy P

    XF 2.3 Limit Birthday Widget to specific usergroup

    The display conditions just control whether or not to display the widget, meaning the conditional will cause the widget to be displayed to users belonging to group 37. It has no bearing over the content of the widget. You could instead edit the widget_birthday template and replace the wrapper...
  11. Jeremy P

    XF 2.3 Change row color of thread with certain prefix

    The rows have a class of .is-prefix{id} so you can use that to target them for whatever CSS you want.
  12. Jeremy P

    XF 2.3 How to use phrases in the front-end?

    You'd have to add it in your front-end template: <xf:js> XF.extendObject(XF.phrases, { my_phrase: "{{ phrase('my_phrase')|escape('js') }}", my_other_phrase: "{{ phrase('my_other_phrase')|escape('js') }}" }); </xf:js>
  13. Jeremy P

    XF 2.3 Public Navigation for single member

    You could do it based on their ID: $xf.visitor.user_id === 123
  14. Jeremy P

    XF 2.3 Trending content

    There is no total in that sense as the scores and weights are relative to each other. For example, using the quoted configuration, a thread with ten reaction points and no replies will have a trending score of 200, where a thread with two replies and one reaction point will have a trending score...
Back
Top Bottom