XF ver 2.2.9
Addon ver 5.7.7
PHP 7.4
I have a "Daily Activity" event that is supposed to trigger on the first login each day. Instead of triggering once, it triggers separately for each tab open on the site. For instance, if I have 3 browser tabs open on the forum and it becomes the next day, I...
Thanks for the reply. The goal was to make all the anonymous alerts actually come from a real user (that I set up as a 'bot'). For some reason I assumed it would be as simple as changing an ID somewhere from 0 to whatever the bot's is but I should have explained it better.
For anonymous or "default" alerts, data-user-id="0". Is there somewhere in the templates I can change the default ID to something other than 0? Or does it involve changing an actual php file?
Amazing addon, however this error is thrown when applying any custom image for the icon next to the username:
Error: Call to undefined method apathy\StyleSuite\Repository\Styles::service() in src/addons/apathy/StyleSuite/Repository/Styles.php at line 161...
In the end, this wasn't necessary. To move the date in with the user details you can just switch around some container divs without moving the variables to other templates.
Hello,
I would like to take $post.post_date (as seen in post_macros) and move it into the user details in message_macros (not by css).
Visual representation:
Is there any way to output the post date within message_macros successfully? My attempts yield "Dec 31, 1969' across all posts.
Thank you, it outputs an extra forward slash in the form of "https://mysite.com//threads/thread.100/" but the link still functionally works. Definitely cleaner than putting the site url in the template.
Edit: Oh, maybe it works for me because I have my index routed as the thread list.
Thank you for your help ~
Got it to work using:
<a data-xf-init="copy-to-clipboard" data-copy-text="https://myforum.com{{ link('threads', $thread) }}">Copy link</a>
I'm trying to add a "Copy link" text on each item within the thread list and can't get it to work. I've tried various combinations in thread_list_macros of:
<a data-xf-init="copy-to-clipboard" data-clipboard="{{ link('forums', $thread.Forum) }}">Copy link</a>
<a data-xf-init="copy-to-clipboard"...
Sure. It's a very stripped-down, simplistic setup inspired by Reddit. I've only kept two drop-downs and they're located just above the quickthread title bar in place of the original "Filters" button.
Found a workaround in forum_filters by replacing
<xf:foreach loop="$sortOptions" key="$sortKey" value="$null">
<xf:option value="{$sortKey}">{{ phrase_dynamic('forum_sort.' . $sortKey) }}</xf:option>
</xf:foreach>
with custom options. Now they populate just...