[Register]
Powered by Elgg

Developer discussion :: Blog :: Archives

March 2007

March 01, 2007

[ I found the following post on my blog on elgg.org. Apparently I posted it there instead of in this community by mistake. I was wondering why nobody answered Smile ]

I just tried to put the new themes found in the file archive section of this community in my  $CFG->templatesroot directory, but they did not seem to be picked up by elgg. Elgg does see them if I put the themes in mod/templates/ (as per line 1058 of lib/templates:

[code=PHP] if ($templates = get_list_of_plugins('mod/template/templates','theme_master')) { [/code] ,

but even so, they do not get applied (visualizing them gives just the default template, for example)

Everything works well if I do not consider  $CFG->templatesroot at all, and put all my site customizations of the default template in mod/template/templates/Default Template. Is that how we are suppossed to work, and will $CFG->templatesroot be retired from now on?

(what I actually did was putting my templates where I wantes, and hard-coding this path in line  1058 of templates.php) 

Keywords: templates

Posted by Ewout ter Haar @ Developer discussion | 3 comment(s)

March 02, 2007

is there any way to do this?

 

-Leif 

Keywords: fields, profile

Posted by Leif @ Developer discussion | 13 comment(s)

March 04, 2007

I am trying to change some text in the language file for en_GB.  I noticed that none of the changes are showing up on my webpage.

 I read up the language file in the documentation, and see that you need to compile the .po file to create elgg.mo.

 However, I use a shared server and do not have access to the command line to complie.

 What is my alternative to change the text in the language file?

Posted by chessking @ Developer discussion | 6 comment(s)

Hello!Does anyone know how to configure server to use non-english tags (written in Bulgarian for example) in Tag cloud.The tags are displayed correctly in my language(BG-windows-1251), but when clicked, an error 404 is received or Searching ????????? with no result returned.Any ideas?

Posted by Plamen Vatev @ Developer discussion | 0 comment(s)

March 05, 2007

In the implementation of the private messages plug-in I want to use the tinymce editor for the message body. I was reading some code until I figure out what I must to do.

Here the instructions:

  1. Include the following line in the file where you configure the functions used by your plug-in:
    $function['messages:new:body'][] = $CFG->dirroot . "units/tinymce/tinymce_js.php";
  2. In the page where you want to include the tinymce add the following code:
    $run_result .= templates_draw(array ( 'context' => 'databoxvertical', 'name' => $message, 'contents' => display_input_field(array ( "field_name", "", "weblogtext" ) )));
  3. Finally after the body initialization run:
    run('messages:new:body',array(array("field_name"));
    Notes:
    • The first param must be the same specified in the point one.
    • The second param its and array from an array with the name of the field(s) that you want to use with the tinymce editor

Keywords: forms, tinymce

Posted by Diego Andrés Ramírez Aragón @ Developer discussion | 8 comment(s)

so my host allows for site level control of php versions - i had installed elgg on 4.X and it was all good, but then i popped in today and clicked to change it to php5 - and it seems a little bit faster (which i sort of hoped for)

just wondering if there's anything that i should watch out for, or if there are any known concerns or limitations specific to php versions...

sven commented that a problem that i'm having with archives labeled for the wrong month (all dates in posts are correct, but archive for feb says jan and so on) may be connected to a php issue...wondering if this is a clue to a larger potential php version issue...

Keywords: php, php5

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

March 06, 2007

okay, so it appears that there are now at least three people having this "archives problem" and i may have found a solution through a long discussion with a php-savvy tech support guy.

here's the problem:
a blog post goes up and the date stamp is correct - let's say today (march 5th 2007) - when the post is viewed in any way the date is always correct on the post BUT when a visitor browses that author's "archives" it falls into the month prior. for example, a site is installed and the first post goes up on Feb 14th, at which point an Archive is created for January (correct year, wrong month). then in March 14th, the same thing, the post is a new Archive for February - but when clicked on (the individual post) the actual date stamp is correct.

here's the theory:
the archives are retrieving the date name from a data store and calling "two usages" - for Blog Posts the MONTHS are (perhaps) numbered "0 through 11" and for the Archives the same Months are numbered "1 through 12" - then it all gets thrown into a table for archives (not sure how it makes the data for archives) and calls these "two usages"

if possible, i'd really like to see if the two usages in fact exist (one as "0 through 11" and the other as "1 through 12" - for the 12 months of the year in both cases) BUT i can not figure out where those little pieces of code exist!

and developers wanna take a look at this or point out where the code is in elgg?

Keywords: archive problem, archives, date stamp

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

when i login as news it gives me a blank screen in firefox, and in IE it gives  aserver error. Any ideas?

 

***UPDATE now when i try to login using the news username it asks me if i want to download index.php.....any ideas? 

 

-Leif 

Keywords: news

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

so i just set up a google coop account for my site, linked it to adsense, and it works very well...

however, what i'd really like to do is customize a new page and call it in the same way as privacy and terms - such that it inherits the page layout and all of that (they have simple code to support this)

it looks easy enough, basically gonna copy the pages for privacy (main and the content) and replace all with a new bit of code and new content/code for google search...not sure yet how the width will work, but otherwise looks simple enough (knock on wood)

however, my only question is if i'm investing in something that's going away - this seems like the foundation of a "make static pages" utility (like in wordpress) - and this could be extremely useful for help./support/aboutUs documentation/pages inside a site as well...

will this folder/structure be changing in the future - or will future upgrade overwrite the additions that i'd like to make (a new page for 'advancedsearch')?

[edit: wanted to add this, it works extremely well, and i really like having the two engines distinct - one main one to search tags and communities/members and another to search every single word and element....i put it down in the footer to avoid clutter for now...)

Keywords: google coop, pages, search, search all of site, search engine

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

where would i go to edit th layout for the profile page, and what file deals with the sidebar that has the login info on it, i have some design things that i need to do to both of these sections.

thanks!

 -Leif

Keywords: layout, login menu, profile, sidebar

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

March 07, 2007

The next released version of Elgg will have built-in deletion of users and communities. It's been a long time coming, and for good reason: because Elgg can be installed with a growing collection of plugins, each of which may have their own custom data, user deletion can be a pain.

However, here's how it works. Plugin authors should take the following into account.

A function, user_delete($user_id), sits in userlib.php and can be called at any time. It will in turn call event_hook("user","delete",$user), causing any plugins that have hooked into the event to have their functions called. Currently in SVN, all of the applicable core plugins have this implemented.

How to do this:

In yourplugin_init(), include the following line:

    listen_for_event("user","delete","yourplugin_user_delete"); 

And then the following function:

     function yourplugin_user_delete($object_type, $event, $object) {

        // Code to delete any user data your plugin creates goes here

        // You must pass $object back unless something goes wrong!

           return $object;

     }

$object is a dump of the users table row containing the user to be deleted. In other words, it will contain $object->ident, $object->username, etc - but no data about the user beyond what's in the table row.

If your plugin doesn't save any user-created data - ignore this post. But everyone else should take note, because if you don't implement the above your plugin could have unexpected consequences. 

This will be in Elgg 0.8, which is a little way off - but consider yourselves prewarned.

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

so i'm creating a new "very user friendly" version of the help documentation, built from the wiki here on elgg along with some assorted edits and additions (taht way i can continuosly update it over time for major changes)

as of now, the way i'd like to do it is to create a folder called 'help' that users can drop into /content/ and then create a page called help.php that is structured like the privacy.php file etc...

these others (terms of use, etc) currently throw in the page template and call the associated file (the one with content) and so i'm a little unclear about to how to make a simple template for a) the main file and b) all of the help pages (likely 6 to 8 pages or so, each covering a major topic) - each of those pages will have its own name (managing access etc) - so i'm trying to just create a short title for each (e.g. content_main_accesshelp.php)

...but can i simply copy the way the other pages are done? there's some discussion of one minor problem i'm having trying to get google coop code into one of htese pages (see http://elgg.org//mod/forum/forum_view_thread.php?post=2)

in an ideal scenario, i can create this universal user help file set for folks who do not use a wiki plugin and who do not wish to create a 'support community/forum' set up to handle this stuff...that way they can simply upload the files and add a "help" link to the toolbar...

sorry, so again, my question is can i simply copy the exact code for (for example) privacy.php and the page it calls (content_main_privacy) and then just simply change all of the associated names? i'm a little confused about this code snippet:

// Draw page
        echo templates_page_draw( array(
                    sprintf(__gettext("%s Privacy Policy"),sitename),
                    templates_draw(array(
                                                    'body' => run("content:privacy"),
                                                    'name' => sprintf(__gettext("%s Privacy Policy"), sitename),
                                                    'context' => 'contentholder'
                                                )
                                                )

- do i need to replace "%s Privacy Policy" with the desired page title, or something else? i plan to replace run(content=privacy) with run(content=userhelp) [or whatever the exact file winds up being called) 

sorry - came back to add to this: what i'd like to do structurally is have help.php call up a page with several links and short descriptions (e.g. click here to learn about access and content viewing controls) and each of those links will in turn go to a respective page like content_main_accesshelp.php - does that present a different problem, or is creating a set of links like that fine?

Keywords: template, theming, user help guide

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

At  the top of the sreen when you are logged in there is an include that says {{menu}} is it possible to edit what is inside this include? For example if i wanted to remove "My Dashobard" and add a new item...Is this possible wihtout the use of plugins? I know you can change the name but i need to remove whole items.

 Another great example is this site when logged in i see 8 buttons in my top toolbar...how can i do that....

-Leif 

Keywords: new item, toolbar

Posted by Leif @ Developer discussion | 5 comment(s)

March 08, 2007

Upon installing the calendar plugin I was met with the following:

Missing argument 4 for calendar_get_events()

Does anyone happen to know what the argument/value I'm missing is?

Keywords: calendar, plugins

Posted by Keven Ages @ Developer discussion | 3 comment(s)

How do you give another user admin rights?

(keep in mind that i can not login as "News" for some reason it just gives me a blank page, and to get back to the site i have to clear my cookies see post: http://elgg.org/developers/weblog/227.html )

 

When you go to edit the profile for communites, it has a differnet set of fields...where is this defined?

 Thanks again for everyones help!

 -Leif

  

Keywords: admin, admin rights, community profile, user rights

Posted by Leif @ Developer discussion | 10 comment(s)

Hi,

how do I increase the session timeout?

I tried to set for 1 second, just for testing, and it's not working. I wrote this at config.php:

 

 $CFG->sessiontimeout = "1";

 

What is wrong? Does PHP have a minimum timeout? I saw at lib/setup.php we have this

 

 if (!empty($CFG->sessiontimeout)) { 

 

           ini_set('session.gc_maxlifetime', $CFG->sessiontimeout);
        }

And PHP manual says  session.gc_maxlifetime is define as "1440" (seconds = 24 minutes).

How do I set a longer session timeout?

Keywords: PHP, session timeout

Posted by Everton Zanella Alvarenga @ Developer discussion | 8 comment(s)

March 09, 2007

Hi,

 tryed elgg first time today during looking for a good sicial networking tool. Big up to all the developers, nice work. I really like it.

There is one issue: how could i create non-Profile pages like the page documentation or plugin and how could i integrate them to the toolbar?

 Thanks and kind regards

 

stefan 

Posted by Stefan Bothner @ Developer discussion | 11 comment(s)

Hi all,

I have a few problem with these 2 tags ({{randomusers}} & {{populartags}}) that can be applied on the Front page (loggedout)

First, the {{randomusers}} always states there are no profiles: "Sorry, no users have filled in their profiles yet", even though I've added a few and completed the profiles to test.

Second, using {{populartags}} generates an error in lib\templates.php - in the foreach statement, lines 1442 and 1449

does anyone have any ideas?

Keywords: error, populartags, randomuser

Posted by cedric @ Developer discussion | 10 comment(s)

March 11, 2007

Hi.

I'm new to elgg but I'm very excited about elgg. We are planning to start several Communites for Customers and first looked at Drupal but we are now planning to use elgg as it seems to work better for our purposes.

My (first) question i: Is it possible to use Dropdown Boxes in the profile. I want to give the user a few choices and want him to select one.

Is this feature already implemented?

 

Thanks in advance for your answers and thanks to all elgg developers for their great work.

Greetings from Germany

 

Sven 

Keywords: profile

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

Hey, whats up everyone!  I just got elgg and I really like it. Theres a few things I want to alter in my site but I haven't touched php in a year or two so I a bit rusty.  Plus elgg has a million files spread out all over so it's hard to find what your looking for.  So please help me out.  

 In the broswer page, where all the people on the show up, what file do I have to alter so can I make it so a person's image shows up by default?  In other words, I don't want to click on show icons, instead I want the icons to show up by default.  Also can you tell me which file i have to alter so that I can delete the categories "descriptions, connections, posts, and type" from the broswer page.  Thanks alot

Keywords: broswer

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

March 14, 2007

I haven't found the existing development docs to be very helpful.  I'm very interested in helping to develop the core functionality of elgg.  I am also looking at using this platform for several of my nonprofit clients.  

However, I haven't been able to make much headway in understanding the underlying architecture, and how different files and templates relate to one another...  I'm an experienced PHP developer so my challenges mostly lie in understanding the underlying architecture and the thought process behind the elgg design.

Any info you can provide would really be helpful.

Thanks,

Lucas 

Posted by Lucas Howell @ Developer discussion | 11 comment(s)

In elgg-0.7, I found the bug, you can try it right now :)

If blog text contains "\x", x is a number, e.g. "0"

  • The generated RSS xml is wrong, because "\x" is translated into ascii, this generates a RSS feeds that not readable by RSS readers if ascii code x is not a XML allowed character.
  • When edit the post, the "\x" is extended to "\xxx" in the edit box.

My fix:

  • units/weblogs/weblogs_posts_edit.php, line 41, remove "stripslashes"
  • units/weblogs/function_rss_getitems.php, line82, remove "stripslashes"
  • lib/displaylib.php, line155, remove "stripslashes"

 I am not familar with PHP and web programming, not sure this fix is right or not, but looks it work. Can anybody tell me a decent solution?

Keywords: backslash, bug

Posted by Li Ming @ Developer discussion | 1 comment(s)

Hi,

I just registered for an account here, and was dismayed to find that:

1. there is no way to register securely. Elgg.org does not appear to offer access via HTTPS
2. my password was sent to me in a plain-text email, which I did not request.
3. I changed my password after receiving the email, but again could not do so securely.
4. When changing my password, different constraints were applied to the allowed characters than those applied during registration. During registration I was able to include punctuation symbols in my password, but while editing my Account settings I was not.

All told, the lack of password security is a major drawback for me in wanting to use this site.

What's worse, is that since the mailing lists have been moved into on-site communities, there is no way for me to interact with other user Elggers without using this (insecure) site. Thus, the insecure login becomes a drawback to using Elgg at all.

Thanks,
Jeffrey

Keywords: elgg.org, https, security

Posted by Jeffrey Froman @ Developer discussion | 8 comment(s)

March 15, 2007

so i was looking over this code via www.miniajax.com (some amazing scripts there btw!) and there's this one particular item that would be an amazing item to put on an elgg home page on any installation: http://leftlogic.com/info/articles/jquery_spy

...but i'm a little concerned about how it will run against a specified source page - thinking "view all activity" as a standard example - anybody have a second to look at it and offer some thoughts about how simple (or hard) this might be to drop in?

if you want to see an example of what kind of effect this produces, check out the sample with dummy text at: http://leftlogic.com/jquery_spy/spy.html (though in real life it would link to the thread/post)

Keywords: ajax, spy

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

Hola elgg developers --

If anyone has gotten this combo to work, could you  please post the resulting images into your files and point them out. I've been trying in vain for about a day and can't seem to get xdebug to work.

Quite frankly, I'd much rather be spending my time developing plugins and such, rather than trying to understand how files/functions talk to eachother. Sven you mentioned these in an earlier post? Is the posting possible?

The way I see it, if more transparency exists on HOW elgg works, then developers, including myself, will be much more eager to hop on and help out! Thanks ahead of time!

Cheers,
Ryan

Posted by Ryan Roth @ Developer discussion | 1 comment(s)

March 16, 2007

[Bringing this up again, because I really didn't understand the answers last time. Sorry if I seem to insist, but this is really important to us ]

Has anyone else got problems with templates? I just tried, with a recent svn (r1027) elgg to drop in another template into, say, mod/template/tempates/Diferential. If I choose this template, there are two problems: first, the template does not change until after a page-reload, giving the impression to the user that nothing happened. Second, the images referenced in the css with {{templateroot}} are not found. 

 http://localhost/elgg/_templates/css/Differential/images just gives back the whole css. A related question is, what should $CFG-templatesroot be, an absolute or relative path. It cannot be a relative path because of $template['pageshell'] = file_get_contents($CFG->templatesroot . "Default_Template/pageshell"); in units/templates/default_template.php. but it also cannot be an absolute path, because then the {{templatesroot}} tags in the css file are not expanded correctly.

Posted by Ewout ter Haar @ Developer discussion | 3 comment(s)

March 17, 2007

I saw a plugin that adds metatags to all pages. Is there a way to put a metatag in just page. For example, I want the metatag for the feed for all posts in the frontpage/all blogs page.

Keywords: elgg, metatags, plugin

Posted by JP Loh @ Developer discussion | 0 comment(s)

March 19, 2007

We are being invaded by spam: http://elgg.org/mod/forum/forum_view_thread.php?post=17

I recommend the CAPTCHA plugin, which has worked for us so far.  

Posted by Ewout ter Haar @ Developer discussion | 2 comment(s)

March 23, 2007

I'm trying to install the Elgg platform for the first time...  It's telling me that this isn't set, but I'm not sure what to set this to...  I set:

 

    $CFG->wwwroot 

 

So what do I set $CFG->dirroot to?

 

Thanks! 

Keywords: $CFG->dirroot

Posted by Chris Paterson @ Developer discussion | 1 comment(s)

March 26, 2007

I'm sure this has been posted before (or may even be in svn), but I just made a quick modification so that the blogsummary keyword actually displays a summary and thought maybe others may look for it.

In mod/blog/lib.php, the blog_summary_keyword function around line 228.  You will see a for loop dishing out the goods to a $body variable. I simply added:

$body .= "<p class="frontpage-blog-body">" . substr($post->body,0,350) .
"</p>";
 

 Note, this is a rough hack...it has no error checking to strip out stray html tags that may be in the body text.....

Keywords: blogsummary

Posted by SpartanLaw @ Developer discussion | 17 comment(s)

Hi all,

we have built an experimental social network site based on ELGG 0.6 at http://calumet.unibo.it and we believe the concept behind this software is the most important one these days.

Unfortunately the more we try getting the grips with the software, the more we get stuck in a sort of dumb behaviour, which I would like to outline here.

In today's specific case, I am trying to put a text in for the Terms & Conditions to use the website.

By looking at the URL when I click on "Terms and Conditions", I see the file is

content/terms.php

which essentially has just one line of code inside:

        echo templates_page_draw( array(
                    sprintf(gettext("%s Terms &amp; Conditions"),sitename),
                    templates_draw(array(
                                                    'contents' => $the_content,
                                                    'name' => sprintf(gettext("%s Terms &amp; Conditions"),sitename),
                                                    'context' => 'contentholder'
                                                )
                                                )
           )
           );

Okay.

Now, after verifying that $the_content has some value in it, the page shows a standard page with absolutely no content. It seems there is no way to se whym nor to troubleshoot this kind of problems.

In hundreds of hours developing on ELGG I have been stuck in this situation hundreds of times: you get no content and there's absolutely no hint about where the problem is.

Is there any way to see what I am missing? If the values I specified in the call to template_draw() are wrong, is there any way to see it?

I feel this is a key issue in designing a system that's likely to be open to modifications.

This do-all function, template_draw, is making us loose any chance of backtracking execution flow, it seems there is no way of understanding what the system is expecting me to pass as parameters, no way of understanding how to fix things. 

We developers make mistakes and there have to be a way to see what the system is "thinking", if there is some parameter missing or wrong, we need to figure it out.

Is there any way to get "the system by the balls" and understand why there's no output in this and similar cases?

Any link to some documentation explaining how the units/mods/content are structured and interlinked would be of great help, I have visited the doc WIKI and eventually got lost without finding an architecture overview.

Thanks in advance for any help you might give,

 

Posted by Cristiano Leoni @ Developer discussion | 5 comment(s)

March 27, 2007

I've seen orkut is going to lauch a poll tool. I liked very much its features: you can make comments, stipulate a date for finishing the poll, add a picture for the poll and for each item and so on.

You can see an example here:

Which Linux distro do you use?

Login: elgguest

Password:  elgguest2007

Is someone working on a poll plugin?

Keywords: development, orkut, plugin, poll

Posted by Everton Zanella Alvarenga @ Developer discussion | 3 comment(s)

I am trying to add a help link to the {{topmenu}} where can I find the necessary file?

 

 

Thank you

Keywords: Top Menu

Posted by devin calloway @ Developer discussion | 7 comment(s)

March 28, 2007

Hi I am getting the following error after a new installation:

 Warning: main(/lib/cache/lib.php): failed to open stream: No such file or directory in /hsphere/local/home3/bcnloft/3hands.org/elgg/includes.php on line 78 Fatal error: main(): Failed opening required '/lib/cache/lib.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home3/bcnloft/3hands.org/elgg/includes.php on line 78

 

Does anyone have an idea?  it is published at www.3hands.org/elgg/

thanks!!
mauricio

Keywords: blank, error, installation, lib.php

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

Elgg version 0.7
MediaWiki version 1.9.3

Due to setting of a directory level cookie of elgg which leads to mediawiki not being able to access the cookie (this can be solved by changing the $CFG->cookiepath in setup.php) I thought I would try and install mediawiki in the mods directory.

The problem I have now is when I go to log in elgg comes up with the following error:

Unknown language code: classes in /opt/virtualHost/elgg/htdocs/mod/mediaWiki/languages/. Please ask the system administrator to configure this properly.

Unknown language code: messages in /opt/virtualHost/elgg/htdocs/mod/mediaWiki/languages/. Please ask the system administrator to configure this properly.

As I am the system administrator I have asked myself to configure it properly but realised I don't know how to. Cry

Any help gratefully received.

Keywords: mediawiki, mod directory, Unknown language

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

March 29, 2007

Hi all,

Those of you interested in contributing to the Elgg software may want to check out the Elgg coding wishlist, which has just been updated with some new information. Developers engaging in these developments will receive support from the Elgg team, as well as kudos and the knowledge that they've made a substantial contribution to an open source project.

To claim a job, just move it to the claimed section of the page; feel free to send us a message as well if you'd like help. 

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

to double check, just today i used the web interface to subversion, i navigated to:

elgg svn repository 
/ devel (grabbed that tarball, thought it said the 29th, but i must have seen 29th on 1051 rev)

...so i see the 'delete user' option - but what about deleting communities? what path does the admin follow (or a user)?

...and regarding the CSS caching, what is to be done to faciliate this - e.g. if i drop a css into a new folder in _templates called "css" (and within that, a new css file called css with the actul code), how does it call? is this in config or something?

otherwise, upgrade was very smooth - just wish i'd not accidentally set it to replace entire folders (had to put up every mod again! doh....and erased all of the user images (but it's all prelaunch, so only like 5 total which is nothing)

oh, and btw, how different will this 1051 be from the final .8? anything huge i should be paying attention to?

ALSO - for those concerned with compatibility of PLUGINS:

no issues at all with: metatags, advertiser, forums, private messages

going to try out folio shortly...

Keywords: css, delete community, delete user, svn, version 8

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

so i have a blog running on wordpress, it appears perfectly in my list of resources within elgg, and i can view content, but when i click to publish to blog it presents the confirmation but does not in fact publish to the blog...any ideas?

Keywords: publish to blog, resources, your resources

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

Apparently the new widgets and their data have the same database scheme. Does anyone know the SQL incantations to migrate the old dashboard data of my users to the new widgets?

Posted by Ewout ter Haar @ Developer discussion | 3 comment(s)

March 30, 2007

Quick note: I run my developer instances with $CFG->debug = 2047. I was trying out the new ajax manage widget stuff (very nice!) and things were not working. With the help of the Firebug extension, I found out that there where notices about not initialized variables going on, but they were invisible because with this ajax stuff the server is talking to the client behind the scenes.

Anyway, the solution is to edit the line $result .= "<xml .... into $result = "<xml ..." This should be done in the four mod/widget/ajax_* files. Now you can have ajaxy drag and drop goodness also with debug notices on. By the way: thank god for Firebug! This would have been impossible to debug without it.

Related: I think there should be an interface to the non-ajax widget manage and edit  interface, even when the yui plugin is installed, for acessibility reasons. There should also be javascripts detection to prevent to get to the widget manage interface if javascript is not available. But even if javascript is available, there should be a link to non-ajax "Add Widget" interface. 

[Sorry about all the "shoulds", but I'm sure you'll take it as intended:  suggestions Smile]

Quick update: I change line 29 of mod/files/lib.php to   if($latest_files = widget_get_data("latest_files",$widget->ident)){} else {$latest_files = 0;}, otherwise I get an unrecoverable mysql error if I forget to edit the file widget and later go to my profile.

update 12h29, Brazilian time: And yet another suggestion: an option for widget to be "full width", since some "badges" or internet widgets do not fit into a column. For instance, the Google Calendar widget would hardly fit into a narrow column. Also, the blog-widget could do with a full-width. (I should explain, I just ripped out the input validation code again, so that I can use arbitrary tags, for example <script> tags in my text widgets, so that I can use any "Web2.0" widgets I want).

Posted by Ewout ter Haar @ Developer discussion | 4 comment(s)

so i'm having a nightmare bug and can't figure out what to do - just a blank screen issue (the registration actually works) - full details with lines/errors at:

...but what's interesting is that this same error screen is turning up wiht the new "remove user" feature - so i'm logged in as admin, navigate to a user, click delete and then the blank screen with errors shows up, but the action does execute properly and completely (removes email from dbase, etc - verified by registering the same 'alias account/email' again within 30 seconds)...

but why on earth is this showing an error in display header etc? is this something to do with the new css thing?

Keywords: delete user

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

March 31, 2007

Deleting users redirect to the wrong URL:

units/users/userdetails_actions.php line 31:

header("Location: {$CFG->wwwroot}/devel/_userdetails/");
 

the /devel/ is the problem, just remove it

 

Posted by SpartanLaw @ Developer discussion | 5 comment(s)

Hi,

is it planned to have more types of access restrictions to personal data?  At the moment I see access restrictions like "public", "logged in users", "private" and "communities". What I miss is: make this data visible to my friends (aknowledged) or to dedicated friends/contacts. I guess that some users are having concerns about giving away data when they know that every (logged in) member of the site/community can access it.

Is there any workaround to implement data access for friends?

Thanks for your help.

Cheers!

/bahne 

Keywords: access restriction, personal data, privacy

Posted by ca @ Developer discussion | 8 comment(s)

Site supported by Curverider Ltd - powered by the awesome Elgg