[cv6] Node Icons & Tools

[cv6] Node Icons & Tools 1.5.1 Release Candidate 3

No permission to download
Hello :) I've uploaded several svg files to this (they're mostly font awesome 6 icons that aren't recognized by this addon) and noticed this frustrated issue where the icons load in as black first before switching to the proper color. What can I do to prevent this?
This results fromm the injecting js.
First the Image is loaded, this cant be influenced from CSS. Then the JS replaces the IMG with Inline SVG and the color from CSS works.

So, you can try to embed a color in the SVG, gut I assume this wont bei touched by CSS after injecting.

The time depends on multiple items Like Internet Connection, Server and Browser.
 
This results fromm the injecting js.
First the Image is loaded, this cant be influenced from CSS. Then the JS replaces the IMG with Inline SVG and the color from CSS works.

So, you can try to embed a color in the SVG, gut I assume this wont bei touched by CSS after injecting.

The time depends on multiple items Like Internet Connection, Server and Browser.
Oh darn. Thank you for the quick response!!!

Is there a way I could somehow enable the use of Font Awesome 6 icons?
 
I am using the FA Version from XF.
If you can Set XF to use FA6, then yes.
 
Last edited:
@Hoffi I'm using nobita Social Groups 3.2.1 and NodeIcon 1.1.0 and am getting this server error when attempting to add a forum to one of my groups. The author of the groups mod said to contact you as cv6_icon is referenced as the error (confirmed, as when I disable NodeIcon, Groups --> Add Forum works perfectly):

Code:
[LIST]
[*]XF\Db\Exception: MySQL query error [1048]: Column 'cv6_icon' cannot be null
[*]src/XF/Db/AbstractStatement.php:230
[*]Generated by: [URL='https://zoldos.net/admin.php?users/zoldos.1/edit']zoldos[/URL]
[*]Mar 16, 2022 at 6:20 PM
[/LIST]
[HEADING=2]Stack trace[/HEADING]
INSERT  INTO [ICODE]xf_node[/ICODE] ([ICODE]node_type_id[/ICODE], [ICODE]title[/ICODE], [ICODE]description[/ICODE], [ICODE]parent_node_id[/ICODE], [ICODE]display_order[/ICODE], [ICODE]node_id[/ICODE], [ICODE]node_name[/ICODE], [ICODE]style_id[/ICODE], [ICODE]effective_style_id[/ICODE], [ICODE]display_in_list[/ICODE], [ICODE]breadcrumb_data[/ICODE], [ICODE]navigation_id[/ICODE], [ICODE]effective_navigation_id[/ICODE], [ICODE]cv6_icon[/ICODE], [ICODE]cv6_icon_type[/ICODE], [ICODE]cv6_image_path[/ICODE]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1048, '23000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1048, '23000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1514): XF\Db\AbstractAdapter->insert('xf_node', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1246): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/FormAction.php(71): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Mvc/FormAction.php(189): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#8 src/addons/Truonglv/Groups/Pub/Controller/Forum.php(67): XF\Mvc\FormAction->run()
#9 src/XF/Mvc/Dispatcher.php(352): Truonglv\Groups\Pub\Controller\Forum->actionAdd(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('Truonglv\\Groups...', 'Add', Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Groups\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#14 src/XF.php(517): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(28) "/group-forums/add?group_id=1"
  ["referrer"] => string(55) "https://zoldos.net/groups/kitties-pooches.1/discussions"
  ["_GET"] => array(1) {
    ["group_id"] => string(1) "1"
  }
  ["_POST"] => array(10) {
    ["_xfToken"] => string(8) "********"
    ["node"] => array(3) {
      ["title"] => string(7) "Kitties"
      ["description"] => string(15) "All about cats!"
      ["parent_node_id"] => string(1) "0"
    }
    ["min_tags"] => string(1) "0"
    ["allowed_watch_notifications"] => string(3) "all"
    ["default_sort_order"] => string(14) "last_post_date"
    ["default_sort_direction"] => string(4) "desc"
    ["list_date_limit_days"] => string(1) "0"
    ["_xfRequestUri"] => string(37) "/groups/kitties-pooches.1/discussions"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}

I'd like to continue using both mods esp. since I paid for groups and I love Nodeicon as well . Please help! Thanks![/code]
 
Is this Groups Forum using an owm add forum form?

Ist the default add Forum working?

I will take a look into it.
 
It looks like it is using its own form, but when added, becomes part of the node list.

Yes, I can add forums using the standard XF form and it works fine.

Okay, thanks!
 
It looks like it is using its own form, but when added, becomes part of the node list.
Yea, then this is the problem. You will not be able to add the icon in that form.
I will update the model for the next version that the insert from the group annon will work.
 
Yea, then this is the problem. You will not be able to add the icon in that form.
I will update the model for the next version that the insert from the group annon will work.
Any news on a update/fix for the Social Groups node icon bug? Just checking. :)
 
Had a lot of site issues pop up after attempting to run this add-on using PHP 8.0.18. After disabling this add-on all the issues went away. This add-on is likely not compatible with the latest PHP 8 releases (at least up to add-on version 1.1.0).
 
This can be Set for all Icons in the Style.

Not Sure If this is really needed in node Level.

Actually forgot that option was there. That will work for my needs. Just a couple questions...

1) It appears that the font-awesome icon on forum_view is placed within the h1 tag, could this cause issue?
2) The h1 tag is modified with a preceding space, wouldn't it be better to add a right margin to the icon and leave the actual h1 text alone?
 
1) It appears that the font-awesome icon on forum_view is placed within the h1 tag, could this cause issue?
What is the Issue?
The h1 tag is modified with a preceding space, wouldn't it be better to add a right margin to the icon and leave the actual h1 text alone?
I placed the Icon inside the H1 to grab the same styling and size. This is how FA Icons are used often. I see here no issue. If you have any problems with that, let me know.
 
Back
Top Bottom