Recent content by Yodrak

  1. Yodrak

    XF 2.2 Hiding usernames from users not logged in?

    You can fix the problem with a conditional statement. Open the template message_macros. Search for the line : <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4> directly above this you add the statement: <xf:if...
  2. Yodrak

    Post Content Find / Replace

    Quick find: http://domainOLD.com Regular Expression: #http:\/\/domainOLD\.com\/data\/([^\s]+)#siU Replace: https://domainNEW.com/data/\1
  3. Yodrak

    Post Content Find / Replace

    Quick Find: :)thumbsup:) Regular Expression: /:\)thumbsup:\)#siU Replacement String: :thumbsup:
  4. Yodrak

    XF 2.1 Pass Variables to poll_macros

    If i change manually the row in /XF/Poll/ResponseEditor to $response->response = utf8_substr($value, 0, 250); then im able to save more as 100 chars. But if i try to override the function it is not working.
  5. Yodrak

    XF 2.1 Pass Variables to poll_macros

    I have another question. Now i try to extend the column response from the table poll_response. I have extended XF/Entity/PollResponse as follows. <?php namespace Yodrak\Polaroid\XF\Entity; use XF\Mvc\Entity\Structure; class PollResponse extends XFCP_PollResponse { public static function...
  6. Yodrak

    XF 1.4 Force all content back through bbcode / mediasite parser

    You find alot of examples in this Thread. https://xenforo.com/community/threads/post-content-find-replace.6548/ Maybe better you test it first at a Testforum.
  7. Yodrak

    XF 1.4 Force all content back through bbcode / mediasite parser

    You can use this Addon. https://xenforo.com/community/resources/post-content-find-replace.5748/
  8. Yodrak

    XF 2.1 Pass Variables to poll_macros

    Lol. I was blind like a mole. :D Found it out.
  9. Yodrak

    XF 2.1 Pass Variables to poll_macros

    Still developing my addon i get issue after i create a poll and i want to edit the poll again, im out of scope from my variable $node_id . So i have extended. XF/Pub/Controller/Thread <?php namespace Yodrak\PhotoPoll\XF\Pub\Controller; use XF\Mvc\ParameterBag; class Thread extends...
  10. Yodrak

    XF 2.1 Pass Variables to poll_macros

    @Brogan I've found out the issue. It was caused from my addon.
  11. Yodrak

    Conditional Statements for XenForo 2

    I'm searching a conditional statements to check the actual node_id. Unfortanely i only have access to $xf so i need to compare a array with 'node-' prefix. What i have tried is. <xf:if is="in_array($xf.reply.containerKey, 'node-' . $xf.options.photoPollForums)">
  12. Yodrak

    Conditional Statements for XenForo 2

    <xf:if is="$xf.time > 1599606000 AND $xf.time < 1599692400"> Your code here... </xf:if> I think something like this should work.
  13. Yodrak

    XF 2.1 Pass Variables to poll_macros

    Thanks @Brogan. I'll check that. But i'm sure i don't have mod_security installed at apache in my localhost. I get the same error in nginx at my dedicated server development website too.
  14. Yodrak

    XF 2.1 Pass Variables to poll_macros

    I have one issue left in my addon. After i submit the poll form i get this message: Oops! We ran into some problems. You do not have permission to view this page or perform this action. If i check the consols its throws me this error. After i close the form and reload the page i can see the...
  15. Yodrak

    XF 2.1 Pass Variables to poll_macros

    @Lawrence thank you again for gave me the hint. The Addon Work, what i still have todo is to finish the Templates My Problem is, i'm a noob in PHP and i don't understand till now, how to inspect the code right.
Top Bottom