<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is it possible to customize/change the presence box items?]]></title><description><![CDATA[<p dir="auto">Hi FOP2-Community,</p>
<p dir="auto">i am searching the web and the FOP2 forum and source files now for a longer time and it seems i'm too dumb to find what i need.</p>
<p dir="auto">I want to adapt/change the existing items in the presence dropdown box of FOP2 (2.26 White label lic.). Reason: First not all are localized to german (it's a mix of english and german) and second our staff wants me to remove (or replace) existing labels we do not need with some we need. I get the impression they are hardcoded somewhere (maybe in the SWF?) or they are stored in the sqlite database?</p>
<p dir="auto">So my question is:</p>
<ul>
<li>Where can i customize existing items from the dropdrown presence control in the FOP2 browser page and what do i need to change exactly.</li>
<li>Do i need to change the english AND the german translation or just the german translation?</li>
<li>Can i only replace existing items (meaning i am constrained to the amount of items that are already there) or can i add more (if we need another when all existing are already adapted) and remove some (if we need fewer options to not overwhelme the user with unneccesary things). If i can add and/or remove, what are all the places and things i need to change?</li>
</ul>
<p dir="auto">Thank you in advance for your help, patience and an early reply.</p>
<p dir="auto">Greetings<br />
JoTo</p>
]]></description><link>http://localhost:4567/topic/1154/is-it-possible-to-customize-change-the-presence-box-items</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 12:36:25 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1154.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 May 2012 08:31:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Sun, 29 Sep 2019 01:56:51 GMT]]></title><description><![CDATA[<p dir="auto">Reviving this old post to mention how to do things using recent FOP2 versions (&gt;2.31.0):<br />
You can disable the Other presence option by login into the FOP2 Manager, selecting Settings and enabling <strong>disablePresenceOther</strong><br />
As for adding/removing custom options, also in Settings, in the last page click on <strong>presenceOptions</strong> and you will be able to add/edit/remove entries:</p>
<p dir="auto"><img src="https://forum.fop2.com/uploads/editor/ef/6xqymv1ng906.png" alt="" class="img-markdown  img-fluid" /></p>
]]></description><link>http://localhost:4567/post/5204</link><guid isPermaLink="true">http://localhost:4567/post/5204</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 29 Sep 2019 01:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Thu, 21 Mar 2019 18:07:01 GMT]]></title><description><![CDATA[<p dir="auto">I've tried adding some entries to presence.js:</p>
<p dir="auto">presence['Washroom']       = '#2da4ff';<br />
presence['Chat']           = '#ddf74d';<br />
presence['Notes']          = '#ff8de0';</p>
<p dir="auto">and to lang_en.js:</p>
<p dir="auto">lang['Washroom']           = 'Washroom';<br />
lang['Chat']               = 'Chat';<br />
lang['Notes']              = 'Notes';</p>
<p dir="auto">Yet these entries aren't appearing in the dropdown. If I edit an existing entry, that change is reflected. Any ideas? I've tried restarting fop, but doesn't have any effect.</p>
<p dir="auto">Also, any guidance on the best way to remove the "Other" option?</p>
]]></description><link>http://localhost:4567/post/5203</link><guid isPermaLink="true">http://localhost:4567/post/5203</guid><dc:creator><![CDATA[jvanderz]]></dc:creator><pubDate>Thu, 21 Mar 2019 18:07:01 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Tue, 05 Jun 2012 07:18:03 GMT]]></title><description><![CDATA[<p dir="auto">Arrrgh! Typo-Alarm! <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> And no edit option i can see. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">i don't think you can't get rid of the "edit in 2 places" concept ..</p>
<p dir="auto">should be read:</p>
<p dir="auto">i think you can't get rid of the "edit in 2 places" concept  ...</p>
<p dir="auto">in my last post.</p>
<p dir="auto">Sorry to all for the noise!</p>
<p dir="auto">Greetings<br />
JoTo</p>
]]></description><link>http://localhost:4567/post/5202</link><guid isPermaLink="true">http://localhost:4567/post/5202</guid><dc:creator><![CDATA[JoTo]]></dc:creator><pubDate>Tue, 05 Jun 2012 07:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Tue, 05 Jun 2012 07:14:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicolas,</p>
<p dir="auto">i don't think you can't get rid of the "edit in 2 places" concept without losing the flexibility of having an arbitrary amount of entries. You have to define the english defaults array entries and then the translation in the lang.js file. So i agree with you, not perfect, but unavoidable IMO.</p>
<p dir="auto">I prefer to have the flexibility though. So don't change anything unless you find the ultimate solution. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Thanks again for you nice contact and responsiveness.</p>
<p dir="auto">Greetings<br />
JoTo</p>
]]></description><link>http://localhost:4567/post/5201</link><guid isPermaLink="true">http://localhost:4567/post/5201</guid><dc:creator><![CDATA[JoTo]]></dc:creator><pubDate>Tue, 05 Jun 2012 07:14:42 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Tue, 05 Jun 2012 00:01:57 GMT]]></title><description><![CDATA[<p dir="auto">Glad you have it working. Actually, I was never totally happy with the presence option labels being the array keys. Because it is <em>another</em> place to configure localization, when ideally it should be all on one place only (and it can be confusing, you were bitten by that design choice I made early on).</p>
<p dir="auto">The thing is that in this way it is also very flexible, as you can define as many options as you want. If you have an idea on how to move the localization/translation somewhere else without losing flexibility please let me know!</p>
<p dir="auto">best regards,</p>
]]></description><link>http://localhost:4567/post/5200</link><guid isPermaLink="true">http://localhost:4567/post/5200</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 05 Jun 2012 00:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Mon, 04 Jun 2012 06:40:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicholas,</p>
<p dir="auto">thank you very much for your answer.</p>
<p dir="auto">Hmmm, i'm a retard. I already found the presence.js file and noticed the presence entries. My mistake was, that i thought its only the color settings there. I haven't thought about you are using the array index keys as the text labels too. I thought there is another place where you reference this array keys with the colors to add somewhere else defined lables. <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Now i understood that the array keys are the text labels as well. I changed them and all works fine now.</p>
<p dir="auto">Thank you again for your effort.</p>
<p dir="auto">Greetings<br />
JoTo</p>
]]></description><link>http://localhost:4567/post/5199</link><guid isPermaLink="true">http://localhost:4567/post/5199</guid><dc:creator><![CDATA[JoTo]]></dc:creator><pubDate>Mon, 04 Jun 2012 06:40:32 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to customize/change the presence box items? on Fri, 01 Jun 2012 20:33:24 GMT]]></title><description><![CDATA[<p dir="auto">You can edit /var/www/html/fop2/js/presence.js and set the options to whatever you like. You must leave one empty option, but you can localize/translate all the rest and set their colors if you want (add more, remove some, etc).</p>
]]></description><link>http://localhost:4567/post/5198</link><guid isPermaLink="true">http://localhost:4567/post/5198</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 01 Jun 2012 20:33:24 GMT</pubDate></item></channel></rss>