Featured Sites: A-Z Index

H


Newest 10 Entries

Question How do I manage refunds in Composr?
Answer
  • Monetary payments: Issue refunds through your payment gateway.
  • Point payments: Manually refund points through the points system.
  • Cancellations: Cancel purchases in the Admin Zone to allow repurchasing. Remember to manually undo any associated actions (e.g., removing name highlighting).
Question What are the shipping options in Composr?
Answer You can handle shipping costs in three ways:

  • Flat rate per order: Configure a fixed shipping cost for all orders.
  • Weight-based calculation: Define shipping costs based on the order's total weight.
  • Shippo integration: Get real-time shipping quotes from various carriers based on weight, dimensions, and destination.
Question How do I handle taxes in Composr?
Answer Composr offers flexible tax handling:

  • TaxJar integration: Supports international taxation for many countries.
  • TaxCloud integration: Supports complex USA taxation, including destination-based rules.
  • EU digital goods tax: Handles EU-specific regulations for digital products.
  • Custom tax rates: Define your own percentage-based tax rates.
  • Tax hooks: Developers can extend tax functionality and implement additional tax providers.
Question What are the different types of products in Composr?
Answer Composr offers various "products," which are broader than typical eCommerce products. They include:

  • Usergroup subscriptions: Offer access to specific usergroups with recurring payments.
  • Catalogue items: Physical or digital goods sold through the shopping cart and a special "products" catalogue.
  • Orders: Collections of products purchased together.
  • E-mail addresses: Sell personalized email addresses on your domain.
  • Topic pinning: Allow users to pay to pin forum topics.
  • Name highlighting: Offer highlighted usernames on the forum.
  • Banners: Sell banner advertising space.
  • Custom products: Define and sell any product or service you wish.
  • Permission products: Sell access to specific permissions, such as download categories.
  • Gambling: Allow users to wager points.
  • Work: Represent invoiced services.
  • Non-purchasable products: For accounting purposes (interest, tax, wages, other).
Question How do I set up PayPal in Composr?
Answer
  • Sign up for a PayPal Business Account.
  • Enable "Auto Return" in PayPal and set the return URL to http://yourbaseurl/index.php?page=purchase
  • Enable "Payment data transfer" in PayPal and copy the data transfer identifier for Composr.
  • In Composr, go to Admin Zone > Setup > Configuration > eCommerce options > Payment gateway (PayPal-specific).
  • Paste the data transfer identifier and save.
Question What payment gateways does Composr support?
Answer Composr supports PayPal, CCBill, and Authorize.Net for processing payments. While Composr could be extended to support other gateways, doing so may require professional development and customization.
Question What are the limitations for uploading large files?
Answer
  • 32-bit PHP build: Files larger than 2GB are not supported.
  • 64-bit PHP build: Files larger than 2GB are supported, but the file size will not be displayed.

For very large files, it's recommended to upload them manually and provide the URL instead of directly uploading them through the web form.
Question Can users search for specific downloads?
Answer Yes, the unified Composr search system allows users to find downloads based on keywords. This includes searching within download titles and descriptions, as well as within the content of certain file types like PDFs, text files, and even some binary formats (providing they are not too large in size).
Question Can I add images to my downloads?
Answer Yes, Composr automatically creates a gallery for each download (if the galleries addon is enabled). You can easily add images directly after creating the download or through the download-view screen. The download gallery is displayed within the download-view screen itself.
Question Are there security features to protect downloaded files?
Answer Yes, Composr includes security measures to protect downloads.
  • Protection from hackers: Uploaded files are stored with obscured filenames, preventing direct access and bypassing of the download system. Additionally, an anti-leech feature (when enabled) prevents direct download links from being shared on other websites (this is done by requiring a session ID which is validated against the person / device accessing it and only provided when Composr presents the download links to you on the site).
  • Basic security: Composr will not let anyone upload dangerous scripts (such as PHP files) which can be executed.
  • Rootkit detection: The rootkit detection tool under yourbaseurl/rootkit_detection.php can help scan files for shell scripts and backdoors. Composr's Health Check can also do this regularly. Note this only offers very basic detection and will not work for obfuscated backdoors (you should use antivirus to scan for those).

It is the responsibility of webmasters to run antivirus on their site to regularly scan files uploaded to it. Composr does not include antivirus software or virus scanning.

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.