We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for myForum 0.2- by rickdrummer.

    Brief Description:
    Forum snippet for MODx.

    Requirements

    1. MODX 1.0.2
    2. PHx plugin ( http://modxcms.com/extras/package/?package=342 )
    3. Friendly URL enabled
    4. Web user authorization

    Features

    1. Users can create new topics and posts
    2. Users can edit and delete their oun posts
    3. Manager user can edit and remove posts and topics

    ToDo:

    1. Pager for topic list and post list.
      • 7455
      • 2,204 Posts
      the correct link to the package: http://modxcms.com/extras/package/662

      Nice work thanks for this
        follow me on twitter: @dimmy01
        • 26931
        • 2,314 Posts
        Hi rickdrummer,

        thanks a lot for sharing!

        i installed it according to the instructions

        friendly URLs turned on, no Suffix
        PHX is working
        created a Webuser / UserGroup -> connected them and assigned my forum page to it

        when i log in as a webuser, i see now a link "Create new thread" but when i click on it nothing happens

        my installation is in a subdirectory -> "http://localhost/evo1.0.2" so i assumed to change:
        $mf->set("mfUrl", '/evo1.0.2/forum'); // url of the forum start page

        as well as:
        # myForum section
        RewriteRule ^evo1.0.2/forum/topic/([0-9]+)/?$ evo1.0.2/index.php?q=forum&a=showTopic&topicId=$1 [L,QSA]

        //// *edit: subdirectory doesn’t need to be referenced i8n .htaccess

        hovering over the "Create new thread" link shows "http://localhost/evo1.0.2/forum?a=newTopic"

        any ideas?

        thanks, j

        *edit: okay, don’t know what happended smiley now i got two fields showing "Subject" & "Message" and a button "Create New Thread" ... but nothing happens when i submit
        ///// *edit: Snippet needed to be uncached [! ... !] on a cached page
        the source code of the form looks like this:
        <form action="/evo1.0.2/forum" method="post" class="mf-form"> 
        <fieldset> 
        <label for="mfTopicTitle">Subject</label> 
        <input type="text" name="mf_topic_title" id="mfTopicTitle" value="" /> 
        <label for="mfTopicContent">Message</label> 
        <textarea name="mf_topic_content" id="mfTopicContent"></textarea> 
        <input type="submit" value="Create new thread" /> 
        </fieldset> 
        <input type="hidden" name="a" value="addNewTopic" /> 
        </form>

        does it look right?

        thanks, j

        ... for the css file to be referenced correctly (for me) i needed to remove the slash from myforum.class.inc.php line 45:
        $this->get("css") : '/'.$this->config["mfInstallDir"]

        to
        $this->get("css") : ''.$this->config["mfInstallDir"]
          • 8609
          • 607 Posts
          Very excited to test this! Going to try very hard to make some time! Definitely looks interesting.
            • 9994
            • 133 Posts
            Just got it installed, indeed needed to use the [! .. !] to create a new message, else nothing happens. Works very good, well done.

            The date of wroted message is still in russian: 13 марта 2010 22:07
            Need to translate it anyway.
              Best CMS eva!
              • 26931
              • 2,314 Posts
              Just got it installed, indeed needed to use the [! .. !] to create a new message, else nothing happens. Works very good, well done
              fourroses , usernames are displayed as links .... what happens when you click on one of those on your installation? ( i got an 404 ) / what’s supposed to happen when they’re clicked?

              are you able to edit, remove posts and topics as manager user? i can’t even see them as a manager user
                • 9994
                • 133 Posts
                Yea, I noticed it too, the url can not be found: http://www.domain.com/user/admin/

                The user I made with the ’WebSignup (15)’ snippet called admin is not found.
                I wonder where it is saved so i can change the url or smt.

                I can remove / edit my own messages, can’t delete messages the admin didn’t wrote sad
                Cant find the russian date message.


                I’d really also like to have an image above the username, would be a nice addon.
                  Best CMS eva!
                  • 25032
                  • 10 Posts
                  WoW!
                  Really, didn’t expect so many replies for my little snippet smiley
                  I’ll try to answer.

                  Quote from: fourroses at Mar 13, 2010, 03:11 PM

                  Just got it installed, indeed needed to use the [! .. !] to create a new message, else nothing happens. Works very good, well done.

                  The date of wroted message is still in russian: 13 марта 2010 22:07
                  Need to translate it anyway.
                  Got it! Thanks. Will fix.


                  Quote from: fourroses at Mar 13, 2010, 05:13 PM

                  Yea, I noticed it too, the url can not be found: http://www.domain.com/user/admin/

                  The user I made with the ’WebSignup (15)’ snippet called admin is not found.
                  I wonder where it is saved so i can change the url or smt.

                  I can remove / edit my own messages, can’t delete messages the admin didn’t wrote sad
                  Cant find the russian date message.


                  I’d really also like to have an image above the username, would be a nice addon.

                  Forgot about WebloginPE package. This package allows to view user profiles (and some other login staff). Maybe I will add option in myForum for username links for installations without this package.

                  2sharkbait
                  Thanks for your big reply. I’ll try to install modx in subdir and check for bugs.
                    • 26931
                    • 2,314 Posts
                    Hi Rickdrummer smiley
                    Forgot about WebloginPE package. This package allows to view user profiles (and some other login staff). Maybe I will add option in myForum for username links for installations without this package.
                    aaaah, okay, with webloginPE installed you would see a user’s profile when clicking on the username

                    the installation seems to work in the subfolder btw. ( with some of the tweaks i mentioned above, and as far as i can judge on how the forum should work )

                    should i be able to see & edit the forum as a manager user, or is that something webloiginPE related as well?

                    thanks, j
                      • 9994
                      • 133 Posts
                      Ahh nice login snippet, never used that one b4.

                      I installed the webloginPE only the member profile(s) link still isn’t correcto, do i have to make a page user with some chunk? Also there are no images with the form messages.

                      The most important thing i think is to be able to delete all messages (as an admin), when logged into the cms and have permissions?

                      Your snippet is becomming very nice smiley
                        Best CMS eva!