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 What are URL Monikers and how do they benefit SEO?
Answer URL Monikers replace generic numerical IDs in your URLs with descriptive keywords derived from your content titles.

For example, instead of yoursite.com/page.php?id=123, you can have yoursite.com/about-us. This makes your URLs more user-friendly and helps search engines understand the topic of each page, improving your search ranking.

You can set monikers in the "Metadata" section when adding / editing content.
Question What is an XML Sitemap and why is it important?
Answer An XML Sitemap is a file that lists all the pages on your website, helping search engines understand your site's structure and content. Composr automatically generates a comprehensive sitemap, including forum topics if you are using Conversr.

Ensure your system scheduler is enabled for automatic sitemap submission to search engines. You can also manually generate and submit the sitemap if necessary.
Question How can I improve my website's ranking in search engines?
Answer Composr offers various features and best practices to enhance your SEO:
  • Content Optimization: Write high-quality, keyword-rich content using clear headings, relevant links, and descriptive image alt text.
  • URL Monikers: Enable this feature to create human-readable URLs that incorporate keywords instead of numerical IDs.
  • XML Sitemaps: Composr automatically generates and submits XML Sitemaps to major search engines, aiding them in discovering and indexing your content.
  • robots.txt: This file allows you to control which parts of your site search engines can access and index. Composr provides a default robots.txt that can be customized as needed.
Question What are the primary metadata elements I should focus on?
Answer While Composr provides extensive metadata options, the key elements to prioritize are:
  • Title: The title tag appears in browser tabs, search results, and when your page is shared. It should be concise, descriptive, and include relevant keywords.
  • Meta Description: This short summary entices users to click on your search result. It should be engaging, informative, and accurately reflect the page's content.
  • Open Graph data: These protocols control how your content appears when shared on social media and other websites. They utilize elements like title, description, and images to create visually appealing previews.
  • Favicon and Apple Web Clip image: These small icons represent your website in bookmarks, browser tabs, and on mobile home screens. They contribute to branding and visual recognition.
Question What is metadata and why is it important for my website?
Answer Metadata is information about your web pages that isn't directly visible to visitors, but is used by search engines and social media platforms to understand and categorize your content.

Well-crafted metadata helps search engines properly index your site, making it more likely to appear in relevant search results. It also improves how your website appears when shared on social media, encouraging clicks and engagement.
Question What should I do about offensive or off-topic discussions?
Answer Decide on your moderation approach: balancing viewpoints, adhering to community standards, or focusing on topic relevance. Be prepared to face criticism regardless of your decisions. Establish clear rules and policies to guide user behavior.
Question What resources are available to help me navigate these legal and social challenges?
Answer Composr offers various resources, including tutorials on accessibility, staff management, and general website dos and don'ts. You can also consult external resources like the COPPA website and Wikipedia for more in-depth information on specific laws and regulations. Remember that seeking legal counsel may be necessary for complex situations.
Question What are some social considerations for running a website with community features?
Answer Managing a community involves addressing social issues like child protection, free speech, discrimination, and abuse. Establish clear policies on these matters, including content moderation guidelines and procedures for handling feedback. Consider the diverse personalities and potential vulnerabilities of your users.
Question What are my legal responsibilities regarding illegal content posted by users?
Answer While "safe harbor" laws offer some protection, you are still obligated to take down illegal content upon becoming aware of it. Implement measures like content checks, clear rules prohibiting illegal uploads, and liability disclaimers. The level of responsibility varies depending on the severity of the content, from copyright infringement to more serious criminal content.
Question What steps should I take to make my website accessible?
Answer Website accessibility is essential for inclusivity and may be legally required under anti-discrimination laws. Composr is designed to meet high accessibility standards, but you need to maintain this when creating content or modifying templates. Following WCAG guidelines is crucial, and you can find more information in the accessibility tutorial.