[Register]
Powered by Elgg

Plugins :: Blog :: Archives

November 2007

November 11, 2007

hola,

i came across abilities that blog plug-in gives, with extending it (see blog readme). i also checked out the Projects plug-in by Diego. There is however one thing that i cannot understand. If extension like projects stores projects as posts in weblog_posts table in database - so every project has actually the same structure as blog post. How elgg is distinguishing between thoose two while taking the posts to view all Projects/Blogs ? if there is no difference in db fields then is it storing some info ab this difference locally? any hint appreciated.

 saludos

 Marcin

Keywords: blog, extension, projects, storing posts

Posted by Marcin Czech @ Plugins | 0 comment(s)

November 19, 2007

I would like to add a paragraph above the 'Upload a file' form, but cannot locate the source for the life of me.

 Does any one here know which file manages that code/layout ?

Posted by Josh Steenmeyer @ Plugins | 1 comment(s)

November 26, 2007

If you install the comment wall. (Error reporting set to 6135)

Login as an admin

You get this error as soon as you login.
==========================
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 '' at line 1] in EXECUTE("select * from elgg_profile_commentwall where ident=") in /home/~user/public_html/elgg/lib/adodb/adodb-errorhandler.inc.php on line 77
==========================

The simple fix is:
line 71:

            if ($records = get_records_sql("select * from {$CFG->prefix}profile_commentwall where ident={$comment_id}")) {
                //delete the comment
                delete_records("profile_commentwall","ident",$comment_id);
                $_SESSION['messages'] = $messages;
                header("Location: {$CFG->wwwroot}" . user_info("username", page_owner()) . "/profile/");
                exit;
            }

I changed it to

		if(strlen(trim($comment_id))>0){
if ($records = get_records_sql("select * from {$CFG->prefix}profile_commentwall where ident={$comment_id}")) {
//delete the comment
delete_records("profile_commentwall","ident",$comment_id);
$_SESSION['messages'] = $messages;
header("Location: {$CFG->wwwroot}" . user_info("username", page_owner()) . "/profile/");
exit;
}
}

This is the simplest fix I could come up with.  Anyone have any idea why this is happening for admins? 

Posted by bigorangemachine @ Plugins | 3 comment(s)

November 27, 2007

okay this plugin is driving me crazy - how do you actually generate a presentation? I add one using 'new' and thats it I cannot seem to be able to add anything to the presentation.

Posted by Jim Webster @ Plugins | 0 comment(s)

Site supported by Curverider Ltd - powered by the awesome Elgg