Jump to content

Radical Tags


Makoto

Recommended Posts

6 hours ago, Mike Redman said:

Hi

Can you tell me if images are supported as prefixes please? 

 

I think we were using the predecessor to this, and it allowed it. 

Essentially we use country flags as prefixes, with the use of PNGs. 

 

On 12/6/2020 at 10:00 PM, Makoto said:

Sorry about that! Here's some example code you can use in the advanced editor; just replace the href link with the actual link to where your image is located.

<a href="{tagUrl}"><img src="https://your-image-url.com/" data-ipstooltip alt="{tag}" title="{tagTitle}" height="22px" style="padding-right: 2px;"></a>

 

 

Link to comment
Share on other sites

  • 2 weeks later...
On 7/26/2021 at 5:33 PM, CyanideBurial said:

When trying to use this on IP pages database when i try to use prefix tag mode the field disappears.

Tags are enabled on the database.

Sorry for the late response! Are you able to set me up with temporary access to this IPS installation so I can take a look?

Just send me a DM here if you can and I'll see what's going on.

Link to comment
Share on other sites

Hi, this application causes an error when I want to clone download categories ...

UnderflowException:  (0)
#0 /home/**********/public_html/system/Node/Model.php(3019): IPS\Db\_Select->first()
#1 /home/**********/public_html/init.php(902) : eval()'d code(225): IPS\Node\_Model->__clone()
#2 /home/**********/public_html/applications/downloads/sources/Category/Category.php(753): IPS\Node\radtags_hook_C_NodeModel->__clone()
#3 /home/**********/public_html/system/Node/Controller.php(908): IPS\downloads\_Category->__clone()
#4 /home/**********/public_html/system/Dispatcher/Controller.php(90): IPS\Node\_Controller->copy()
#5 /home/**********/public_html/system/Node/Controller.php(69): IPS\Dispatcher\_Controller->execute()
#6 /home/**********/public_html/applications/downloads/modules/admin/downloads/categories.php(44): IPS\Node\_Controller->execute()
#7 /home/**********/public_html/system/Dispatcher/Dispatcher.php(153): IPS\downloads\modules\admin\downloads\_categories->execute()
#8 /home/**********/public_html/admin/index.php(13): IPS\_Dispatcher->run()
#9 {main}

When I deactivate Radical Tags everything works fine.

Link to comment
Share on other sites

I'll have to try and see if I can replicate the issue locally, but without direct access to test I can't provide any ETA on a fix I'm afraid.

Please make sure you follow the application and look out for updates in the meantime.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

I have an issue when I replaces tags, I changed the string from Hebrew work to an English(merged to an existed tag),

In the topics list I see the old tags, but when I enters to the topic, there's a new one without the older tags that I still see in the topics list.

Also, I cannot find the "older tags" in the ACP -> Manage Tags

Topics list:

image.png.0e1983331f856d8e09d82e4000a696ed.png

Inside the topics:

image.png.8d1360fd2707c04cba0d85615ea67e53.png

image.png.41d6d11b0beae1e8ee244b14973b56fa.png

image.png.59d74268545ec88195b3cb56841979c7.png

Edited by IceCore
Link to comment
Share on other sites

EDIT: Fixed by replacing NULL values for tag_text with 'null' string in core_tags, so the question is why the tags were nullified.

Need help with the following error. I have a NULL tag(s) somehow I suspect and want to know how I can get around it. This one prevents me from displaying my forum base page (due to widget error):

TypeError: Argument 1 passed to IPS\radtags\Tag\_TagFactory::getTag() must be of the type string, null given, called in /srv/sites/_forum/applications/radtags/widgets/tagCloud.php on line 80 (0)
#0 /srv/sites/_forum/applications/radtags/widgets/tagCloud.php(80): IPS\radtags\Tag\_TagFactory->getTag()
#1 /srv/sites/_forum/system/Widget/Widget.php(103): IPS\radtags\widgets\_tagCloud->init()
#2 /srv/sites/_forum/system/Widget/StaticCache.php(41): IPS\_Widget->__construct()
#3 /srv/sites/_forum/system/Widget/Widget.php(296): IPS\Widget\_StaticCache->__construct()
#4 /srv/sites/_forum/system/Dispatcher/Front.php(561): IPS\_Widget::load()
#5 /srv/sites/_forum/system/Dispatcher/Dispatcher.php(154): IPS\Dispatcher\_Front->finish()
#6 /srv/sites/_forum/index.php(13): IPS\_Dispatcher->run()
#7 {main}

Relevant code for first one:
 

    public function init()
    {
        parent::init();
        \IPS\Output::i()->cssFiles = \array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'jqcloud.css', 'radtags', 'global' ) );
        \IPS\Output::i()->jsFiles[] = (string) \IPS\Theme::i()->resource( 'js/jqcloud.min.js', 'radtags', 'interface' );

        $tagCount        = $this->configuration['radtags_tagCloud_count']       ?? 25;
        $appFilter       = $this->configuration['radtags_tagCloud_appFilter']   ?? NULL;
        $includePrefixes = $this->configuration['radtags_tagCloud_prefixes']    ?? TRUE;
        $colorful        = $this->configuration['radtags_tagCloud_colorful']    ?? FALSE;
        $filtered        = \iterator_to_array(
            \IPS\Db::i()->select(
                \IPS\radtags\Tag::$databasePrefix . 'name', \IPS\radtags\Tag::$databaseTable,
                [ \IPS\radtags\Tag::$databasePrefix . 'ignores_widgets' ]
            )
        );

        $tags = \IPS\radtags\Application::popularTags( $tagCount, $includePrefixes, $appFilter, (array)$filtered );
        $json = [];
        foreach ( $tags as $tag )
        {
            $config = [
                'text'      => $tag['tag_text'],
                'weight'    => $tag['count'],
                'link'      => (string) \IPS\Http\Url::internal( 'app=core&module=search&controller=search&tags=' . $tag['tag_text'], 'front', 'tags' ),
            ];

            if ( $colorful )
            {
                try
                {
                    $tag = \IPS\radtags\Tag\TagFactory::i()->getTag( $tag['tag_text'] );
                    if ( $tag->color )
                    {
                        $config['html'] = ['style' => "color: {$tag->color}"];
                    }
                }
                catch ( \OutOfRangeException $e ) {}
            }

            $json[] = $config;
        }

        \IPS\Output::i()->jsVars['radtags_tagCloud'] = $json;
        \IPS\Output::i()->jsVars['radtags_tagCloud_delay'] = $this->configuration['radtags_tagCloud_delay'] ?? 50;
    }

This one prevents me from sorting tags in the ACP:

TypeError: Argument 2 passed to IPS\radtags\Table\_Tags::parseRow() must be of the type string, null given, called in /srv/sites/_forum/applications/radtags/sources/Table/Tags.php on line 174 (0)
#0 /srv/sites/_forum/applications/radtags/sources/Table/Tags.php(174): IPS\radtags\Table\_Tags->parseRow()
#1 /srv/sites/_forum/system/Helpers/Table/Table.php(489): IPS\radtags\Table\_Tags->getRows()
#2 /srv/sites/_forum/applications/radtags/modules/admin/tags/listing.php(56): IPS\Helpers\Table\_Table->__toString()
#3 /srv/sites/_forum/system/Dispatcher/Controller.php(96): IPS\radtags\modules\admin\tags\_listing->manage()
#4 /srv/sites/_forum/applications/radtags/modules/admin/tags/listing.php(37): IPS\Dispatcher\_Controller->execute()
#5 /srv/sites/_forum/system/Dispatcher/Dispatcher.php(152): IPS\radtags\modules\admin\tags\_listing->execute()
#6 /srv/sites/_forum/admin/index.php(14): IPS\_Dispatcher->run()
#7 {main}

Relevant code for second one:
 

        /* Run query */
        $rows = [];
        $select = \IPS\Db::i()->select(
            ( \count( $this->selects ) ) ? $this->table . '.*, ' . implode( ', ', $this->selects ) : '*',
            $this->table,
            $where,
            $orderBy,
            array( ( $this->limit * ( $this->page - 1 ) ), $this->limit ),
            'tag_text'
        );

        if ( $this->keyField !== NULL )
        {
            $select->setKeyField( $this->keyField );
        }

        foreach ( $select as $rowId => $row )
        {
            /* Add in any 'custom' fields */
            $_row = $row;
            if ( $this->include !== NULL )
            {
                $row = array();
                foreach ( $this->include as $key )
                {
                    $row[ $key ] = isset( $_row[ $key ] ) ? $_row[ $key ] : NULL;
                }
            }

            /* Loop the data */
            foreach ( $row as $key => $value )
            {
                $value = $this->parseRow( $key, $value, $_row );

                /* Are we including this one? */
                if( ( $this->include !== NULL and !\in_array( $key, $this->include ) ) or ( $this->exclude !== NULL and \in_array( $key, $this->exclude ) ) )
                {
                    unset( $row[ $key ] );
                    continue;
                }

                /* Add to array */
                $row[ $key ] = $value;
            }

            $row['_buttons'] = $this->addRowButtons( $row );
            unset( $row['tag_id'] );

            $rows[ $rowId ] = $row;
        }

 

Edited by z929669
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...