CoreBOSBB
Hide Comments for default - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Hide Comments for default (/showthread.php?tid=384)

Pages: 1 2 3


Hide Comments for default - rslemer - 08-26-2016

Is possible hide comments block for default?

At Layout Editor, this block not showed this option.

I wish, for default show at least 5 comments, instead All comments too...


RE: Hide Comments for default - joebordes - 08-27-2016

This is a good idea and enhancement.

I added two global variables so you can define that:

https://github.com/tsolucio/corebos/commit/5f996fd7aa366ff94730ce36f9f4e589e61591ad#diff-48590fdb96f215e9c38678a0b6c946e0R79

update your code, execute cbupdater and give it a try.


RE: Hide Comments for default - rslemer - 08-27-2016

What is global variable name?

And I suggest you move GlobalVariable, and businessMap to menu Setting ( instead Tools )

I think make more sense ...

ModComments_DefaultCriteria
ModComments_DefaultBlockStatus

Even after corebos_updater not show this values


RE: Hide Comments for default - joebordes - 08-28-2016

How are you updating your code? I'd say you are doing something wrong.


RE: Hide Comments for default - rslemer - 08-28-2016

I downloaded code from github

And click on apply all, at corebos-updater


RE: Hide Comments for default - joebordes - 08-28-2016

you should be using git to download the code and update your installs.
please make sure you have applied all code changes correctly.
also, remember to press on "Load changes" first
Finally try the variables in the online demo to make sure they are working correctly.


RE: Hide Comments for default - rslemer - 08-28-2016

I did it, but this time the new variables do not appear for me Sad


RE: Hide Comments for default - joebordes - 08-28-2016

check your build/changeSets/DefineGlobalVariables.php file, that is where the global variables are defined

https://github.com/tsolucio/corebos/blob/master/build/changeSets/DefineGlobalVariables.php#L77


RE: Hide Comments for default - joebordes - 08-28-2016

(08-27-2016, 10:14 PM)rslemer Wrote: And I suggest you move GlobalVariable, and businessMap to menu Setting ( instead Tools )

I think make more sense ...

I can't do this in general but you can do it in particular for your installs if that is what you want/need.
By design, only admin users can access modules that are in the Settings menu. Both GlobalVariables and Business mappings are modules that users can use. It may be rare, but it can happen. Where certain users can define how they want the application to behave.

Note that both of these modules permit defining variables/mappings per module and user, so where one user can have the comments open by default another could have them closed, and each of them could configure different behaviors of that block per module, ....

Even the system uses the global variable module in the background. For example, the global variable that defines which modules to search in the global search is automatically created and updated for you when you launch a search,....

They are VERY powerful module that make the system flexible.


RE: Hide Comments for default - rslemer - 08-28-2016

This lines is missing

I can add manually?

(08-28-2016, 06:48 PM)joebordes Wrote:
(08-27-2016, 10:14 PM)rslemer Wrote: And I suggest you move GlobalVariable, and businessMap to menu Setting ( instead Tools )

I think make more sense ...

I can't do this in general but you can do it in particular for your installs if that is what you want/need.
By design, only admin users can access modules that are in the Settings menu. Both GlobalVariables and Business mappings are modules that users can use. It may be rare, but it can happen. Where certain users can define how they want the application to behave.

Note that both of these modules permit defining variables/mappings per module and user, so where one user can have the comments open by default another could have them closed, and each of them could configure different behaviors of that block per module, ....

Even the system uses the global variable module in the background. For example, the global variable that defines which modules to search in the global search is automatically created and updated for you when you launch a search,....

They are VERY powerful module that make the system flexible.

ok!

(08-28-2016, 06:48 PM)joebordes Wrote:
(08-27-2016, 10:14 PM)rslemer Wrote: And I suggest you move GlobalVariable, and businessMap to menu Setting ( instead Tools )

I think make more sense ...

I can't do this in general but you can do it in particular for your installs if that is what you want/need.
By design, only admin users can access modules that are in the Settings menu. Both GlobalVariables and Business mappings are modules that users can use. It may be rare, but it can happen. Where certain users can define how they want the application to behave.

Note that both of these modules permit defining variables/mappings per module and user, so where one user can have the comments open by default another could have them closed, and each of them could configure different behaviors of that block per module, ....

Even the system uses the global variable module in the background. For example, the global variable that defines which modules to search in the global search is automatically created and updated for you when you launch a search,....

They are VERY powerful module that make the system flexible.

(08-28-2016, 06:36 PM)joebordes Wrote: check your build/changeSets/DefineGlobalVariables.php file, that is where the global variables are defined

https://github.com/tsolucio/corebos/blob/master/build/changeSets/DefineGlobalVariables.php#L77

I move my copy to another directory

change in config.inc.php

Is working fine

This can affect corebos-updater ?