Featured Sites: A-Z Index

H


Newest 10 Entries

Question How can I customize Composr without modifying the core files?
Answer Composr offers a robust override system. Instead of altering the original files, create a parallel structure within _custom directories. For example, to modify site/pages/modules/polls.php, place your customized version in site/pages/modules_custom/polls.php.

The tutorials outline additional information on how to utilise overrides.
Question What are the main components of the Composr framework?
Answer Composr consists of:
  • Modules: PHP files that provide related screens, forming the building blocks of addons.
  • Comcode: Text files containing content written in a simplified markup language.
  • HTML: Files containing standard HTML for web pages.
  • Sources: PHP code files for the core API and functionality.
  • Hooks: PHP files enabling addons to interact and extend each other's functionality.
  • Blocks/Miniblocks: Reusable components for displaying dynamic content within pages.
  • Themes: Folders containing images, CSS, and templates to define the look and feel.
  • Language files: Files holding text strings for multilingual support.
Question How can I embed third-party widgets into my Composr pages?
Answer Composr supports embedding widgets from various websites, like Google Maps, Vimeo, and YouTube, by simply pasting the URL. For manually embedding widget code, you can paste it into the HTML source view of the WYSIWYG editor or within Comcode html tags if not using the WYSIWYG editor.
Question What is the difference between blocks and boxes in Composr?
Answer Boxes are visual elements that provide a container for content, while blocks are functional units that generate and display dynamic content. Although blocks often appear within boxes in the default templates, they are not inherently tied to any visual representation.
Question Can I customize the appearance of blocks?
Answer Yes, you can style blocks by editing the associated templates and CSS. Templates are typically named after the block they represent. For example, the main_news block uses the BLOCK_MAIN_NEWS.tpl template.
Question How do I create custom filter forms for my content?
Answer The main_content_filtering block can help you generate filter forms automatically. You can use it to create a default form and then customize the generated Filtercode string to refine the filtering options. Once satisfied, you can either continue using the block or extract the HTML and modify it further.
Question Where can I use Filtercode and Selectcode in Composr?
Answer Filtercode is supported in various blocks, such as main_multi_content, main_gallery_embed, and main_cc_embed. It's also actively used in modules like catalogues, downloads, galleries, members, and news.

Selectcode is supported in blocks and Comcode tags that explicitly mention it, including the main_multi_content block and the if_in_group Comcode tag.
Question What is the difference between Filtercode and Selectcode?
Answer Filtercode is used for querying content based on properties and values, while Selectcode is used for directly specifying a list of IDs or categories to include or exclude. Filtercode offers more complex filtering options, while Selectcode is more straightforward for simple selections.
Question How can I filter content in Composr?
Answer Composr provides two filtering systems: Filtercode and Selectcode.
  • Filtercode is used for selecting content based on defined filters, such as field values, ratings, or keywords. It utilizes a syntax of comparisons, separated by commas, where each comparison specifies a field and a matching condition.
  • Selectcode is a simpler syntax for specifying a list of IDs or categories to include or exclude from the results. It uses a comma-separated list of match-specifier tokens, such as individual IDs, ranges, or wildcard characters.
Question What are blocks in Composr and how can I use them?
Answer Blocks are dynamic elements that can be inserted into Comcode pages to add interactive and data-bound functionality to your website. They are essentially reusable components that automatically generate content, such as recent forum posts or information about the logged-in user.

You can add blocks to your pages using the block construction assistant, which allows you to select from a list of available blocks, set their parameters, preview them, and generate the necessary Comcode.

Top 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.