Featured Sites: A-Z Index

H


Newest 10 Entries

Question What is the Composr Repository?
Answer The Composr repository is a user-friendly representation of Composr's data, which is typically stored in a database and on the filesystem. It presents the data in an easily accessible format using the JSON standard and can be accessed as a folder on your computer via WebDAV.
Question What is Commandr?
Answer Commandr is a command-line interface designed for experienced system administrators who prefer using a command line over a GUI. It supplements the Composr Admin Zone, allowing you to execute commands in the form of:
  • PHP code (prefix :)
  • SQL database queries (prefix @) (queries must be executed one at a time; semi-colon separation is not supported)
  • Shell commands (prefix #)
  • Commandr-code scripts (store in the Composr filesystem's bin directory, and just type the name of the script)
  • Commandr-code commands (no prefixes)

You can access Commandr via the Admin Zone > Tools > Commandr or using the Commandr button in the footer.
Question Are there alternative chat solutions that integrate with Composr?
Answer Yes, you can integrate third-party chat solutions with Composr. For example, CometChat is a commercial chat system that provides a Composr integration. You can also leverage video chat services like Talky, Jitsi, or appear.in by embedding links within your chat templates. For sales-chat needs, consider integrating a dedicated live chat platform like Comm100.
Question Are there any limitations to the Composr Chat system?
Answer While the Composr Chat system provides robust chat and IM features, it does have some limitations. Currently, it does not support video chat, sales-focused chat features, desktop app integration, or optimal performance for very high volumes of concurrent users. Additionally, it is only near real-time as Composr queries for new messages using AJAX at a set interval.
Question Are there any safety guidelines for younger users?
Answer It's crucial to emphasize safety, especially for younger users. Encourage them to follow these guidelines: never arrange to meet anyone from a chatroom in person, be cautious about sharing personal information, and report any suspicious behavior to moderators.
Question Can I download chat logs?
Answer Yes, you can download logs of any chat conversation. Simply navigate to the chatroom, click on the "Download chat logs" link, specify the desired date/time range, and the system will generate a downloadable log file for you.
Question How can I moderate the chatrooms?
Answer Composr offers a range of moderation features. Moderators can edit or delete messages, ban disruptive users, and delete entire chatrooms if necessary. Inline moderation links are available within chatrooms for quick actions, while the Admin Zone provides comprehensive moderation tools for managing chat content and user behavior.
Question What is Chatcode and how can I use it?
Answer Chatcode is a system of simple commands that you can embed within your chat messages to perform advanced actions. These actions include sending private messages to specific users within a chatroom, interacting with automated bots, sending chatroom invitations, and even creating new chatrooms.
Question How does the chat system work?
Answer The chat system utilizes AJAX technology, enabling dynamic updates without requiring page reloads. It includes a "Chat Lobby" where users can view available chatrooms and manage their friend lists for instant messaging. Users can join chatrooms to participate in group conversations or engage in private conversations with friends.
Question What is the Composr Chat system?
Answer Composr Chat is a feature built into the Composr CMS that provides both chatrooms and instant messaging capabilities. It offers real-time, text-based communication for users on your website.

Top 10 Entries

Question How do I set the correct file permissions for Composr?
Answer If you're using the quick installer, it will handle file permissions automatically. On a suEXEC-style server, default permissions (744 for directories and 644 for files) are usually sufficient. However, _config.php should have 600 permissions for security.

Without suEXEC, specific directories (e.g., caches, uploads) and files (e.g., _config.php) require 777 (full access) or 666 (read/write) permissions. The fixperms.php script can automate this process on Linux and Windows.
Question How do I install Composr on Linux?
Answer After ensuring your web host meets the requirements and you have a database ready, you can install Composr on Linux using the following steps:
  • Upload the Composr files to your web directory.
  • Navigate to the install.php file in your web browser.
  • Follow the on-screen instructions, providing the required information, such as database details and administrator credentials.
  • After the installation is complete, delete the install.php file for security reasons.
Question What are the prerequisites for installing Composr?
Answer Before installing Composr, ensure your web host meets the minimum requirements. Familiarize yourself with your web host's control panel (e.g., Plesk, cPanel), which you'll use to manage databases, subdomains, and other settings. Gather your SFTP/FTP credentials (hostname, username, password), usually emailed upon signup. Set up a MySQL database and note its details: hostname (often 'localhost'), username, password, and database name. Ensure the database user has full read/write/administer access to the database.
Question What tools are available for debugging Composr code?
Answer Composr offers a code quality checker addon that helps identify various types of errors, including parser errors, run-time errors, and logical errors. This tool can significantly reduce debugging time and enhance code reliability. It is available through the testing_platform addon.
Question What are some key coding standards in Composr?
Answer Composr emphasizes clean, well-structured code with a focus on readability and maintainability. Key standards include proper indentation, consistent use of comments, and clear function headers with type definitions. Remember: beautiful code leads to better functionality and collaboration!
Question Where can I find resources for learning PHP programming?
Answer While Composr documentation doesn't cover basic PHP, resources like the official PHP documentation (

PHP: Hypertext Preprocessor

PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

View

), online tutorials, and the Composr API guide can help you learn.
Question What is the purpose of the Code Editor?
Answer The Code Editor is a web-based tool for editing Composr code files directly on the server. It requires password authentication and automatically manages overrides within _custom directories.

To access it, go to yourbaseurl/code_editor.php.
Question How can I export and import custom addons?
Answer Composr allows exporting addons as TAR files, containing all necessary files and an addon.inf file for metadata. You can import these addons to share and reuse them across different Composr installations.

To do this, make your necessary files for the addon in the Composr installation, and then go under Admin Zone > Structure > Addons > Export addon. You can select the relevant files for the addon, provide information about the addon, and then download the TAR file (which can then be imported on other Composr sites).
Question Can you give an example of creating a new module?
Answer Imagine creating a "Testing" module to manage collaborative testing:
  • Define purpose: Allow testers to add, assign, and track tests, with security and forum integration.
  • Design database: Plan the necessary database tables and fields to store the module's data.
  • Create module shell: Write the basic module structure based on standard Composr modules.
  • Define screens: Identify the module's screens and code their corresponding functions.
  • Utilize API functions: Use Composr's built-in API functions like create_table, add_privilege, and do_template to implement functionality.
Question What are the different ways to extend Composr functionality?
Answer You can extend Composr through:
  • File overrides: Replacing existing source files with modified versions in _custom directories.
  • New Modules/Mini-modules: Creating new modules for complex functionalities or mini-modules for simpler ones.
  • New Blocks/Miniblocks: Adding reusable content blocks.
  • New API code: Adding new PHP files to the sources_custom directory.
  • Hooks: Writing hooks to add features to specific areas of functionality.