[Register]
Powered by Elgg

Developer discussion :: Blog :: Archives

July 2007

July 02, 2007

as the title says, tag clouds and {{populartags}} are not working in my site, can anyone help me about this? or can anyone tell me what might be wrong?

when i click the [Tag cloud] in the header section these comes up:

"The following is a selection of keywords used within this site. Click one to see related users, weblog posts or objects."

i already have more than 2 blog post with the same tag / title but tag cloud still doesnt work, when i click a user, and view his/her tags, it shows the tags(which is pretty much normal). but still, the tag cloud and {{populartags}} doesnt work.. 

Posted by wingjc11 @ Developer discussion | 7 comment(s)

Over a month ago I posted an entry about communities being deleted overnight. I was advised by Ben that this was resolved with the lastest SVN. I upgraded my SVN and had no issues until last night.

The communities created by the admin were deleted? Only one other community created by a member remained on the site?

Ben, what was the route cause and how can I correct this without installing the SVN again? I made a lot of customization and it will not be feasible to redo everything. Thanks for your time.

Keywords: admin, communities, delete, randomly

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

July 03, 2007

For a plugin i need to change an Image being uploaded. Before uploading the Image, i want to check it's width and height since the image has to be resized before it is being uploaded. Then i want to upload the resized and the original Image. The Problem is, that i don t know where to make the manipulations (in which of the elgg files). Is the lib/uploadlib.php the right place to start? I doubt..since i don want to rewrite the uploadclass, i just want the upload to be different for the files being uploaded by this plugin.

Keywords: image, plugin, resize, size, upload

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

July 04, 2007

Hi all, I would like to add all new users to a given community, just as it seems to happen on the ellg.org, in which you are automatically added to some community. I could not find how this behaviour is obtained... Maybe someone can give me some hint?

Thankyou! :) 

Keywords: automatic join, community, help, user

Posted by Francesco Leoni @ Developer discussion | 9 comment(s)

July 05, 2007


I would like to create a mod for photos and the creation of gallery's for users. Currenly the file system that elgg has built in is fantasic, but it not user intuitive at all. I feel a seperate "photo" mod that will display a "photo" section in someones toolbar and allow them to set up albums with images that can commented on is very important to a social networking website. Similar to the way myspace or virb.com functions. Let me try to outline what is needed.

Photo Mod

  • Add a "photo" button to toolbar
  • From this "photo" page, users will be able to upload photos, add descriptions and tags and sort them into albums.
  • The "photo" mod will dynamically save the photo to the server at a heightxwidth max, to both conserve file space and to make sure large images don't break the layout.
  • When viewing a users "photo" page, it will display thumbmails of all the images, sorted by gallery.
  • Selecting a thumbail will bring the user to a page that displays the full size photo along with a section for comments. 
  • A user will be able to moderate comments.
Photo Widget
  • A widget needs to be created, that will allow a user to display thumbnails from a gallery, or random thumbnails from all gallery's of a set number of images on their profile page.
  • The widget will also include a "see all photos" link that will navigate to the gallery page.
I am willing to pay a developer for his time to create this. And I am also willing to release it to the public for everyone to utlize and improve on. I would like pretty quick turn around, so please only serious inquires only.

I would love to be able to code it myself, but i am no coder. A hacker at best and I know this one is beyond my ability.

Thank you, and remeber it would be for the good of the community!

Poots


adam.poots@gmail.com

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

Hi

 I just setup Elgg on http://www.multiplesnetwork.com/.

 In my admin : http://www.multiplesnetwork.com/_elggadmin/

 I can see all the settings i inputed to the config.php file- But when I try to make a change in the admin and click Save- I am brought to a blank page AND my changes dont save-- I can only make changes via the config.php file-- any ideas??

Keywords: admin, config problem

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

Hi people,

I created a Google Co-op for searching on elgg.org and the old mailing list. You can access it bellow:

 http://google.com/coop/cse?cx=006456382451512069951%3Ap4v

I included the following sites:

I know it'd be better a search engine for Elgg, but it can be useful sometimes while we don't have it. I added, for example, a box with this search on our community at our Elgg system:

http://stoa.usp.br/destoa

You can add it with the code bellow in your website for adding a box with this filter: 

<!-- Google CSE Search Box Begins  -->
  <form id="searchbox_006456382451512069951:p4v9rfdna6a" action="http://google.com/cse">
    <input type="hidden" name="cx" value="006456382451512069951:p4v9rfdna6a" />
    <input type="hidden" name="cof" value="FORID:0" />
    <input name="q" type="text" size="40" />
    <input type="submit" name="sa" value="Search" />
  </form>
  <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_006456382"></script>
<!-- Google CSE Search Box Ends -->

 See you. 

Keywords: elgg.org, google, google co-op, search engine

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

July 06, 2007

Hello everyone, how can I add responses to posts in the front-page blog summary or even the executive summary? Thanks for your time.

Keywords: blog summary, comments, responses

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

Elgg 0.8 has been released for those who haven't checked the SourceForge site lately. I have it running without any problems on Fedora 7 parallel to my existing 0.8rc2 sites. Initial impression: looking good.

Aron

Posted by Aron West @ Developer discussion | 1 comment(s)

After installing the Forwarder plugin and choosing something else then Profile as default the user had no way of viewing the users or communties profile. So I hacked the following file:

\units\profile\profile_user_info.php

Line 24 (Elgg0.8 final) reads: $url = url . $info->username . "/";

If you change this line like this: $url = url . "profile/extended.php?profile_name=" . $info->username; the user can click the profile icon for viewing the extende profile.

If you want the default profile page, you change line 24 like this: $url = url . $info->username . "/profile/"; 

Enjoy 

Posted by Wiebe Kunst @ Developer discussion | 0 comment(s)

When activating walled garden, can't get css style or icons. I had fixed with define(context..):

--- a/_templates/css.php Fri Jul 06 18:24:57 2007 -0400
+++ b/_templates/css.php Fri Jul 06 18:50:33 2007 -0400
@@ -1,5 +1,6 @@
<?php

+define('context', 'external');
require_once(dirname(dirname(__FILE__))."/includes.php");

header("Content-type: text/css; charset=utf-8");

 

Keywords: patch, walledgarden

Posted by Rolando Espinoza La Fuente @ Developer discussion | 2 comment(s)

July 07, 2007

Howdy All,

What is involded in getting mod generic_comments to support Postgres?  When I upgraded m site to 0.8 on my dev server, it gave a message about not supporting Postgres for generic coments...

 Cheers,

jc 

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

July 09, 2007

Is anyone aware of a plugin that would allow me to keep a complete activity log for a site - this might include users' logging on and off times, date/time of posts made etc? all I can see at the moment is the Activity page(s).

thanks

Posted by mark sanders @ Developer discussion | 3 comment(s)

Someone asked this locally - he has a community forum which is restricted to logged in users, yet you can still see the list of members. It would be useful if that could be blocked from not-logged-in users. Is there a way?

Posted by Jeremy Harmer @ Developer discussion | 1 comment(s)

July 10, 2007

How to Add additional php pages, that can call modules(keywords) ELGG 8RC2


From what I have gathered, you need to make two edits in two different files. The first is here at :


\units\templates\default_template.php


lines 32 – 36


Here is what it will look like.


$template['pageshell'] = file_get_contents($CFG->templatesroot . "Default_Template/pageshell");

 

$template['frontpage_loggedout'] = file_get_contents($CFG->templatesroot . "Default_Template/frontpage_loggedout");

$template['frontpage_loggedin'] = file_get_contents($CFG->templatesroot . "Default_Template/frontpage_loggedin");

$template['test'] = file_get_contents($CFG->templatesroot . "Default_Template/test");


The italic line, is the line i added myself.


The second file you must edit, is here :


/lib/templates.php


lines 68 – 71


Here is what it will look like


$template['pageshell'] = file_get_contents($CFG->templatesroot . "Default_Template/pageshell");


$template['frontpage_loggedout'] = file_get_contents($CFG->templatesroot . "Default_Template/frontpage_loggedout");

$template['frontpage_loggedin'] = file_get_contents($CFG->templatesroot . "Default_Template/frontpage_loggedin");

$template['test'] = file_get_contents($CFG->templatesroot . "Default_Template/test");


The italic line, is the line i added myself.


Finally, you must make a php file that will call it. For this example, i added a file called test.php and uploaded it to the root directory of the installed elgg. So in my case it was www.mydomain.com/elgg/test.php. Here is the content of that file, its the same as your index.php


<?php


global $CFG;


require_once(dirname(__FILE__)."/includes.php");

templates_page_setup();

if (logged_on) {

$body = templates_draw(array(

'context' => 'test'

)

);

} else {

$body = templates_draw(array(

'context' => 'test'

)

);

}

 

echo templates_page_draw( array(

$CFG->sitename,

$body

)

);

 

?>


The bold line, is the edited area.

Now, the last thing you need to do, is add a file called “test” to your default template directory.

\mod\template\templates\Default_Template\test


Make sure there is no file extension on the test file. This page will work the same as frontpage_loggedin and frontpage_loggedout.


When you set your browser to elgg\test.php, your content should be displayed.

I dont know if this is perfect and ive yet to test it with multiple themes...

Keywords: additional php pages, elgg 8rc2, elgg keywords, extra content pages, keywords, keywords on pages, modules, pages that can use keywords, php pages

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

July 11, 2007

AFAIK, a mailing list could be a good mechanism to share patch between users. For me is more easy and fast to make a "hg email -t devel@elgg.org  rev123" than upload the patch to patchs folder.

Cheers

Posted by Rolando Espinoza La Fuente @ Developer discussion | 2 comment(s)

Hello everyone! One last question for the night. I set the Receive Notifications to true, and it is checked in the user profile, but it is not set as true in the database. I could understand for previous members, but this is still not set for new members. Any idea?

Keywords: Default, Issues, Messages, Receive Notifications

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

July 12, 2007

I'm listening for weblog delete events:

listen_for_event("weblog_post","delete","forum_publish_blog");

 

When I catch the event, besides redirecting to another action/url, can I override the message that gets output. For example, rather than outputing the message that the weblog post was deleted, output instead that the forum discussion was deleted.

I couldn't find an example of this anywhere.

Thanks

./tim 

Posted by Tim Hawes @ Developer discussion | 2 comment(s)

I've searched all through units, but I still can't work out how the sidebar is created :)

With the 'forums' mod, I want to change the 'blog' sidebar component from the default, to read like the elgg.org one ("Forum & Blogs" instead of "Blogs", and "Community Forum" instead of "Community Blog" on community pages).

Just tell me where to find the source and I can fix it, but I can't find it! Cry

Keywords: forums, sidebar

Posted by Fred Fish @ Developer discussion | 2 comment(s)

Looks to me like the default state for notifications for new members is "off" (Im running 0.8), and am wondering if anyone knows what I should tweek to make it "on" for new members

Posted by Dave Williams @ Developer discussion | 8 comment(s)

July 13, 2007

Diego mentioned that he had a plugin to fix my issue and I was curious if someone else can also provide some solution without a plugin. When posting an entry in a community the users icon is set to default and the users icon is not attached to the thread when reviewing the the blog; however, when I save the blog I can see my icon intitially. Any ideas?

Keywords: community, icon, issue, posticon

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

July 16, 2007

Where is the submenu located? I would like to edit and remove items from the Submenu - IE - FOAF under edit profile pages.

Thanks,

Robert

 

Keywords: submenu edit

Posted by Robert Antón @ Developer discussion | 6 comment(s)

I have been unsuccessful in flagging content  in version 8.

When I click "Flag Content" it doesn't give me a message saying it was flagged nor does it appear in the admin area.  There are no other errors that seem to be reported.

I am setting this up for a k-12 district, so it is critical that this work.

If I download and run elgg 8rc1  Flag Content WORKS!, but I get a message saying "WARNING!!! The code you are using is OLDER than the version that made these databases!".  I understand the issue with the error message, but why would it work in RC1 and not version 8 - same database, same data folder, same everything EXCEPT CODE.  I even used the same config and htaccess file just changing the directory paths?

Did something go wrong with the code between 8RC1 and 8 in regards to Flag Content that would stop it from working??? 

Any suggestions?

-Chris 

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

Hello,

 

I jsut recently found Elgg, and I have to say my first impression is quite good. I'm currently working on setting up a site for my family, which is a first run at a larger social network site I have been planning for quite a while. I have several dozen mind maps and looking at Elgg, it fit into most of those. So instead of firing up CodeIgniter and Zend Framework, I'm poking around at Elgg. I had it set up and running in a basic form within 2 hours, complete with my own layout and such. Very nice.

 

Some things I see me doing, moving forward, I was just curious if anyone else was already working on.

 - Caching: Maybe I just haven't dug into enough, but it appears theres no flat file caching mechanism in elgg yet? Rather, every page view is database hits, correct?

 - ACL: It appears currently there are three permission levels. Anonymous, logged in, administrator. For my family site, I'd like me and wife to have blogs and profiles and such, but still allow other people to have accounts, but only be able to upload on photo to use as their site photo for comments. An ACL system for plugins seems like a good idea for something like this.

 

I'm just curious if there's already some ongoing projects for these things I could contribute to? If not, that's fine, I have no problem working on this on my own, and sharing what I can. If I need to do it myself, I most likely will be looking at ways to incorporate Zend Framework components like Zend_acl to work within Elgg. I'll gladly share that when I'm done, if there's interest.

 

Great job on the design philosophy of the software, I'm suprised this isn't more well known. It definetly was a hidden gem for me. 

Keywords: acl, cache, caching, zend

Posted by Joe Bowman @ Developer discussion | 2 comment(s)

July 17, 2007

For my family website, I wanted both mine and my wife's blog entries to be displayed on the front page of the site. I found I could do {{blog.5.user1}} but not {{blog.5.user1:user2}}, so I tweaked the blog module to allow it.

 

I changed the variable handling of function(blog_keyword) to look like this.

 

  if (!isset ($vars[2]) || $vars[2] == "all") {
    $posts= get_records_sql("select * from " . $CFG->prefix . "weblog_posts where ($where) order by posted desc limit $blog_posts");
  } else {
    if (!isset($vars[3]))
        {
        $blog_id= (int) user_info_username('ident', $vars[2]);
        $posts= get_records_sql("select * from " . $CFG->prefix . "weblog_posts where ($where) and weblog = $blog_id order by posted desc limit $blog_posts");
        }
    else {
        $sql = "select * from " . $CFG->prefix . "weblog_posts where ($where) and (";
        for ( $i = 2; $i < count($vars); $i++)
        {
            $blog_id= (int) user_info_username('ident', $vars[$i]);
            $sql .= "weblog = $blog_id";
            if ($i < ( count($vars) -1 )){ $sql .= " or ";}
        }
        $sql .= ") order by posted desc limit $blog_posts";
        $posts = get_records_sql($sql);
    }
  }
 

Keywords: blog, front, frontpage, keywords, multiple, page, users

Posted by Joe Bowman @ Developer discussion | 2 comment(s)

July 18, 2007

auth/ldap/lib.php::ldap_init_connection

causes an Apache segfault when it tries to bind to the LDAP server. Is there anything I can do? OS X, PHP 5.2.2, Apache 2.2.4, openLDAP libraries 2.3.35

config.php states to set debug to 2047 but this causes a PHP parse error! 

Alistair

 

Keywords: bind, crash, LDAP, segfault

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

Does anybody got the openid client plugin working? Sometime ago I spend some time tracing some bugs and notices, but I seem to have lost my work. Anyway, the big problem is this error:

Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s LIMIT 0'elggopenid_client_consumer_nonces'' at line 1] in EXECUTE("SELECT * FROM %s LIMIT 0'elggopenid_client_consumer_nonces'") in /home/ewout/stoa/elgg/lib/adodb/adodb-errorhandler.inc.php on line 77

On eduspaces the openid login does not work for me (leads to a blank page). I'm sure someone has already solved this problem, please share it with us!

 

Keywords: openid

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

If you create a presentation and flagg it to be accesible to a community, it does not show up under that communities Presentation lists. Has anyone else experienced this?

I tested this on the EduSpaces site also by creating a community and then publishing a presentation for it. When I went to the community and clicked the "Presentations List" for the community nothing showed up. But, if you do a "all" search for a keyword it will show up in the search and you can access the presentation.

 Am I the first to come across this?

Keywords: communities, presentation listings, presentations

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

July 19, 2007

I wonder if anyone could help with API questions?

I've developed a Shibboleth connector for Elgg but to get access to the internal api, such as record_exists(), get_record() etc. I need to include the main elgg environment.

The first time I logged in via Shibboleth, it was fine but since then, every page access results in an endless loop of requests to the same page:

/shibb/login.php

and there seems to be cacheing of that page going in in elgg.

the endless loop of requests only happens if I do:

include "../lib/includes.php"

in shibb/login.php but if I don't include it I can't get access to the api.

Can anyone suggest why the endless loops are occurring when I include includes.php?

Alistair

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

July 20, 2007

Hi,

I just found an unexpected behaviour. When one creates a community and then unsubscribes (being the only member), that community no longer appears on any list of communities nor can it be found and reached in any other way by any other user. Only if I subscribe back, it reappears.

Is this behaviour by design? And if yes, why? Conceptually, it looks reasonable to have the possibility of being a community administrator without actually being its member (speaking in Elgg's terms).

Thanks.

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

July 21, 2007

For most delete links in Elgg there is a pop-up warning to enesure you're not being an idiot and deleting something you shouldn't. Unfortunately there doesn't seem to be the same thing for deleting a community - and I'm an idiot ...

Something for the next update perhaps?

Keywords: communities, delete

Posted by Richard Osborne @ Developer discussion | 1 comment(s)

Hi,

i want to find out the imagesize of the pictures i uploaded by the mod/file .

$filepath = $CFG->wwwroot . "$username/files/$folder->ident/$ident/" . urlencode($originalname); 

if i say

$groesse=getimagesize($filepath);

$width=$groesse[0]; 

$width=$groesse[1] ;

it says Warning: getimagesize(http://myfolder/mypicture.jpg) [function.getimagesize]:could not make seekable 

If i first create a new image out of the location from the file by:

$bild = imagecreatefromstring($filepath);
$width = imagesx($bild);
$height = imagesy($bild);

the folowing error occurs:

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Data is not in a recognized format

Anyone sees my mistakes or has a helping idea :-) ? 

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

July 22, 2007

Running Elgg. V. 8 @  

http://wearehd.aedeas.mobi/

I've been editing following mods:

Toolbar/

ContentToolBar/

Files/

Templates/

when suddenly icons now no longer render.  I can revert back words  by reverting to original plug in states -but still icons won't render.

Source Code provides some detail.

Icons do appear to be called. 

<img src="http://wearehd.aedeas.mobi/_icon/user/2/h/67/w/67" alt="from /lib/userlib.php - user icon" border="0"></a>

 

 But do not show up. 

Does any one have a clue as currently the only way to solve this is by reverting to a clean fresh installation. 

Keywords: Missing Icons

Posted by Robert Antón @ Developer discussion | 7 comment(s)

Fatal error: Call to undefined function apache_note() in /var/www/vhosts/aedeas.mobi/subdomains/wearehd/httpdocs/mod/folio/config.php on line 32

 Any one get the following error on FOLIO install?

Running Elgg V8. stable

 

Keywords: apache error, config.php, Folio

Posted by Robert Antón @ Developer discussion | 2 comment(s)

Hi,

 Just a simple one, how to you change the Your Friends tag in the sidebar?

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

I have been working with ELGG for the past month and have enjoyed changing the layout and tweaking it for our particular application, but I have had one issue bugging me - the embedded CSS. Why is the CSS not being pulled from an outside style sheet, but rather being written to the front end of the source code on the page. Maybe I am a little over zealous but the idea is to separate code from the presentation. I don't like having to scroll hundreds of lines of CSS on the source before I come to actual content. So the question - why this approach and can we and how do we correct this?

Keywords: CSS, embedded CSS, layout, style sheets, theming

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

I'm trying out Elgg. But I need to integrate MediaWiki, so that my students can continue to use all its plugins (especially the semantic web and Graphviz ones), not (yet) available for Elgg or Folio.

I set out to see if the Aperto integration code still works in Mediawiki 1.10. It does (more or less), but can be improved.

To start with, I've modified ElggAuthPlugin.php along the lines of the LDAP authorization plugin for MediaWiki, to update the groups to which the MediaWiki user belongs. If an Elgg user belongs to an access control group or a community with the same name as a group in the target MediaWiki installation, then their MediaWiki user is made a member of that MediaWiki group.

So if you want members of a particular community to have edit access to MediaWiki, but limit others to read-only, you can set up a MediaWiki group for that community, with edit priviledges.

ElggAuthPlugin.php is the one file I modified from the Aperto integration package.

Keywords: integration, MediaWiki

Posted by David Newman @ Developer discussion | 6 comment(s)

July 25, 2007

When an RSS feed is published to the a blog, should the title of the blog link through to the original item? My installation has the correct title of the post but links back to itself - not the to the URL of the RSS item.

Is this an elgg default or have inadvertently messed things up at my end?

Keywords: Publish to Blog, RSS

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

July 30, 2007

Hi guys

I've followed this article Bump: Elgg on IIS but I still can't get Elgg to work on IIS 6

Currently when I go to www.mywebsite.com/elgg the front page is displayed with no css style and none of the links work, which suggests to me that the IIS Mod Rewrite is not working (I've not activated the product yet but it should still work for 30 minutes)??

I've edited the .htaccess appropiately but still no joy. Does anybody have any ideas

Thanks in advance

Crabby 

Keywords: IIS, Mod Rewrite

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

Sorry about the cross posting but I thought this may be the more appropriate forum...Any thoughts on replacing TinyMCE with another editor? Is is easy? I've replaced the non-visual editor with WMD/Markdown which works very well but many users will still prefer the visual one. My problem (which I think is a more general one) is outlined here...

http://elgg.org/users/weblog/1104.html 

Any help, feedback apprecialted. 

Keywords: tinyMCE, visual editor, wysiwyg

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

July 31, 2007

I see a text editor for the post body portions of the ELGG on EduSpaces and here on the ELGG.org. Am I missing an easy intstall, because we are not seeing  it in  our version of ELGG .8. Can someone point me in the right direction?

Keywords: text editor

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

Site supported by Curverider Ltd - powered by the awesome Elgg