Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/18/2021 in all areas

  1. Version 1.1.0

    20 downloads

    A nice little widget to display the members that have visited your site in the last X hours. Features: - Set number of hours - Select groups that are allowed to see the widget - Show 'Most members ever online' - Limit maximum number of shown members - Groups to exclude from the list - Ability to sort users by last visit, group or name Also you can decide if only the name is displayed or the avatar (tiny or medium size).
    Free
    1 point
  2. Version 1.1.0

    36 downloads

    This plugin adds a button to scroll back to the top of the site to longer pages. Make sure to enable and configure the settings after installation!
    Free
    1 point
    a much needed option and works really well, my members appreciate back to the top. Thank you for your time for providing this excellent plugin
    1 point
  3. Just wanted to drop by and say THANK YOU for everything that you do for the community! :)
    1 point
  4. Now we are ready to create a block (plugin) that we will use as a side menu. The side menu displays categories and the pages hierarchically. This block is created in AdminCP, and we are going to use a custom template for it. Block with page menu In your AdminCP go to Pages -> Page management -> Blocks and click on Create new block. Click on Next. On the tab Details enter the name for the block and template key docs_side_menu. In the tab Feed Configuration set the following: You define here the number of records in the block. In earlier versions of IPS it was possible to enter a 0 for unlimited. Starting with IPS version 4.4.10 it does not work anymore, so you have to enter a large positive number, e.g. 100. This number should be greater than the number of all categories and all pages in the categories together, otherwise the menu will be cut off. The sorting in the block is only valid for the order of the pages within a category. The categories are sorted as specified in AdminCP. You can change their order by drag and drop. Template for side menu The "magic" happens on the tab Content. Here you select the option Use as base for a custom template. A template editor will appear below this option where you enter the following code: Save the block and give all user groups the permission to see the block. If you exclude the groups here, the menu will not be displayed for them. You can already see the rough structure of the menu in the preview of the block. We will add the CSS styles and JavaScript later to make it a bit smarter. Some CSS classes are already built into templates above. The last lines in the block redirects from category listing to the first record in the category if you navigate through the side menu. Insert menu into the page To add the block into the page, go to Pages -> Page Management -> Pages in AdminCP and click on the pencil icon to edit the page docs. Go to the tab Content. Here you can see that the database has already been added to the page via the database ID. This happened automatically when we created the page during database creation. Replace the content of the page with the following code: Take time and look at this simple HTML for the page. Here we use the keys for database and the block with the menu. These are inserted in two columns using the IPS CSS framework. The IF-query makes sure that the menu disappears when you edit the page, otherwise you would not have enough space to edit the content. See your documentation in the frontend now. The only things we miss here are CSS and JavaScript.
    1 point
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Further information can be found in our Privacy Policy.