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

It's end of month and we're busy with client deadlines. There won't be any Anahita development happening until March. Keep the bug reports coming please.
Rastin Mehr

Rastin Mehr commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

Do you rename it? Pick a different name for it like. For example: Paris

The directory file structure for your new package is:

packages/paris/src/templates/paris

which contains the package file content such as... Read More
Do you rename it? Pick a different name for it like. For example: Paris

The directory file structure for your new package is:

packages/paris/src/templates/paris

which contains the package file content such as css, html, params.ini, template.json, and thumbnail.png

packages/paris/src/language/en-GB/en-GB.tpl_paris.ini

is the language file

packages/paris/composer.json has the following content:

Loading ...


Then in the command line type:

$ php anahita package:list

and you should see it in the list of other packages. Use the following command to install it:

$ php anahita package:install paris

This will symlink the package. Then go to: Site Settings and select the template Paris. You can edit the template parameters by going to Site Settings > Templates. Read Less
Anahita templates are basically apps that extend the base template.

Hunter Wilkes commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

So, I made a copy of Shiraz to the packages folder, but I can't figure out how to install it as a custom app.
Rastin Mehr

Rastin Mehr and Roni Mmi commented on the topic

How to Speed-Up Anahita 4.3.3 Using .htaccess

This Is My Current htaccess . can you anyone help me add more syntax ...Please
Turn on APCu and OPCache on php7 for best results. Any standard configuration for a LAMP server should work. I haven't played with the parameters in .htaccess

I also prefer Nginx over Apache
Roni Mmi liked this
I am actually using shared web hosting. In VPS can do alot of customization.
once i had tried few years ago. NGINX with varnish cache. it was very fast.
i think someone may try .htaccess tweaking.

maybe i ask my... Read More
I am actually using shared web hosting. In VPS can do alot of customization.
once i had tried few years ago. NGINX with varnish cache. it was very fast.
i think someone may try .htaccess tweaking.

maybe i ask my host to enable php 7 now. i havent try yet. thanks Read Less
Rastin Mehr

Rastin Mehr commented on the topic

Testing Notifications

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff...

Read More

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff), but I'm not totally sure how to test if the notifications are actually working.

Read Less
If you have less than a few hundred users, you don't need to setup cron. Anahita executes a command in the background for the notifications to be sent out.
Hunter Wilkes liked this

Hunter Wilkes commented on the topic

Testing Notifications

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff...

Read More

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff), but I'm not totally sure how to test if the notifications are actually working.

Read Less
Ah, nevermind. Got them working.
Nick Swinford liked this
Roni Mmi

Roni Mmi commented on the topic

How to Speed-Up Anahita 4.3.3 Using .htaccess

This Is My Current htaccess . can you anyone help me add more syntax ...Please
CheckSpelling Off
AddType x-httpd-php56 .php

RewriteEngine On
RewriteCond %{HTTP_HOST} ^anahita.com [NC]
RewriteRule ^(.*)$ http://www.anahita.com/$1 [L,R=301]




ExpiresActive On
ExpiresDefault "access... Read More
CheckSpelling Off
AddType x-httpd-php56 .php

RewriteEngine On
RewriteCond %{HTTP_HOST} ^anahita.com [NC]
RewriteRule ^(.*)$ http://www.anahita.com/$1 [L,R=301]




ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType text/xml "access plus 1 seconds"
RewriteRule ^static/.+\.(js|css|htl|php|json|xml|html|jpg|jpe|bmp|jpeg|png|gif|ico|tiff|svg|svgz|swf|flv)$ compress.php [NC]

# BEGIN GZIP

AddOutputFilterByType DEFLATE text/html text/css text/plain image/svg+xml text/javascript text/xml application/x-javascript text/js image/jpg application/x-httpd-php application/xhtml+xml application/rss+xml application/javascript application/x-httpd-fastphp application/json

# END GZIPAddHandler mode-deflate mod_deflate



# 1 YEAR

Header set Cache-Control "max-age=29030400, public"

# 1 WEEK

Header set Cache-Control "max-age=604800, public"

# 2 DAYS

Header set Cache-Control "max-age=172800, proxy-revalidate"

# 1 MIN

Header set Cache-Control "max-age=60, private, proxy-revalidate"



# any Expires Directives go here



# any Header directives go here



ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300



ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType application/pdf A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/plain A2592000

# Expires after 4.8 hours
ExpiresByType text/css A17200



ExpiresActive On
ExpiresDefault A86400
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A900



# YEAR

Header set Cache-Control "max-age=29030400"

# WEEK

Header set Cache-Control "max-age=604800"

# 45 MIN

Header set Cache-Control "max-age=2700"

Read Less
Roni Mmi

Roni Mmi started a topic

How to Speed-Up Anahita 4.3.3 Using .htaccess

This Is My Current htaccess . can you anyone help me add more syntax ...Please

Hunter Wilkes started a topic

Testing Notifications

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff...

Read More

Hey all,

I've been having some troubles getting the notifications working. I've got a cron job working now, and I think I've worked through all the php errors I was getting (mostly permissions stuff), but I'm not totally sure how to test if the notifications are actually working.

Read Less
Rastin Mehr

Rastin Mehr and Roni Mmi commented on the topic

How to Change Anahita Default Homepage

Hello, I Just Successfully Install Anahita 4.3.3Can anyone tell me how to change Anahita Default Homepage .thanksbest regards

This is the file: https://github.com/anahitasocial/anahita/blob/master/src/templates/shiraz/html/com_pages/page/default.php

however rather than modifying that file, I suggest you create a custom template and custom... Read More
This is the file: https://github.com/anahitasocial/anahita/blob/master/src/templates/shiraz/html/com_pages/page/default.php

however rather than modifying that file, I suggest you create a custom template and customize the file:

templates/YOUR-TEMPLATE/html/com_pages/page/default.php

You can build additional static pages in the same fashion. Checkout the examples: https://github.com/anahitasocial/anahita/tree/master/src/templates/shiraz/html/com_pages/page Read Less
Roni Mmi liked this
thanks alot. really appreciate your quick response. i will try
Roni Mmi

Roni Mmi started a topic

How to Change Anahita Default Homepage

Hello, I Just Successfully Install Anahita 4.3.3Can anyone tell me how to change Anahita Default Homepage .thanksbest regards

Hunter Wilkes and Nick Swinford commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

I think your answers are helping, but I'm still a bit lost. If I wanted to customize the home/login page, what would I need to edit?
The pages component is the default whenever an app isn't specified and when a page isn't specified, the default layout is used. You can find that layout here (https://github.com/anahitasocial/anahita/blob/master/src/t... Read More
The pages component is the default whenever an app isn't specified and when a page isn't specified, the default layout is used. You can find that layout here (https://github.com/anahitasocial/anahita/blob/master/src/templates/shiraz/html/com_pages/page/default.php).

To override and customize the default page, create a default.php file in your own template at /html/com_pages/page.

The login page is part of the people component. You can tell this by looking at the URL (https://www.getanahita.com/people/session). The first parameter, /people/, is the component and the second, /session/, is the view. You can customize this page by creating a new default.php file in yourtemplate/html/com_people/session.

If you look at the default.php file, you'll see that there's not much there. That's cause Anahita uses template helpers to build templates up. In the example, the template helper is loading the form.php file in the same directory. You may need to override this file instead, depending on what changes you want to make.

It should also be noted that different components inherit from parent components. The people and group components are both actors components and inherit their templates from the actor component. You might find some of the templates you're looking for in it. As well, photos, topics, todos are all medium apps and inherit from the medium component. Both actor and medium components inherit from the base component. Read Less
2 people liked this

Hunter Wilkes and 2 others commented on the topic

Customize the GUI

Hey All,

I want to try and customize the GUI for my site, but I honestly have no idea where to start. Any advice or tips would be greatly appreciated.

Thanks,

Hunter

#gui #template #customization

Hey, so, I've been looking into the files, and I can't seem to find which files I need to change. I found the css file, but I can't figure out what I need to change in order to customize. I'm also not sure which files... Read More
Hey, so, I've been looking into the files, and I can't seem to find which files I need to change. I found the css file, but I can't figure out what I need to change in order to customize. I'm also not sure which files are actually responsible for making the pages. Read Less
Can you post some examples of what you'd like to change? We can provide some specific instructions on how to get started then.
Hunter Wilkes liked this
The layouts are in the views of the components. If you want to change them, you need to override them in your custom component. For example to override:

components/com_people/views/people/html/default.php

copy ... Read More
The layouts are in the views of the components. If you want to change them, you need to override them in your custom component. For example to override:

components/com_people/views/people/html/default.php

copy that file in

templates/YOUR-TEMPLATE/html/com_people/people/default.php

This way Anahita ignores the file in the com_people component and uses your override instead.

The current Anahita extends the Bootstrap 2.2.4 which is written in LESS format. There is a built-in LESS compiler in Anahita that compiles the LESS files and creates the CSS file that you have found. Hence you shouldn't be editing the css file directly.

To customize the less files, override them in your custom template. For example copy the file:

templates/base/css/core/template.less

into

templates/YOUR-TEMPLATE/css/style1/core/template.less

and add your customizations to it. To activate the built-in compiler, go to the Site Settings and set the "Debug System" to Yes. Then go to a page in your Anahita installation and refresh in the browser. The compiler checks for the modified files and if there are any, it will recompile the entire LESS files and creates a new css file.

Did I answer your question? Read Less
Hunter Wilkes liked this
Also like I said, don't plan any heavy customization. In 6 months or so the entire user interfaces are going to be using new technologies. Here is an article talking about the upcoming 4.4 version: Read More
Also like I said, don't plan any heavy customization. In 6 months or so the entire user interfaces are going to be using new technologies. Here is an article talking about the upcoming 4.4 version:

What do we want to see in Anahita 4.4

A summary of what architectural changes we want to see in Anahita 4.4

Read Less
Hunter Wilkes liked this
Rastin Mehr

Rastin Mehr commented on the topic

Setting up Locations services

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & S...

Read More

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & Server API key:

https://developers.google.com/maps/web/

Read Less
Rastin Mehr liked this
Good, don't forget a database backup of your 4.2.4 before upgrading to 4.3. There is a big change in both the db schema and file structure. Your db size will be smaller though as well as your codebase size.
Unkown Person liked this

Hunter Wilkes commented on the topic

Unable to update site settings

Hey all,

So, I've been trying to work on the site, but whenever I hit the update button at the bottom of the system settings page, the values just reset to the defaults. Any advice on how to fix thi...

Read More

Hey all,

So, I've been trying to work on the site, but whenever I hit the update button at the bottom of the system settings page, the values just reset to the defaults. Any advice on how to fix this?

Thanks,

Hunter

Read Less
I got it figured out. It was because one of the people I'm working with was the owner of the file, not me. But if I did chown I could get he permissions to change.
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr commented on the topic

Setting up Locations services

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & S...

Read More

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & Server API key:

https://developers.google.com/maps/web/

Read Less
Rastin Mehr liked this
By the way, what version of Anahita are you using?
Rastin Mehr

Rastin Mehr shared a note

One more reason to upgrade to version 4.3 is the improved security and how the passwords are stored. It is using the native php password_hash() method. For best results use php7
Rastin Mehr

Rastin Mehr commented on the topic

Setting up Locations services

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & S...

Read More

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & Server API key:

https://developers.google.com/maps/web/

Read Less
Rastin Mehr liked this
They have made it so confusing now!

Use this for browser key:
https://developers.google.com/maps/documentation/javascript/adding-a-google-map#key

and this for server key:
https://developers.google.com/maps/doc... Read More
They have made it so confusing now!

Use this for browser key:
https://developers.google.com/maps/documentation/javascript/adding-a-google-map#key

and this for server key:
https://developers.google.com/maps/documentation/geocoding/get-api-key

Use the free plans for both. Read Less
Unkown Person liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Setting up Locations services

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & S...

Read More

What specific service(s) from Google Maps should be used to activate the Anahita Locations capabilities?  I see several listed, but couldn't figure out which corresponded to the Browser API key & Server API key:

https://developers.google.com/maps/web/

Read Less
I had a hard time figuring this out as well. I'm still not sure I have it configured properly.
Geocoding happens on the server side
Ok I just checked my own code and you need both browser and server API keys. The server API key is used for obtaining longitude and latitude of an address. The browser key is used in the search view to lookup a place ... Read More
Ok I just checked my own code and you need both browser and server API keys. The server API key is used for obtaining longitude and latitude of an address. The browser key is used in the search view to lookup a place and use it to search within a radius of it. Read Less
Rastin Mehr

Rastin Mehr and Hunter Wilkes commented on the topic

Unable to update site settings

Hey all,

So, I've been trying to work on the site, but whenever I hit the update button at the bottom of the system settings page, the values just reset to the defaults. Any advice on how to fix thi...

Read More

Hey all,

So, I've been trying to work on the site, but whenever I hit the update button at the bottom of the system settings page, the values just reset to the defaults. Any advice on how to fix this?

Thanks,

Hunter

Read Less
What are the file permissions of configuration.php file? Maybe Anahita doesn't have the right permission to write in that file.
-rw-rw-r-- are the permissions, but I'm having trouble changing them. I tried sudo chmod +w on it, but the permissions didn't actually change.
try:

$ sudo chmod 644 configuration.php
The permissions didn't change. Is it the configuration.php file in the www directory?
When you update settings, can you check and see if the content of configuration.php changes?
The file did not change.
ok perhaps the file owner needs to change. What type of server are you using? Is it apache or nginx?
I used sudo vim to edit the file, so I have the changes now, but that doesn't really solve the main problem.
yes the problem is that your php doesn't have the right permissions to edit the file.
We're using an apache server.

Photos View All

Articles View All

Topics View All

Powered by Anahita