Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/13/2015 in all areas

  1. https://github.com/ryancramerdesign/ProcessWire/tree/devns
    6 points
  2. http://modernrealestatesf.com/ Developed by Jonathan Lahijani Designed by Candy Muse
    4 points
  3. Hi Steve, I am sorry, I haven't had time to work on Migrator for a while now. It is definitely not abandoned - I just need to find a good chunk of time to revisit a few things regarding Page fields and sort out remaining bugs. I will try to take a look at this sometime soonish. Regarding the last part of your question - Migrator currently creates new users/roles if the creator/modifier of the imported content was created by a user that doesn't exist on the new site. The problem of course is migrating the user's password - is this a requirement in your scenario? All the template settings etc are all handled completely by Migrator. I also have some aspirations to take Migrator a step further and allow it to connect directly to another site and sync changes, but if this happens it will be some time away and will likely be a commercial version of Migrator. I am not sure if that really helps you at the moment. I am away for the next few days and busy for the week or so after that, but might see if I can get a new version out before the end of the month - but no promises
    3 points
  4. Weighing in a bit late. We're running things on DigitalOcean as well, with Ajenti and Ajenti-V as VPS manager. We run Processwire on Nginx.
    3 points
  5. I also don't... I find myself looking on google and the forum for solutions or even creating new ones. Not very efficient, I know, but it does exercise my brain
    3 points
  6. 2 points
  7. Just checked with few online scanners and all everything is ok, except BitDefender checks (third on the list below). Here are some links: 1) safeweb.norton.com 2) virustotal.com 3) trafficlight.bitdefender.com/info?url=[your url]
    2 points
  8. Hi, this is a textformatter-module to globally set all kinds of YouTube and Vimeo options to embedded videos. It works well with TextformatterVideoEmbed and I think also with TextformatterOEmbed - https://github.com/blynx/TextformatterVideoEmbedOptions ... this is my first module - so I hope the code is acceptable ... ; ) What do you think about the way I implemented the configuration? I Seperated all the config and defaults into a JSON file and generated all fields automatically ... I was wondering if this was already possible or a good idea at all here: https://processwire.com/talk/topic/11155-create-inputfields-from-json-array/ Looking forward hearing your feedback! Cheers, Steffen
    1 point
  9. I think the easier way would be using Javascript, but as elabx pointed out you could also use e.g. checkboxes behind those links, that get send to the server.
    1 point
  10. ProcessWire has a comments module that is part of the core. It was updated some time ago with an up/down vote system (as can be seen here in the comments at the bottom of the post). I am not sure, but I think this version is still part of the PW dev branch (which many of us use..so, you can use it once you've tested it)..
    1 point
  11. BitDefender doesn't actually send out a request to the site, they are just reading from someone else's database–likely the same one as 360. No hidden iframes that I can find except for those coming from Facebook and AddThis (and there are plenty of those). The Facebook and AddThis scripts are kind of hogs, so you might see someday if you could replace any of those functions with Soma's SocialShareButtons module, which is really nice.
    1 point
  12. I set up email on a new droplet today. There's a little button for automagically setting up MX records for Gmail. Literally. One click.
    1 point
  13. Looking at your homepage, I don't see anything suspicious either. Whether in the code, the network requests or the cookies. You would of course want to check things out deeper into the site, but usually automated exploits target the homepage. It's possible that the EMO code at the bottom may be creating a false positive, as base64 encoded strings are often used in exploits. In this case it's a completely legitimate use of base64, but that particular scanner may not be smart enough to tell the difference and seeing it as a red flag. The message you got also said "site was reported as..." which might just mean someone reported it by mistake or as a grudge or something. To be on the safe side I would run the site through another scanner that actually analyzes the requests, responses and output. But seems like a good chance it's just a false positive.
    1 point
  14. @rickblackdog — glad you got it sorted out.
    1 point
  15. I got it working, just created a new db with old data (old site was earlier version of process wire) then dropped in the site files and it all works OK. Thanks for the help.
    1 point
  16. been using DigitalOcean with a ServerPilot for two months now and been working well, only down side is its not easy to host email, but trying to do less and less of that anyways
    1 point
  17. Hi blynx, Presently, the module simply processes forms using their config.json files. I have a few things I'd like to do (mentioned previously) before I get to the rendering/generating of the forms. In case you did not see any the previous posts, form rendereing will have support for PW Inputfields, Bootstrap, and Foundation (I may include support for more frameworks - not so sure yet), but the rendering process will be very simple. As this is a developer-centric module, the idea is to leave the form-building side up to the developer/designer. I have had a look at your question regarding JSON-form-building. SimpleForms (or whatever it is named in future, based on poll results) is really designed for use in front-end templates. I have not given any consideration as yet to allowing other modules to make use of it. Will give it some thought, though. Thanks - I only just realised that polls are associated with topics. So "More Reply Options" doesn't do it for me. I have to go to the first post and "Use Full Editor". As I've already created the polls and people have already started voting, I'll just stick with PollMaker for this one. Will use the forum-polls in future.
    1 point
  18. <?php // URL: www.domain.com/tags/?showme=events,films,outdoor&for=education // // Alt. URL with different template than tags overview: // www.domain.com/tags/multiple/?tags=events,films,outdoor $showme = $sanitizer->selectorValue($input->get->showme); $for = $sanitizer->selectorValue($input->get->for); $taggedPages = $pages->find("…, showme=$showme, for=$for");
    1 point
  19. When you change the user to Gold put the current date or expiration date in another field. Setup a really simple module to hook on login. Then it can test the date field and role to see if it's an expired Gold user and change their role. Maybe even redirect them. $this->addHookAfter('Session::loginSuccess', $this, 'hookAfterLogin'); and public function hookAfterLogin ($event) { $user = $event->arguments[0]; foreach($user->roles as $role){ do things... } } Edit: More here http://wiki.processwire.com/index.php/Module_Creation#How_to_attach_hooks_with_a_module
    1 point
  20. Not APIs, API. Hopefully I don't sound too rude (in a bit of a hurry here), but please check out the docs section. It's all explained there. In addition to that, I'd suggest taking the time to browse through some of the tutorials, in case you prefer a hands-on approach. The kind of questions you're asking here are perfectly understandable from someone just getting started with the system, but it also sounds like you haven't really bothered checking out the docs either. Also, the forum is filled with answers to very similar questions, so you might want to try looking around a bit. To be fair most of your current confusion seems to stem from not understanding many of the basic concepts of ProcessWire, including how it handles content and content types. While it's a bit outdated by now, Ryan's excellent overview video is still a very good starting place in this regard; the UI will look different from what you'll see on your site and your site will have more options and settings to play with, but the basic concepts are the same.
    1 point
  21. Thank you all for your suggestions. @horst I'm already storing sessions in the DB. Will have a look into the ini settings. Meanwhile I found and interesting article which talks about using "session_write_close();". I will do some more research and post my findings here.
    1 point
  22. Might look into using that solution soon - failing that, I might start getting more serious about sysadmin and install my own distru on a VPS :/ let you know either way
    1 point
  23. I agree — ProcessModules are the way to go. They might look intimidating at first, but if you start with a very simple example, they really are very easy. Here is a super simple example that lists all pages with the template "news". (I'm sure there are others out there, but it only took a few minutes to write so...) <?php /** * Simple Process Module Example. * This is a very basic example to learn from. * I have no intention of expanding on this sample module. * * @author renobird * * ProcessWire 2.x * Copyright (C) 2011 by Ryan Cramer * Licensed under GNU/GPL v2, see LICENSE.TXT * * http://www.processwire.com * http://www.ryancramer.com * */ class SimpleProcessModule extends Process { public static function getModuleInfo() { return array( 'title' => 'Process Module (basic example)', 'summary' => 'A very simple process module as an example on how easy they are to create.', 'version' => 100, 'href' => '', 'permission' => '' ); } public function init() { // initialize the parent parent::init(); } public function ___execute() { // Find some pages $items = $this->pages->find("template=news"); /** * Create a table to display results * There are other ways to do this using MarkupAdminDataTable module, but let's keep this simple for now. */ $out = "<table width='100%'>"; $out .= "<thead>"; $out .= "<th>Title</th>"; $out .= "<th>Date Created</th>"; $out .= "<th>User</th>"; $out .= "<thead>"; $out .= "<tbody>"; // If $items pageArray is not empty if ($items->count() > 0){ foreach ($items as $item) { $out .= "<tr>"; $out .= "<td><a href=". $this->config->urls->admin . "page/edit/?id=" . $item->id .">" .$item->title . "</a></td>"; // title $out .= "<td>" . date("F j, Y", $item->created) . "</td>"; // date created $out .= "<td>" . $item->createdUser->name. "</td>"; // user that created $out .= "</tr>"; } } else { // empty pageArray message $out = "<tr><td>No pages matching your criteria were found.</td></tr>"; } $out .= "</tbody>"; $out .= "</table>"; return $out; } } Usage: Install the module Create a new page under /admin/ Set the process for the new page to SimpleProcessModule If you have never created a module, just focus on the execute() method. Most of what is there is coded exactly as you might from a page template.
    1 point
×
×
  • Create New...