streams/app
2023-12-23 07:37:29 +11:00
..
admin.apd preparatory work for app order ticket. Make English translations of app names consistent. 2023-09-25 19:51:02 +10:00
affinity.apd affinity tool -> friend zoom; alter xchan_query to return results in hubloc_primary desc order; as hublocs have been seen in the wild with no primary 2019-07-29 19:33:36 -07:00
atoken.apd cleanup 2021-04-10 23:39:04 -07:00
audience.apd testing audience app 2023-11-10 18:37:43 +11:00
categories.apd appify categories 2019-03-24 20:08:23 -07:00
channel.apd update apps 2017-02-06 13:16:33 +01:00
chat.png Use Tango-based app icons 2014-12-26 23:24:50 +01:00
client.apd appify oauth2 2019-10-09 22:51:48 -07:00
comment_control.apd per-post comment control: select comment allowed audience and comments_closed date 2020-11-23 19:14:44 -08:00
communities.apd finish last commit 2022-03-21 17:00:23 -07:00
connections.apd update apps 2017-02-06 13:16:33 +01:00
content_filter.apd content filter app 2019-01-22 19:11:53 -08:00
customsql.apd move customsql back to admin and turn it into an app 2022-05-03 15:36:46 -07:00
default_apps Make 'Audience' a default app now that the default audience is no longer "anybody on the internet". 2023-12-23 07:37:29 +11:00
directory.apd update apps 2017-02-06 13:16:33 +01:00
drafts.apd drafts v1 2020-11-29 16:38:45 -08:00
events.apd bring back events app - calendar is not yet ready for prime time 2019-05-15 21:22:47 -07:00
expire.apd xchan_instance_url was still being referenced, add expire app 2019-03-24 22:46:31 -07:00
future.apd bring back future posting 2020-05-03 16:18:27 -07:00
help.apd missing app file 2021-03-01 19:29:57 -08:00
lang.apd update apps 2017-02-06 13:16:33 +01:00
lang.png New icon for language selection 2014-12-27 11:16:11 +01:00
legal.apd Add legal site link and allow site admins to change the text from the admin interface. Still needs some page theming. Issue #7 2022-08-30 12:52:48 +10:00
lists.apd unclutter the user menu 2022-06-19 18:38:20 -07:00
markup.apd turn off dragon drop on post editor until duplicate upload issue can be investigated/resolved. New app: Markup which provides the bold, italic, etc. editor buttons and removes them by default for less clutter 2020-09-23 17:59:09 -07:00
moderate.apd change icon 2022-09-22 04:47:14 -07:00
notes.apd tasks and notes 2019-06-24 17:35:12 -07:00
photomap.apd add photomap app 2019-06-30 20:11:08 -07:00
photos.apd add files and photos to featured apps by default 2017-06-22 20:47:21 +02:00
poke.apd some preliminary work on threaded comments refactor, bring back poke app. 2021-07-25 17:20:10 -07:00
post.apd update apps 2017-02-06 13:16:33 +01:00
pubstream.apd provide option to block the public stream unless authenticated, since there could be legal issues with unmoderated content 2018-02-14 15:32:33 -08:00
README.md App customisation with some documentation 2023-09-28 21:08:17 +10:00
roles.apd roles app 2022-01-22 02:05:42 -08:00
search.apd update apps 2017-02-06 13:16:33 +01:00
secrets.apd re-package browser-to-browser encryption as 'secrets' app 2020-08-23 17:32:33 -07:00
settings.apd unclutter the user menu 2022-06-19 18:38:20 -07:00
storage.apd add files and photos to featured apps by default 2017-06-22 20:47:21 +02:00
stream.apd Change stream icon 2022-05-08 23:15:40 -07:00
suggest.apd resolve some of the issues associated with having multiple suggestion implementations, and add xign sync to this subsystem 2019-04-30 16:52:07 -07:00
tagadelic.apd tagadelic app 2020-10-21 15:22:23 -07:00
tasks.apd turn tasks into an app 2019-06-29 19:23:31 -07:00

App Customization

A number of possibilities are present to customize the default apps that are presented on your site. The apps are typically defined in a file named something.apd, where something can be an arbitrary name, but usually describes the app in some manner.

Most sites run with files under version control (such as 'git'), so modifying these files is discouraged. It will cause merge conflicts next time your site updates.

But we have a way around this. The first thing you should do is create a new directory inside this directory, with a name of 'site'. Copy any files you wish to change into the site directory, and from there you can modify them without causing conflict.

You can also change the default order of the apps either on the navigation bar at the top of the page or in the apps pull-down "hamburger" menu. All you can do here is create a default or initial layout. Your site members can change the layout as they wish, and once they've changed it, you've lost control.

In order for an app to appear in the navigation bar, it needs to have 'nav_pinned_app' as one of its categories. In order for it to appear in the hamburger (apps) menu, it needs to have 'nav_featured_app' as one of its categories.

Many of the system apps already contain the 'nav_featured_app' category and will show up automatically in the hamburger menu. Few if any contain the 'nav_pinned_app' category, so if you want something to appear on the navigation bar, you will need to copy that .apd file to the site directory and edit 'categories:'. This is a commas separated list of available categories and may not exist, or may exist and also contain other categories.

Also, in order for a system app to be loaded into the system, it must have changed. There is a version: field in the app which lets you control this. It doesn't matter what the version is, only that if you want your changes to work, the version needs to change. The developers usually use whole numbers for the version, so to avoid conflict with them, it is recommended you use an extra decimal place such as 2.1.

The ordering of apps is provided in files you create with the filenames app/site/nav_order (for the navigation bar), and app/site/app_order (for the hamburger menu). These contain the exact name of the app as shown in the name: field of the .apd file, one per line.

With this background out of the way, let's do an example. You want the Connections and Stream apps to appear on the top navigation bar for your site members.

First create the site directory

cd app
mkdir site

Copy the connections.apd and stream.apd files to this directory

cp connections.apd site
cp stream.apd site

Edit both of these files, changing the version and categories.

For the site/connections.apd file the result will look like this:

version: 1.1
url: $baseurl/connections
requires: local_channel
name: Connections
photo: icon:users
categories: nav_featured_app, nav_pinned_app, Networking

For the site/stream.apd file the result will look like this:

version: 2.1
url: $baseurl/stream
requires: local_channel
name: Stream
photo: icon:list-alt
categories: nav_featured_app, nav_pinned_app, Networking

Now create a file called site/nav_order and add the entries (using the name: attribute). It will look like this:

Stream
Connections

Assuming you haven't changed the default app order, if you reload the page these apps should appear in the navigation bar.

If it doesn't, visit https://[yoursite]/pconfig/system

and look for pconfig[n][system][import_system_apps] and click it. 'n' will be a number, your channel_id. This contains a date, most likely today's date. Set it to yesterday's date and submit. Then it should display.

Changing the app menu should be much easier, if you just want to change the order of existing apps, because usually you won't need to change the categories or versions. You just want to create a file called site/app_order listing the entries in the order you desire. All of the installed system apps are listed in a file called 'default_apps' in the app directory. You can order these the way you wish. Not all of the entries in this file have the 'nav_featured_app' category, but the important ones do. If you want one of those which doesn't have this category to appear in the app hamburger menu, copy it to the site directory and edit it just like the examples above for the navigation menu.

You can also just list one or two entries you want at the top of the list and the software will use the system ordering (alphabetic) for the remainder. If the developer release new system apps they want to appear in this menu, these will appear below any ordered entries you specify.