Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Documentation for template syntax

Featured Replies

Hi, we're super new to Invision Community, and I am struggling to find the correct documentation. We're on cloud 5.0.11.

An example would be a block that I need display differing content, based on a members active subscription. I've found I can get the member object with

{{$member=\IPS\Member::loggedIn();}}

and I've been able to dump that data to screen to have a look through, but where can I find the class level documentation for things like /IPS/Member?

Currently I'm experimenting with reflection classes to try and dig through, but that's going to be rather painful.

We're php devs by trade, so it's the technical docs we're after. I've found hints of what we can query in the [docs here](https://invisioncommunity.com/4guides/themes-and-customizations/template-syntax/) but I fear I am missing some rather crucial repository of info.

Many thanks.

  • Author

To clarify; this is to create custom Blocks (currently)

  • Community Expert

Unfortunately, there currently is not any documentation which detail the whole class structure of each class in our software. If you're looking for something specific, you can review existing Block templates, review the theme templates, or ask a question in the customization forum.

  • Author

Hi @Jim M, thanks for getting back to me so quickly. We've been reviewing the block templates - it's how we've managed to get as far as we have. Unfortunately asking in a forum for the thousand things we're going to need to know is really going to slow the project down; how do we get active subscriptions for a member, how do we get members who has a subscription, what format are dates returned in, what other events are in this category, is user A in the same group as user B etc etc. There's just too much we don't know and I don't want to take up so much of the community's time.

Am I right in thinking that the self-host version (4, I believe?), is going to be quite close to what is on the cloud option? If so, I'll just purchase a self host license and download the code, or is the code obfuscated in some way?

Again, my sincere thanks for such a speedy response!

  • Community Expert

Yes it will indeed be the same in terms of that kind of thing

  • Author

Magical. Thanks @Marc & @Jim M, much appreciated. Code spelunking here I come.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.