Tribe Support

In this group #Anahita Tribe members provide support and help each other out. All the posts must be public on this group. #support

Stories

Rastin Mehr

Rastin Mehr shared a note

This Saturday will be our weekly #Anahita #Hackathon day. We're working on an approaching client deadline which prevents us work 2-3 days on Anahita. Nevertheless we will be focusing on fixing bugs... Read More
This Saturday will be our weekly #Anahita #Hackathon day. We're working on an approaching client deadline which prevents us work 2-3 days on Anahita. Nevertheless we will be focusing on fixing bugs in Anahita and continuing to work on the React App which has been progressing at a slow but steady pace. Follow the Anahita project group to get updates, help out, or work on your own Anahita project alongside. Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Com Invites not working

I sent an invite to a friend of mine (EsterNe) and she wasn't able to register. After clicking the signup button, she was redirected to the login page and was told to login which she couldn't do ca...

Read More

I sent an invite to a friend of mine (EsterNe) and she wasn't able to register. After clicking the signup button, she was redirected to the login page and was told to login which she couldn't do cause she didn't have an account yet.

I'm gonna go out on a ledge here and say it's a plugin issue.

Read Less
Rastin Mehr liked this
That's would be a bug and yes it could be a plugin issue. I'll take a look this week. If you found the issue first, I appreciate a PR.
Nick Swinford

Nick Swinford started a topic

Com Invites not working

I sent an invite to a friend of mine (EsterNe) and she wasn't able to register. After clicking the signup button, she was redirected to the login page and was told to login which she couldn't do ca...

Read More

I sent an invite to a friend of mine (EsterNe) and she wasn't able to register. After clicking the signup button, she was redirected to the login page and was told to login which she couldn't do cause she didn't have an account yet.

I'm gonna go out on a ledge here and say it's a plugin issue.

Read Less
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr and Gassen Niels commented on the topic

Custom Medium

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some cust...

Read More

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some custom field like "size" that will be display on the medium posts.

I manage to build a module doing just that but the custom field because I just can find what I need to alter to add the data in the database and link it to the post.

It seems that I need to change the core code which I know I should not do. Do you have an idea how to do this ?

Thanks

Niels

Read Less
Plant makes a legitimate actor. You can look at com_groups and build an identical component and call it com_plants. In the code replace all group and Group terms with plant and Plant. That'll give you a plant group. W... Read More
Plant makes a legitimate actor. You can look at com_groups and build an identical component and call it com_plants. In the code replace all group and Group terms with plant and Plant. That'll give you a plant group. When people create plant groups, they become the admin. They can even add additional people to admin the plant.

Then install the photos app and assign it as "Always" to the Plant group. This way plant group admins can post photos of the plant. The photos show up on the story feed for the people who are following the plant group.

I wouldn't recommend changing the avatar or cover every time that a new photo is posted. That's not what avatars are meant to be used. In fact, we're going to remove the feature that creates a new story after each avatar upload, because it isn't working as expected. Also actor profile parameters don't show up in the story feed.

Each plant group can have a device id and unique token so your physical device can post updates on behalf of the plant. That's one way to do it. I don't know the implementation details, but I am curious to find out how.

Instead of the default photos app, you can create a specialize photo sharing app that contains fields for height, moisture, temperature and other variables that change in every update. They don't have to update the actor profile. Actor profile is reserved for basic information about the plant only such as name, title, hashtags, locations, etc. Other parameters better be left to your custom media app. You can even build an additional component in your media app that renders growth charts and visualizes data.

Did that help? Read Less
We've had scenarios that people wanted networks of trucks or boats publish updates about their status. In your case it's plants.
For the first part I have already done that (creating custom actor based on the photos and medium based on the groups for the site).

For the connection with the physical device, I think I will use amazon IOT servic... Read More
For the first part I have already done that (creating custom actor based on the photos and medium based on the groups for the site).

For the connection with the physical device, I think I will use amazon IOT service.

I will try to see how I can integrate everything in the custom medium --> Gonna be fun ! :D

Thanks for your help ! Read Less
Wait the photo app is a media app. How did you build an actor app based on it?
No, the actor is based on the group and the medium is based on photos :) my mistake :)
Rastin Mehr liked this
Alright, good luck 🙂🌱
Thanks, I will need it :) especially because at the end, I have to integrated all of this in native apps ... (btw i cannot download the API doc from here : https://www.getanahita.com/topics/137123-api-documentation)
... Read More
Thanks, I will need it :) especially because at the end, I have to integrated all of this in native apps ... (btw i cannot download the API doc from here : https://www.getanahita.com/topics/137123-api-documentation)

One last question, so normally, I should be able to call actor properties from a medium.

For example, I could publish the name of the actor using the medium ? Read Less
That api doc is old. The best place is asking questions here and reading the code.
Gassen Niels

Gassen Niels and Rastin Mehr commented on the topic

Custom Medium

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some cust...

Read More

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some custom field like "size" that will be display on the medium posts.

I manage to build a module doing just that but the custom field because I just can find what I need to alter to add the data in the database and link it to the post.

It seems that I need to change the core code which I know I should not do. Do you have an idea how to do this ?

Thanks

Niels

Read Less
Hello Rastin,

so I tried the last few days to resolve my issue, but cannot manage to do it.
So I am trying to start from something that already works and go step by step until I reach my goal.

So, from the cust... Read More
Hello Rastin,

so I tried the last few days to resolve my issue, but cannot manage to do it.
So I am trying to start from something that already works and go step by step until I reach my goal.

So, from the custom medium I created, I am trying to get (display it) and modify the user name. ($test_entier is a custom variable I created, its value is shown later). But it does not work (the name stay the same and it is not shown), so I do not really understand what is missing here to modify the actor data (standard user profile here).

Here is the code of my last test.

Thanks for your help.

public function setEntierData($data)
{
// First test but was not working at all --> medium were not saved
//$actor = $this->getController()->actor;

// Define the actor
$actor = $this->actor;

// Get the actor name
$data = $actor->__get($name);

// Change the actor name to 'CeciEstUnTest'
$actor->setFamilyName('CeciEstUnTest');

// Set the custom variable to the actor previous name
$this->setValue('test_entier', $data);

return $this;
} Read Less
Rastin Mehr liked this
Are you trying to add a custom field to your actor node? All you need is to add the field to your entity and also the form field. The controller does the assignment automatically. You don't have to write code for it. ... Read More
Are you trying to add a custom field to your actor node? All you need is to add the field to your entity and also the form field. The controller does the assignment automatically. You don't have to write code for it. Also you can access the actor name directly $actor->name the __get methods are automatically executed in the background by php. Read Less
For now, just trying to modify the nale field on an actor FROM a medium I published (the piece of code on top is from a custom medium, I am trying to modify the name of the actor which created it)
Mediums cannot change actor's properties. That's like a photo trying to change someones name or email on their profile.
Could you explain what you are trying to do again?
That exactly what I was trying to do :)

For example, if I upload a photo (using the photos medium), I would like it to change the profile photo of the actor which upload it (by uploading the photo, I can change my ... Read More
That exactly what I was trying to do :)

For example, if I upload a photo (using the photos medium), I would like it to change the profile photo of the actor which upload it (by uploading the photo, I can change my profile photo).

Does it make sense ? Read Less
It does, but medium apps don't have that level of permission. Anahita is an abstraction of real world scenarios. For the same reason that a chair or table cannot change the name or face of their human owners, a media ... Read More
It does, but medium apps don't have that level of permission. Anahita is an abstraction of real world scenarios. For the same reason that a chair or table cannot change the name or face of their human owners, a media node cannot change properties of it's owner. This would break a lot of patterns in Anahita. For example what if actor A uploads a photo on actor B's profile? or What if people upload photos to a group, do those photos change the group avatar or cover? Read Less
Are you trying to build a similar functionality to facebook where you can set an uploaded photo as your avatar?
Not really, I wanted to achieve "on the fly properties update". So for example, everyday I can come, upload a picture of me with my current height (using a custom medium) and my height and profile picture will be auto... Read More
Not really, I wanted to achieve "on the fly properties update". So for example, everyday I can come, upload a picture of me with my current height (using a custom medium) and my height and profile picture will be automatically changed from this medium.

Maybe it is a way I can access ALL the medium created by the actor ? So I can update the height property from the actor and also created a graph of my height evolution ? Read Less
My I ask what your app does with one or two specific use case scenarios and it's goal?
Rastin Mehr

Rastin Mehr shared a note

Reminder that Saturday and Sunday are the weekly #Anahita #Hackathon days. This week's focus will be on the upcoming 4.3.11 maintenance release and the Anahita React app. Things have been moving fo... Read More
Reminder that Saturday and Sunday are the weekly #Anahita #Hackathon days. This week's focus will be on the upcoming 4.3.11 maintenance release and the Anahita React app. Things have been moving forward slowly and steady on that front. Follow the Anahita project group to receive updates, help out, or work on your own Anahita project alongside. Read Less
Rastin Mehr

Rastin Mehr and Peter Qafoku commented on the topic

PHP bug when trying to upload photos

Hello, Has anyone seen this error before when trying to upload upload a photo on anahita?

PHP Warning:  session_write_close(): Failed to write session data (user). Please verify that the current set...

Read More

Hello, Has anyone seen this error before when trying to upload upload a photo on anahita?

PHP Warning:  session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in [PATH TO]/anahita/src/libraries/default/sessions/sessions.php on line 512

I've read a couple of posts online that said to change the permissions on /tmp which I tried and it didn't work. Any help would be appreciated!

Read Less
Is Anahita creating storing data in the sessions table otherwise? Yes, that seems like a php configuration issue.
Ah figured it out. Was just missing a php library. Thanks!
Rastin Mehr liked this

Peter Qafoku started a topic

PHP bug when trying to upload photos

Hello, Has anyone seen this error before when trying to upload upload a photo on anahita?

PHP Warning:  session_write_close(): Failed to write session data (user). Please verify that the current set...

Read More

Hello, Has anyone seen this error before when trying to upload upload a photo on anahita?

PHP Warning:  session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in [PATH TO]/anahita/src/libraries/default/sessions/sessions.php on line 512

I've read a couple of posts online that said to change the permissions on /tmp which I tried and it didn't work. Any help would be appreciated!

Read Less
Gassen Niels

Gassen Niels commented on the topic

Custom Medium

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some cust...

Read More

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some custom field like "size" that will be display on the medium posts.

I manage to build a module doing just that but the custom field because I just can find what I need to alter to add the data in the database and link it to the post.

It seems that I need to change the core code which I know I should not do. Do you have an idea how to do this ?

Thanks

Niels

Read Less
Rastin Mehr liked this
Thanks for the information.
I have not got a chance to work on my project last week, got stuck on something else :)
I will try again using the actor table.
Rastin Mehr

Rastin Mehr commented on the topic

Component Events

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in ...

Read More

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in the plugin where I override the query.

Loading ...

This was working fine until the upgrade. I've check and double checked everything and can't seem to see why it's not working. Could this be because of some of the controller changes?

You can view the instructions here: https://github.com/anahitasocial/anahita/blob/master/src/plugins/anahita/default.php

Read Less
Rastin Mehr liked this
So I spend this afternoon to figure this out and unfortunately our code doesn't let us add behaviors to controllers from a system plugin. Here were the problems:

1. behaviour cannot be included in the plugin packag... Read More
So I spend this afternoon to figure this out and unfortunately our code doesn't let us add behaviors to controllers from a system plugin. Here were the problems:

1. behaviour cannot be included in the plugin package, because we don't have an identifier to load it. It has to be included in a component.

2. I tried loading the behavior from a com_examples component and then add it to the people controller in example system plugin. It did execute the construct and init methods, but methods such as _beforeControllerBrowse or _afterControllerBrowse where not being called from the behavior.

I am kind of heart broken, because Kodekit https://github.com/timble/kodekit does this nicely. We can perhaps rewrite our controller, behaviour, plugin code from ground up and use some of their ideas. It's not something I want to work on until our React app has reached some major milestones.

Now the questions is, what other options do we have for you to overwrite an existing class. Any ideas? Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Custom Medium

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some cust...

Read More

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some custom field like "size" that will be display on the medium posts.

I manage to build a module doing just that but the custom field because I just can find what I need to alter to add the data in the database and link it to the post.

It seems that I need to change the core code which I know I should not do. Do you have an idea how to do this ?

Thanks

Niels

Read Less
Rastin Mehr liked this
The Settings > Assignments bug is fixed in the master branch and will be in the 4.3.11 release.
Rastin Mehr

Rastin Mehr shared a note

This Saturday and Sunday will be the #Anahita #Hackathon days. We will be fixing an issue in Anahita codebase and continue to work on the Anahita React app. Follow the project group to get updates,... Read More
This Saturday and Sunday will be the #Anahita #Hackathon days. We will be fixing an issue in Anahita codebase and continue to work on the Anahita React app. Follow the project group to get updates, help out, or work on your Anahita project alongside. Read Less

Jerdon Helgeson commented on the topic

Anahita Documentation

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while work...

Read More

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while working? Or is this something that I will need to discuss with you to learn about? 

Preferable I would be able to learn about this and other topics without taking your time. 

thanks,

Jerdon Helgeson

#OnBoarding #App #Plugin

Read Less
Yes that answers my question. Thanks for the response!
Rastin Mehr liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Add Search to Custom Node

Is it possible to add searchability to a custom node that isn't a medium or actor node? I kinda remember reading that after search was first implemented it wasn't possible for other nodes.
How would I go about using just one actor node? Like, if I have an add product form, how would I specify the actor node to as the owner of the product?
Well after installing the Shop actor app, create a profile and then within the profile create products just like when you create notes, photos, etc. Except in your case a product has product attributes and a add to ca... Read More
Well after installing the Shop actor app, create a profile and then within the profile create products just like when you create notes, photos, etc. Except in your case a product has product attributes and a add to cart button. Read Less
Just like when you install Groups and Photos app. In this case you have Shops and Products apps.
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Add Search to Custom Node

Is it possible to add searchability to a custom node that isn't a medium or actor node? I kinda remember reading that after search was first implemented it wasn't possible for other nodes.
We should be able to by making an entity scopable in the component.php entity. That's how we're going to make hashtags and locations searchable too.

https://github.com/anahitasocial/anahita/blob/master/src/compone... Read More
We should be able to by making an entity scopable in the component.php entity. That's how we're going to make hashtags and locations searchable too.

https://github.com/anahitasocial/anahita/blob/master/src/components/com_actors/domains/entities/component.php#L49

https://github.com/anahitasocial/anahita/blob/master/src/components/com_medium/domains/entities/component.php#L47

Problem is that I tried to quickly test that right now and didn't see hashtags or locations showing up in the results or scopes, but I'm keen to test it and get it to work in the next Hackathon perhaps. Read Less
Are these the only scopes available? https://github.com/anahitasocial/anahita/blob/master/src/components/com_search/templates/helpers/scopes.php#L25

Is it possible to create my own scope or should I just use other?
Oh you found it. Perhaps if we create the groups dynamically it will make the architecture more flexible. What type of node have you created?
I'm creating a store component and I'm currently working on a product entity.
Isn't a product a media node? I think it should be.
This won't be a multi-vendor store so there's no need for them to be ownable. I started out as a media node, but having an owner made things more complicated than I needed.

I would like for products to have a galle... Read More
This won't be a multi-vendor store so there's no need for them to be ownable. I started out as a media node, but having an owner made things more complicated than I needed.

I would like for products to have a gallery of images. Would it be crazy to make them actor nodes so I can use the photos app with them or do you think it'd be better to do that separately? Read Less
A vendor or shop makes a legitimate actor node I think and they can own media node products. You don't have to create more than one actor in your setup.
Use the power of Anahita architecture rather than leaning toward old fashion way of doing things
Rastin Mehr

Rastin Mehr commented on the topic

Anahita Documentation

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while work...

Read More

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while working? Or is this something that I will need to discuss with you to learn about? 

Preferable I would be able to learn about this and other topics without taking your time. 

thanks,

Jerdon Helgeson

#OnBoarding #App #Plugin

Read Less
Hi Jerdon, there are no documentation. This support group is the living documentation and all the existing apps are your blueprints. you read code, prototype, and ask questions either here or in private consulting ses... Read More
Hi Jerdon, there are no documentation. This support group is the living documentation and all the existing apps are your blueprints. you read code, prototype, and ask questions either here or in private consulting sessions. There isn't we don't have a documentation is that our codebase evolves rapidly and documentations get old very quickly.

First you need a com_onboarding component that loads a single view and a jquery widget that walks the user through steps of adding more information to their profile. Use ajax calls to Anahita api in order to save those information.

Building onboarding steps in php is the old fashion approach which I do not recommend. A year from now we will be using a React app for the Anahita user interface and the back-end will be reduced to APIs only. That's why we are refraining from server side rendering from now on.

You also need a system plugin that checks for the fields that need to be populated from the viewer object and if they are empty, then redirect the user to the onboarding app.

so build a com_onboarding and onboarding system plugin.

Did I answer your question? Read Less
Jerdon Helgeson liked this
Gassen Niels

Gassen Niels and Rastin Mehr commented on the topic

Custom Medium

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some cust...

Read More

Hello !

(I hope I do not ask too many question)

I am trying now to create a custom medium. It is a medium where I can upload photo, put a little comment (description) but i also want to add some custom field like "size" that will be display on the medium posts.

I manage to build a module doing just that but the custom field because I just can find what I need to alter to add the data in the database and link it to the post.

It seems that I need to change the core code which I know I should not do. Do you have an idea how to do this ?

Thanks

Niels

Read Less
Gassen Niels
Gassen Niels
January 30 2018 Permalink
Thank you for your answer.

But yes, this is easy to do but I do I connect my medium to the actor ? That's where I am stuck.
And actually, I have been trying to store it someway so later, I can get the evolution a... Read More
Thank you for your answer.

But yes, this is easy to do but I do I connect my medium to the actor ? That's where I am stuck.
And actually, I have been trying to store it someway so later, I can get the evolution and draw a graph or something.

Baby was really just an example, I am working with plants, and yes, people will create a medium called "Idontknowyet" and update their plants evolution in it. Read Less
You'd develop actor and media apps separately. After installing both, you assign media apps to actors in Settings Assignments. That's how media apps show up within actor profiles so actors can publish media. When you... Read More
You'd develop actor and media apps separately. After installing both, you assign media apps to actors in Settings > Assignments. That's how media apps show up within actor profiles so actors can publish media. When you extend a media component to make a media app, Anahita takes care of the underlying architecture so your media app can be used within actor profiles.

Media apps create media nodes. Each media node has an actor id as the owner. Media nodes cannot exist on their own, they must have an owner.

Actor apps create profiles for an actor. The provide a context representing an actor which has a title (name), description, and stories to tell. Actors create media.

I also just discovered a bug on the Settings > Assignments screen. I see components that shouldn't be assignable to actors showing up in the list. Going to fix that in the next maintenance release. Read Less
Nick Swinford

Nick Swinford started a topic

Add Search to Custom Node

Is it possible to add searchability to a custom node that isn't a medium or actor node? I kinda remember reading that after search was first implemented it wasn't possible for other nodes.
Rastin Mehr liked this
Nick Swinford

Nick Swinford commented on the topic

Component Events

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in ...

Read More

I have a component called network that adds a dashboard with all publicly view-able stories and media. In the network template file, I change the filter to network and then look for that filter in the plugin where I override the query.

Loading ...

This was working fine until the upgrade. I've check and double checked everything and can't seem to see why it's not working. Could this be because of some of the controller changes?

You can view the instructions here: https://github.com/anahitasocial/anahita/blob/master/src/plugins/anahita/default.php

Read Less
Rastin Mehr liked this
Nick Swinford
Nick Swinford
January 30 2018 Permalink
Thanks Rastin. I appreciate it.

Jerdon Helgeson started a topic

Anahita Documentation

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while work...

Read More

Hi Rastin,

I'm working on the sparq project and have been delegated to adjust the onboarding process to reflect our needs. Is there any documentation on this process which I can reference while working? Or is this something that I will need to discuss with you to learn about? 

Preferable I would be able to learn about this and other topics without taking your time. 

thanks,

Jerdon Helgeson

#OnBoarding #App #Plugin

Read Less

Photos View All

Articles View All

Topics View All

Powered by Anahita