Okay, I've updated folio with more minor bug fixes, as well as some minor graphical enhancements.
http://eduspaces.net/garrettn/files/9579
Thanks to Jason Cormie, Ian Frame, and Martin Dove for the suggestions.
Okay, I've updated folio with more minor bug fixes, as well as some minor graphical enhancements.
http://eduspaces.net/garrettn/files/9579
Thanks to Jason Cormie, Ian Frame, and Martin Dove for the suggestions.
Posted by Nathan Garrett @ Plugins | 3 comment(s)
Hi,
I just started to use elgg to build my new website and I'm developing a small "plugin" to build a menu to my site but I'm having some problems when I try to use the functions isadmin() and a_href.
I found the code on /lib/elgglib.php and I see them being used everywhere (/lib/templates.php is a good example) but they just don't work when I call them in my plugin.
Here is my code:
<?php
function mainmenu_pagesetup() {
}
function mainmenu_init() {
global $CFG;
$CFG->templates->variables_substitute['mainmenu'][] = "mainmenu_main";
}
function mainmenu_main($vars) {
global $CFG;
global $profile_id;
global $USER;
if (isadmin()) {
$menu_top = array( 'name' => 'admin',
//'html' => a_href("{$CFG->wwwroot}_admin/",
// "Administration"));
'html' =>"<a href=\"{$CFG->wwwroot}_admin/\">".__gettext("Administration")."</a>");
}
if (logged_on) {
$menu_top= array(
'name' => 'userdetails',
//'html' => a_href("{$CFG->wwwroot}_userdetails/",
// "Account settings"));
'html' =>"<a href=\"{$CFG->wwwroot}_userdetails/\">".__gettext("My Account")."</a>");
$menu_top = array(
'name' => 'logoff',
//'html' => a_href("{$CFG->wwwroot}login/logout.php",
// "Log off"));
'html' =>"<a href=\"{$CFG->wwwroot}login/logout.php\">".__gettext("Log off")."</a>");
}
$body = "";
foreach($menu_top as $menu_top) {
$body .= "<Table class=\"menu-table\"><tr><td style=\"color:#6c9c6e;\"> ".$menu_top->html."
|</td></tr></table>";
}
return $body;
}
?>
Can anyone help me??
Thanks!!
Thiago Guerra
Posted by Thiago Guerra @ Plugins | 1 comment(s)
Hi, i was looking the best way to upgrade the production site and i made a plugin that lock the system of user activity, like walled garden but where only can login administrators.
To install just drop into mod/
<spam> See elgg in action! </spam>
Keywords: maintenance, mode, plugin
Posted by Rolando Espinoza La Fuente @ Plugins | 0 comment(s)
Here is a quick fix that makes the Forum plugin work with Elgg 0.8 (just till I update it fully)...
In lib.php, edit line 60 to read:
if (($file == $CFG->dirroot . "mod/blog/lib/weblogs_user_info_menu.php"))
Posted by Tim Hawes @ Plugins | 7 comment(s)
This plugin is an implements captcha check, in first stage, to comments. Could
be set only to anonymous users.
Now can select random font and choose a word/code from a words list instead of generating unfriendly code.
Posted by Rolando Espinoza La Fuente @ Plugins | 4 comment(s)
-- uri plugin for elgg 0.1.3
This plugin make the posibility to use custom url's for posts.
For example, if you have a post title like 'Hello World' (with id 12)
the default url is http://.../weblog/12.html
but with this plugin you got http://.../weblog/hello-world
or you can customize to http://.../weblog/post/hello-world.xhtml
Tested against elgg v0.8.
- Upgrading from 0.1.2 see UPGRADE file.
=== To install:
== Step 1 - Copy mod/uri to your [elgg_dirroot]/mod/
== Step 2 - Inside mod/uri/patchs are the needed modifications to some files
who show post links. If patchs fail, try apply the individuals patchs by hand.
You can test the patch like this:
$ cd [your_elgg_dirroot]
$ cat mod/uri/patchs/all_in_one.patch | patch -p1 --dry-run
If no errors or fail, apply the patch:
$ cat mod/uri/patchs/all_in_one.patch | patch -p1
== Step 3 - To populate your uri's, as admin user go to:
http://domain/elgg/mod/uri/populate.php
== Step 4 - Modify your .htaccess (your elgg will still functional)
Be carefull on this, remove the next two lines:
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ mod/blog/view_post.php?post=$1
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html.([0-9]+)$ mod/blog/view_post.php? ->post=$1&commentpage=$2
And add the next two lines at end of weblog rewrite rules, after everyone rewrite rule:
RewriteRule ^[A-Za-z0-9]+\/weblog\/([A-Za-z0-9\.\/_-]+)$ mod/blog/view_post.php?post=$1
RewriteRule ^[A-Za-z0-9]+\/weblog\/([A-Za-z0-9\.\/_-]+),([0-9]+)?$ mod/blog/view_post.php? ->post=$1&commentpage=$2
== Step 5 - Now you can go to http://domain/elgg/weblog/everyone
and see the new fancy links ;)
You can personlize the uri as you want with some limitations, see get_uri function at mod/ ->uri/lib.php
Keywords: friendly url, patch, plugin, uri
Posted by Rolando Espinoza La Fuente @ Plugins | 3 comment(s)
I have just uploaded v 0.1 of a Jmol gallery plugin for Elgg. It is similar to the Media gallery plugin but uses the Open Source Jmol Java applet for the interactive 3D display of chemical structures.
The current version simply displays chemical structure files (e.g. .cif, .cml, .mol. .pdb, .xyz) uploaded to a 'Your Files' folder. See this folder as an example. You will need a Java Runtime Environment installed on your local client host for the applet to work.
Hope it will be useful to Elgg-enabled chemists, biochemists, molecular biologists, crystallographers, science teachers, students etc.
Posted by Geoffrey Rowland @ Plugins | 3 comment(s)
Posted by jeeb75 @ Plugins | 3 comment(s)
Yesterday in the ElggJamm we show our work with Elgg making tools for articulate nonprofit organizations in Colombia. In our presentation we say that we will share the plugins that we developed. So In the way of fulfill that promess here its the projects plugin.
It is a blog extension that allows to you publish projects in a very basic way using the same metaphor of the blog system.
I hope it would be usefull for someone.
Keywords: blog, extensions, plugins, projects
Posted by Diego Andrés Ramírez Aragón @ Plugins | 6 comment(s)
http://elgg.org/mod/plugins/plugin.php?id=6
Fixes for v0.8 of Elgg and a bunch of cleanup.
Lots of credit to Rho for tweaks and patches to this.
./tim
Posted by Tim Hawes @ Plugins | 12 comment(s)
I have installed the easyjoin plugin but the users who have tried to register with this do not show up when I click on browse under the ELGG search Bar. They do show up as users under the manage users in the administration console. They are also in the table Elggusers in the MySQL database. Anybody else with this problem? Is there a fix for this? I really like this plugin because my emails were going to the junk mail box with the old registration system.
Thanks in advance.
Keywords: easyjoin
Posted by jeeb75 @ Plugins | 2 comment(s)
Posted by John Hackett @ Plugins | 3 comment(s)
As far as I've been able to find out you only can create new presentations as a person, meaning that communities can't create presentations. If this is correct then the sidebarlink to presentations is confusing and misleading (if not can somebody tell me what I'm missing?).
So I looked at the code for the presentation plugin and found on line 252 this line:
if ($page_owner > 0) { // TODO: a better way to do this - Sven
For a coder - I guess - it would be rather easy to have a check on wether the page owner is a person or a community, and not show the sidebar link to presentations when the owner is a community. I've been browsing through the code, but haven't been able to locate something I can copy and paste to achieve this goal.
Is there somebody out there who could give me this piece of code?
Kind regards Wiebe
Keywords: communities, presentation
Posted by Wiebe Kunst @ Plugins | 1 comment(s)
Hello all, one more question/suggestion/request regarding presentations. The default sorting for the view presentations page is on the title of the presentation. Also; nowhere can somebody find out when the presentation was created.
Now, I really, really would like to show the date for creation (between the title and the keywords) AND sorting on the date field in the db (newest first).
Anybody out here who could help me with this?
Wiebe
Keywords: presentations
Posted by Wiebe Kunst @ Plugins | 0 comment(s)
http://elgg.org/timh/files/-1/205/batch.zip
These are 2 small plugins to process batch invitation or addition of users from csv files. They haven't been extensively tested other than my server, so use with caution.
./tim
Posted by Tim Hawes @ Plugins | 1 comment(s)
Keywords: blogger, install, mail, mailblogger
Posted by Heath Moser @ Plugins | 0 comment(s)
Posted by jeeb75 @ Plugins | 0 comment(s)
Does an image album plugin exist?
Posted by Jim Webster @ Plugins | 2 comment(s)
Posted by Brice Le Blevennec @ Plugins | 1 comment(s)
Site supported by Curverider Ltd - powered by the awesome Elgg