Jump to content

opentype

Clients
  • Posts

    9,888
  • Joined

  • Last visited

  • Days Won

    133

Reputation Activity

  1. Like
    opentype reacted to Stuart Silvester for a blog entry, 4.3: Announcements   
    We have a very important announcement to make!
    There are times where you need to get the attention of your visitors. You might be closed on certain days of the year, performing server maintenance (if you are consider our Cloud Plans, they're excellent) or running a competition.
    Invision Community has always had an announcements feature baked in, but we felt it could be improved.
    Okay, maybe this feature isn't as flashy as some of the others we're introducing in 4.3, but these useful features should make managing your community easier.
    The new look announcement feature replaces the old widgets enabling you to display customisable announcements in any of the following locations;
    Top of the page Above the page content In the sidebar
    The three new announcement locations
    Each location has some slightly different features; the page top banner is dismissible by the member if they no longer want to see it, whereas the banner above the content and the sidebar announcements cannot be dismissed.
    Most of the original customisable features are still available, including the ability to select which applications and pages show certain announcements and which member groups can see them. Combining this with the three new locations gives you much more flexibility for different types of announcements and we've also included the option to customise the color of the announcement.

    New customisable options
     
    The announcements have also been improved to contain more information. Rather than showing an unformatted snippet along side the title, announcements can now be tapped to open a modal showing any further details.

    Modal showing announcement content
    We hope you'll enjoy these useful improvements in Invision Community 4.3. Stay tuned for further announcements (pun intended)!
  2. Like
    opentype reacted to Charles for a blog entry, 4.3: Usability improvements to make your day better   
    Often it's the smaller changes that can make a big improvement in the day to day use of your community. We have made quite a few updates that will make your community flow better for you and your members.
    Update files in Pages Media Manager
    Previously when you wanted to update a file in the Pages Media Manager you actually had to upload a new file and then change the references to that file to the new one. This was obviously not so great.
    When you select a file there is now a replace option. We're not sure why we didn't do this earlier but as they say: better late than never!
    Tag Input when Optional
    On communities with tagging enabled, we have often noticed that people tend to feel the need to tag everything even when it's not really necessary. If your site is about cars you don't really need everything people post to be tagged "car" as that's sort of obvious.

     
    So to make it a bit clearer that tags are not required we have hidden the input field behind a Choose link so people have to actively choose to tag if they really think it's necessary. We hope this cuts down on tag noise. If tagging is required then the normal input box will always show.
    Google Invisible reCAPTCHA
    The new Google Invisible reCAPTCHA allows you to prevent bot registrations without the need for all users to fill out the normal captcha process. As often as possible your members will never notice there is even a captcha happening on the page. It's another way to make the flow from guest to member easier.
    Whitelist for Spam Service
    The spam defense service Invision Community provides works very well at combatting spam signups automatically. The issue is sometimes it works too well!
    Let's say you are at work and all your colleagues share the same public IP. You are excited about your new community (of course you are) and your whole office tries to register at once. Our spam service would probably see your office IP as suspicious with that sudden influx of traffic and may even block it.
    The new whitelist tool allows you to specify IPs and email addresses to always allow on your community regardless of what score our spam defense gives it.
    Reply as Hidden
    Sometimes it would be nice if your moderators could reply to an item with a hidden reply. You might want to leave a note for other moderators or perhaps you have a database and want some replies public and some private.

     
    If you have permission you will now see a hide toggle when replying. This works in all apps anywhere you can reply to a content item and have hide permission.
    Exclude Groups in Leaderboard
    You can now exclude certain groups from being ranked in the Leaderboard. This is very useful if your staff or RSS bot tend to get all the reputation points. By excluding those groups you can focus on your actual member participation which is a better reward to encourage engagement.
    On a personal note this will make me very sad as I usually win reputation counts on our site. But, being such a great person, I am willing to make this sacrifice for you.  
    Complete Your Profile Order
    The Complete Your Profile feature introduced in version 4.2 has been a great success for clients. We have heard many reports of increased engagement as the system can walk people through the sign up process. Not having a big, scary registration form is always a huge plus.
    For 4.3 we added the new ability to change the order of completion for your members. This will allow you to stress the items you really want them to complete first and move your less important profile options later in the steps.
    Mapbox Support
    Mapping has been a feature of Invision Community for quite some time but up until now has been limited to Google Maps integration. For 4.3 we have added support for Mapbox which is based on OpenStreetMap data. The maps are beautifully designed and bring greater flexibility with an alternative look. The groundwork is now laid for some exciting new features still to come!
    Some of our existing customers also found Google policies and pricing structure incompatible with their own internal policies which this addition addresses.
  3. Like
    opentype reacted to Mark for a blog entry, 4.3: Take payments with Apple Pay and more with Stripe and Commerce   
    Stripe is the most popular payment method in Commerce, allowing communities to take payments by card securely with easy setup.
    While there's no doubt that credit cards are still the most popular methods of making a payment, digital innovations such as Apple Pay are increasing in popularity.
    For 4.3 we've deepened our integration to support some of their latest features.
    Apple Pay & Google Pay
    Apple Pay allows users to pay quickly with their iPhone, iPad or Mac (with Safari and either a paired iPhone or using the MacBook Pro with Touch ID) using the card details stored on the device, authenticated with Touch ID or Face ID.
    Apple Pay
    Google Chrome (on desktop or Android devices) supports a similar feature allowing users to pay with card details stored in their Google account with Google Pay, or stored in Chrome itself.
    Paying with card details stored in Google Chrome
     
    Both of these features are now supported through Stripe in Invision Community 4.3. Setup is simple - for Apple Pay you simply need to verify that you own your domain by uploading a file you obtain from the Stripe dashboard, and nothing special is needed for Google Pay - and then create the payment method in the AdminCP. Stripe does not charge any additional fees for either option.
    Commerce will automatically hide the option if the user's device does not support either method.
    3D Secure
    Also known as Verified by Visa, Mastercard SecureCode, and other brand names, 3D Secure is a system that is used to verify a customer's identity before purchase is completed and transfers the fraud loss liability from the merchant to the cardholder bank in case of fraudulent disputes.
    After the user has entered their card details, they are redirected to their bank's website and asked to provide additional verification.
    Our integration with Stripe in 4.3 now supports this process. A new setting allows you to choose if you want to use 3D Secure just for cards which require it (i.e. cards which would decline the payment if 3D Secure is not completed) or for all cards which optionally support it as well.
     
    Amex Express Checkout
    American Express cardholders can use Amex Express checkout to pay by using their American Express login rather than providing their card information.  This is also now supported through Stripe in 4.3.
    Amex Express Checkout
     
    Alipay, Bancontact, Giropay, iDEAL, SOFORT
    These are popular payment processors internationally (Alipay is popular in China, Bancontact in Belgium, Giropay in Germany, iDEAL in the Netherlands, and SOFORT in several European countries).
    The checkout experience is similar to PayPal with the user being redirected to the appropriate site, authenticating the payment, and then being redirected back.
    All of these are also now supported through Stripe in 4.3.
     
    Dispute/Chargeback Handling
    A dispute (also known as a chargeback) occurs when one a cardholder questions your payment with their card issuer, which causes the funds, plus a fee, to immediately be taken from your account until evidence is provided that the transaction was legitimate.
    Anyone operating an online store knows how frustrating this experience can be. In 4.3, we've made dealing with this situation a little easier. When a dispute is created, Commerce will now mark the transaction as disputed, which will immediately revoke any benefits from the purchase (for example, if it's for a subscription that moves them into a different group, they will be placed back into their original group; if it's a Downloads file, they won't be able to download it any more; if it's for a physical item that hasn't been shipped yet, the shipping order will be placed on hold).

    Disputed Transaction
    All transactions with currently open disputes can be accessed quickly from the transaction list. The transaction page will show you the status and reason for the dispute, and links to your Stripe dashboard where you can respond.
    When the dispute is resolved, the transaction screen will be updated, with either the transaction being marked as refunded if the dispute is lost, or going back to paid if the dispute is won and the funds returned to you.

    A dispute that was lost

    A dispute that was won
     
     
    Radar
    Radar is Stripe's suite of fraud detection tools using machine learning and customisable rules to help detect fraudulent transactions.
    Stripe will automatically blocks transactions is considers highest risk already. However, for "elevated" risk transactions, while Stripe would alert you of them so you could review them, Commerce would process the transaction normally.
    In 4.3, Commerce will place any transactions which Radar reports as having an "elevated" risk level on hold for manual review, so you can decide whether to approve or not before the funds have been captured.
    In addition, the transaction details screen for Stripe transactions now provides some additional information about Stripe's checks on the transaction, including the Radar risk level, if the CVC check passed, and if the billing address provided matches the card's billing address.
    If a fraudulent transaction does make it through, you will now have the option to indicate this when refunding the transaction to help Stripe's anti-fraud systems learn.
  4. Like
    opentype reacted to Mark for a blog entry, 4.3: Express yourself with Emoji   
    Emoji: built in to Invision Community 4.3! ?
    Invision Community has a long history. We remember the early days of forums, back when graphical "emoticons" or "smilies" were added.
    We have always shipped our products with a basic set of emoticons with the ability to add your own images and has supported emoji from mobile devices.
    Emoji has become a standard across mobile and desktop devices so it made sense to bring them to Invision Community fully.
    You can choose from 3 different styles of Emoji:
    The native style provided by the user's operating system (if you choose this option, users on different platforms will see different styles) Twitter style EmojiOne style
    Emoji Settings
    Once you have chosen one of these options, all of the available Emoji will show in the emoticons selector when making a post. Unlike in older versions, the entire list is scrollable (the categories drop down will jump you to the category rather than filter), you can search, and standard Emoji features like skin tone modifiers are fully supported, and of course, you can make them as big as you like.

    Navigating Emoji

    Skin Tone Modifier

    Make Emoji any size
     
    Autocompleting Short Codes
    In addition to using the selector, you can also use optionally enable standard :short_codes:. These will be autocompleted as you type.

    Autocompleting Short Codes
    You can also enable more conventional ASCII emoticons to be automatically replaced too:

    ASCII Short Codes
     
    Don't Worry: Custom Emoticons Aren't Going Anywhere!
    You can use custom emoticons either instead of, or even alongside Emoji. If you give your custom emoticons a text replacement starting and ending with : they will even show in the autocompletion alongside Emoji.

    Custom Emoticons
     
    Technical Details 
    Whichever style you choose, Emoji is stored in the database as the actual Unicode characters, so you can even change the setting and all Emoji, even those in existing posts, will immediately change.
    If you choose to use the native style (so the Emoji will match the style provided by the operating system), the system will automatically detect which Emojis are supported and the selector will only try to show the ones the platform can render.
  5. Thanks
    opentype reacted to Matt for a blog entry, How Invision Community's tools can help with GDPR compliance   
    The General Data Protection Regulation (GDPR) is a regulation (EU 2016/679) that is intended to strengthen and unify data protection for EU residents from 25th May 2018.
    How can Invision Community help?
    While Invision Community enables you to collect and store information, it's important to note that you as the site owner are the data controller. If your site can collect data from EU citizens, then we recommend that you research your responsibilities.
    We have introduced several new tools in Invision Community 4.2.7 to help you with compliance, and we'll run through them and the relevant sections of the regulation in this blog.
    Individual Rights (More information)
    Right to be informed
    Invision Community has an area for you to edit your own privacy policy. This is found in the Admin CP > Settings > Terms & Privacy Policy.

     
    Guidance on what the policy should contain can be found here.
    Right to erasure (More information)
    Invision Community allows you to delete a member from the Admin CP. If the member has left posts or comments on your community, you can elect to delete the content, or keep it but remove the author's details thereby making the content anonymous.
    Lawful bases for processing (More information)
    Consent (More information)
    Invision Community now features a setting to not automatically opt in to administrator emails such as those sent by the bulk email system often used for newsletters when registering a new account on your community.
    This feature is found in the ACP > Members > Registration Settings

     
    Part of the consent regulation is to record when consent was given. The consent to opt-in for administrator emails such as bulk emails sent via the Admin CP is recorded at registration, and each time they change the setting. This record can be found in the member history log when viewing a member in the Admin CP.

    If you change the Terms & Conditions, or the Privacy Policy, you can request that members accept these changes when they next log in thus giving their consent for those changes.

    Cookies (More information)
    Invision Community stores a small amount of data in cookies. These are used to authorize you when you re-visit a community. Other cookies are used to provide a service at the user's request, such as changing a theme or using Commerce's cart.
    We have added additional features for Invision Community 4.2.7 to permit acknolwedgement that cookies will be set, and a brief page outlining the types of cookies that are set.
    Invision Community has a feature that shows a small message to new visitors to the community. This is found in the Admin CP > Terms & Privacy Policy page.

     
    We have pre-configured a cookie acknowledgement message using the short-tags {cookies}.
    This will display as follows:

     
    This links to a new page showing brief information about the types of cookies that Invision Community stores.

     
    Although at the time of writing this blog entry, the regulation states that there is no exact information that you need to show on the cookie page, you can edit it to add more detail if you wish.
    Summary
    We hope these new tools available with Invision Community 4.2.7 make it easier for you to seek compliance with GDPR if you choose to do so.
    It's worth pointing out that we are awesome at making community software and know a huge amount about making communities successful, but we are not experts in EU regulation. We offer this blog entry as a way to assist you in seeking compliance but you must do your own research and are responsible for your own community.
    Invision Community 4.2.7 is currently in beta testing. We're aiming to release it early next week.
    We hope this is a good starting point for you!
  6. Like
    opentype reacted to Matt for a blog entry, Podcast: Online Communities in the Post-Facebook Era   
    Matt was recently invited onto the Community Signal Podcast, where he spoke with host Patrick O'Keefe.
    Everything from how Matt got started with online communities right up to the possibility of a post Facebook era was covered in their 45 minute chat. Matt also gives a little insight into how Invision Community works behind the scenes.
    From Community Signal:
    Check out the podcast now!
  7. Like
    opentype reacted to Ryan Ashbrook for a blog entry, New: Complete Your Profile   
    Completing long and complex forms online is tedious. It can be off putting having to fill in a lot of information before you can join a site or service. You may find that potential members never bother to convert from a visitor.
    How to convert guests into regular members is an often asked question. The simple answer is to lower the barrier to entry. Invision Community 4 already allows you to register with Facebook, Twitter, and other networks with ease.
    "Complete My Profile" is a system that will lower the barrier of conversion. Guests only have to complete a very basic form to gain membership. Members are then asked to complete any custom profile fields you require.
    You can also set up steps that group items together to encourage existing members to add more information to their public profile.
    Members with a complete profile and user photo provide others with much more engagement and personality.
    Registering
    If we look at registering first. Clicking "Sign Up" will only show a simple modal form with as few fields as possible.

     
    If you have required steps, and after any member validation flow, the complete your profile wizard is shown.

     
    This enforces required fields and the member cannot skip them or view other pages until completed.
    Of course, you may have steps that are not set to required. These are available too, but are skippable. Members can complete skipped steps later.

     
    A dismissible progress bar shows to members that have uncompleted steps. Once dismissed, it no longer displays in the header of the site.

     
    This same progress bar is always shown in the members' settings overview panel, in the user control panel. This will prompt members with incomplete steps.

     
    If you set up a new required step, members have to complete the step before being able to browse again. This will ensure that all regular members have completed profiles.
    Admin Control Panel
    You will create new steps in the Admin Control Panel. Each step can contain multiple elements of a single group. This step can be set to required to enforce completion or suggested to allow it to be skipped.

     
    The basic profile group contains things like user photo, birthday and cover photo. Choose any of these for this step.

     
    The custom profile field group contains any fields you have set up already.

     
    You can switch off this system if you feel it does not fit your needs. When disabled, you get the normal registration form.

     
    Reducing the complexity of membership can only help convert more guests into contributing members. Enforcing required steps ensures that you capture data across your membership.
    We hope you enjoy this feature and you see an increase in guest conversion with Invision Community 4.2.
     
  8. Like
    opentype reacted to Charles for a blog entry, New: Security and Privacy   
    IPS is always auditing our software to improve security at the code-level but these improvements are not really visible to you even though they protect your site all the time. We are implementing some new features that you can use to enhance the security and privacy of your site. Many of these features depend on your personal preferences, local laws, or the policies of your own organization. Here is a list of what's new:
    Birthday Control

    You may wish to make birthday viewing only show to admins or you can completely disable prompting for a birthday if you consider that information sensitive.
    Member Delete Name Retention
    When deleting a member in the AdminCP, if you choose to keep their posts the system currently names the posts with a display name of "Guest user" where user is the previous display name of the member you deleted. You can how choose to retain their name in posts or not so you can either have it as it is now or simple "Guest" on member delete.
    Password Strength

    Password Strength
    You now have two new options for password: show a strength meter and require strong passwords. You can choose to either just show the meter as a suggestion or you can also choose to enforce a password strength. You can choose between three levels of password enforcement parameters depending on how strict you choose to be.
    Guest Terms Banner

    Guest Terms Banner
    There is a new option to show a guest terms of service banner when a new visitor first visits your site. You can set the text shown in the display and you can also put in two special tags to automatically link to your Terms of Service or Privacy Policy page.
    Age Restrictions

    Age Prompt
    We have always had COPPA support in the Suite but we have extended this to be a more generic age restriction feature. You can now set your site to reject registrations from anyone under a certain age you specify. For privacy, the birthday entered on registration is only used to calculate permission and is never stored.
     
    This change will be in version 4.1.17 which is scheduled to be released in early December 2016.
  9. Like
    opentype reacted to Charles for a blog entry, Coming Soon in 4.1.16   
    IPS Community Suite 4.1.16 is nearing the end of development so I wanted to go over some of the new features in this upcoming release. Some are big and some are small but we always enjoy making any sort of enhancements to the Suite.
    We expect 4.1.16 to go to public beta next week. If you are interested in using a public beta please check out our beta forum (clients only) with more info. We welcome as much testing as possible and our betas are considered safe to use on a live site. We do offer support for betas so, if you are technically minded, consider giving them a try.
    Commerce: New Ticket Listing
    We have redesigned the ticket listing view in Commerce to be much more user friendly and better use screen space. You can also now group by department which is great for organization.

     
    Much like Activity Streams on the front end you can create custom views for tickets based on how you work.

    The new My History view allows staff to quickly see their latest replies and actions along with some basic stats.

    There are many other smaller improvement in Commerce in 4.1.16 as well. We think you will enjoy all the updates.
    Security Questions
    To enhance the security of your member accounts we now have a new security questions feature where you can allow your members to put in their own, personal security questions. The member will then be prompted to answer those questions for account actions you define.

    Account Change Emails
    Members will now receive confirmation emails when they change their email address...

    and their password...

    Topics per Page
    You can now define the number of topics per page in forum view.

    Remove all Followers
    Moderators can now remove all followers from any item that allows follows. This is useful if you are archiving an old item or otherwise do not want people getting notified of new activity on an item.

    Automatic Following
    Your members can already choose to automatically follow content they start or reply to but now you can define this as the default behavior for all members. Your members can of course override this to their own preference.

    Embed Failure Message
    To answer the constant question "why didn't my media embed?" we now show you why. Regular members will just see a message indicating the Suite tried to embed but was not able to. Admins will get more information on what failed.

    Suspended Member Page
    When you banned/suspended a member previously they simply saw a generic permission denied message. We now show a more friendly page saying they were suspended and why.

    The member can click to get the full information from the Warning System as well.

    Contact Us
    The contact us page now has configuration options to control where messages are sent. You can do email and even Commerce support departments now.

    Announcements
    Global announcements can now be restricted by member group.

    And some technical stuff...
    In addition to the new feature additions we have also fixed dozens of issues reported by clients. There was a particular focus on Commerce, Pages, and IPS Connect. Some other items of note:
    Performance improvements in: profile view, sitemap generator, posting replies, and Activity Streams We now try to more reliably detect the AWS S3 endpoint for those using S3 file storage Tasks view will now show the last time a task ran More efficient license key checking to keep the keys from being checked too often which can slow your site down If group promotion based on date is enable the system will now auto-promote even if a member does not login If you move your site to a new URL you no longer have to update a constant if using the image proxy You can now press ctrl/cmd+enter in any editor window to submit the reply (yay!) In Commerce ticket view there are keyboard shortcuts to perform common actions (such as press 'r' to open reply box or 'n' for note) There is now logic to prevent double-posting when the initial post encounters an error on submit If your datastore (cache system) is not working properly the AdminCP will now show you a warning telling you that it needs attention.    
  10. Like
    opentype reacted to Rikki for a blog entry, Theme Tip: Color coding tags   
    We were recently asked if it's possible to color code tags - the customer in question used tags as statuses on topics, and so wanted 'resolved' to be green, and so on. Despite being a great idea, this isn't something that is currently possible 'out of the box' - although we'll add it to our internal feature idea list to follow up on later!
    But just because it isn't built in, that doesn't mean it isn't possible! In fact, with a little CSS, this is quite easy to achieve now.
     
    Writing a CSS selector
    We can do this by writing a CSS selector that matches the tag URL for the tag we want to style - a handy way to use CSS that can be applied to lots of other ideas within the suite!
    Lets say we have a tag called 'resolved', and we want to make it green. Add the following CSS to your custom.css file:
    .ipsTags a[href*="/tags/resolved/"] { background: SeaGreen; } html[dir="ltr"] .ipsTags a[href*="/tags/resolved/"]:before { border-color: transparent SeaGreen transparent transparent; } The first style is the main part of the tag element; the second matches the :before pseudo-selector which we use to make the 'point' of the tag.
    Another tag we'll style is called 'needs help'. In this case, there's spaces in the name, which are represented by the + symbol in the URL (since it's URL-encoded). We'll make it purple this time:
    .ipsTags a[href*="/tags/needs+help/"] { background: Purple; } html[dir="ltr"] .ipsTags a[href*="/tags/needs+help/"]:before { border-color: transparent Purple transparent transparent; }  
     
    Supporting prefixes
    This little CSS snippet won't change prefixes, however - they'll still be shown in the default color (specified by your theme settings). If you want to change prefixes too, you need to adjust the CSS as follows - replace the previous CSS with this version:
    .ipsTags a[href*="/tags/needs+help/"], a.ipsTag_prefix[href*="?tags=needs+help"] { background: Purple; } html[dir="ltr"] .ipsTags a[href*="/tags/needs+help/"]:before, html[dir="ltr"] a.ipsTag_prefix[href*="?tags=needs+help"]:before { border-color: transparent Purple transparent transparent; } (Note: Notice the slightly different string we're matching in the href attribute; once you upgrade to 4.1.14, this won't be necessary - both selectors can use the same href format, e.g. /tags/needs+help/. Prior to 4.1.14, tags and prefixes used slightly different URL formats.)
    That's it - now everything looks correct!
     

    Topic View
     
     

    Forum View
     
  11. Like
    opentype reacted to Rikki for a blog entry, Theme Tip: Dynamic(ish) forum feeds inside Pages databases   
    Recently, we had a post in our pre-sales forum that asked how to achieve a few different things with Pages. One of the questions asked was if it was possible to show topics from a particular forum in each database record. While Pages can create a topic for each record for you, there's no way to associate an entire forum with a record.
    In my reply, I indicate that you'd need to have a forum ID stored with each record in a custom field, and then use PHP to interact with our API to pull the topic list.
    As it turns out, however, there's an easier way that I discovered after some experimentation. In hindsight it's obvious, but I want to share it here because it could open up some other interesting possibilities with some creative uses.
    Setting up blocks
    The first thing we need to do is create our blocks. We're going to create a block for each of our forums. You can set whatever parameters you want here, but the important thing is that they're named consistently using the forum ID. So, for my forum ID 2, I've named the block forum_2. This will allow us to include our blocks later.

    Creating one of the blocks we'll need
     
    Adding the field
    Next we'll need to create a field in our Pages database that will be used to set the forum ID that is going to show in each record. For simplicity, I'm creating a Number field and I'll enter the forum ID manually, but if you wanted to go further, you could create a Select Box field, with the key being each forum and the value being the name. This would give you a friendlier input from which to select the forum for each record.
    Here, though, I've just created the Number field, and named it Forum ID.

    Setting up the database field
     
    Using the field formatter to show the correct block
    Finally, we'll use the Field Formatting options to show the correct block based on the forum ID entered for each record. On the Display Options tab, I'm going to hide the field from the listing template, but show it on the display template. I've selected Custom as the format, then entered this format:
    {{if $formValue}} {block="forum_{$formValue}"} {{endif}} That's it - that's all you need for this to work. It's very simple. All we're doing is passing the $formValue of the field (which is the raw value) into the {block} tag as a variable, so that the block that is rendered depends on this value. As long as a block exists with the correct key, it'll be shown in the display view:

    End result, with the correct block pulled in based on the ID we provided to the record
     
    Going further
    So, given that we know we can use variables in block names to pull in different content (providing the block has been created ahead of time), what other possibilities are there? For starters, we aren't just restricted to using field formatters. Instead, we could use blocks directly in the database templates, using some of the data available there.
    Here's one idea - if you have just a few staff members posting records, you could create a block for each staff member that lists their recent posts, status updates, etc. In your database template, you could include the correct block by doing this:
    {block="content_for_{$record->author()->member_id}"}  
    I hope this relatively simple approach gives you some ideas for more creative ways to use blocks. If you have any suggestions for other ways to use this approach, please let us know in the comments!
  12. Like
    opentype reacted to Rikki for a blog entry, Theme Tip: Apply CSS to specific Pages databases   
    When you use custom templates for a Pages database, you'll often need custom CSS to go along with it to provide the styling. There's two main ways of doing this:
    CSS files within Pages
    Pages allows you to create CSS files, and then associate them with particular custom pages of your community (you create these in the AdminCP, under Pages > Templates > CSS). So simply create your CSS file, and associate it to the page that your database is displayed on.
    The benefit of this method is it applies to all themes, so it's great if you want your database to look the same on all themes. Of course, this is also the drawback - you can't easily use it for per-theme customization.
    Targeting the database classname in theme CSS
    Alternatively, you can target the database classname in your normal theme CSS files. When a database is inserted into a page, IPS4 helpfully adds a classname to the body element, which makes it really simple to style that page in particular. If your database key is myDatabase, then the classname added to the body element would be cCmsDatabase_myDatabase. Use this in your selectors and you can style everything exactly how you need:
    .cCmsDatabase_myDatabase .ipsButton_important { /* Style important buttons differently in this database, for example */ } Combine both methods!
    Of course, you can use both approaches when it makes sense. Create a CSS file within Pages for the basic structural styling that will apply regardless of which theme the user uses, and then in each theme target the database classname to customize it for that particular theme - perfect for the colors, font family and so on.
×
×
  • Create New...