Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
eGullet Posted November 3, 2015 Posted November 3, 2015 I think that one thing I can do to ease member acceptance of the new streams functionality is to make them open up in Compact view the first time a member sees them (they can always flip to the mega-view if they want it). Is there a straightforward way of doing this, or is a mod required?
eGullet Posted November 3, 2015 Author Posted November 3, 2015 Well, I'm going to answer my own question here. Line 260 of applications/core/modules/front/discover/streams.php begins a set of lines that hard-codes the default to expanded view. The stored cookie does not tell the software which view to use (that is, it doesn't store some equivalent of "expanded" or "condensed") it is just a flag that indicates to the software to use the opposite view. So although it would be simple enough to change the code there to invert the views, if Invision ever decides to un-hard-code this behavior it's going to be a mess to sort out. I can't think of any viable solution to this problem short of a completely custom system for showing the stream that has its own cookie (or better, stores the preference in the DB so that it applies no matter which browser the person is using). I think this is going to be out of my price range, unfortunately.
jp Posted November 5, 2015 Posted November 5, 2015 I would really like the ability to set a default option of either expanded or condensed. I would prefer to set the default option to be condensed would be good if Invision add this ability as an option in the settings
eGullet Posted November 16, 2015 Author Posted November 16, 2015 We contracted with DawPi to develop this plugin: he did an awesome job, as always, and we asked him to make it available via the marketplace: https://community.invisionpower.com/files/file/7842-dp41-collapsed-stream/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.