Jump to content

Search the Community

Showing results for tags 'muut'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 1 result

  1. hello, can somebody tell me if this is possible simply? OBJECTIVE > to embed the MUUT Forum into our website via their Federated ID method. i can embed their forum into our website just fine, and it works out-of-the-box, BUT we need to host our own user database (not using MUUT's). BACKGROUND INFO > i'm a ProcessWire noob, but am excited to dive in (experienced in other CMS's). i do front-end design mostly. i do very little back-end development, but i do have experience installing & doing minor customizations. i'm expert in HTML/CSS & intermediate in Javascript/Jquery i usually work with PHP/MySQL code given to me or found online; can't write from scratch. ISSUE/PROBLEM > in order to use muut's forum and our own user db, they require that we have our own user registration/authentication system that uses "Federated ID". not ever having used PW before, i don't know if this would be compatible with that. i just got thru a week-long experiment with a system i found called UserFrosting; but it's WAY too complex for me & what i need. so my next thought was to utilize a CMS's user system to be the user reg/auth bit for Muut. can ProcessWire be that system & integrate with MUUT? REFERENCES > MUUT website @ http://muut.com MUUT documentation @ https://muut.com/help/#fed-id MUUT userguide @ http://learn.muut.com/federated-id/manual-setup UserFrosting website @ http://userfrosting.com ProcessWire User API documentation @ http://processwire.com/api/variables/user ProcessWire Cheatsheet @ http://cheatsheet.processwire.com/user CODE > at the bottom of this post is the index.php code that i pieced together from the muut docs, guides, & support forum to use as a base (pre any customizations). before that code, i have directly under these points are 2 code boxes containing 2 examples of the only section from index.php that i believe needs changing to work with ProcessWire. after that is a 3rd code box with my attempt at connecting ProcessWire with MUUT - but i'm unsure if it's correct or not. in the whole page code at bottom of this post, right under the <body>, in that PHP section's user array (a.k.a. Step 1), i found this code in the muut docs... "id" => "johndoe", "displayname" => "John Doe", "email" => "john@doe.com", "avatar" => "//gravatar.com/something", you'll note the commented out part with this in the index.php code; it's what i found elsewhere in a muut support thread... "id" => $userObj->userID, "displayname" => $userObj->fname . ' ' . $userObj->lname, "email" => $userObj->email, "avatar" => $userObj->photo, so based on those 2 examples above, would it be correct/incorrect to use PW's user properties like this(?)... "id" => $user->id, "displayname" => $user->name, "email" => $user->email, "avatar" => $user->ICouldntFindWhatWouldGoHere, ...SUBQUESTION > i couldn't find what ProcessWire uses for a User-Avatar/Picture. anybody know? FYI > HERE is the whole code for this un-customized index.php file THAT WORKS withOUT our own user system... <!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Untitled Document</title> <link rel="stylesheet" href="https://cdn.muut.com/1/moot.css" /> <style> .m-custom .nested { margin-left: 1em; } /* .is-commenting, .is-threaded { max-width: 700px; } */ </style> <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> </head> <body> <?php // Step 1 // Generate the message before the page loads // give us the user data $user = array( 'user' => array( "id" => "johndoe", // "id" => $userObj->userID, "displayname" => "John Doe", // "displayname" => $userObj->fname . ' ' . $userObj->lname, "email" => "john@doe.com", // "email" => $userObj->email, "avatar" => "//gravatar.com/?", // "avatar" => $userObj->photo, "is_admin" => false, ), ); // Step 2 // encode the user array to generate the 'message'. $message = base64_encode(json_encode($user)); // assign the current timestamp to be used. $timestamp = time(); // Step 3 // Generate the signature = my long secret key from account settings page $signature = sha1('####################' . ' ' . $message . ' ' . $timestamp); ?> <div class="muut"> <a class="muut-url" href="https://muut.com/i/sanctuary">Sanctuary Community</a> <!-- custom sidebar --> <div class="m-h3">Your Forum Title Again</div> <a href="#!/chan1">Channel 1</a> <div class="nested"> <a href="#!/chan1/subchan1">Subchannel 1</a> <a href="#!/chan1/subchan2">Subchannel 2</a> </div> <a href="#!/chan2">Channel 2</a> </div><!-- end class="muut" --> <!--div class="comments"> <a class="muut" href="https://muut.com/i/sanctuary/comments" type="dynamic">Commenting</a> </div> <div class="messages"> <span class="muut-messaging" data-forumname="evaluating-the-muutiny">Messages</span> </div--> <!-- END OF PAGE --> <script src="//cdn.muut.com/1/moot.min.js"></script> <script> $("#muut").muut({ api: { key: '########', // my short api key from account settings page message: '<?php echo $message; ?>', timestamp: <?php echo $timestamp; ?>, signature: '<?php echo $signature; ?>', login_url: "http://sanctuaryinternational.com/community/index.php" } }); </script> </body> </html> THANKS!!!!!!!
  • Create New...