Jump to content

Reactions on Pages too!

Featured Replies

Posted

Any chance of getting reactions enabled on Pages articles/databases?

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}}

 

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.

I'm on beta 3.

I can't find it in the templates.

 

I am not getting the reactions in any of the pages I have created either.

I did but no joy, not 100% sure which template, I am very new to IPB been using xenforo for 3 years.

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

Thanks I will try again.

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

It's a new database.

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.

Moving to 'Peer to Peer Technical Support'

Thank you all working as it should:)

Archived

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

Recently Browsing 0

  • No registered users viewing this page.