Recent content by Darcness

  1. Darcness

    XF 2.2 Censoring words in custom bbcode

    I eventually went with what feels like overkill, but: $censoredValue = $renderer->renderSubTree([$currentStringValue], $options);
  2. Darcness

    XF 2.2 Censoring words in custom bbcode

    I'm looking for a good way to censor words in custom bbcode. Using the Html renderer as an example, I'd normally just want to call $renderer->formatter->censorText() however A) I can't guarantee that exists, as I have an AbstractRenderer and B) it's protected anyway so I don't have access to...
  3. Darcness

    XF 2.2 Permissions Issue

    Running into permissions issue that I don't seem to have elsewhere on my forum. I have a user who is a member of four groups: Group A (their Primary group), Group B, Group C, Group D. The permissions structure on my forum is pretty complicated, so all usergroups have their group 'View Node'...
  4. Darcness

    Fixed Users are unable to upload images despite explicit permission

    The Upload permission has the exact same problem. Explicit permission granted, but it still says 'No':
  5. Darcness

    Fixed Users are unable to upload images despite explicit permission

    Why is this a 'No'? I have explicitly set the permission on this forum for this group, but the user in this group still can't do it. Also, in case you're wondering:
  6. Darcness

    Hide Poll Results

    Looks like the template_modifications.xml is looking for the following template line: <xf:checkboxrow label="{{ phrase('options') }}"> Unfortunately that line doesn't exist, as poll_macros has changed, and the line in the base template reads as such: <xf:checkboxrow label="{{ phrase('options')...
  7. Darcness

    XF 2.0 How do you hide a subforum?

    ... I could have sworn... I mean, I tried that. 3 times! But... it works now. Thank you.
  8. Darcness

    XF 2.0 How do you hide a subforum?

    I'm trying to figure out how to set up a particular permissions layout and can't seem to for the life of me. How do I make a forum not show up in the category list without that evil little Private Forum button? Here's a more concrete example. I have the following forum structure: Category 1...
  9. Darcness

    XF 2.0 pageaction change in forum_view

    Ah, I found it. The elseif needs a /> in it, since it has no closing tag. So, instead of <xf:elseif is="{$forum.node_id} == 117"> you should have <xf:elseif is="{$forum.node_id} == 117" /> In the end, this is what it looks like: <xf:pageaction if="$forum.canCreateThread()"> <xf:if...
  10. Darcness

    XF 2.0 pageaction change in forum_view

    If I had to guess, your control flow is: if node_id == 56 do work else if node_id == 117 do other work else do default work end if If that's the case, your need to specify your second condition in the elseif, not in it's own if statement, like so: <xf:pageaction...
  11. Darcness

    XF 2.0 Extending XF\Admin\Controller\UserGroup

    That's what I was following, yeah. The tutorial specifically calls out setup, validate, apply, and complete, so I was worried that basicEntitySave wouldn't be tossed on the queue along with the 4 named ones. Thanks for the help!
  12. Darcness

    XF 2.0 Extending XF\Admin\Controller\UserGroup

    In the course of developing an add-on, I've added a couple of boolean flags to xf_user_group. I'd like to update those booleans from within the user_group_edit Admin template. Should I be extending the userGroupSaveProcess() method? And, if so, how do I get data into the entity...
  13. Darcness

    XF 2.0 Unable to access post pages within a thread.

    Found the problem. There was some database corruption that caused the position column in xf_post to end up all 0's, so the Thread controller kept thinking that we were trying to view the first post no matter what page we were trying to access. Manually fixing the data repaired the issue.
  14. Darcness

    XF 2.0 Unable to access post pages within a thread.

    # Mod_security can interfere with uploading of content such as attachments. If you # cannot attach files, remove the "#" from the lines below. #<IfModule mod_security.c> # SecFilterEngine Off # SecFilterScanPOST Off #</IfModule> ErrorDocument 401 default ErrorDocument...
  15. Darcness

    XF 2.0 Unable to access post pages within a thread.

    Any time I attempt to access posts beyond the first page, I receive a 303 redirect back to the thread main. For example, if I go to any 'page' off of a thread (http://example.com/forum/index.php?threads/my-test-thread.356/page-2) I get a 303 error and am redirected back to the main thread...
Top Bottom