Jump to content

WP V0RT3X

Clients
  • Posts

    646
  • Joined

  • Days Won

    5

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by WP V0RT3X

  1. 2 hours ago, GoodBoyGilb said:

    I saw this feature on a forum that has an AI bot that responds to everything that's posted, probably by ChatGPT I would imagine. Is this possible through Invision Community? The forum platform that was being used was XenForo.

    I guess you saw this addon ...

    Could contain: Page, Text, Document, Invoice

  2. That sounds very sad @Square Wheels :sad:

    On 9/3/2023 at 9:40 PM, Square Wheels said:

    The link is just what I'd like for one project.  A simple page that has 3, maybe 10, items in the menu on the left, and a page of info on the right.  All static, nothing that needs to be interacted with.  It's to provide info only.  Thanks anyhow.

    Feel free to PM me and I will build such a database directly on your site and completely for free.

    We can even customize it a little bit if you like to :smile:

  3. And here it is ...

    Could contain: File, Page, Text, Webpage

    1. Import the database
    2. Edit database and change key to "docs"
    3. Create a page like in the tutorial
    4. Create a block for the sidebar

    {{$recordClass = null;}}
    {{$catClass = null;}}
    
    {{if count($records)}}
    {{$recordClass = get_class($records[0]);}}
    {{$catClass    = '\IPS\cms\Categories' . $recordClass::database()->_id;}}
    {{endif}}
    
    {{$firstRecord = null;}}
    {{$currentUrlPath = \IPS\Request::i()->url()->data['path'];}}
    
    {{if count($records) and $catClass and count($catClass::roots())}}
    <ul class="ipsList_reset cDocs" data-controller="docs.front.devDocs.main">
        {{foreach $catClass::roots() as $root}}
        <li>
            <h2>{$root->_title}</h2>
            {{if count($root->children())}}
            <ul class="ipsList_reset">
                {{foreach $root->children() as $child}}
                <li class="cDocs_closed">
                    <h3 data-action="expandSection">{$child->_title}</h3>
                    {{foreach $records as $record}}
                    {{if $record->container()->_id == $child->_id}}
                    <ul class="ipsList_reset">
                        {{if $firstRecord == null}}
                        {{$firstRecord = $record;}}
                        {{endif}}
                        <li>
                            <a {{if $currentUrlPath === $record->url()->data['path']}}class="cDocs_active"{{endif}} href="{$record->url()}">
                                {{if $record->customFieldDisplayByKey('docs-short', 'raw')}}{$record->customFieldDisplayByKey('docs-short', 'raw')}{{else}}{$record->_title}{{endif}}
                            </a>
                        </li>
                    </ul>
                    {{endif}}
                    {{endforeach}}
                </li>
                {{endforeach}}
            </ul>
            {{endif}}
            <ul class="ipsList_reset">
                {{foreach $records as $record}}
                {{if $record->container()->_id == $root->_id}}
                {{if $firstRecord == null}}
                {{$firstRecord = $record;}}
                {{endif}}
                <li>
                    <a {{if $currentUrlPath === $record->url()->data['path']}}class="cDocs_active"{{endif}} href="{$record->url()}">
                        {{if $record->customFieldDisplayByKey('shortened_title', 'raw')}}{$record->customFieldDisplayByKey('shortened_title', 'raw')}{{else}}{$record->_title}{{endif}}
                    </a>
                </li>
                {{endif}}
                {{endforeach}}
            </ul>
        </li>
        {{endforeach}}
    </ul>
    {{endif}}

    That should be it.

    Dokumentation.xml

  4. The current IPS version supports only Font Awesome 4.7, in which the new X logo does not exist.

    You would have to upgrade to the latest Font Awesome (either via plugin or manually) and then you can add the social button yourself.

    I wrote an article a few years ago how to do this easily, even without plugin ...

    https://v0rt3x.dev/home/invision-community/tipps-und-tricks/social-profiles-hinzufügen-ohne-extra-plugin-r20/

  5. Hi,  when you try to edit the url of a linked file in downloads you run into an error.

    Found it on another site and was able to reproduce it on my own.

    Latest IC version without 3rd party applications.

    Error: Call to a member function filesize() on null (0)
    #0 /home/*****/*****/system/Dispatcher/Controller.php(107): IPS\downloads\modules\front\downloads\_view->newVersion()
    #1 /home/*****/*****/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
    #2 /home/*****/*****/applications/downloads/modules/front/downloads/view.php(62): IPS\Content\_Controller->execute()
    #3 /home/*****/*****/system/Dispatcher/Dispatcher.php(153): IPS\downloads\modules\front\downloads\_view->execute()
    #4 /home/*****/*****/index.php(13): IPS\_Dispatcher->run()
    #5 {main}

     

×
×
  • Create New...