Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 21, 20231 yr Is it possible to get the current forum view method (table, fluid etc.) in code? I notice that the URL to set the method contains these parameters so was hopeful they could be easily retrieved somehow in JS: do=setMethod&method=fluid
June 21, 20231 yr Solution It's also stored in the database, so using the method is probably better \IPS\forums\Forum::getMemberListView()
June 21, 20231 yr 1 hour ago, Mick23 said: somehow in JS: But using Daniel's suggestion you could get the value using that code, add it as a data attribute to something in a template and then grab that using JS code up front. A few more lines of code though. Edited June 21, 20231 yr by Nathan Explosion