951
alain01
Re: xmdoc
  • 2021/2/19 12:43

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Registered, downloaded then voted !

La Suisse en Force !



952
alain01
Survey - new icons set for Admin UI
  • 2021/2/19 12:36

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


I want to bring my work to a new icons set for admin user interface !
There is 2 sets : "default" and "transition".
What about a new icons set ?

I can work on this icons set here :
Resized Image


I 've got the source images so I can modify all elements in theses icones : (vectoriels source so any size)

What about this background (XOOPS color):
Resized Image


Now, I want to know your opinions on some elements:

Background : Yes / No
If yes :

Background color a ? (#hexcode)
Background color b ? (#hexcode)
Background color c ? (#hexcode)
Background form : circle
Background form : ovoid
Background form : square
Background form : Reuleaux triangle
Background form : Other...

Let me know if i should start with this background color base (XOOPS color) or if it's too vibrant.

Mamba, may be create a survey here ?

Alain

PS : Reuleaux polygons
Resized Image



953
goffy
xmdoc
  • 2021/2/19 8:40

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hello together
Mage has submitted his xmDoc on phpclasses.org:
https://www.phpclasses.org/package/11931-PHP-XOOPS-CMS-module-to-manage-files-attached-to-posts.html
If you want help to support XOOPS, then vote for xmDoc, and all can realize, what is possible with XOOPS :)



954
BigKev73
Re: Adding a LIke Feature to NEWBB
  • 2021/2/16 20:13

  • BigKev73

  • Just popping in

  • Posts: 13

  • Since: 2021/1/26


Minor changes to version 1.2

-resized icons to 16x16 as they were 20x20 for some reason
-added Dislike.png
-removed Reaction.png (grey icon)
-added React.png (outline icon)
-modified some styling aspects in Reaction.php to make the icons look nicer and space out a bit better
-modified ReationInfo.php to add the Dislike option

ReactionPlugin 1.2



955
BigKev73
Re: NewBB 5.01 Beta 3 (XOOPS 2.5.11, PHP 7.2 - 8.0)
  • 2021/2/15 21:25

  • BigKev73

  • Just popping in

  • Posts: 13

  • Since: 2021/1/26


Everything appears to work just fine and my updated Reation plug worked just fine with it as well.

Thanks!



956
BigKev73
Re: Adding a LIke Feature to NEWBB
  • 2021/2/15 21:21

  • BigKev73

  • Just popping in

  • Posts: 13

  • Since: 2021/1/26


So I made some changes to make it more "Facebook" like.

Now it only shows the icons for the reactions that have been set for a post. There is a new "grey" like icon which acts as a menu that opens to allow a user to add a reaction, change, or remove. Anonymous users won't see that menu.

Also, I relocated the icons to the asset folder and changed some of the files. take a look at the readme and change list.

NEWBB Posts showing posts with and without any reactions
Resized Image


User clicks the grey like icon to expand it into a meuu
Resized Image


The user made a selection, the menu closed and the reaction state of the post is updated
Resized Image


The download link is the same as before, but here it is again:

ReactionPlugin 1.1

Feedback is appreciated, Enjoy!



957
BigKev73
Re: NewBB 5.01 Beta 3 (XOOPS 2.5.11, PHP 7.2 - 8.0)
  • 2021/2/15 15:24

  • BigKev73

  • Just popping in

  • Posts: 13

  • Since: 2021/1/26


You're welcome. Downloading now and will run a compare to my base to see if I missed any changes I needed to commit.



958
alain01
Re: PR Add two new events (#941)
  • 2021/2/15 12:34

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Ok, for flexibility, nice !
Let me know in this subject when you will use this fonction in a module (other than mtools).

This is very interesting!



959
Mamba
Re: PR Add two new events (#941)
  • 2021/2/15 11:47

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Reg. the (2) - core.class.template.new event

Till now, in order to use Smarty plugins, they had to be placed in the Core:

htdocs/class/smarty/xoops_plugins /

Now, you'll be able to place your custom Smarty plugins in your module directly, so it will allow for more flexibility, as the users won't need to copy the plugin manually to the Core. As Richard stated:

Quote:
This event is triggered when a new XoopsTpl (an extended Smarty object) is created. This allows customization of the Smarty environment from within a module.

MTools was just a module where I wanted to use this particular plugin, but now you will be able to use any custom Smarty plugin in any of your modules.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



960
alain01
PR Add two new events (#941)
  • 2021/2/15 8:48

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


"Add two new events":https://github.com/XOOPS/XoopsCore25/pull/941
Please could you give more explanation ?

1 - First event : core.include.common.auth.success
Quote:
Event is triggered when the establishment, or re-establishment, of the current user is complete.
At this point valid security decisions can be made based on the state of the current user.

Does it means, after that, you could launch action for the user ?
An example please ?
How XOOPS did it before ?

2 - core.class.template.new event
Quote:
This event is triggered when a new XoopsTpl (an extended Smarty object) is created. This allows customization of the Smarty environment from within a module.

One possible use would be to support a module based plugin library. An simplified example event listener:

public static function eventCoreClassTemplateNew($arg)
{
    
$smartyObject $arg[0];
    
$smartyObject->plugins_dir[] = __DIR__;
}

and Mamba continues with this :
Smarty Translate function:https://github.com/XOOPS/XoopsCore25/pull/840/files

function smarty_function_translate($params$smarty)
{
    function 
smarty_function_translate($params$smarty)
    {
            
$key     = isset($params['key']) ? $params['key'] : '';
            
$dirname = isset($params['dir']) ? $params['dir'] : ''//Mtools
            
$utility '\Xoopsmodules\' ucfirst($dirname) . '\Utility';
            return     
$utility::translate($key$dirname);
    }
}


I read "Mtools", so it's a method to use plugin from Mtools in modules ?
Like XMF, but it's another thing, another way ?

Please, could you explain that for a non developper like me ?
Thank you !

Alain




TopTop
« 1 ... 93 94 95 (96) 97 98 99 ... 29424 »



Login

Who's Online

94 user(s) are online (46 user(s) are browsing Support Forums)


Members: 0


Guests: 94


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits