[Register]
Powered by Elgg

Plugins :: Blog :: Archives

January 2008

January 02, 2008

I have the latest version of elgg and I started adding the folio, following this instructions:


1. Install the v0.7 or v.08 version of Elgg.  Make sure that Elgg is working
    before going any further. This add-in is not supported
        with any other version.
2. If you are upgrading, remove any previous installations of the wiki add-in by
    deleting all of the files in  _folio (for pre v.5 folio version) and mod/folio.
    Remove the extra lines in .htaccess marked as belonging to this add-in.
3. Copy the mod/folio folder to    {root folder}mod/folio.
4. Copy the section marked as belonging to this add-in in the htaccess file in this distribution
    to your .htaccess file. 
5. Log into Elgg as news.

 

When I tried to log into my installation of elgg the site didn't come out, and now it is not working at all, I only get white pages.

My problem may be the .htaccess so I am attaching it, is there any way to avoid adding more lines to this file every time I want to add something to elgg !?

 


#RewriteBase /

# Pages
###########
RewriteRule ^content\/?(.*)?$ mod/pages/index.php?owner=-1&page=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9]+)\/content\/(.*)?$ mod/pages/index.php?profile_name=$1&page=$2  [QSA,L]

RewriteRule ^_templates(\/)?$ mod/template/index.php?%{QUERY_STRING}
RewriteRule ^_templates\/edit.php$ mod/template/edit.php?%{QUERY_STRING}
RewriteRule ^_templates\/preview.php$ mod/template/preview.php?%{QUERY_STRING}
RewriteRule ^_templates/css/(.+)$ mod/template/css.php?template=$1

RewriteRule ^(.+)\/rssstyles.xsl$ mod/newsclient/styles.php?rssurl=$1&url=$1

RewriteRule ^([A-Za-z0-9]+)\/dashboard(\/)?$ mod/adash/index.php?user=$1

RewriteRule ^([A-Za-z0-9]+)\/profile(\/)?$ profile/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/tags(\/)?$ search/personaltags.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/rss\/(.+)\/?$ profile/rss2.php?profile_name=$1&tag=$2


# Invite
#########
RewriteRule ^invite\/$ mod/invite/index.php
ReWriteRule ^invite\/join\/([A-Za-z0-9]+)$ mod/invite/join.php?invitecode=$1
ReWriteRule ^register$ mod/invite/register.php
RewriteRule ^forgottenpassword$ mod/invite/forgotten_password.php
RewriteRule ^newpassword\/([A-Za-z0-9]+)$ mod/invite/new_password.php?passwordcode=$1

RewriteRule ^([A-Za-z0-9]+)(\/)?$ profile/index.php?profile_name=$1

# Activity
###########
RewriteRule ^_activity\/$ mod/activity/index.php
RewriteRule ^_activity\/index.php$ mod/activity/index.php?%{QUERY_STRING}

# Communities
##############
RewriteRule ^([A-Za-z0-9]+)\/communities\/?$ mod/community/index.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/owned$ mod/community/owned.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/new$ mod/community/new.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/delete$ mod/community/index.php?profile_name=$1&action=community:delete
RewriteRule ^([A-Za-z0-9]+)\/community\/requests$ mod/community/requests.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/requests\/aprove\/([0-9]+)$ mod/community/requests.php?profile_name=$1&action=community:approve:request&request_id=$2
RewriteRule ^([A-Za-z0-9]+)\/community\/requests\/decline\/([0-9]+)$ mod/community/requests.php?profile_name=$1&action=community:decline:request&request_id=$2
RewriteRule ^([A-Za-z0-9]+)\/community\/members$ mod/community/members.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/add\/([0-9]+)$ mod/community/index.php?friends_name=$1&friend_id=$2&action=friend
RewriteRule ^([A-Za-z0-9]+)\/community\/leave\/([0-9]+)$ mod/community/index.php?profile_name=$1&friend_id=$2&action=leave
RewriteRule ^([A-Za-z0-9]+)\/community\/separate\/([0-9]+)$ mod/community/members.php?profile_name=$1&friend_id=$2&action=separate
RewriteRule ^community\/([0-9]+)\/?$ mod/communities/community.php?community_id=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/invite$ mod/community/invite.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/invitations$ mod/community/user_community_invitations.php?profile_name=$1

# Files
########
RewriteRule ^([A-Za-z0-9]+)\/files\/?$ mod/file/index.php?files_name=$1
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9]+)\/?$ mod/file/index.php?files_name=$1&folder=$2
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ mod/file/download.php?files_name=$1&folder=$2&filename=$4&id=$3
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/files\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=files
RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+)\/?$ mod/file/rss2.php?files_name=$1&tag=$2
RewriteRule ^_icon\/file/([-0-9]+)$ mod/file/icon.php?id=$1
RewriteRule ^_files\/icon.php$ mod/file/icon.php?%{QUERY_STRING}

# Friends
##########
RewriteRule ^([A-Za-z0-9]+)\/friends\/?$ mod/friend/index.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/friendsof\/?$ mod/friend/friendsof.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/friends\/requests?$ mod/friend/requests.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/foaf\/?$ mod/friend/foaf.php?friends_name=$1

# Icons
########
RewriteRule ^_icons\/$ mod/icons/index.php
RewriteRule ^_icon\/user/([-0-9]+)$ mod/icons/icon.php?id=$1
RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)$ mod/icons/icon.php?id=$1&constraint1=$2&size1=$3
RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/([A-Za-z])\/([0-9]+)$ mod/icons/icon.php?id=$1&constraint1=$2&size1=$3&constraint2=$4&size2=$5

# Newsclient
############
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=profile
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/?$ mod/newsclient/subscriptions.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/?$ mod/newsclient/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/skip=([0-9]+)$ mod/newsclient/index.php?profile_name=$1&feed_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/feeds\/?$ mod/newsclient/subscriptions.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/?$ mod/newsclient/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/skip=([0-9]+)$ mod/newsclient/index.php?profile_name=$1&feed_offset=$2
RewriteRule ^_rss\/([A-Za-z_]+).php$ mod/newsclient/$1.php?%{QUERY_STRING}

# Users
########
RewriteRule ^_userdetails\/$ mod/users/index.php?%{QUERY_STRING}
RewriteRule ^_userdetails\/index.php$ mod/users/index.php?%{QUERY_STRING}

# Weblog
########
RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ mod/blog/index.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ mod/blog/index.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/edit$ mod/blog/edit.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/weblog\/edit\/([0-9]+)$ mod/blog/edit.php?profile_name=$1&weblog_post_id=$2&action=edit
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ mod/blog/archive.php?weblog_name=$1
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ mod/blog/archive_month.php?weblog_name=$1&year=$2&month=$3
RewriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/?$ mod/blog/friends.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ mod/blog/friends.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/interesting\/?$ mod/blog/interesting.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/interesting\/skip=([0-9]+)$ mod/blog/interesting.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ mod/blog/view_post.php?post=$1
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html.([0-9]+)$ mod/log/view_post.php?post=$1&commentpage=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.+)\/?$ mod/blog/rss2.php?weblog_name=$1&tag=$2&modifier=is
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rssnot\/(.+)\/?$ mod/blog/rss2.php?weblog_name=$1&tag=$2&modifier=not
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/weblog\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=weblog
RewriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/?$ mod/blog/index.php?weblog_name=$1&filter=$2
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/skip=([0-9]+)$ mod/blog/index.php?weblog_name=$1&filter=$2&weblog_offset=$3
ReWriteRule ^weblog\/everyone$ mod/blog/everyone.php
ReWriteRule ^weblog\/everyone\/(people|communities|commented|uncommented)$ mod/blog/everyone.php?filter=$1
ReWriteRule ^weblog\/everyone\/skip/([0-9]+)$ mod/blog/everyone.php?weblog_offset=$1


###########

RewriteRule ^tag\/(.+)\/?$ search/all.php?tag=$1
RewriteRule ^rsstag\/(.+)\/?$ search/rss.php?tag=$1
RewriteRule ^tag\/(.+)/ecl\/?$ search/ecl.php?tag=$1

# Some blogging clients probe Wordpress or MoveableType endpoints,
# redirect them to the Elgg xml-rpc endpoint
#
RewriteRule xml-rpc.php _rpc/RPC2.php
RewriteRule mt/mt-xmlrpc.cgi _rpc/RPC2.php

# Rewrite rules for rpc transition to mod/ in v0.9+ so we don't break things
#
RewriteRule ^_rpc/RPC2.php$ mod/rpc/RPC2.php
RewriteRule ^_rpc/rsd.php$ mod/rpc/rsd.php?%{QUERY_STRING}


# rewrite for the chat

RewriteRule ^([A-Za-z0-9]+)/chat/?(.+)$ _chat/$2


#FORUM PLUGIN REWRITE ELEMENTS
RewriteRule ^([A-Za-z0-9]+)/forum/?$ mod/forum/forum.php?weblog=$1
RewriteRule ^([A-Za-z0-9]+)/forum/skip=([0-9]+)$ mod/forum/forum.php?weblog=$1&weblog_offset=$2
RewriteRule ^[A-Za-z0-9]+/forum/([0-9]+)(.html)?$ mod/forum/forum_view_thread.php?post=$1
 

Posted by jose @ Plugins | 0 comment(s)

January 06, 2008

I've got the vanilla plugin (which rocks !) and I've noticed when I create a new community it creates a new category in vanilla, but my question is, how can I syncronice the Communities-Categories to get my old Communities with a category too ?

Thanks.

Keywords: category, community, forum, syncronization, vanilla

Posted by jose @ Plugins | 0 comment(s)

January 07, 2008

I have installed the media gallery plugin in 0.9 Elgg.  I am having trouble re-sizing the player to show the whole screen when playing embedded videos in my blogs.  Any suggestions as to where I need to go to adjust the size of the player?

Thanks. 

Keywords: media gallery, swf player

Posted by ag cilantro @ Plugins | 0 comment(s)

January 16, 2008

We're trying out the Forwarder plugin, which seems like exactly what we want.

Unfortunately, the "Your default page" setting isn't saved when you submit changes under version 0.9RC1.  The "Your friendly name" setting controlled by the same plugin saves just fine.

Has anyone out there tried the plugin with 0.9?  Did it work?

Keywords: ELGG, forwarder, plugin

Posted by Tony Atkins @ Plugins | 1 comment(s)

I just installed the Error 404 plugin for use with ELGG 0.9RC1.

Instead of outputting the contents of the error message template, by default it output the name of the file.  I was able to work around this by changing the call to the templates_page_draw function in mod/error404/lib/function_notfound.php as follows:

echo templates_page_draw( array(
     sitename . ' :: ' . __gettext('404 Page not found...'),
     templates_draw(array(
         'context' => 'contentholder',
         'title' => __gettext('404 Page not found...'),
         'body' => file_get_contents($body)
         ))
     ));   

Keywords: ELGG, error404, plugin

Posted by Tony Atkins @ Plugins | 0 comment(s)

I've installed the Maintenance Mode plugin, which is very useful.  It seems to need updating for 0.9, the old /_ADMIN URL should now point to /mod/admin/.  You can change this by editing mod/maintenance_mode/lib.php. 

Other than that, works as advertised, very nice.

Keywords: elgg, maintenance mode, plugin

Posted by Tony Atkins @ Plugins | 0 comment(s)

Has anyone got the "Add Draft Posts" plugin working with 0.9?  The option to restrict access to a draft doesn't appear for me.

 

Keywords: add draft posts, ELGG, plugin

Posted by Tony Atkins @ Plugins | 0 comment(s)

Site supported by Curverider Ltd - powered by the awesome Elgg