These are chat archives for ushahidi/Community

1st
Mar 2017
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:25 UTC
Hello everybody! Wish you all a happy March Month. Please can you help me how to change the GUI of the default website build with ushahid? For example, I don't want the login button stay there, I want to it not to be displayed for the audience, only the admin can register and manage the whole posts. How can I change that? Or another change to make in my site, I want to show only the Albanian map not the other countries around Albania because I want that people post on it only in the albanian territor. How can I even change that? You know there are some changes in the part of front end just in GUI not in the backend.
I would appriciate a lot a lot if you help me!
@aoduor or the other part of the Ushahidi Team or all the developers please help me!! (I'm not a truly fully professional developer, I'm a designer and a bit front end developer:))
Ushbot
@ushbot
Mar 01 2017 14:34 UTC
[Jess Shorland, Ushahidi] Hi there -- As a side note, even if people register for your deployment, they don't have permissions to manage posts or settings. When the register, they only have the ability to create a saved search from the posts visible to everyone and create alerts for those saved searches. This user role is called "member". Only users you designate as admin will have permissions to see and do this the general public would not. Not sure if that changes your need to remove the login button or not?
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:38 UTC
ermmm, if people are not members (no register account at all), will they be able to receive alerts for a specifik topic (saved searched) or category they're interested to?
or everyone must register to get alerts for a specific category? otherwise no??
Ushbot
@ushbot
Mar 01 2017 14:39 UTC
[Will Doran, Ushahidi] Yep, they must register to get alerts
For the map, it is possible to set the default location and zoom level on the map. So you could set that to be a zoomed in view of Albania, you can set this by
[Will Doran, Ushahidi] clicking Settings, on the left hand menu when logged in as an admin
[Will Doran, Ushahidi] then click general
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:40 UTC
In fact I'm afraid that exists the possibility to hack my page that's why I don't want the login button be displayed. (the admin can log in with a special url and set the changes he wants)
Ushbot
@ushbot
Mar 01 2017 14:40 UTC
[Will Doran, Ushahidi] This page covers the general settings:
https://www.ushahidi.com/support/general-settings
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:41 UTC
The old Ushahidi wasn't specified for this, everybody can get alerts about his/her category and wasn't neccesary to register, they only subscribed
this isn't possible anymore?
Yeah I've tried that option, but people form other countries can post too, and I don't want that cuz my project is only for the Albanian territory
Ushbot
@ushbot
Mar 01 2017 14:43 UTC
[Will Doran, Ushahidi] That's correct, in the current version to get notifications the user needs to register
[Will Doran, Ushahidi] It's not possible for us to change to a map showing only Albania, I'm afraid
[Will Doran, Ushahidi] It's not currently possible to customise the map to that degree
[Will Doran, Ushahidi] are you running your own deployment?
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:45 UTC
:/ can I change something in the code about that? even that I don't really know pretty much php and kohana framwork
yep in my own deplyoment, and soon will get published in a server
Ushbot
@ushbot
Mar 01 2017 14:47 UTC
[Will Doran, Ushahidi] Let me think about it for a few minutes, I'll take a look at the code and see if I can give a recommendation
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:48 UTC
oh, thank you a lot!!
Do exist html files?
Ushbot
@ushbot
Mar 01 2017 14:50 UTC
[Will Doran, Ushahidi] I'm not sure I follow, there are template files which exist in the platform-client that are managed by angularjs directives
Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 14:51 UTC
got it
Ushbot
@ushbot
Mar 01 2017 15:23 UTC

[Will Doran, Ushahidi] Ok, so having looked at the code, if you do want to make changes, I believe you can make them in the client, however, because it would be changes to the way the app works I can not guarantee that it won't produce side effects and there is a limited amount we'd be able to help out because it would be diverging from our code base.

I'm going to make 2 different suggestions:

  1. How you can achieve the same effect without customising

So you would need at least a javascript developer to make some of these changes:

First off, for the login button, if you remove this li block
https://github.com/ushahidi/platform-client/blob/f2ba44f942ed66ead1633e98c3a4b3c06de03c00/app/common/directives/mode-bar/mode-bar.html#L90

It will remove the Login button
If users/admins go to /login then the login dialog should appear, there may be display side effects to doing this

If you wanted to customise the address of login further you would need to change the routes here
https://github.com/ushahidi/platform-client/blob/f2ba44f942ed66ead1633e98c3a4b3c06de03c00/app/common/common-routes.js#L9

Please note that making these changes might have side effects and you would have to carefully debug it

[Will Doran, Ushahidi] Ok, so having looked at the code, if you do want to make changes, I believe you can make them in the client, however, because it would be changes to the way the app works I can not guarantee that it won't produce side effects and there is a limited amount we'd be able to help out because it would be diverging from our code base.

I'm going to make 2 different suggestions:

  1. How you can achieve the same effect without customising
  2. What you would need to look at to make customisations

First off, for the login button, if you remove this li block
https://github.com/ushahidi/platform-client/blob/f2ba44f942ed66ead1633e98c3a4b3c06de03c00/app/common/directives/mode-bar/mode-bar.html#L90

It will remove the Login button
If users/admins go to /login then the login dialog should appear, there may be display side effects to doing this

If you wanted to customise the address of login further you would need to change the routes here
https://github.com/ushahidi/platform-client/blob/f2ba44f942ed66ead1633e98c3a4b3c06de03c00/app/common/common-routes.js#L9

Please note that making these changes might have side effects and you would have to carefully debug it

Xheni Beqiri
@XheniBeqiri_twitter
Mar 01 2017 15:41 UTC
Thank you, I got it! Pretty much difficult for me :)
Ushbot
@ushbot
Mar 01 2017 15:45 UTC

[Will Doran, Ushahidi] Ok, so having looked at the code, if you do want to make changes, I believe you can make them in the client, however, because it would be changes to the way the app works I can not guarantee that it won't produce side effects and there is a limited amount we'd be able to help out because it would be diverging from our code base.

To make customisations you would need experience with javascript or a javascript developer to implement them.

If hacking is a major concern, there are a lot of moving parts to a self hosted deployment, a good first step is to make sure you have a very strong password for your admin account. I would recommend using a password manager and generating a very long password around 40 characters using upper/lower/numbers/special characters. This would give your client admin login good protection but you should be aware that the server you are hosting on might be vulnerable in other ways.

In the coming months we are hoping to add two factor authentication protection, which will strength security further..

I can give you an overview of what areas you would need to look at to make changes if you would like.

I was wondering though if our free Mapper plan might fit your needs:
https://www.ushahidi.com/plans