Question Threads

Question Threads 2.1.2

No permission to download
@CMTV wasn't online in 2019 so i will share my changes to you. Changes on your own risk, enable developer mode to make changes in TMS.

Public templates
1.) account_visitor_menu
Change Find: <!--[XF:stats_pairs:above_likes]--> to <!--[XF:stats_pairs:above_reactions]-->

2.) member_macros
Change Find: <!--[XF:stat_pairs:above_likes]--> to <!--[XF:stat_pairs:above_reactions]-->

3.) message_macros
Change Find: <xf:if is="$extras.like_count"> to <xf:if is="$extras.reaction_score">

4.) post_macros (1st)
Change Find: <div class="message-attribution-opposite"> to <ul class="message-attribution-opposite message-attribution-opposite--list">

5.) post_macros (3rd)
Change Find: <xf:if is="$post.canLike()"> to #(<xf:react.*?\/>)#is (Changing to regular expression)

6.) post_macros (new - Order 12)
Find: <xf:css src="message.less" />
Replace:
HTML:
$0
    <xf:css src="QuestionThreads.less" />

Admin templates
1.) style_property_template_messageUserElements
Change Find: <xf:option name="{$formBaseKey}[like_count]" selected="{$property.property_value.like_count}"> to <xf:option name="{$formBaseKey}[reaction_score]" selected="{$property.property_value.reaction_score}">

Don't forget to disable development mode after changing and testing. If you have more than one template modifications of one template you should take a look at the order of execution.

If you have questions, don't ask.. 😂 ;)
-------------------------------------------------
@Nerdface :p

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Just release an updated version. What is this mess?
So many things I could say, but I'll bite my tongue.

We're merely trying to help the community in the absence of the add-on's author, who has released their work free of charge. They've since confirmed in another of their free add-ons that they will be updating their releases to support 2.1.
 
No he can't, he would have to code a similar addon from scratch.

It has an open source license. He can happily release an updated version without issue. He just has to also make his changes open source (simplified explanation).

Or, someone could create a pull request on github with the changes, contributing to the project and helping the author.
 
All good. It is worth reminding folks that they can help authors of projects like this if they need features or updates.

Not aimed at you @ozzy47, but I get a bit peeved about folks complaining free add-ons aren't updated within minutes/hours of an XF core update. I probably should have added a smiley or two to my response above. :)
 
Slight bug with your release @mcatze

A RegEx replacement isn't really needed here.. Just change the template modification to search
<xf:react content="{$post}" link="posts/react" list="< .js-post | .js-reactionsList" />
 

Attachments

  • question-bug.webp
    question-bug.webp
    16.3 KB · Views: 12
Back
Top Bottom