Recent content by kirsty

  1. kirsty

    XF 2.2 Bluesky and Oembed?

    That's looking good! Thank you. I really should have noticed the Advanced Options box though.
  2. kirsty

    XF 2.2 Bluesky and Oembed?

    I'm trying to add oembed for Bluesky to my BB code media sites in XenForo using the info from https://docs.bsky.app/docs/advanced-guides/oembed Bluesky wants the whole url passing through to it's oembed endpoint. Is there a way to do this with the XF setup for oembed? I can't figure out how...
  3. kirsty

    XF 2.2 Admin template mod not showing up in production?

    Well I've managed to get it to work by a convoluted version of 'have you tried switching it off and on again'... set the template mod to enabled (1) by fiddling in the production db uploaded a slightly modified template mod that had been set to disabled on the dev server then uploaded another...
  4. kirsty

    XF 2.2 Admin template mod not showing up in production?

    Hmmm, digging into the xf_template_modification db on the production server shows that template mod as disabled though.
  5. kirsty

    XF 2.2 Admin template mod not showing up in production?

    No problem! Thanks for replying. I do very much feel like I've probably missed something really obvious!
  6. kirsty

    XF 2.2 Admin template mod not showing up in production?

    Since the production server isn't in dev mode it doesn't show the admin template mods in the control panel at all. They all work for other add-ons though.
  7. kirsty

    XF 2.2 Admin template mod not showing up in production?

    I've got an admin template mod - adding extra settings to a forum as in https://xenforo.com/docs/dev/lets-build-an-add-on/#modifying-the-forum-edit-form - in an add-on and it works fine on my dev server but not on my production server. I've used the same technique in a different add-on and...
  8. kirsty

    XF 2.2 Conditional Template Extension?

    Have a look at the forum_view and forum_view_type_article templates. The article one extends the forum_view one so it can do most of the same stuff but change some parts to show the information differently. (Oh, I also found that the extensionparent bit is lurking there in the article template...
  9. kirsty

    XF 2.2 Conditional Template Extension?

    Thanks! It looks like <xf:extensionparent /> is exactly what I'm looking for!
  10. kirsty

    XF 2.2 Conditional Template Extension?

    I've got template_a with an extension in it <xf:extension name='extension_name'> original stuff </xf:extension> and then I extend that in template_b <xf:extends template='template_a'> <xf:extension name='extension_name'> replacement stuff </xf:extension> which works fine. But...
  11. kirsty

    XF 2.2 Setting a checkbox custom field value

    Ah, makes sense. Thread\Creator was what I needed. And then you just need to set the field using 'is_imported' => 'imported'. Thanks!
  12. kirsty

    XF 2.2 Setting a checkbox custom field value

    I have a custom field which, when I tick the checkbox on the thread manually, appears in the xf_thread_field_value table with field_id is_imported field_value a:1:{s:8:"imported";s:8:"imported";} If I set the value of this custom field in code using 'is_imported' =>...
  13. kirsty

    XF 2.2 Passing attributes to a class widget?

    I kept digging and eventually got it sussed. You need to pass in the attribute with a context- prefix and then you can get at it in the render method without the prefix. E.g. in the template <xf:widget class="Blah\Widget\TestWidget" context-stuff="my stuff in here"/> and in the widget's...
  14. kirsty

    XF 2.2 Passing attributes to a class widget?

    I can define a widget in a template using <xf:widget class="Blah\Widget\TestWidget" /> but although I'm told this... I can't figure out the right syntax to provide the options. I've tried various variations on passing in paramName='paramValue' in the xf:widget tag (e.g. params="['abc']" is...
  15. kirsty

    XF 2.2 actionAddReply seems to return error prematurely?

    Getting my localhost instance running on my current code was (happily) less trouble than I thought it would be! My problem seems to be that in Forum/actionPostThread my error gets caught and returned by the $creator->validate($errors) call, whereas in Thread/actionAddReply the error isn't being...
Back
Top Bottom