We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    Hi,

    I created a post here what explains in more detail what i’m trying to achieve, originally i was playing on using a ditto call but after thinking long and hard i may want to go down the route of using webloginpe. Any help and suggestions would be most appreciated.

    The thread i started is here:
    http://modxcms.com/forums/index.php/topic,29146.msg179386.html#msg179386

    Many Thanks

    Ben
      • 27442
      • 103 Posts
      This would be a really neat way to use WebLoginPE and it would work quite nicely. You’d use the customFields functions to create the data that’s not included normally - like street address, type of food, etc. Your listings could be filtered using these fields very easily and users could edit these things themselves. The only thing that I’m not sure of is how the rating portion would be integrated.
        • 36926
        • 701 Posts

        Ok cool, going to give it a go and see how I get on.

        When you say:
        Quote from: sjh_vt at Oct 12, 2008, 01:50 PM

        Your listings could be filtered using these fields very easily and users could edit these things themselves.

        Do you mean as in the the business could amend there own details themselves when signing in or do you mean the end user could filter what they are looking at while on the page? As that what I would like to be able to do, but not sure how id go about making a call on the page the an end user could change.

        The rating was a thing i could see being a problem if i use webloginpe. I checked out the helpful info kongondo gave me about the rating snippets and got them working great with individual documents but not sure how i’d associated them with each user.

        Thanks

        Ben
          • 27442
          • 103 Posts
          That’s sort of what I was thinking. The default WebLoginPE fields, might not have all the info that you want to have available. For one thing, it does not include street address - something that might be useful for someone to be able to visit a restaurant. The &customFields parameter allows you to add and use any fields you might like. You can use this in combination with the &inputHandler parameter to create types/categories (pizza/pasta/curry ect). You could add links to their individual websites, etc. And all of this can be updated by the business (restaurant) themselves. Then without too much effort, you could make pages where end users select the types/categories for filtering using the &usersList parameter.
            • 28033
            • 925 Posts
            If you want the users to "check" off which options apply to them, and then see a "check/X" mark when those profiles are viewed, lemme know. I found a way to get the on/off text checkboxes output in WLPE to show images. wink
              My Snippets
              -> PopUpChunk v1.0
              • 36926
              • 701 Posts
              Hey, thanks for replies.

              Been having a play with webloginpe and seems pretty simple and got a nice simple example working.

              But a couple of things not sure how i’m going to be able to do it.

              First is i want the ability to upload flash video (swf and flv) for each user. Anyone amended the snippet to allow this and also need the ability to upload more than one image?
              Next question is it possible show random profiles, would it be easy enough to reference some of the fields in the database as one of the images that the business will be able to upload will be a promo advert and within the site there will be areas of the page which will randomly display business promo adverts.

              Also not sure how i can allow end users to the site have an effect on what is displayed by the userlist. Would it be better to just to hard code a form that will add a query to the URL?

              The final thing is i’ve not clue how this will be a possible to work with the rating thing.


              Soshite, got a example of that working anywhere as sounds neat little thing.

              Many Thanks

              Ben
                • 28033
                • 925 Posts
                Quote from: bennyb at Oct 13, 2008, 05:07 PM

                Soshite, got a example of that working anywhere as sounds neat little thing.

                You’ll have to wait till later in the week (midterms at uni this week) for a detailed explanation of how to do it. wink
                  My Snippets
                  -> PopUpChunk v1.0
                  • 27442
                  • 103 Posts
                  Quote from: bennyb at Oct 13, 2008, 05:07 PM

                  First is i want the ability to upload flash video (swf and flv) for each user.  Anyone amended the snippet to allow this and also need the ability to upload more than one image?
                  My first thought is to use something other than WebLoginPE for this part.  I know that MaxiGallery can be configured to allow individual webusers to manage their own galleries.  What I don’t know is if it can handle swf & flv.  For the sake of discussion, let’s assume that MaxiGallery (or some other snippet) can do this.  Then, the only trick is to connect that client’s gallery with that client’s WebLoginPE profile.  My though is to create a simple hyperlink in the client’s profile (again using a &customFields)  that links to their ’gallery’.  One of these sharp coders could probably figure out a neat way to auto-generate this link when the client signs up.  If it’s permanantly attached to the client user account, it doesn’t even need to be included on the profile editing page (that way it can’t get accidentally messed up).  However it would be displayed prominently on the client’s specific details page so that a regular user could just follow the link to the gallery.

                  Quote from: bennyb at Oct 13, 2008, 05:07 PM

                  Next question is it possible show random profiles
                  I’d bet that Ditto could be slightly modified to do this, but if not, it wouldn’t be to difficult to randomly pick a row from the webusers table (including picking from a particular webuser group if needed)

                  Quote from: bennyb at Oct 13, 2008, 05:07 PM

                  would it be easy enough to reference some of the fields in the database as one of the images that the business will be able to upload will be a promo advert and within the site there will be areas of the page which will randomly display business promo adverts.
                  Not sure about this one.  All the fields in the database are text fields, so you can’t put an image directly directly there.  But going back to the earlier ’gallery’ concept you could have a folder within the gallery specifically for advertisements.  Then again, have a link to that as one of the fields that’s stored in the database.

                  Quote from: bennyb at Oct 13, 2008, 05:07 PM

                  Also not sure how i can allow end users to the site have an effect on what is displayed by the userlist.  Would it be better to just to hard code a form that will add a query to the URL?
                  This is where you’ll have to get fancy and carefully consider how you want regular users to be able to create the selection (filter) criteria.  Maybe drop-down lists or checkboxes in a custom snippet that will create specific selection info that can be used to dynamically create a &usersList WebLoginPE call, or perhaps insert the filtering conditions into a placeholder of a WebLoginPE call.

                  Quote from: bennyb at Oct 13, 2008, 05:07 PM

                  The final thing is i’ve not clue how this will be a possible to work with the rating thing.
                  I don’t have an answer to that, and I haven’t used any of the rating/ranking snippets.  But a possibly useful thought occurred to me as I wrote some of the above....  &customFields are created when the webuser creates their account and they can contain whatever info you want.  Just because a customField is associated with a particular webuser, doesn not mean that it needs to be editible (is that a word?) by that user. If a customField is not included on the profile page, it can’t be edited by the user.  Perhaps one of those rating snippets can be configured to update a particular &customField in the database that is attached to the webuser.  It could then be displayed on the &usersList page as a rating.

                  Hopefully, some of that makes sense  laugh
                    • 36926
                    • 701 Posts
                    Thanks sjh_vt for your tips to head me hopefully in the right direction for building this. Going to give it ago but sure i’ll be back on these forumns seeking more advice as some of it sounds like it could be tricky.

                    Many thanks

                    Ben