Are there any tutorial for elggs?
Hi,
I am new in elgg. How to i just show friend's username instead of their profile/icon?
For example the code below:
foreach($friends as $friend)
{
echo elgg_view("profile/icon",array('entity' => get_user($friend->guid), 'size' => $size));
}
How to i change it just to show name only?
Thanks for the advice.
I'm having a .htaccess redirect or rewrite, i successfully redirected my domain name to my subfolder (ex.www.mysite.com/subfolder into www.mysite.com)
This is my .htaccess on my rootdirectory of my site (www.mysite.com)
RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteRule ^(.*)$ subfolder/$1 [L]
but the thing is, whenever i click the link to my other pages of my site it will display my subfolder name again in my domain name
(ex.www.mysite.com/subfolder/pg/photos/view/133/photo)
(ex.www.mysite.com/subfolder/pg/dashboard/),
has anyone figured out what's the best solution for this.?
I think it has something to do with the " .htaccess in my elgg root directory"
Are there any tutorial for elggs?
Hi,
I am new in elgg. How to i just show friend's username instead of their profile/icon?
For example the code below:
foreach($friends as $friend)
{
echo elgg_view("profile/icon",array('entity' => get_user($friend->guid), 'size' => $size));
}
How to i change it just to show name only?
Thanks for the advice.
I'm having a .htaccess redirect or rewrite, i successfully redirected my domain name to my subfolder (ex.www.mysite.com/subfolder into www.mysite.com)
This is my .htaccess on my rootdirectory of my site (www.mysite.com)
RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteRule ^(.*)$ subfolder/$1 [L]
but the thing is, whenever i click the link to my other pages of my site it will display my subfolder name again in my domain name
(ex.www.mysite.com/subfolder/pg/photos/view/133/photo)
(ex.www.mysite.com/subfolder/pg/dashboard/),
has anyone figured out what's the best solution for this.?
I think it has something to do with the " .htaccess in my elgg root directory"
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.