HTA Code for Avatar Module

What's the htaccess code snippet for the avatar module in D7? Because the "avatar" module is not functional.

Quote · 31 Jan 2010

Before we continue, did you install the module from the administration panel under tools, modules?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

Yes I did.

Quote · 31 Jan 2010

Entry: RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

What is the error you are experiencing when trying to access this module?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

I can't get any modules to work that request the "m" folder. For example the "ads" and "blogs" work fine. I can't access the avatar either from admin or the member's area. I assume it has to do with the lack of entries to the HTA.

Quote · 31 Jan 2010

The issue you are having is not with the .htaccess file, but your web server. You must enable mod_rewrite support on your web server. If you are using a web hosting provider, you must ask them to enable support for this feature.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

Yes but how comes that the "ads" and "blogs" modules work? If mod_rewrite didn't work, these modules wouldn't either.

Quote · 31 Jan 2010

I have numerous scripts that use mod rewrite. So it's installed.

Quote · 31 Jan 2010

Can you re-upload your .htaccess file to ensure it isn't modified? If your server does have mod_rewrite enabled, the only other reason I can think of is that your .htaccess file is missing sections.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

Options -MultiViews

<IfModule mod_php4.c>
    php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
    php_flag allow_url_include Off
    php_flag register_globals Off
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^blogs/{0,1}$   modules/boonex/blogs/blogs.php [QSA,L]
RewriteRule ^blogs/all/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/blogs/blogs.php?page=$2&per_page=$1  [QSA,L]
RewriteRule ^blogs/top/{0,1}$   modules/boonex/blogs/blogs.php?action=top_blogs [QSA,L]
RewriteRule ^blogs/top/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=top_blogs&page=$2&per_page=$1 [QSA,L]
RewriteRule ^blogs/top_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=top_posts [QSA,L]
RewriteRule ^blogs/top_posts/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=top_posts&page=$2&per_page=$1 [QSA,L]
RewriteRule ^blogs/tag/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$1 [QSA,L]
RewriteRule ^blogs/tag/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/tag/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$2&ownerName=$1 [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2 [QSA,L]
RewriteRule ^blogs/entry/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_post&postUri=$1 [QSA,L]
RewriteRule ^blogs/entry/{0,1}$    modules/boonex/blogs/blogs.php?action=show_member_post&postUri= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1 [QSA,L]
RewriteRule ^blogs/posts/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2&page=$4&per_page=$3 [QSA,L]
RewriteRule ^blogs/home/{0,1}$   modules/boonex/blogs/blogs.php?action=home [QSA,L]
RewriteRule ^blogs/all_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=all_posts [QSA,L]
RewriteRule ^blogs/popular_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=popular_posts [QSA,L]
RewriteRule ^blogs/featured_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=featured_posts [QSA,L]
RewriteRule ^blogs/tags/{0,1}$   modules/boonex/blogs/blogs.php?action=tags [QSA,L]
RewriteRule ^blogs/show_calendar/{0,1}$   modules/boonex/blogs/blogs.php?action=show_calendar [QSA,L]
RewriteRule ^blogs/my_page/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=main [QSA,L]
RewriteRule ^blogs/my_page/add/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=add [QSA,L]
RewriteRule ^blogs/my_page/manage/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=manage [QSA,L]
RewriteRule ^blogs/my_page/pending/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=pending [QSA,L]
RewriteRule ^blogs/my_page/edit/([0-9]+)/{0,1}$  modules/boonex/blogs/blogs.php?action=edit_post&EditPostID=$1 [QSA,L]
RewriteRule ^blogs/member_posts/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID=$1 [QSA,L]
RewriteRule ^blogs/category/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=category&uri=$1 [QSA,L]


RewriteRule ^ads/{0,1}$  modules/boonex/ads/classifieds.php?Browse=1 [QSA,L]
RewriteRule ^ads/my_page/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page [QSA,L]
RewriteRule ^ads/my_page/add/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add [QSA,L]
RewriteRule ^ads/my_page/edit/([0-9]+)/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1 [QSA,L]
RewriteRule ^ads/my_page/edit/([0-9]+)/dimg/([0-9]+)/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1&dimg=$2 [QSA,L]
RewriteRule ^ads/my_page/manage/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=manage [QSA,L]
RewriteRule ^ads/my_page/pending/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=pending [QSA,L]
RewriteRule ^ads/my_page/disapproved/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=disapproved [QSA,L]
RewriteRule ^ads/cat/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?catUri=$1 [QSA,L]
RewriteRule ^ads/all/cat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?catUri=$3&page=$2&per_page=$1 [QSA,L]
RewriteRule ^ads/subcat/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?scatUri=$1 [QSA,L]
RewriteRule ^ads/all/subcat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?scatUri=$3&page=$2&per_page=$1 [QSA,L]
RewriteRule ^ads/entry/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?entryUri=$1 [QSA,L]
RewriteRule ^ads/tag/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds_tags.php?tag=$1 [QSA,L]
RewriteRule ^ads/calendar/{0,1}$  modules/boonex/ads/classifieds.php?action=show_calendar [QSA,L]
RewriteRule ^ads/categories/{0,1}$  modules/boonex/ads/classifieds.php?action=show_categories [QSA,L]
RewriteRule ^ads/tags/{0,1}$  modules/boonex/ads/classifieds.php?action=tags [QSA,L]
RewriteRule ^ads/all_ads/{0,1}$  modules/boonex/ads/classifieds.php?action=show_all_ads [QSA,L]
RewriteRule ^ads/top_ads/{0,1}$  modules/boonex/ads/classifieds.php?action=show_top_rated [QSA,L]
RewriteRule ^ads/popular_ads/{0,1}$  modules/boonex/ads/classifieds.php?action=show_popular [QSA,L]
RewriteRule ^ads/featured_ads/{0,1}$  modules/boonex/ads/classifieds.php?action=show_featured [QSA,L]

RewriteRule ^search/tag/([^/.]+)/{0,1}$  search.php?Tags=$1 [QSA,L]

RewriteRule ^browse/([^/.]+)/([^/.]+)/([^/.]+)$ browse.php?sex=$1&age=$2&country=$3 [QSA,L]

RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]

RewriteRule ^forum/groups/(.*)$  modules/boonex/forum/$1?orca_integration=groups [QSA,L]
RewriteRule ^forum/events/(.*)$  modules/boonex/forum/$1?orca_integration=events [QSA,L]
RewriteRule ^forum/store/(.*)$  modules/boonex/forum/$1?orca_integration=store [QSA,L]
RewriteRule ^forum/(.*)$  modules/boonex/forum/$1 [QSA,L]

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]

</IfModule>

AddType application/vnd.adobe.air-application-installer-package+zip .air
AddType application/x-shockwave-flash .swf

# gzip text content
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

<IfModule mod_deflate.c>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

Quote · 31 Jan 2010

Hm, well, I suppose you can always disable permalinks under administration, settings, permalinks until someone comes along who can provide more insight into this issue.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

Tried setting the permalinks on and off. Didn't work, thanks Magnussoft, I hope somebody sheds some light here.

Quote · 31 Jan 2010

Tried setting the permalinks on and off. Didn't work, thanks Magnussoft, I hope somebody sheds some light here.

If you cannot access them even with permalinks off, then this is a whole other issue type, then. Are you getting 404 errors, or some other kind of error?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

I get "Profile not available for view" which should be a 404 error, it redirects to this message.Even when someone registers, uploads a pic, then get gets this message (it's 404 actually). If I turn permalinks off, I get redirected to the /www/modules/boonex/avatar folder - just displaying the files. Other modules work found like "ads" and "blogs", the articles, avatar and some others don't.

Quote · 31 Jan 2010

Actually, the error you are describing is not a 404 error (profile not available for view), as it only happens when something is not configured right, or when permissions are out of whack. What are your permissions for the files and directories?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010
Directories Current level Desired level
backup Writable Writable
cache Writable Writable
cache_public Writable Writable
langs Writable Writable
media/app Writable Writable
media/images Writable Writable
media/images/banners Writable Writable
media/images/blog Writable Writable
media/images/classifieds Writable Writable
media/images/membership Writable Writable
media/images/profile Writable Writable
media/images/profile_bg Writable Writable
media/images/promo Writable Writable
media/images/promo/original Writable Writable
tmp Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI Writable Writable
Flash Directories Current level Desired level
flash/modules/board/files Writable Writable
flash/modules/chat/files Writable Writable
flash/modules/photo/files Writable Writable
flash/modules/im/files Writable Writable
flash/modules/mp3/files Writable Writable
flash/modules/video/files Writable Writable
flash/modules/video_comments/files Writable Writable
Files
Files Current level Desired level
inc/prof.inc.php Writable Writable
Flash Files Current level Desired level
flash/modules/global/data/integration.dat Writable Writable
flash/modules/board/xml/config.xml Writable Writable
flash/modules/board/xml/langs.xml Writable Writable
flash/modules/board/xml/main.xml Writable Writable
flash/modules/board/xml/skins.xml Writable Writable
flash/modules/chat/xml/config.xml Writable Writable
flash/modules/chat/xml/langs.xml Writable Writable
flash/modules/chat/xml/main.xml Writable Writable
flash/modules/chat/xml/skins.xml Writable Writable
flash/modules/desktop/xml/config.xml Writable Writable
flash/modules/desktop/xml/langs.xml Writable Writable
flash/modules/desktop/xml/main.xml Writable Writable
flash/modules/desktop/xml/skins.xml Writable Writable
flash/modules/global/app/ffmpeg.exe Executable Executable
flash/modules/global/xml/config.xml Writable Writable
flash/modules/global/xml/main.xml Writable Writable
flash/modules/im/xml/config.xml Writable Writable
flash/modules/im/xml/langs.xml Writable Writable
flash/modules/im/xml/main.xml Writable Writable
flash/modules/im/xml/skins.xml Writable Writable
flash/modules/mp3/xml/config.xml Writable Writable
flash/modules/mp3/xml/langs.xml Writable Writable
flash/modules/mp3/xml/main.xml Writable Writable
flash/modules/mp3/xml/skins.xml Writable Writable
flash/modules/photo/xml/config.xml Writable Writable
flash/modules/photo/xml/langs.xml Writable Writable
flash/modules/photo/xml/main.xml Writable Writable
flash/modules/photo/xml/skins.xml Writable Writable
flash/modules/video/xml/config.xml Writable Writable
flash/modules/video/xml/langs.xml Writable Writable
flash/modules/video/xml/main.xml Writable Writable
flash/modules/video/xml/skins.xml Writable Writable
flash/modules/video_comments/xml/config.xml Writable Writable
flash/modules/video_comments/xml/langs.xml Writable Writable
flash/modules/video_comments/xml/main.xml Writable Writable
flash/modules/video_comments/xml/skins.xml Writable Writable
Next files and directories have inappropriate permissions
Directories Current level Desired level
backup Writable Writable
cache Writable Writable
cache_public Writable Writable
langs Writable Writable
media/app Writable Writable
media/images Writable Writable
media/images/banners Writable Writable
media/images/blog Writable Writable
media/images/classifieds Writable Writable
media/images/membership Writable Writable
media/images/profile Writable Writable
media/images/profile_bg Writable Writable
media/images/promo Writable Writable
media/images/promo/original Writable Writable
tmp Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test Writable Writable
plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI Writable Writable
Flash Directories Current level Desired level
flash/modules/board/files Writable Writable
flash/modules/chat/files Writable Writable
flash/modules/photo/files Writable Writable
flash/modules/im/files Writable Writable
flash/modules/mp3/files Writable Writable
flash/modules/video/files Writable Writable
flash/modules/video_comments/files Writable Writable
Files
Files Current level Desired level
inc/prof.inc.php Writable Writable
Flash Files Current level Desired level
flash/modules/global/data/integration.dat Writable Writable
flash/modules/board/xml/config.xml Writable Writable
flash/modules/board/xml/langs.xml Writable Writable
flash/modules/board/xml/main.xml Writable Writable
flash/modules/board/xml/skins.xml Writable Writable
flash/modules/chat/xml/config.xml Writable Writable
flash/modules/chat/xml/langs.xml Writable Writable
flash/modules/chat/xml/main.xml Writable Writable
flash/modules/chat/xml/skins.xml Writable Writable
flash/modules/desktop/xml/config.xml Writable Writable
flash/modules/desktop/xml/langs.xml Writable Writable
flash/modules/desktop/xml/main.xml Writable Writable
flash/modules/desktop/xml/skins.xml Writable Writable
flash/modules/global/app/ffmpeg.exe Executable Executable
flash/modules/global/xml/config.xml Writable Writable
flash/modules/global/xml/main.xml Writable Writable
flash/modules/im/xml/config.xml Writable Writable
flash/modules/im/xml/langs.xml Writable Writable
flash/modules/im/xml/main.xml Writable Writable
flash/modules/im/xml/skins.xml Writable Writable
flash/modules/mp3/xml/config.xml Writable Writable
flash/modules/mp3/xml/langs.xml Writable Writable
flash/modules/mp3/xml/main.xml Writable Writable
flash/modules/mp3/xml/skins.xml Writable Writable
flash/modules/photo/xml/config.xml Writable Writable
flash/modules/photo/xml/langs.xml Writable Writable
flash/modules/photo/xml/main.xml Writable Writable
flash/modules/photo/xml/skins.xml Writable Writable
flash/modules/video/xml/config.xml Writable Writable
flash/modules/video/xml/langs.xml Writable Writable
flash/modules/video/xml/main.xml Writable Writable
flash/modules/video/xml/skins.xml Writable Writable
flash/modules/video_comments/xml/config.xml Writable Writable
flash/modules/video_comments/xml/langs.xml Writable Writable
flash/modules/video_comments/xml/main.xml Writable Writable
flash/modules/video_comments/xml/skins.xml Writable Writable
Next files and directories have inappropriate permissions

Checked with the host tools for permissions and "Next files and directories have inappropriate permissions" are zilch.

Quote · 31 Jan 2010

I meant the permissions as numerical values.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010

All modules that I check under Admin that are found in the "m" folder, don't work [eg. /m/avatar/administration/] - modules that are found/installed in "/modules/boonex/blogs/post_mod_blog.php" like blogs, work fine.

Quote · 31 Jan 2010

Folders are 755 and files 644 in avatar

Quote · 31 Jan 2010

the tmp and images under /www/modules/boonex/avatar/data are 777

Quote · 31 Jan 2010

Magnus! Eureka! It was a missing file in the boonex folder (index.php)! Hallelujah, sorry for the trouble and thanks for the help!

Quote · 31 Jan 2010

Magnus! Eureka! It was a missing file in the boonex folder (index.php)! Hallelujah, sorry for the trouble and thanks for the help!

Hm, I'm going to have to make a note of this for the future. Sorry I had to leave you directory-diving, though. I'm glad to see you found the solution.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.