[Register]
Powered by Elgg

Plugins :: Blog :: Forum Fix for v0.8

July 09, 2007

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"))     

Keywords: 0.8, fix, forum, plugin

Posted by Tim Hawes @ Plugins


Comments

  1. is in in the LIB in the directory FORUM, or in the directory BLOG ? ;)

     

    I can't figure it out :S

    user icondarkd on Wednesday, 11 July 2007, 23:00 UTC # |

  2. Find the file called lib.php in the /mod/forum directory.

     

    Around line 60 you will find a block of code that starts with:

     foreach($function['display:sidebar'] as $key => $file)

     

    You need to change the line that starts with if (($file == $CFG->dirroot  to read as follows:


                if (($file == $CFG->dirroot .  "mod/blog/lib/weblogs_user_info_menu.php"))        

     

    Hope this helps

    ./tim 

    user iconTim Hawes on Wednesday, 11 July 2007, 23:20 UTC # |

  3. turns out there is much more to fix than I first though - lots has moved around in Elgg 0.8.

    I'll get a full new version up tomorrow or Friday.

     

    ./tim 

    user iconTim Hawes on Thursday, 12 July 2007, 03:36 UTC # |

  4. can you please comment when this is done?? thanks :)

    user icondarkd on Wednesday, 01 August 2007, 13:41 UTC # |

  5. BTW, changing fixed the basics of the thing :P it now is viewed as a forum as standard :D *YAY!*

    user icondarkd on Thursday, 02 August 2007, 09:26 UTC # |

  6. For the last couple of days I have been struggling with the forum mod trying to get it to work.

    I have just done a completely new fresh brand new install to see if that would work.

    Everything went well until I uploaded the forum mod.

    The page came up warning my that my mysql was not ready for the forum. The instructions say login to new and it will do a database update but the site was stuck and wouldn’t let me move on. So instead I did the mysql update from the file in the forum folder.

     

    Then I pressed continue and Voila I’m in.

     

    Then when pressing files or networks I get these messages.

     

    Warning: run(/home/mybhak5/public_html/mod/forum/userdetails_actions.php) [function.run]: failed to open stream: No such file or directory in /home/mybhak5/public_html/units/engine/library.php on line 42

    Warning: run(/home/mybhak5/public_html/mod/forum/userdetails_actions.php) [function.run]: failed to open stream: No such file or directory in /home/mybhak5/public_html/units/engine/library.php on line 42

    Warning: run() [function.include]: Failed opening '/home/mybhak5/public_html/mod/forum/userdetails_actions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mybhak5/public_html/units/engine/library.php on line 42


    This last error concerns me as that usr path looks odd.

     

    And when trying to create a community I get these messages:

    Warning: run(/home/mybhak5/public_html/mod/forum/userdetails_actions.php) [function.run]: failed to open stream: No such file or directory in /home/mybhak5/public_html/units/engine/library.php on line 42

    Warning: run(/home/mybhak5/public_html/mod/forum/userdetails_actions.php) [function.run]: failed to open stream: No such file or directory in /home/mybhak5/public_html/units/engine/library.php on line 42

    Warning: run() [function.include]: Failed opening '/home/mybhak5/public_html/mod/forum/userdetails_actions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mybhak5/public_html/units/engine/library.php on line 42

    Warning: Cannot modify header information - headers already sent by (output started at /home/mybhak5/public_html/units/engine/library.php:42) in /home/mybhak5/public_html/mod/community/lib/communities_actions.php on line 52

    There were no communities and only one user, news, prior to this attempt to add forums. So if there is some requirement to have users and communities prior to installation please let me know.

    I’m at my wits ends do I’ll tinker with something else in the meantime while waiting for some response.

    user iconEdward Leonforte on Thursday, 16 August 2007, 10:46 UTC # |

  7. I've tried a lot of things including waiting for someone to help and finally found myself staring at the/mod/Forum directory and noticing that it is capitalized. I renamed it forum and Voila everything works like a charm.

    For some reason Forum.zip unzips a Forum folder and for some reason I didn't notice it and rename it forum. I guess most of you were smarter than that.

    user iconEdward Leonforte on Sunday, 19 August 2007, 22:06 UTC # |

Add a comment

Your comment text

Your name

 

Site supported by Curverider Ltd - powered by the awesome Elgg