Jump to content

Search the Community

Showing results for tags 'Module'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi. I have been working on a simple mailchimp integration module. It is probably pretty bad written as I don't fully know my way around the processmanager module creation process yet. Anyway this is basically what you need to do. Create a mailChimp account (free), get the API keys for your account. Add the API key to the config.inc.php file. Create a mail friendly template: Inline CSS with supported CSS tags so dont use floats or position for instance. Create a "root" page where you Newsletter will reside under. This case root is called "newsletter" want another name just change in the module. (Line 27) Install the module. Some screenshots: This is the admin section where Lists is being fetched from mailchimp and newsletters is being fetched from under the root page you set up earlier. Click send and your mail is on the way. Result page. So what have happened now, you have created and sent a new email campaign through mailchimp. For detailed reports regarding delivery status you need to log on to mailchimp. For subscription you can build your own form or use some of the one provided by mailchimp, if you want to skip the "verify subscription" mail you need to create your own subscribe form see example attached. ProcessMailChimp.zip subscribe.php I am not saying that this is a 100% completed module but it cover my needs and I have seen some questions regarding this kind of functionality roaming the forum.
  2. Hi, I'm testing the RSS Feed generator module. I'm not sure if I'm doing things correctly. I have placed the code below in a template. $rss = $modules->get("MarkupRSS"); $rss->title = "Fil RSS"; $rss->description = "Les plus récentes mises à jour sur le site du CREACC"; $items = $pages->find("limit=10, sort=-created"); $rss->render($items); Then I created a page from that template. The result is here. The error given: This page contains the following errors:error on line 6 at column 15: Encoding error Below is a rendering of the page up to the first error. What can it be?
  3. Fieldtype File from folder I “needed” a module to select a file from a folder, using an <select> and store the filename. There's only 1 setting: The path to the folder to list. The Path is relative to the templates directory. So if your files are located in /site/templates/scripts/, type scripts/ in the `path to files` setting. here's the gist, enjoy. This module is released because it was useful for me in several projects.
  4. This is my first Module whatsoever and since I'm novice at PHP I would like some advise how to tidy this up. It was my intention to make a small module to begin with, but I'm afraid I'm a little bit in over my head . I 'borrowed' some code from other modules like ProcessGoogleAnalytics by wanze and ProcessRedirects by apeisa. I hope that's okay! Also I don't know if there is a reallife use, but I've learned a lot during the process so far. There are some points I'd like to fix: 1. Load the MailChimp API once. Since it's been loading a couple of times, it feels like overhead to me. 2. Post the invalid e-mailadresses (line 233) to the delete function (line 284). 3. Generally tips to improve the current code or tips to any pitfalls I'm running into. Do you guys can help me further or have any tips? EDIT: now posted on Github to make it easier to understand: https://github.com/arjenblokzijl/NewsletterMailChimpSync/ NewsletterMailChimp.module
  5. ProcessWire DataTable 1.0.0 (https://github.com/somatonic/DataTable) This module enables you to find and edit (fancybox modal iframe) pages at a small and very large scale. So far it has: ajax suuport masked pagination state saving (datatable using cookie, template filter using session) template filter (only showing templates user has edit access) search text filter (using title|body field) multilanguage support (PW's language translator) Superuser will see all pages and system templates. Users only those with view|edit access and pages in trash. This Module is still very simple and only in "lazy" developement and testing and this is the first official release mainly to get it out for others to see and use. It also could provide as an example/kickstart for someone. Everyone is encouraged to help and contribute to further improve or add features. The module is hosted on my github account: https://github.com/somatonic/DataTable The plugin used in this module is the excellent jQuery Plugin DataTable 1.8.2 - http://datatables.net/ I've chosen it, because I used in in some other web projects and was really happy about it's power and ease to setup. It supports jQuery UI styling, which makes the deal perfect for a ProcessWire module. Thanks and have fun trying it out. ------ (original post, kept for nostalgic moments) Ok, I started trying to implement the great jQuery dataTables plugin into ProcessWire. So far it works very well and is very powerful and fun. Best of it it support jquery themeroller. Not sure how far this all can go with configuration and how to define which pages should be displayed, what collumns etc... Many many things to consider. But if it could provide as an example on how to implement it, it would be great tool for site builders. Here you can see a short video of how it looks and works.
  6. Sneak preview and invitation to request feature-creep This module helps you put MP3-Players in your pages. Based on: Audio_MP3 module by Christoph Thelen Like Chris's module this one sets up an 'audio' field and generates markup for a player. Using: getID3() by James Heinrich, getid3.org jPlayer Plugin for jQuery JavaScript Library, jplayer.org FieldtypeFilePlusData module (new) Uses jPlayer Gets by nicely with just mp3 files on lots of browsers. Module methods generate the player markup and javascript to setup the track list and activate the controls. Pretty easy to manage appearance through CSS. I'm finding that the same markup works fine for single and multi track applications. Extracts ID3 info Gets track info ('artist', 'album', 'title', 'genre', 'publisher', 'year') Extracted images (minus dupes) are added to page's image field Caches ID3 info The 'audio' field uses FieldtypeFilePlusData which provides json encode/decode and storage. Module automatically populates this when files are added. ProcesssWire clears it when they get deleted. Finishing up: There are hardly any configurable options at this point. I don't think it needs much but there are a few things. Requests? Comments?
  7. CollagePlus is a jQuery plugin by Ed Lea. It takes a list of images and converts it to a nicely formatted grid. With this module, we use the CollagePlus plugin to produce nice grid output for ProcessWire image selection. This applies to the images that you select when clicking the image icon from the rich text editor (TinyMCE or CKEditor). The idea for this is from the great Unify admin theme for ProcessWire by @adamspruijt. To use, simply install the module and it is ready to go. Requirements: This module should run on any version of ProcessWire. But to be on the safe side, it would be best to use version 2.2 or newer. If you are using version 2.3.1 (dev branch) or newer this module makes use of conditional autoload for increased efficiency. Download: http://mods.pw/54 or https://github.com/ryancramerdesign/JqueryCollagePlus or install via Soma's ModulesManager. For those running ProcessWire 2.3.2 or newer, you can also install it from your admin: Modules > new > class: JqueryCollagePlus.
  8. Hello all, before I start working with Form Builder on my project, I would like to know if it is possible to determine where the validation error messages get displayed in the form. My client requires to have validation errors put out underneath each individual field. Is this possible with the Form Builder module? Thank you gerhard
  9. I'd personally be very interested in a module that allows me to check for updates of my existing modules and update them indiviidually or in a group. I'm not referring to updates within a directory but rather performing a check against the module directory here. A simple button to click that would then list the differences between available and what I have would be ideal. Just a thought but I can see it adding value for sure.
  10. I just pushed a new module to Github. I really liked Soma's idea (and execution!) to learn new frontend stuff while building useful modules to PW. While Soma is learning Knockout, I actually find AngularJS more interesting. So here is my first "AngularJS-powered" module: FieldtypePoll. This is simple polling fieldtype for (not so serious) votings like: Q: How is the weather today? a) Fine b) Rainy c) I don't know, been coding all day This should be all usable already, so if you are adventurous and want to help me debug, this is how to get started: 1. Grab the code -> https://github.com/a...a/FieldtypePoll (actual fieldtype and inputfield) -> https://github.com/apeisa/AngularJS (AngularJS and AngularUI for PW) 2. Install the FieldtypePoll module 3. Create new field, choose "Poll" as a new fieldtype 4. Add field to a template 5. Edit your template file, output the field: echo $page->whatEverNameYouGaveInStep3 6. Add some css: .PollApe .percentage { background: black; font-size: 10px; min-width: 5px; border-radius: 4px; padding: 4px 8px; text-align: right; color: white; margin-bottom: 0.6em; } .PollApe .PollApeTotalVotes { border-top: 1px solid #ccc; }
  11. Pete

    Minify

    ProcessWire2.+ Minify 1.0.3 This module helps you combine Javascript and CSS files into one, minified file to save on unnecessary HTTP requests and to compress files anywhere up to 80% (including already minified .js files). To use it, extract the attached zip file into your /site/modules/ directory and check for new modules in the ProcessWire Admin area, then install the module. Once installed, go to configure the module and, instead of this configuring anything for you, you can use the drop-down lists to build stylesheet and script code to place in your templates, grabbing a list of any stylesheets and scripts it finds in the /site/template/styles/ and /site/templates/scripts/ directories respectively. It's more of a helper than anything else, but it should take the guesswork out of configuring Minify for your site. Notes: This module contains a third-party library - Minify - which is subject to its own license (a copy is included in the attached zip file). I've left the module in-tact including its unit test files so there are more files than are necessary, but this will make it easier for me to upgrade the module if/when they release updates to that code. This module doesn't insert any code into your templates automatically - I think copying and pasting the code it currently outputs to the screen is more useful/configurable for more situations. It's worth using even if you only have one CSS or JS file as it will compress CSS files by about 80% and JS files by quite a lot too, plus since it handles caching on the server-side and does its own checks of the files it is serving (plus it's a dynamic URL), you can always be sure that it will serve the latest version of a CSS file (no more CTRL+F5 to show the new styles if your browser decides to cache it. You can change the /site/modules/Minify/min/config.php as you could if you were using Minify as a standalone script - tweak cache paths (default is your server's cache path) and other advanced settings here. Updates: v0.0.2 - now produces code that includes paths derived by ProcessWire at run-time so paths will be fine on localhost and live servers, removing potential issues when pushing a site live. v1.0.0 - bumped this up to a major version number since there appear to be no issues with the initial versions to speak of. Also implemented yellowled's input field suggestion (looks much better and easier to select for copy and paste purposes) and turned off autoload at ryan's suggestion. v1.0.1 - now recusrively searches for files inside subfolders under the scripts and styles directories using PHP 5's built-in iterator classes v1.0.2 - pull request from teppo - https://github.com/Notanotherdotcom/Minify/pull/1 v1.0.3 - updated Minify code to v2.1.7 which fixes a significant security flaw: https://groups.google.com/forum/#!msg/minify/cpN-ncKPFZE/kwYVpLMkfDwJ You can download the module here.
  12. My site has 150+ pages, and I need a tool so readers can sort and drill down to find the page that best meets their needs. An example of something similar is here: http://www.mouser.com/Passive-Components/PotentiometersTrimmers-Rheostats/_/N-9q0yi/ in the section that allows filtering by several different parameters. Another example would be profile matching on a dating site, where you describe the person you're looking for, e.g. "non-smoking, blonde, under 6 ft tall, over 20 years old, under 500 lbs, single" and the site shows you only results that match. Each page will have about 20 filter parameters. Obviously I will also need a way of appending these searchable parameters to each of my pages. Currently my site is all simple SHTML and CSS; I've installed PW, but none of the site is built on it yet. Any suggestions? Thanks!
  13. Module: MinifyHTML Simple module, didn't even plan to add it to the forum untill owzim asked me to. Description: This module takes the HTML output and then minifies it, and removes all comments from it but leaving the conditional comments in place. Usage: Just install, nothing to configure, works automatically. URL: http://modules.processwire.com/modules/minify-html/
  14. Hey, I've made this really simple session module that lets to add messages to the session and render it. Here's the complete php file: <?php class SessionMessage extends Process implements Module, ConfigurableModule { public $messages = array(); public static function getModuleInfo() { return array( 'title' => 'SessionMessage', 'version' => 101, 'summary' => 'An example module used for demonstration purposes. See the /site/modules/Helloworld.module file for details.', 'href' => 'http://www.processwire.com', 'singular' => true, 'autoload' => true, ); } public function init() { $this->setFuel('sessionMessage', $this); } static public function getModuleConfigInputfields(array $data){ $modules = Wire::getFuel('modules'); $fields = new InputfieldWrapper(); $field = $modules->get("InputfieldText"); $field->attr('name+id', 'error_class'); $field->attr('value', $data['error_class']); $field->label = "Error class"; $field->description = 'Enter your error class for error handling.'; $fields->append($field); $field = $modules->get("InputfieldText"); $field->attr('name+id', 'success_class'); $field->attr('value', $data['success_class']); $field->label = "Success class"; $field->description = 'Enter your error class for success handling.'; $fields->append($field); $field = $modules->get("InputfieldText"); $field->attr('name+id', 'alert_class'); $field->attr('value', $data['alert_class']); $field->label = "Alert class"; $field->description = 'Enter your error class for alert handling.'; $fields->append($field); return $fields; } //void public function add($type, $message){ //types could be error, alert or success array_push($this->messages, array($type => $message)); $this->session->set('messages', $this->messages); } public function render($clean=true){ $html = ""; $this->messages = $this->session->get("messages"); foreach($this->messages as $array){ foreach($array as $type => $message){ $class = $type.'_class'; $html .= '<div class="' . $this->$class . '">'; $html .= $message; $html .'</div>'; } } $this->session->messages = $this->messages; if($clean == true){ unset($this->messages); $this->session->set('messages', $this->messages); } return $html; } } Installation: 1) Install the module 2) Give classes to each of the default fields: error success alert Usage: To add a message use: $sessionMessage->add('error', 'This is an error message'); To display all messages: echo $sessionMessage->render(); If you don't want the module to erase the messages after being displayed: echo $sessionMessage->render(false); I am currently using this in combination with Zurb Foundation Hope it helps someone. -Harmster
  15. Hi, I couldn't find a module for the markItUp! editor and was wondering if there is already a module out there for 2.3.5? Thank you. - Melros
  16. In a current project it became necessary to implement more extended image manipulation functionalities as I needed to fix image orientation of photos where the orientation data was just stored in images's exif data set. As it was just one more manipulation among several other's the ImageSizer was already taking care of, I thought it would be nice to be able to extend the native ImageSizer class by individual methods. But as I - of course - didn't want to change core files and the ImageSizer itself isn't a “module” that seemed hard to achieve. But after I did some research, I found a solution using an instance of ImageSizer encapsuled within a module using magic methods to direct native method calls to the ImageSizer while providing extended methods from the module itself. It's far from perfect. The code is still messy and I just added methods to check for orientation data, fix orientation and therefor of course image rotation and flipping. Haven't been testing everything yet, but I uploaded the module to github. Could be useful as a starting point. https://github.com/o...geSizerExtended It is used the same way as the original ImageSizer: $sizer = new ImageSizerExtended($path); $sizer->method();
  17. Hey, I needed a newsletter system for two websites I'm currently building. So I wrote a standalone ProcessWire newsletter system called: MarkupNewsletter The video below shows the workflow: https://vimeo.com/68954976 (it's still converting) Hope you like it! Please report any bugs or questions here. (I'll add it to the modules section after a short beta time). / Nico
  18. Module: MarkupCSScompress 0.8.5 (beta) convert $config->styles array to a single gzipped & cached CSS file and give <link rel="stylesheet" src="/processwire/styles.min.css/"> tag back. I love using the $config->styles array on the front-end. One disadvantage is, I like it that much that I end up with a multitude of styles with their corresponding links. To much requests for the browser if you asked me. So my thought was: I wish I could combine all styles, compress the css and serve 1 link back to the browser. But I don't like struggling to find CSS selectors in a compressed file. So I add the setting: Caching & concatenating disabled for superusers. For caching I used Ryan's beautiful MarkupCache module. Cons: Doesn't work with external CSS files ( All CSS files have to exist in processwire )How to use: ( important ) Put the MarkupCSScompress.php into the template folder. Place <?php echo $modules->get('MarkupCSScompress')->render(); ?> in the head where normally the CSS <link> would be. Install this module. Totally open for changes & improvements. download from github view on github modules on PW Todo: Change al relative urls to absolute urls in the CSS cache files. ( done ) Check PW version compatibility
  19. I am building my first website with processwire, but of course I am starting with a relatively complex site for an entertainment booking agency. Before I spin my wheels for several days or weeks, I am seeking advice on the best approach to create a dynamic xml file that will contain file paths for different sized jpg files for images, mp3 and ogg files for audio, and mp4, webm and ogv files for video to play natively in various browsers within responsive pages that will adapt to the device on which they are displayed. Most of my experience is with Dreamweaver, and I know how to do this with static pages because there would be a unique xml file for each static page. However, creating a static page for each artist on a roster of 200 that is growing monthly is not practical. I've looked at several content management systems and have concluded that I want to invest my time in the one I consider the best--processwire. So here I am asking for help. I note that something similar has been done with the module Local Audio Files-MP3-DB by horst, but I'm not sure that is the best approach here because I will likely have an average of only 20 jpg files and 5 of each of the other file formats for each performing artist on this website. The key is that I must create a unique xml file for each of at least 200 artists that will reference their unique works. I would appreciate any suggestions either on what to try or what not to try so that I can avoid wasting time on "blind paths". If it helps to visualize my objective, you can view a template of an artist's page at http://www.book-entertainer.com/rob-garrett/. I know all of your time is valuable, but I am just not sure where to start. Thank you. Bill
  20. A customer wanted to disable save ( $config->demo ) for users with a specific role. I created a module for that. If you need it, it's over here. To select the role(s), go to the modules config settings. download at github
  21. So am digging deep into the world of module development. Exciting! PW makes it easy to quickly create form elements for use in Process Modules UI. I have searched the forums and looked at different modules but have not been able to find out if it is possible to wrap form elements in one InputfieldWrapper or InputfieldMarkup as shown in the attached screenshot (#2). I don't want the individual form elements within the wrapper/container to also have the collapsible panel wrapper which is what happens by default whenever you add an inputfield in a module (screenshot #1). The only wrapper I want is the outer one. Is this doable using the API or I'll need to fiddle with CSS or directly include the form elements myself? Hope this makes sense. Thanks. What I am getting: What I would like: Edit Possibly related http://processwire.com/talk/topic/59-module-want-form-builder/?p=611
  22. ImageMinSize Module Already there since a couple months, I figured I'd finally add it to the repository. What it does ImageMinSize module allows you to define a minimum width and or height an image needs to have when uploading. This is same as the already existing maximum image size setting, just on the other end. You can set the max and min width and height setting to the same to restrict uploaded images to a specific size. If the requirements aren't met it will delete the image and show an error. After installing the module you'll be presented with the additional minimum width and height setting in the fields input configuration. Currently on github https://github.com/somatonic/ImageMinSize On modules repository (in approval state) http://modules.processwire.com/modules/image-min-size/ This module was getting started because of this thread: http://processwire.com/talk/topic/3476-fixed-image-size/?hl=imageminsize#entry34110
  23. LanguageLocalizedURL module Localized URL generator and parser You can find the last version here: http://modules.proce...-localized-url/ Or from the repository on github: https://github.com/m...e-localized-URL This module is useful to generate localized url using the language code as first 'folder', and then the localized titles of the nested pages: (removed previous instructions to prevent double maintaining.) See more infos in readme of the module with instruction and informations. https://github.com/m...aster/README.md
  24. Hi, I've been using the MarkupTwitterFeed module, but was wondering if anyone has created anymore modules that can render: a twitter hash search, who a user follows, images within a post and profile images, and other twitter functionality. Or are these functions that can be built into the MarkupTwitterFeed module by extending it? (and I'm more of a frontend guy so have been having issues getting my head around the twitter api). Thanks!
  25. Hi, I have just installed the MarkupTwitterFeed module, but for some reason I cannot find the right feed. I have created a Twitter app and maybe it is because I am doing it wrong in the process of doing that. Would anyone mind guiding me in the right direction to getting the right feed? By the way, the link to the Twitter application page is leading to a 404 github page here https://github.com/ryancramerdesign/MarkupTwitterFeed Thanks Vayu
×
×
  • Create New...