Jump to content

Reactions on Pages too!


Ohio Guns

Recommended Posts

Templates are not updated in upgrades. You just need to fix the template by editting.

Find:

{{if $record instanceof \IPS\Content\Reputation and settings.reputation_enabled}}

Replace:

      {{if \IPS\IPS::classUsesTrait( $record, 'IPS\Content\Reactable' ) and settings.reputation_enabled}}

 

Link to comment
Share on other sites

9 minutes ago, Morrigan said:

Templates are not updated in upgrades. You just need to fix the template by editting.

Find:


{{if $record instanceof \IPS\Content\Reputation and settings.reputation_enabled}}

Replace:


      {{if \IPS\IPS::classUsesTrait( $record, 'IPS\Content\Reactable' ) and settings.reputation_enabled}}

 

Beta 3 should hopefully do this automatically, to the best of its ability.

Link to comment
Share on other sites

You have to be using the 4.2 version (just in case you are still using 4.1.19.x)

It will be the "record" template for your database.

So if you edit your database settings it will tell you which one it is then go to the templates and find that template and click on the "record" under that template. This is where the above will be.

@Wonko12

Link to comment
Share on other sites

Yeah check what template you are using to display the records... if you didn't touch anything in the database, the default is the "Display" template... there you go to record and find the code.

It's the code above the highlighted line in the IF statement... as you see I have the correct one.

Q3PYZXh.png

Link to comment
Share on other sites

It should use the default then, Display. But edit the database and check at the bottom in the templates section, it should say Display.

63AYpRc.png

Or whatever it says, choose that one and edit the record entry as shown in the other screenshot.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...