We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25032
    • 10 Posts
    Quote from: fourroses at Mar 14, 2010, 05:31 PM

    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
    Once again, I forgot to mention about .htaccess rewrite rule for user profile urls. Sorry for that.
    For user profiles:
    1. Create MODx document, call it as you wish, fill the alias field with ’users’ value (for example) and insert into the body snippet call:
    [!WebLoginPE? &type=`users`!]

    2. Insert this line into your .htaccess file in rewrite section:
    RewriteRule ^user/([a-zA-Z0-9]+)/$ /users?service=viewprofile&username=$1 [QSA,L]



    Quote from: sharkbait at Mar 14, 2010, 01:12 PM

    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
    Yes, you will see edit and remove links if you will log in administrate panel as manager user.
      • 25032
      • 10 Posts
      Little update in version 0.3:

      - Fixed english dates,
      - Added onfig var for enable/disable user profiles
      - Changed install instruction

      Update instructions inside the package archive.
        • 26931
        • 2,314 Posts
        Little update in version 0.3:
        - Fixed english dates,
        - Added onfig var for enable/disable user profiles
        - Changed install instruction
        Update instructions inside the package archive.
        great - thanks! j
          • 9994
          • 133 Posts
          thanx, users works smiley
            Best CMS eva!
            • 12661
            • 18 Posts
            This thread is very exciting as I have been hoping to have something like this.

            This is the experience coming from a non-programmer grin. I downloaded and installed myforum_v0.3. I made all the tweaks listed above including the .htaccess ReWrites and installing PHx. I did notice that myforum.class.inc.php is labelled version 0.2 (wasn’t sure if this was a typo).

            Anyway I am able to create a new thread, but once they are made I get a 404 Error when trying to view made threads. The thread link seems correct: ".../forum/topic/1/". I also added a user page but get the same 404 error when clicking on the user link.

            Any suggestions would be great.
              • 25032
              • 10 Posts
              Quote from: idoremus at Mar 16, 2010, 01:22 AM

              This thread is very exciting as I have been hoping to have something like this.

              This is the experience coming from a non-programmer grin. I downloaded and installed myforum_v0.3. I made all the tweaks listed above including the .htaccess ReWrites and installing PHx. I did notice that myforum.class.inc.php is labelled version 0.2 (wasn’t sure if this was a typo).

              Anyway I am able to create a new thread, but once they are made I get a 404 Error when trying to view made threads. The thread link seems correct: ".../forum/topic/1/". I also added a user page but get the same 404 error when clicking on the user link.

              Any suggestions would be great.
              1. Does your hosting allows you to use RewriteEngine?
              2. Check your document alias from where you are calling myforum snippet. It must be named ’forum’.
              3. Try to acces forum topic, typing "yoursite.com/forum/topic/1/". Maybe there is a problem with ’mfUrl’ variable.
                • 12661
                • 18 Posts
                Quote from: Rickdrummer at Mar 16, 2010, 04:24 AM

                1. Does your hosting allows you to use RewriteEngine?
                2. Check your document alias from where you are calling myforum snippet. It must be named ’forum’.
                3. Try to acces forum topic, typing "yoursite.com/forum/topic/1/". Maybe there is a problem with ’mfUrl’ variable.

                #1 I have clean URL’s so I believe RewriteEngine works.
                #2 Alias is forum.
                #3 The example link "yoursite.com/MODx/forum/topic/1/" takes me to a 404 Error.
                My MODx installation is in a sub-directory. On line 21 of the snippet I have tried both:
                $mf->set("mfUrl", '/MODx/forum/');

                $mf->set("mfUrl", '/forum/');


                Modification to .htaccess:
                RewriteRule ^MODx/forum/topic/([0-9]+)/?$ index.php?q=forum&a=showTopic&topicId=$1 [L,QSA]
                RewriteRule ^MODx/user/([a-zA-Z0-9]+)/$ /users?service=viewprofile&username=$1 [QSA,L]
                


                I am able to create the new topic just not see it, almost like the new topic wasn’t saved to a document. Same problem with the "yoursite.com/MODx/forum/user/[name]" links.

                Thanks for the help.
                  • 25032
                  • 10 Posts
                  Quote from: idoremus at Mar 16, 2010, 03:21 PM


                  Modification to .htaccess:
                  RewriteRule ^MODx/forum/topic/([0-9]+)/?$ index.php?q=forum&a=showTopic&topicId=$1 [L,QSA]
                  RewriteRule ^MODx/user/([a-zA-Z0-9]+)/$ /users?service=viewprofile&username=$1 [QSA,L]
                  


                  I am able to create the new topic just not see it, almost like the new topic wasn’t saved to a document. Same problem with the "yoursite.com/MODx/forum/user/[name]" links.

                  Thanks for the help.
                  I think that the problem is in:
                  RewriteRule ^MODx/forum/topic/([0-9]+)/?$ index.php?q=forum&a=showTopic&topicId=$1 [L,QSA]
                  

                  You have to change both "MODx/forum/topic/([0-9]+)/" and "index.php?q=forum&" according to your forum path. If your forum runs in "MODx/forum/" try accessing to it by "yoursite.com/index.php?q=MODx/forum/". If this url works, make changes in RewriteRule.

                  So, in the end, rewrite rule must be:
                  RewriteRule ^MODx/forum/topic/([0-9]+)/?$ index.php?q=MODx/forum&a=showTopic&topicId=$1 [L,QSA]
                  RewriteRule ^MODx/user/([a-zA-Z0-9]+)/$ MODx/users?service=viewprofile&username=$1 [QSA,L]
                  
                    • 12661
                    • 18 Posts
                    Rickdrummer thank you for your help.

                    Making the changes to my .htaccess file didn’t make any difference. I also now get a 404 Error when I submit a new topic. In the beginning I didn’t.

                    I know this is a brand new snippet (v.0.3). maybe I should wait and reinstall when there is more documentation and a larger user base.

                    I am excited about this snippets potential.

                    Cheers,
                    Ian
                      • 12661
                      • 18 Posts
                      Thanks to sharkbait’s help I am able to view, create and edit topics. I am still not able to use the "User" link even with LoginPE installed.

                      With MyForum 0.3 I was able to fix my earlier problem by reverting the paths in .htaccess to their default settings even though my install is in a subfolder.

                      This works:
                      RewriteRule ^forum/topic/([0-9]+)/?$ index.php?q=forum&a=showTopic&topicId=$1 [L,QSA]
                      RewriteRule ^user/([a-zA-Z0-9]+)/$ /users?service=viewprofile&username=$1 [QSA,L]


                      This doesn’t work:
                      RewriteRule ^MODx/forum/topic/([0-9]+)/?$ index.php?q=MODx/forum&a=showTopic&topicId=$1 [L,QSA]
                      RewriteRule ^MODx/user/([a-zA-Z0-9]+)/$ MODx/users?service=viewprofile&username=$1 [QSA,L]


                      Could someone explain how I would call a custom template and what placeholders I could use?

                      Thanks, Ian