[Register]
Powered by Elgg

Developer discussion :: Blog :: Archives

August 2007

August 01, 2007

Help!! I'm currently debugging a site powered by elgg and don't know why clicking the account details and edit community details both return a blank screen...

Keywords: blank screen, bug community, community details error

Posted by maida @ Developer discussion | 3 comment(s)

August 02, 2007

Please help me with this I got this error Call to undefined function __gettext() in /home/mpnet/public_html/my/mod/calendar/config.php what causes this error and how will I solve this?

Posted by kareen @ Developer discussion | 0 comment(s)

I have just seen that on eduspaces.net there is a drag & drop ajax for adding widgets for profile.

In elgg 0.8, that is recently released you can not see this GUI, but I see some ajax files under mod/widget/.

Are you going to update it in svn repository or it is a matter of configuartion?

Keywords: drag & drop, elgg 0.8, profile, widgets

Posted by beni @ Developer discussion | 3 comment(s)

this file may have no influence in run time, but I noticed the error while loading the project in eclipse Lächeln

mod/widget/ajax_test.php, lines 12 and 14

Keywords: elgg 0.8, error, syntax error

Posted by beni @ Developer discussion | 0 comment(s)

Hi all,

is there a way to put the tag cloud in the first page?

Thanks 

Keywords: tag cloud

Posted by Paulo @ Developer discussion | 2 comment(s)

August 03, 2007

Does any body know what is that for? What does it do?

Is it already released? definitely not with elgg 0.8, is it? 

Keywords: elgg 0.8, plugin, river, river plugin

Posted by beni @ Developer discussion | 3 comment(s)

So I created a site for the iPhone community called iPHONEcolony. The site makes use of eLGG and fits it onto the screen of the iPhone. The site has seen a lot of growth when I started, but I feel like it has flat-lined due to other networking sites. I want to add something that will help add life back into the site and that is where the mailblogger comes into play.

I have tried installing the plugin and tweaking it to work with no success. Can anyone provide any guidance? Thank you in advance for your time.

Keywords: iphone, mail, mailblogger, plugin

Posted by Heath Moser @ Developer discussion | 4 comment(s)

August 04, 2007

I va a question,

in the most networks you ad a friend/contact und now you are the friend form the contact too. Is ther a solotion to do this in elgg also?

regards,

schumi

Keywords: friends

Posted by schumi2000 @ Developer discussion | 1 comment(s)

August 05, 2007

I am getting this error everytime i try to log-in.. how do i fix this? 

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 5898240 bytes) in /home/alcordok/public_html/nurseako/lib/db/mysql.php on line 198

Posted by Kristopher Julius Alcordo @ Developer discussion | 1 comment(s)

August 06, 2007

I get alswas the error:

Fatal error: Call to undefined function __gettext() in C:\wamp\www\elgg9\mod\calendar\config.php on line 2

The solution to replace  __gettext() to gettext() doesn´t work.

Someone have a idea? Without the yahoo-plugin the calendar works.

Regards,

schumi 

Keywords: calendar, error, yahoo

Posted by schumi2000 @ Developer discussion | 2 comment(s)

Is there any interest in integrating with a free video sharing applicaiton?  I came across a great looking video sharing software called PHPmotion.  http://www.phpmotion.com/

I think it would be great to be able to have the social aspects of ELGG tied in with video sharing allowing each person in ELGG to create their own "channel" in phpmotion.

I wish I knew more about coding! I saw the ELGG slideshows about Version0.9 integrating video.  This would be great software to base that integration on.  You upload any file and it converts it to Flash.  Imagine being able to place videos in your ELGG homepage such as most recent, most reviewed, etc!

-Chris 

Posted by Chris Kenniburg @ Developer discussion | 3 comment(s)

As all files under units/weblogs/ and _weblog/ directories are now under mod/blog/, I wonder why the directory _weblog/ still exists? Is there any reason for that?

Keywords: _weblog, elgg 0.8

Posted by beni @ Developer discussion | 1 comment(s)

August 07, 2007

I guess I don't understand variable scope even after reading the manual and trying numerous permutations of code. I've been trying to declare and set a global variable in elgglib.php which I later try to access in a /mod template but for some reason the global doesn't seem to get set (I don't want to set it as a session var). Shouldn't a global in elgglib.php be available to all mods? For example in elgglib.php:

function whatever(){

    global $CFG, $USER $myvar;

    some code;

    $myvar = "x";

}

then in /mod/myplugin/index.php

global $myvar;

echo $myvar;  // yields nothing

I can echo all other global variables but not the one I created.  What am I doing wrong? Thanks and forgive such a rudimentary question.

 

Keywords: elgglib.php, global variable, globals, variable scope

Posted by Randy Ahn @ Developer discussion | 1 comment(s)

I have figured out how to change the individual name listings in the {{sidebar}} but I am still having difficulty with editing the order of the listings. Where is {{sidebar}} being defined and how is the listing order determined? As well as where and how are all the {{XXXXX}} being defined?

Keywords: sidebar, sidebar listing

Posted by Brian Shannon @ Developer discussion | 2 comment(s)

August 08, 2007

I removed the # from the

php_flag register_globals off  line

but the same error still persists

 

any idea? see  http://zazzah.com

Keywords: php_flag register_global installation

Posted by travel @ Developer discussion | 0 comment(s)

I have no idea how to install this. Anybody want a quick job? 310 862 4250 bob EMAIL human compatible at Yahoo dot com

Keywords: gd-2.0.35RC5.tar.bz2 gd graphics library

Posted by travel @ Developer discussion | 2 comment(s)

August 09, 2007

when you go to http://69.64.87.112/ none of the pages work... any idea what i did wrong? can you fix it and how much time $$? call me 8 5 8  668 6 5 2 0

Posted by travel @ Developer discussion | 0 comment(s)

August 11, 2007

Hello I get a bug here when posting a comment it says "

Input Array does not match ?: SELECT * FROM elgguser_flags WHERE flag = 'forum' AND user_id =

Warning: Cannot modify header information - headers already sent by (output started at *.../my/lib/adodb/adodb.inc.php:390) in *...mod/blog/lib/weblogs_actions.php on line 232

Keywords: comment on forums error, forum errors

Posted by maida @ Developer discussion | 1 comment(s)

Hi all,

my fancy submenu shows all the options twice!!

Any one can help me?

Thanks

Paulo 

Keywords: fancy submenu

Posted by Paulo @ Developer discussion | 3 comment(s)

August 13, 2007

hello does anyone encountered this error? "Input Array does not match ?: SELECT * FROM elgguser_flags WHERE flag = 'forum' AND user_id =

Warning: Cannot modify header information - headers already sent by (output started at /home/mpnet/public_html/my/lib/adodb/adodb.inc.php:390) in /home/mpnet/public_html/my/mod/blog/lib/weblogs_actions.php on line 235"

I got this everytime I post a comment on blogs. Can anyone help me with this? 

Posted by kareen @ Developer discussion | 0 comment(s)

When adding another blog post entry, when I clicked Add External Video and Add file button, nothing happend.. Can anyone help me with this? What file should I edit..

Posted by kareen @ Developer discussion | 0 comment(s)

I've successfully installed elgg and have only tinkered with adding users and content. I have not touched the code other than the config.php and .htaccess per the installation instructions.

When I edit a post I get the following error message 6 times at the top of the screen. The edit still works though.

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/mybhak5/public_html/mod/blog/lib/weblogs_posts_edit.php on line 36

I noted that line 36 deals with tags so I tried removing the tags and once I did it worked fine. I played with the tags and I noticed this error appears once for each tag. 

I would appreciate any clues anyone has to why this is happening and how to correct it. 

Thanks 

Keywords: line 36, tags, warning, weblogs_posts_edit.php

Posted by Edward Leonforte @ Developer discussion | 2 comment(s)

units/groups/groups_actions.php line 45:

variable $group_id  is not correct. $groupid is the correct one.

It causes referential integrity problem for table group_membership!!! 

Keywords: bug, elgg 0.8, groups, referential integrity

Posted by beni @ Developer discussion | 0 comment(s)

August 16, 2007

This is the first bit of hacking elgg I have done so I would like some comments on it please.  Well OK, I'm really after a pat on the back Wink.

The background. 

We have an external auth module that authenticates the user against a particular vle, this is fine if the users are in the vle.  However it fails if the user is just an elgg user and are not part of the vle.  To get a fall through from the custom auth module back over to the internal method I have added the following.

 

In the config.php

$CFG->auth = 'custom_auth';

In the custom_auth_authenticate_user_login function, after the first authentication attempt against the vle fails the function then does the following

$CFG->auth = 'internal';
require_once($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php');
return internal_authenticate_user_login($username, $password);

I'm happy to say that this works and I have not touched any of the base elgg code.

Is this how you would have done it. An added bonus is that if a vle user has set an internal password and the vle is down the user can still access elgg as the vle auth will fail and pass through to their internal one.

 

Keywords: auth, authenticate_user_login, authentication, external, login

Posted by John Tutchings @ Developer discussion | 0 comment(s)

It seems that user deletion is not defined for generic_comments plugin in elgg 0.8.

Posted by beni @ Developer discussion | 0 comment(s)

After I delete a user (via Admin GUI), I see that some records still exist in DB, that are assigned to the deleted user. They are not deleted. For instance the groups, which the user has created under access control remain in table groups.

in mod/profile/lib.php function profile_user_delete, $data['profile:details'] is not defined. so the records can not get deleted from tags table. I just included the profile config file before the if clause to solve the problem:

require_once($CFG->profilelocation . "profile.config.php");

the rss files under $CFG->dataroot/rss/ do not get deleted. That is also true for $CFG->dataroot/profile_photos/.

under $CFG->dataroot/files/, files are deleted, but not the folders.

Keywords: bug, elgg 0.8, user deletion

Posted by beni @ Developer discussion | 1 comment(s)

August 17, 2007

Could you point me in the direction of documentation for developing new widgets?

thanks!

Posted by Alistair Young @ Developer discussion | 1 comment(s)

August 18, 2007

My server was updraded to PHP 5.2.3 and suddenly I'm getting the following error. Otherwise the site still works. Theses /usr/ paths confuse me. They don't look right with the : and run together like that but what do I know. If anyone has any clues, please do tell.

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/mybhak5:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mybhak5/public_html/mybhaktiorg/lib/elgglib.php on line 1262

Warning: is_executable() [function.is-executable]: open_basedir restriction in effect. File(/usr/bin/uptime) is not within the allowed path(s): (/home/mybhak5:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mybhak5/public_html/mybhaktiorg/lib/elgglib.php on line 1265

Keywords: /proc/loadavg, /usr/lib/php, /usr/local/lib/php, function.is-readable, lib/elgglib.php, open_basedir restriction, Warning: is_readable

Posted by Edward Leonforte @ Developer discussion | 3 comment(s)

August 19, 2007

Anyone know how to change what sections appear and where on the first main profile page?

There's definitely room for improvment in the realm of customization. This software is young so it is no wonder it does not have the features of more matured software.Some of the challenges are due to lack of instructions or perhaps hard to find instructions.

I wanted to change the text on the welcome page I couldn't find out how. I searched for instructions and all I found about changing text was instructions to change the language file. I'll still have to figure out how to do that for other site wide text changes like changing "Communities" to "Groups". But that didn't help with the welcome page. Anyway I'll spare you all the painfull details of everything I did try and let you know it is the frontpage_loggedin/out page in the Default_tample folder. And it is easy as pie to edit.

Other challenges would certainly be easier to overcome with some information. Like how do I change what appears on the first default profile page? In some future version there may be and should be some notes as to what page to edit and in that page some notes as to what section is for what so we can easily just move them around as we like and comment out sections we don't want. I'm a big oscommerce fan because it is so easy to make simple changes like this in there. Elgg seems much harder, at least for me. Its so different its like its a different language but their both php. Hopefully I'll find out that like the welcome page this and everything else is easy once I find out how. 

 

Keywords: change profile, edit main page text, edit profile, edit text, main page, profile, welcome page, who am I

Posted by Edward Leonforte @ Developer discussion | 1 comment(s)

August 20, 2007

Hi

How can I use {{profileurl}} in pageshell? I want to get rid of the toolbar and create my own links for everything. 

Posted by Jaffar Hussain @ Developer discussion | 1 comment(s)

I added the following to the coding wish list and I'm also posting here to see if it sparks some interest or discussion.

==Community and Weblog/Forum Categories==

This is a little ambitious but it will bring this program and its communities up to a much higher level of effectiveness.

Because the lists of communities and blogs and forums get unmanageably long we solve that by adding categories:

Admin creates three tiers of categories and upon creating any community or personal blog the owner must select from the category, subcategory and sub sub category list.

Admin may recategorize a thread or community any time.

In each list of categories there is a choice for new category and a note that admin will be notified a new category is required.

Admin is notified of communities/blogs in new category.
Admin may then choose to put it in an existing category or create a new category. And of course the links in the owners blog or communities pages will all work to get there.

Community owners have moderator rights for posts in their blogs/forums and create their own three tiers of categories without admin approval. Moderator may pin a topic, and delete or edit any post.

The display of blogs and communities is at first just top level. Then by clicking on any category the subcategory appears etc. Each category has the number of posts in it nest to it like (23) this.

Users may mark any blog as interesting and filter any list to only interesting blogs or joined communities.

Keywords: blog categories, categories, category, community categories, forum categories, moderator, pin a topic, pin topic, pinned topic

Posted by Edward Leonforte @ Developer discussion | 2 comment(s)

Hi all,

 I was able to fix an ELGG install on an A-Plus server thanks to 2 years experience running Apache + Open-source apps on A-Plus servers.  I thought I'd share a few things you need to know that will make ELGG installs almost, but not quite exactly unlike foolproof.

 #1 - By default, your domain(site)'s root will be physically located /var/www/vhosts/<<domain name>>/httpdocs/.  DO NOT FORGET HTTPDOCS.  If you install ELGG in a subfolder 'elgg', your ELGG root is /var/www/vhosts/<<domain name>>/httpdocs/elgg.

#1A - If you're wacky like me, you'd probably set a subdomain.  My ELGG is on dev.hackingtravel.com/elgg - it's both in a subdomain AND a subfolder.  The physical path to this beauty is /var/www/vhosts/<<domain name>>/subdomains/dev/httpdocs/elgg/.

#2 - Chances are, if you install ELGG on an A-Plus server and try to run it, you'll get blank pages.  Don't fear.  It just means php bombed.  #1 cause of this is php include/require commands are not working because they can't reach their intended files.

 #3 - #1 culprit is in your config.php file.  "./" doesn't work.  You need to put in the full physical path instead.  In your config.php file, add this line before you declare $CFG->dirroot.

EX: in my case, http://dev.hackingtravel.com/elgg

   $prefix = '/var/www/vhosts/hackingtravel.com/subdomains/dev/httpdocs/elgg/';
    $CFG->dirroot = $prefix

EX:  if its more like http://www.yourdomain.com/elgg

   $prefix = '/var/www/vhosts/yourdomain.com/httpdocs/elgg/';
    $CFG->dirroot = $prefix
 

 use also for $CFG->dataroot, $CFG->templates and $CFG->profilelocation:
     EX:  $CFG->teplatesroot = $prefix . '/mod/template/templates/';

 #4 - If you still get blank pages, you'll need to get to the Error log.  A-Plus uses Plesk control panel.  You will need to login, go to domain-><<your domain>>->Log Manager.  You will need to download error_log by clicking on the icon on the little icon on the far right end of 'error_log's row.  The fatal error will tell you what else is going on. 

 #5 - Make sure you follow ELGG's Installation guidelines.  When they tell you to set CHMOD for your data folder and default templates to 777, they mean it.   If you install ELGG in a subfolder rather than root (which is excellent practice), make the recommended change in .htaccess (uncomment the rewritebase line).  Common example is for:
http://www.yourdomain.com/elgg/   - rewritebase /elgg/.

There are other quirkiness involved with A-Plus, sometimes changes to your admin (root) account on plesk doesn't translate correcdtly on the server.  In my client's case, his admin account lost root powers, and since new folders were given root/root ownership, uh, it caused embarrassing limitations - like chmoding folders.

Call A-Plus to get your account fixed.  For you Linux studs, use the original passwords as root, and fire up Putty.  You'd need to add the admin account to the psaserv group, change ELGG folder ownership/groups from root/root to << admin acct>>/psaserv.

 Happy motoring. ;>

Paul Wolborsky
Web consultant
AjaxofAlTrades.com
http:?/ajaxofalltrades.com/ajax

Keywords: A-Plus, blank pages, config.php, domains, elgg, install, Linux, php, plesk

Posted by Paul Wolborsky @ Developer discussion | 0 comment(s)

I'm building a plugin that will work with Google aps.  It is very dependent on what happens in the extended profile's location tab.  If the user changes the street address, I want to know about it.

Enter Event_hooks.  They look great, though not quite enough.  You have an object profile_item.  I'd like to tie an update event to it, and when it fires, examine the streetaddress, town, country, postalcode data so I can join them all together and get the lat/lng from Google maps, as well as store those keywords for tag-matching later on.

Problem is, it doesn't appear to be functional.  I am using version 2007070501.  On inspection, the event_hook function is expecting $CFG->event_hooks[$object_type][$event][] = $function;.  However, there does not appear to be an event_hooks setting in my config.php file.  

Am I missing something?  Or is $CFG set elsewhere? 

And if I make it this far...  what is the structure of the profile_id object?  And as of the update event, is it pregnant with the name->value pair for 1 particular item, or is that carrying all profile items? 

It would be sensible if it does.  Inspection of like code basically takes the $object->ident and use that to query the database to get more data.  But must we bother the server to get data we should already have in our grasp?

I've worked with Open-source for something like 3 years, and ELGG is one of the highest quality software I've encountered, and to boot, the code is more comprehensible than most thousand-fold object-oriented convolutions (tikiwiki for example).   Your program is excellent, and your mission noble.  Keep it up.

Paul Wolborsky
Web Consultant
AjaxofAllTrades.com
http://www.ajaxofalltrades.com/ajax

Keywords: "event hook", development, elgg, event_hook, events, object, plugin, profile_item

Posted by Paul Wolborsky @ Developer discussion | 1 comment(s)

Hi

I have a javascript which I am calling from my pageshell. In the javascript, I want to use {{url}} and {{username}} objects. Which file should I include at the top of my javascript?

 

Right now, if I use {{url}} or {{username}}, they are treated as text.

Posted by Jaffar Hussain @ Developer discussion | 1 comment(s)

I see each user has storage upto the size of the whole syste. How can I limit each user to have say 100mb by default. I do see this option in admin, but I'd like to have some DEFAULT file storage limit for a new user.

thanks

Keywords: file quota, new user file quota, user quota

Posted by Vlad @ Developer discussion | 4 comment(s)

August 21, 2007

We're seriously discussing making Elgg 1.0 require PHP 5.14 and above.  Does anyone have any opinions one way or the other?

Keywords: elgg, elgg 1.0, php, php5

Posted by Ben Werdmuller @ Developer discussion | 10 comment(s)

I wondering whether folks here would advise against using the latest version of Elgg from SVN (Rev 1222 - 2007-07-27 10:11:12 +0100 (Fri, 27 Jul 2007)) for a production site given the number of bugs that are in the current 0.8 release. I've had an enthusiastic response to Elgg from a couple of faculty at my college (Earlham) and so I want to trial it with a couple of classes. I'm wondering whether the SVN version would not be a better bet than the current release since it seems that many bugs have been squashed judging from the developer log.

Any opinions on this?

Mark 

Posted by Mark Pearson @ Developer discussion | 2 comment(s)

Hello.  This is my first time here.  I am running two Moodle Installations and setup a new DB with my hosting company to run an ELGG community. 

I manually edited the config file....

The install went ok.  I can login to the community using news.  No problmes.  But when I try the elggadmin page I cannot login.  

I tried the email I inserted into the config file plus the original NEWS password.  But I did change the NEWS password after the first login.  

I tried the admin user and password I defined in the config file.  

And combinations of the above...nothing lets me login.  

This is annoying to say the least.  It should be simple and I cannot find my mistake.  My elgg install is in a sub-dir and I did edit the .htaccess file to direct it to the subdirectory. I am not getting any errors or anything......just a denied login...user name not recongnized.  

Any ideas where to start looking? I have gone through the wiki and install docs.  

When I login as news ---- I can post and add users etc.  Seems to work well.

 

Tony D.  

 

 

 

 

 

 

 

Keywords: install problems admin panel login

Posted by Tony DePrato @ Developer discussion | 18 comment(s)

Two files appear to be involved: profile.config.php and displaylib.php. The former for the specific fields and the later for the data field type class.

I have copied the Brief description data set in profile.config.php and changed it to Marital Status as follows:

        $data['profile:details'][] = (object)(array(
                                                                    "name" => __gettext("Marital Status"),
                                                                    "internal_name" => "maritalstatus",
                                                                    "field_type" => "text",
                                                                    "description" => __gettext("Please choose your marital status."),
                                                                    "user_type" => "person",
                                                                    "category" => __gettext("Basic details"),
                                                                    "col1" => true,                                                                                           
                                                                    "invisible" => false,
                                                                    "required" => false,
                                                                    ));

I have poured many hours into what would be a simple task if I knew what I was doing and still don't know how to do this.

I've gathered that this field type = > "text" needs to change to something new like "dropdown" and that the new case needs to be defined in displaylib.php and tried to do it but not successfully. I've also tried various attempts and putting another array directly in the code above.

The other one is Gender which is a great candidate for Male Female radio buttons.

        $data['profile:details'][] = (object)(array(
                                                                    "name" => __gettext("Gender"),
                                                                    "internal_name" => "gender",
                                                                    "field_type" => "text",
                                                                    "description" => __gettext("Please select your gender."),
                                                                    "user_type" => "person",
                                                                    "category" => __gettext("Basic details"),
                                                                    "col1" => true,                                                                                           
                                                                    "invisible" => false,
                                                                    "required" => true,
                                                                    ));


The field type of “text” is set in another file (displaylib.php) where the case is defined as:

        case "text":
           $run_result .= "<input type=\"text\" name=\"".$parameter[0]."\" value=\"".htmlspecialchars(stripslashes($parameter[1]), ENT_COMPAT, 'utf-8')."\" style=\"width: 95%\" id=\"".$cleanid."\" />";
           break;

I know others have discussed this elsewhere in here but those threads went in several directions, dried up, and no clear solution to this problem has been posted. Also I wanted it to come up for more tags than it was.

I'm hoping someone else has the inclination and talent to post the code needed.
 
Thanks for hearing me out.

Keywords: drop down, drop down list, drop down menu, dropdown, female, gender, male, marital status, profile, profile.config.php and displaylib.php, pulldown, radio button

Posted by Edward Leonforte @ Developer discussion | 26 comment(s)

August 22, 2007

Am I missing something here? The FOAF menu item in "Your Network" seems to display what is, I gather, supposed to be a machine readable file. As this is the same on my installs as on eduspaces I suppose this must be the correct behaviour. Why?

I came across this when writing up some user notes and realised I had no idea what this was for! I've done a bit of reading around the subject but it is still far from clear why the FOAF file is displayed when I can't do anything with or to it.

Can I remove this item from the menu? Anyone know where it is before I do a hunt through the code? If I find it I'll post a comment back for others who may want to do likewise.

Keywords: FOAF

Posted by John Hackett @ Developer discussion | 2 comment(s)

I have an ELGG website for students and I also have a video sharing website PHPMotion.  PHP Motion is very similar to YouTube and as ELGG is free to use. 

Here is the Embed Code generated by PHPMotion for a video:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve"
width="450" height="367"
id="theMediaPlayer">
<param name=movie value="http://video.dearbornschools.org/flvplayer.swf">
<param name=quality value="high">
<param name=bgcolor value="#FFFFFF">
<param name=allowFullScreen value="false">
<param name=swLiveConnect value="true">
<param name="FlashVars" value="file=http://video.dearbornschools.org/uploads/cmsAa12zkv023TeHizho.flv&wi">
<embed type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
width="450" height="367" bgcolor="#FFFFFF"
name="theMediaPlayer"
src="http://video.dearbornschools.org/flvplayer.swf"
flashvars="file=http://video.dearbornschools.org/uploads/cmsAa12zkv023TeHizho.flv&wi">
</embed>
</object>

 Can I modify ELGG files to accept this so that students can embed the videos into thier blog?  Currently it doesn't accept the code.

http://eduspace.dearbornschools.org

http://video.dearbornschools.org

I'd like for the 2 of them to work together.  Any suggestions?

Keywords: video embed, youtube

Posted by Chris Kenniburg @ Developer discussion | 2 comment(s)

August 23, 2007

I'm surprized I can't find any way to play music in elgg. I expected it to be in the widget list. At least I thought I would find the topic discussed here. I see lots of posts by music fans but none with music and widget in the same keyword phrase. Maybe it's not done with widgets or maybe it's not done at all. Please do tell.

Anyone have music on there site?

Can anyone tell me how to do it?

Thnaks 

Keywords: elgg music, music, music in elgg, music widget, playing music in elgg

Posted by Edward Leonforte @ Developer discussion | 2 comment(s)

I have created a new Profile field. When I click on someone's profile, the field name shows up within the correct column assigned to it, but the contents of the field don't show up. However, when I click "Edit Profile", both the correct field name and its correct contents show up.

 What file contains the code for displaying the profile? extended, i guess?

 thanks, raza

Keywords: new profile fields, profile

Posted by Raza @ Developer discussion | 1 comment(s)

I'm noticing that gmail is putting all the mail from my elgg system in the spam folder and then when I tell it not to then it gets caught in my outlook junk mail folder.

I would like to do whatever I can to decrease the possibility of mail from my system being marked as spam.

I have set it up as smtp.

Does anyone know of anything else that can be done?

Has anyone else noticed this? 

Keywords: email, junk mail, mail, spam

Posted by Edward Leonforte @ Developer discussion | 0 comment(s)

August 24, 2007

It seems to me that it would work better if one could assign Multiple Selections to Access Restrictions rather than only have the choice of one. That's what I expected and I was surprized to discover it doesn't work this way. Wouldn't it be likely I would want members of multiple communities to have access to certain contact information for example?

Am I missing something? 

Is this an easy change or a hard one?

Anyone know how to do it? 

Keywords: Access Restriction, Access Restriction: Multiple Selections, Multiple Selections

Posted by Edward Leonforte @ Developer discussion | 2 comment(s)

So, i've been thinking about setting up a private network formyself and friends. So we can eaisly share media with each other. Elgg usually times out and currently has no progress bar when you try to upload large files.

As a solution to this, I thought i could just give my friends ftp acess. So they can manage their files either from elgg or from the ftp...

However, i noticed that elgg dosnt actually create directories server side, on top of that, adding a file there, dosnt add the file anywhere the user can see it.

Anyone else thought about this or have any suggestions?

Keywords: file structure, files, ftp

Posted by Adam Poots @ Developer discussion | 0 comment(s)

Hi

On my main page, I want to display blog posts from random communities. Is there anything like {{blog:4:communities}} ??? So far I have only discovered using {{blog:n:username}} and {{blog:n:all}}.

 

Help :( 

Posted by Jaffar Hussain @ Developer discussion | 1 comment(s)

August 25, 2007

I am just starting off with Elgg and poking about so still have some seemingly easy questions... 

I am creating a new PHP page and have the user's profile_id...what is the easiest way to get data from a particular profile field (eg, the profile photo)? is there a single function that can be called from this new PHP (via including a class) where I could pass the profile_id and the desired profile field as parameters and get the response back?

 TIA, raza

Posted by Raza @ Developer discussion | 0 comment(s)

August 26, 2007

Anyone have any ideas how to change toolbar menu sort order from sort by array name to sort by gettext. 

Keywords: sort, sort order, toolbar menu, toolbar menu sort

Posted by Edward Leonforte @ Developer discussion | 0 comment(s)

August 27, 2007

does anybody know how to use the get_record function...as in:

get_record('icons','ident',$id))

 can I change things like 'icons' to get other parts of the user's record?

Posted by Raza @ Developer discussion | 2 comment(s)

August 28, 2007

This has been posted before, but without any solution.
Elgg 8

When both mods are installed, accessing the calendar results in this error.

Fatal error
: Call to undefined function __gettext() in /home/example/public_html/elgg/mod/calendar/config.php on line 2

If anyone can provide some feedback, it would be much much appreciated.

Keywords: calendar, calendar crash, yahoo user interface, yui

Posted by Adam Poots @ Developer discussion | 1 comment(s)

August 29, 2007

Day 1:

Searched the keywords "Open source social networking site" in Google.

Came across Elgg, loved it! Registered a domain, downloaded the package and uploaded it in my site.

Came across 500 internal server error. resolved it by commenting out all php global variables in .htaccess and putting a custom php.ini file in all folders

I had Elgg up the first day!

 

Day 2 & 3:

I wanted the toolbar removed. Deleting the {{toolbar}} from pageshell was easy, but ofcourse I wanted the links elsewhere. I wanted to use Milonic (www.milonic.com) dropdown navigation bar.

The main problem was how to make the menu change for each user, and how to change it for logged in/logged out users. So I made 3 pageshells and use a different pageshell for logged out, logged in and admin user. Each pageshell would go to a different menu. (This can be done in default-template.php file)

I passed the {{username}} variable to the javascript so that every user would be able to use the menu bar.

Day 4:

Dealt with CSS styling issues raised due to the presence of the menu. CSS would haunt you if you don't know it well... and I am a CSS noob :s

Day 5:

Created columns in the frontpageloggedin/loggedout. Edited the {{blogsummary}} so that it would show an actual summary and a small picture along with it.

Day 6:

Added forum and blog communities. Edited header/footer, other CSS elements. You would need to use z-index if you are going to use a drop down menu bar.

Day 7:

Ran some checks, uploaded icons etc. Cleared up the mess/unnecessary code. Sent out the first batch of invites! :)

 

Elgg is a really excellent software. It is amazingly customizable. Given enough time and effort, you can make elgg look as good as facebook. You can all check out my site at www.theiet.org.pk

^_^

Posted by Jaffar Hussain @ Developer discussion | 4 comment(s)

I would like to change the sidebar template.

The new template should be made dynamically depending on the sidebar type (weblogs, files, etc) 

    $template['sidebarholder'] = ''; // have to erase the old sidebar
    $CFG->templates->variables_substitute['sidebarholder'][] = "myNewTemplateFunction";

    function myNewTemplateFunction($var) {

    } 

Now in this function I must have a mechanism to find out for which sidebar I am going to retun the template....

Any ideas?

what is the variable $var for? In file lib/templates.php, there is a $var as the parameter for the function that I define here, but it is not initialized, which means it has always the value NULL.!!!

Keywords: sidebar, sidebarholder, template

Posted by beni @ Developer discussion | 0 comment(s)

I am modifying icon.php in _icons and it is called by \profile\index.php...on line 38 as follows:

       $icon_url = $CFG->wwwroot.'_icon/user/'.$icon.'/w/240';

the icon.php uses optional_param() to get the icon value, but I would like to get the user value. If the user hasn't defined an icon, then I currently don't know the user. On the other hand, when I know the user, I can display a variety of "default icons" instead of a single one. can someone explain how I could use optional_param (or otherwise) to get the user??

 TIA, raza

Posted by Raza @ Developer discussion | 0 comment(s)

August 31, 2007

Hello,

Has anyone successfully migrated a 0.7 site to 0.8 while using Postgres?  I keep running into trouble while doing so.

I had to correct the syntax in three files (mod/widgets, mod/generic_comments, mod/adash), and it seems that when I try to upgrade, the upgrade script runs the SQL script under mod/widgets several times.  That causes a problem becaue, Postgres throws an error when the script tries to create something that's already there.

 

Anyone?

Cheers,

-J