Title: Custom variable syntax
Last modified: February 19, 2018

---

# Custom variable syntax

 *  Resolved [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/)
 * Hello. I want to customize the plugin with the custom variable box. But I can’t
   find a description which works. If I input something like: view_mode: mobile 
   nothing happens and the chat box is disappearing from the site.
    The documentation
   here: [Link](https://conversejs.org/docs/html/configuration.html#view-mode) isn’t
   help me either. I think this is valid only for php code. Please write some example
   how to use the Custom Variable box. My main goal is to activate mobile view first.

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989546)
 * Hi, in custom variable box you can set any variable [Variable documentation](https://conversejs.org/docs/html/configuration.html)
   but not view_mode for a bug of conversejs 3.3.1
 * We think to release a version of plugin with conversejs 3.3.3 soon.
 * for example:
    `allow_contact_requests:true,`
    -  This reply was modified 8 years, 3 months ago by [Preexist Kudos](https://wordpress.org/support/users/camaran/).
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989556)
 * Soon i think to add option for manage view_mode directly from option page 🙂
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989573)
 * Thank you for the quick answer and for the great plugin.
    Waiting for an update
   then.
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989770)
 * please download [trunk version](https://downloads.wordpress.org/plugin/conversejs.zip)
   with auto view_mode setting and send me a feedback for this version
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989886)
 * ok, I have updated the plugin. The mobile view is different slightly. The name
   changed to InVerse – I think this is the mobile css, but it’s full screen again.
   
   What is the expected size of the window? I tried Firefox and Samsung browser.
   Full screen chat window is big for mobile I think. I’ve enabled “hide chat panel
   open”, but it doesn’t seem to affect the outcome. In the previous version, the
   chat panel was minimised.
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9989933)
 * infact if i set `view_mode: mobile` not work `hide chat panel open` for a bug
   of converse you can see [here](https://github.com/jcbrand/converse.js/issues/996).
 * Please download again trunk i commited a version with `view_mode` remove i think
   now `hide chat panel open` work
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-9992864)
 * So the view-mobile function is still waiting to be fixed by the main dev.
    I’ll
   follow the issue. Thanks.
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10014935)
 * Hi! I don’t know if I should post it here:
    I’ve got problem with playing sounds
   in the chat. If I thick the “play sounds” nothing happens. The setting doesn’t
   get stored. I’ve tried several path options: full path(/wp-config…), /sounds/,./
   sounds, etc. I’ve tried the “play_sounds:true,” variable.
 * I see you updated the plugin, is there any changes after the one week old trunk
   version(you posted before)?
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10015046)
 * bug of options page, fixed in 3.3.3.1 version
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10015174)
 * Thank you. Should I enter some kind of sound path? Or use the ./sounds?
    I still
   doesn’t get any sound. I’ve checked the files, they are there. Permissions are
   ok.
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10015186)
 * you try with absolute path
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10015398)
 * Still no success. What am I doing wrong?
    I’ve tried in the Sound Path box: /
   wp-content/plugins/conversejs/core/sounds/ (and without the last dash /) [https://site-name/wp-content/plugins/conversejs/core/sounds/](https://site-name/wp-content/plugins/conversejs/core/sounds/)/
   sounds/ ./sounds /var/www/… Custom variable: sounds_path:same as above PS: I’m
   using Firefox
    -  This reply was modified 8 years, 2 months ago by [gyulavitez](https://wordpress.org/support/users/gyulavitez/).
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10015479)
 * the sound work only when you receive a message and the focus is not on the chat
   tab
 * > Plays a notification sound when you receive a personal message or when your
   > nickname is mentioned in a chat room.
   > Inside the ./sounds directory of the Converse.js repo you’ll see MP3 and Ogg
   > formatted sound files. We need both, because neither format is supported by
   > all browsers.
 *  Thread Starter [gyulavitez](https://wordpress.org/support/users/gyulavitez/)
 * (@gyulavitez)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10023090)
 * Thank you, problem solved. My mistake.
 *  [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * (@camaran)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10023105)
 * Good news

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Custom variable syntax’ is closed to new replies.

 * ![](https://ps.w.org/conversejs/assets/icon.svg?rev=999043)
 * [ConverseJS](https://wordpress.org/plugins/conversejs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/conversejs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/conversejs/)
 * [Active Topics](https://wordpress.org/support/plugin/conversejs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/conversejs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/conversejs/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 15 replies
 * 2 participants
 * Last reply from: [Preexist Kudos](https://wordpress.org/support/users/camaran/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/custom-variable-syntax/#post-10023105)
 * Status: resolved