Jump to content

felic

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by felic

  1. Wenn #Kunden mit vagen Projektbeschreibungen nach einem Ges.preis fragen, verlangen sie oftmals nach den Std.satz um (un)glücklich zu sein.

  2. I suppose not. Like in plain php. Javascript here we come...

  3. Seltsame Dinger,- sind nicht zu sehen wenn man an sich runterschaut. Und sofort wieder da, so bald man wegschaut. #lasttweet

  4. iMac. Früher: ausschalten/Fenster auf/schlafen gehen. Heute: ausschalten/Fenster auf/neben dem rechner warten ob er tatsächlich ausgeht.

  5. "Haben Sie Anregungen zu dieser Datenschutzrichtlinie?" Ja, wie wäre es m. einem Changelog, Twitter, du Schelm. #Twitter

  6. Hi, probably a stupid simply task but this is my debut dealing with user/roles/permissions stuff within the frontend. Scenario: I have some (frontend) users tied to applied user roles (with appropriate permissions). These users have limited access (by those user roles/permissions) to the frontend views (provided by a custom frontend login form). Now there is a simple message list with several message items. Every page for single items comprises a field with a checkbox group (build as pages, s. https://processwire.com/talk/topic/313-checkbox-group-for-field/) which enables to assign any combination of user roles to a single item. Setting values by hand within the frontend template works smart: // Notice: "wpi1" e.g is the name of one checkbox page // Find every page (checkbox) with given properties $res = $pages->find("parent=/tools/partners/, name=wpi1"); // or "name="wpi1|wpi2|..." // Notice: Spares other selectors for this example $items = $pages->find("partner_membership=$res"); // Iterate and show the list(items) foreach($items as $item) { ... } But of course i'd rather set these values from the properties of the logged in user. And this is where i stalled. if($user->isLoggedin()) { 1a. // collect user roles for this user? $current_user_roles = $user->roles; or 1.b // getting $user permissions directly? $current_user_permissions = $permissions->find("user=$user"); }
  7. Ich lass jetzt mal eine Runde Kaffee aus. #lasttweet

  8. Für jede "Schiedsrichterdiskussion" eines Kommentators 5 € in die Phrasenkasse - und alle Favelas hätten marmorgeflieste Schulen. #wm2014 #

  9. Bloß nicht der Hase sein, dachte sich der suchmaschinengetriebene Journalisten-Igel: http://t.co/tKrv36GXwe #spon http://t.co/SzpObbdruR

  10. @adrain Thanks for your answer! I suppose my explanation was a bit unclear. I need to get the choosen textformatters of the field the editor is applied to. So there is no known field name at this point. But your post helped to get me on the right track. Thank you for that! Finally i managed to get this done. Works so far. (Excerpt) File: InputfieldMarkItUp.module protected $defaults = array( 'skins' => 'simple', 'set' => 'default' // => html ); public function init() { foreach($this->defaults as $key => $value) $this->set($key, $value); // set 'textformatters' array to current object $this->set('textformatters', array()); parent::init(); } public function ___render() { $config = $this->defaults; // edit config var 'set' according to the available textformatter(s) if (in_array('TextformatterTextile', $this->textformatters)) { $config['set'] = 'textile'; } ... } Next task will be how to substitute the link and image functionality, so the editor provides insertion of internal links and media stuff. This might will raise some further questions, i am afraid ;-)
  11. Hi, first, i am rather new to processwire (build one website with it so far) and very excited about the possibilities it offers. I am playing a bit with building a inputfield module for the markup editor MarkItUp! (http://markitup.jaysalvat.com/) which i like to use instead of this WYSIWYG stuff. Base implementation of the module is going well. But of course the fun starts by providing a switch between HTML, Markdown and Textile formats according to what textformat the user has choosen within the field edit (detail tab). As MarkItUp! organizes textformater in separate folders sets, i need to poll the textformatter setting of a field. This is where i fail. Searched the API but cannot find out how to poll related attributes and values for the field which inputfield type is set to MarkitUp. Hope my description is precise enough. Would be great to get some advice of you guys!
  12. Man fühlt sich irgendwie schäbig, wenn man in Sachen Netzneutralität Seite an Seite Republikaner steht. http://t.co/QWciEtfSwP

  13. Vergessene Konsolen-Logs in Live-Seiten sind eine dankbare Handreichung für investigative Kritik. http://t.co/FQB8FM6QI5

  14. "The microsite will use a parallax-like design to create a more fun experience and developed with mobile first in mind." Ja, watdennu.

  15. Moderatoren von Snooker Veranstaltungen gelingt es mühelos mir drei - sechs "Hä?"'s durch und innerhalb eines Satzes zu entlocken. #snooker

  16. Strange, if i delete that line, everything's fine. Sort of weird. But anyway, i got the module up and running*. Thank you very much for you time and answer! *) I'd love to see markItUp! as a module. Combines the best of both, source control and user smoothing ;-)
  17. @netcarver Using your module would be great. Unfortunately i'm not be able to install the module with the dependency message "PHP Version >= 5.3", although i am (definitely) on PHP 5.4.21. I am not sure this is strictly related to this module (i am a newbie to PW, first project), but being a bit stranded what to do. Latest PW (2.4), freshly zip download of the Textile module. Thx in advance!
  18. Die Normalität des Unlogischen. http://t.co/1WZBGbpmJr

×
×
  • Create New...