Elxis CMS Forum

Support => Elxis 4.x DEV => Topic started by: datahell on May 25, 2016, 10:30:29

Title: Elxis 4.5 development
Post by: datahell on May 25, 2016, 10:30:29
I started improvents on component user. Users central, profile, and members list will be re-designed. Also 2 new features will be added, Bookmarks and Personal messages (therei is already core support for this since Elxis 4.4). For these changes a new Elxis version will be released, Elxis 4.5.

Bookmarks, reminders and notes
Users can add pages to bookmarks, add notes and categorize them (important, personal, attention, appointment, etc). They can also add reminders. When the remind date is reached Elxis will send you a notification email alert. Bookmarks already implemented! I attach a screenshot. Bookmarks are private and only logged-in users are allowed to access them from the Users Central page. You can add a bookmark from any page by displaying a link to this page (elxis URI):
user:members/editbookmark (inner.php, lightbox or popup window)

For the rest improvements/additions I will notify you in the future. I also added the Awesome font in Elxis core. You can include it in any page (Elxis 4.5+) like this:
$eDoc->addFontAwesome();

If you have any requests for Elxis 4.5 please reply below.
Title: Re: Elxis 4.5 development
Post by: jesusto on May 25, 2016, 11:28:24
Hi,

Good news.

It also would be great to be able to bookmark hotels from IORS hotels.

Thank you
Title: Re: Elxis 4.5 development
Post by: datahell on May 25, 2016, 13:23:01
You can add bookmark from any page and there is also a special category for hotels (bookmarks are categorized). You can see a mobile preview in my Twitter page (https://twitter.com/IsOpenSource).
Title: Re: Elxis 4.5 development
Post by: Amigamerlin on May 26, 2016, 11:10:10
Hello Datahell, since you are building new ELXIS version maybe you can add some other feature that can be useful:

1) Can be a good thing having the availability to can put image in menu items .
2) Change the way to show users ip address. Currently is really unreadable for human.
3) For CKEditor adding by default Plug-in for background management.

That's all  :D.
Title: Re: Elxis 4.5 development
Post by: datahell on May 26, 2016, 19:21:14
1. Putting images in menu items is too old-fashioned. You can do it with CSS if you like or you can build a custom menu module doing so. Don't forget that menus are modules.
2. Elxis uses IPv6 addresses and converts IPv4 IPs to IPV6 format. I don't know if IPV6 addresses are human friendly or not but you have to live with them because soon IPv4 will be history. I might do something for IPv4 ips (display them in that form in this case), we will see. I will notify you later.
3. We focus on the complete removal of inline css and javascript. Putting a background image anywhere is easy with css. You don't need an editor plugin for that.

Change background to all articles:
.elx_article_page { background:url(something.png) 0 0 no-repeat; }

Change background image only to article with ID 45:
#elx_article_page_45 { background-color:yellow; }

Change article subtitle background only to article with ID 45:
#elx_article_page_45 .elx_content_subtitle { background-color:red; }
Title: Re: Elxis 4.5 development
Post by: Amigamerlin on May 27, 2016, 07:12:52
1. Putting images in menu items is too old-fashioned. You can do it with CSS if you like or you can build a custom menu module doing so. Don't forget that menus are modules.
2. Elxis uses IPv6 addresses and converts IPv4 IPs to IPV6 format. I don't know if IPV6 addresses are human friendly or not but you have to live with them because soon IPv4 will be history. I might do something for IPv4 ips (display them in that form in this case), we will see. I will notify you later.
3. We focus on the complete removal of inline css and javascript. Putting a background image anywhere is easy with css. You don't need an editor plugin for that.

Change background to all articles:
.elx_article_page { background:url(something.png) 0 0 no-repeat; }

Change background image only to article with ID 45:
#elx_article_page_45 { background-color:yellow; }

Change article subtitle background only to article with ID 45:
#elx_article_page_45 .elx_content_subtitle { background-color:red; }

Agree on all.
Sorry Datahell , about background I was not precise... I'm referring to Table background.
You helped me to install a CKE plug-in fot that. Since I've seen hat can be easy configured to add it by default I thought that can't be a big problem for you adding it in the next release by defualt.
Let me know.
Thank you.
Title: Updated component User - Translators needed
Post by: datahell on June 18, 2016, 20:01:48
The work on component User finished. Elxis 4.5 has a brand new component User with new features such as personal messages, bookmarks and reminders. The layout re-designed and become much friendlier to mobile devices. I attach here the English language files if anyone wants to translate it. The new language strings start from line 245 (//Elxis 4.5). Translate the rest strings and when ready send it back to me.

I also attach a preview of the new members list page. Everything in component user is new!
Title: Re: Elxis 4.5 development
Post by: Amigamerlin on June 19, 2016, 10:20:10
Italian translation sent  :) ;). Ciao
Title: Re: Elxis 4.5 development
Post by: fbookin on June 20, 2016, 17:47:52
Hi Russian translation sent.
Title: Re: Elxis 4.5 development
Post by: seadhna on July 20, 2016, 14:40:14
Hi datahell,
would it be possible to include translation/multilingual functionality for the title of downloads? i.e. the download plugin - the title of the file does not offer multilingual options. Thanks!
Title: Re: Elxis 4.5 development
Post by: datahell on July 20, 2016, 19:22:16
This is about a third party plugin and has nothing to do with Elxis 4.5.
Title: Re: Elxis 4.5 development
Post by: jorgenunes on October 01, 2016, 12:28:47
Hi

When sending messages

It is possible not to allow communication between users?
Example:
Administrator communicates with all useres
Users only send messages to administrator

Thanks
Title: Re: Elxis 4.5 development
Post by: datahell on October 01, 2016, 12:58:40
It can be done with a small modification. I will write what to do later as I am out of office now.
Title: Re: Elxis 4.5 development
Post by: datahell on October 01, 2016, 17:36:21
I will write below how to do it. Users will be able to send messages only to administrators, administrators to all. However some direct links will not be removed (needs further work) but they will not be functional.

Open this file: components/com_user/models/user.model.php
Change line 761 from this:
$sql = "SELECT ".$this->db->quoteId('uid').", ".$this->db->quoteId('firstname').", .....
to this:
$sql = "SELECT ".$this->db->quoteId('uid').", ".$this->db->quoteId('gid').", ".$this->db->quoteId('firstname').", ....

Delete line 771:
return $rows;

and replace it with this:
if (!$rows) { return array(); }
$mygid = eFactory::getElxis()->user()->gid;
if ($mygid == 1) { return $rows; }
$newrows = array();
foreach ($rows as $uid => $row) {
   if ($row->gid == 1) { $newrows[$uid] = $row; }
}
return $newrows;

Test it, it should work ok.
Title: Re: Elxis 4.5 development
Post by: jorgenunes on October 02, 2016, 14:51:19
Hi

Is working very well thank you.

Best Regards
Title: Re: Elxis 4.5 development
Post by: chongbing on October 11, 2016, 23:02:43
Hi datahell,

Same question here, i tried this one. All of users are not in the dropdown list but users still can send message to all users ?  How to remove it and user just can send messages to administrator ?  Thanks a lot.

Quote
Example:
Administrator communicates with all useres
Users only send messages to administrator
Title: Re: Elxis 4.5 development
Post by: datahell on October 12, 2016, 22:07:28
As I said, various links such as direct send message to user and send to all users will not be removed but they wont be functional. If a user selects to see a message to all users then only all ADMINISTRATOR users will get the message. You can send messages only to the list of users shown in the drop down box even if you select "all users" (see it as "all users in the list" of drop down box)
Title: Re: Elxis 4.5 development
Post by: chongbing on October 12, 2016, 23:53:47
Hi datahell,

I see. How to hide "all users" in the dropdown list when a user selects? It would be great if the dropdown list is not showing the "all users" just only ADMINISTRATOR users can see it. Thanks.
Title: Re: Elxis 4.5 development
Post by: datahell on October 13, 2016, 20:27:26
Just checked. Send to "All users" option is available ONLY to users with access level higher than 2, meaning that normal users don't have this option. So, what you ask is already supported. Login as a simple user to see it!
Title: Re: Elxis 4.5 development
Post by: perseas on October 13, 2016, 20:42:37
Hi datahell,

Very good functional and useful new component user with the module user alert.

Some suggestions for future upgrades:

- Favorites with personal user Categories. The user can input new personal Category of choice.
- The user can Select objects to display from single category Favorites.
- The user can ordering Category Favorites objects.
Title: Re: Elxis 4.5 development
Post by: chongbing on October 15, 2016, 07:33:18
Hi datahell,

Yes, you are right, Is passible if i set users with access level higher than 2, how to disable "All users" option on this ? This is a very useful feature. Thanks.

Just checked. Send to "All users" option is available ONLY to users with access level higher than 2, meaning that normal users don't have this option. So, what you ask is already supported. Login as a simple user to see it!
Title: Re: Elxis 4.5 development
Post by: datahell on October 15, 2016, 18:29:14
Access level for standard users is 2 and for administrators is 100.

Open this file:
components/com_user/views/members.html.php

go to line 1368 and change this:
if ($elxis->acl()->getLevel() > 2) { //access level above normal user

to this:
if ($elxis->acl()->getLevel() > 99) { //access for administrators only

With the above change only administrators will see the option to send messages to all users.
Title: Re: Elxis 4.5 development
Post by: chongbing on October 16, 2016, 18:16:30
Hi datahell,

Cool! It's work! Thanks a lot .
Title: Re: Elxis 4.5 development
Post by: datahell on October 16, 2016, 18:55:17
The cool thing is to see happy people :)
Title: Re: Elxis 4.5 development
Post by: seadhna on October 20, 2016, 12:27:06
Is is possible in a future version of Elxis to be able to upload different images for different language versions of an article? Sometimes the image contains text, e.g. a mock-up of a report, and it would be great to upload a mockup in each language.
Title: Re: Elxis 4.5 development
Post by: datahell on October 21, 2016, 19:48:52
It can be done now with a small change in Elxis code. I have answered a similar question in the past.
Title: Re: Elxis 4.5 development
Post by: seadhna on November 11, 2016, 16:11:50
Sorry datahell, I can't find the reply you have made in the past. I am searching in the forum and via Google but not sure of how to find?
Title: Re: Elxis 4.5 development
Post by: datahell on November 11, 2016, 18:26:31
The post is in Greek language, and it is about multi-lingual images for module Ads (http://forum.elxis.org/index.php?topic=8744.msg55897#msg55897). For content images a similar approach can be used in component content for category and article pages. Off course this is only required for Article's main image. If you talk about images inside article intro/main text areas then the problem can easily be solved without any hack by using the multilingual text areas. In this case you can either use the standard html img tag (<img src="http://full_url/anything.jpg" />) or the image plugin (http://www.elxis.net/edc/multimedia/44.html) ({image}relative_path/anything.jpg{/image}).
Title: Re: Elxis 4.5 development
Post by: seadhna on November 18, 2016, 22:07:48
Hi datahell,
so I have tried to find this code:

if ($ img! = '') {
   If (file_exists (ELXIS_PATH. '/'. $ Reldir. $ Img)) {

in components>com_content>content.php
and in components>com_content>controllers>article.php

but I cannot find - can you clarify which file I should be opening?
Title: Re: Elxis 4.5 development
Post by: webgift on November 19, 2016, 10:35:29
Hello,
Open this file: modules/mod_ads/mod_ads.php and go to line 74-75. ;)