-
Posts
528 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Beluga
-
I guess it comes down to whether PW uses any of these removed features: https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
-
Wow, I never would have thought of that. The unrelated problem of not being able to assign my superuser to a new role remains (the same behavior is in another site without any user template modifications). Yet in the other site my superuser also has the "blog-author" role.. Well, I can live with it.
-
So how do I get the "fullname" field to appear in the profile edit view? Even my superuser can't see it. Another strange thing I noticed: in preparation for CSV import of users, I added the title field to the user template (in addition to fullname). If I input a fullname and a title for my superuser + tick a checkbox to add a role, none of the values get saved!
-
Found solution to jScrollpane slowness from StackOverflow, the default speed is way too low. You have to define the wheel speed when you initialize the plugin like this: $('.scroll-pane').jScrollPane({ mouseWheelSpeed: 50 });
-
Module FrontendUser: login, logout and register users / members
Beluga replied to pwFoo's topic in Modules/Plugins
Maybe I'm a bit daft, but I can't figure out how to create a logout link. The regular ?logout=1 doesn't seem to work. So I'm looking at $fu->logout($redirectDestination); but don't know what to do with it. Plz help Edit: bah, I figured it out: if($user->isLoggedin()) { $fu = $modules->get('FrontendUser'); if (isset($_GET['logout'])) $fu->logout($redirectDestination); echo "<a href='?logout'>Logout</a>"; } Thanks again for the great modules Edit: bonus tip: $redirectdestination must be a url, so if you want to redirect to the front page after registering: $redirectDestination = $pages->get(1)->url; -
Progress: Added $calendar = wire('modules')->getModule('Calendar'); inside outputJsonEvents Now when I removed all the validations, I could get some action finally if ($input->get('jsonEvents') == 1) { if (is_null($input->get->start)) { if (is_null($input->get->end)) { Axed those ^^ and now the whole page seems to get served as json. Meaning I'm seeing the html as plain text. And I can see my test event beautifully appear at the top: [{"title":"testaa2","start":"2015-07-12T15:00:00+0300","end":"2015-07-12T16:30:00+0300","id":1095,"recurrence":0}] So what do I have to do to only feed that event as json to fullcalendar?
-
How would I verify the event pagE? Isn't this the call ProcessCalendarOma.js It is just an exact copy of ProcessCalendarAdmin.js
-
Nothing happens. Testing if the events are fetched ok in a basic way: $start_input = $input->get('start'); $end_input = $input->get('end'); // start / end dates $start = new DateTime($start_input); $end = new DateTime($end_input); $events = $calendar->expandEvents($start, $end); var_dump($events); I can see the events in the dump.
-
@lindquist: How would one go about having a read-only Fullcalendar with the events in the frontend I tried to mash something up using the admin stuff. I got Fullcalendar to load, but events don't show up. I got all the right stuff in my main.inc <link rel="stylesheet" type="text/css" href="<?php echo $templatesurl?>fullcalendar/fullcalendar.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatesurl?>css/ProcessCalendarAdmin.css" /> <script type="text/javascript" src="<?php echo $templatesurl?>scripts/jquery-2.1.3.min.js"></script> <script type="text/javascript" src="<?php echo $templatesurl?>fullcalendar/moment.min.js"></script> <script type="text/javascript" src="<?php echo $templatesurl?>fullcalendar/fullcalendar.min.js"></script> <script type="text/javascript" src="<?php echo $templatesurl?>scripts/jquery.blockUI.js"></script> <script type="text/javascript" src="<?php echo $templatesurl?>scripts/ProcessCalendarOma.js"></script> Here is my template for my calendar attempt: $calendar = wire('modules')->getModule('Calendar'); $content = <<<HTML <div id="CalendarAdmin-notification"></div> <div id="CalendarAdmin-calendar"></div> <div id="CalendarAdmin-tip"> <p class="date"></p> <p class="title"></p> <p>(Click to edit event)</p> </div> <div id="CalendarAdmin-new-event-dialog"> <p class="ca-ned-date"></p> <p>All event details can be edited afterwards by clicking the event in the calendar view</p> <fieldset> <label for="title">Title</label> <input type="text" name="title" id="ca-ned-title" /> <label for="starttime">Start</label> <input type="text" name="starttime" id="ca-ned-starttime" placeholder="HH:MM" /> <label for="endtime">End</label> <input type="text" name="endtime" id="ca-ned-endtime" placeholder="HH:MM" /> </fieldset> </div> <div id="CalendarAdmin-edit-event-dialog"> <p>What do you want to do?</p> </div> HTML; function outputJsonEvents($start, $end) { // generate events $events = $calendar->expandEvents($start, $end); // generate json event array foreach($events as $e) { $recurs = $e->event->get(Calendar::EVENT_RRULE_FIELD) != ''; $elem = array( 'title' => (string)$e->event->title, 'start' => $e->start->format(DateTime::ISO8601), 'end' => $e->end->format(DateTime::ISO8601), 'id' => (int)$e->event->id, 'recurrence' => $recurs ? 1 : 0 ); if ($recurs) { $elem['color']='purple'; } $json[] = $elem; } // TODO fix this - use new content type feature header('Content-type: application/json'); return json_encode($json); } function executeAjax() { // wire shortcuts $input = wire('input'); $pages = wire('pages'); ////////////////////////////////////////////////////////////////////// // jsonEvents request (eg. fullcalendar) if ($input->get('jsonEvents') == 1) { // FIXME proper validation if (is_null($input->get->start)) { throw new WireException("start time not specified"); } if (is_null($input->get->end)) { throw new WireException("end time not specified"); } // get date/time interval $start_input = $input->get('start'); $end_input = $input->get('end'); // start / end dates $start = new DateTime($start_input); $end = new DateTime($end_input); // generate a list of json events for fullcalendar return outputJsonEvents($start, $end); } } executeAjax(); include("main.inc");
-
While we're talking grid systems, I recommend everyone try out Lost Grid The guy behind Lost Grid is the original creator of Jeet. He has explored grid systems obsessively for years.
-
Creating permission based access to field languages
Beluga replied to alexcapes's topic in Multi-Language Support
http://processwire.com/blog/posts/language-access-control-and-more-special-permissions/ I guess this thread can be marked as solved -
Npm scripts will work for non-Windows users. Examples: https://github.com/keithamus/npm-scripts-example
-
Image and Video carousel using repeater field
Beluga replied to countchocula's topic in General Support
http://shouldiuseacarousel.com/ -
Creating permission based access to field languages
Beluga replied to alexcapes's topic in Multi-Language Support
http://processwire.com/blog/posts/field-permissions-overrides-and-more-2.6.2/ -
One thing missing is the ability to change default language after you have already created other languages and produced content. A very popular topic, if you search through the forums.
-
Module FrontendUser: login, logout and register users / members
Beluga replied to pwFoo's topic in Modules/Plugins
Just a note to all having to deal with a host that only offers 5.3: demand better service or switch hosts! It's not anything special these days to use multiple PHP versions on a Linux distro, newer than the one in the distro's repository. 5.3 is EOL for almost a year and simply a security catastrophe waiting to happen. Bottom line: any host that forces 5.3 on you is inept and not worthy of your/your client's money. -
I guess photobombing for a good cause is acceptable
-
http://y-designs.com/blog/php-cms-comparison-2015/
-
Updated local installation to PW 2.6.0. Tried to update core languages and failed. language_files field has Field - Overwrite existing files checked. Is it working for you guys? I noticed there was talk about removing the overwrite feature: https://processwire.com/blog/posts/processwire-2.5.7-core-updates/ Edit: I messed up.. I think I was trying to upload the core files using the site files field Too early in the morning I guess.
-
Creating permission based access to field languages
Beluga replied to alexcapes's topic in Multi-Language Support
I have this quite a brittle solution, which is somewhat related: https://processwire.com/talk/topic/7588-admin-custom-files/page-3#entry92219 (CSS hides all but default language) -
They did start using Symfony components, though, so they're not completely immobile: http://symfony.com/projects/phpbb Also, instead of those awfully hacky mods they now have extensions. "Unlike modifications, the extensions system for edit-less changes in phpBB 3.1 makes customising phpBB easier than ever." <- that answers your "too hard to customize" worry You can even use Twig for styles now. AJAX gives perf improvements. The full launch hyping page. I didn't intend to start a marketing campaign for phpBB, but somehow it happened! I don't even host a phpBB forum currently!
-
recurrenceinput is from the Plone project. It has jQuery Tools Dateinput & Overlay dependencies. jQuery Tools is not maintained anymore. Latest rel. is from 2012: https://github.com/jquerytools/jquerytools/releases/tag/v1.2.7 (I used to use it back in 2010-11) Here is a screenshot from the recurrenceinput interface: http://jquer.in/jquery-plugins-for-html5-forms/recurrence-input/ In the screenshot I recognize the jQuery tools overlay interface. I guess I'll add an issue and ask, if they would remove the dependency. Edit: heh, it seems I don't have to: https://github.com/collective/jquery.recurrenceinput.js/issues/22
-
I'm interested in why the new responsive phpBB 3.1 is not an option for you.
-
Let's throw another comparison table into the mix https://en.wikipedia.org/wiki/Comparison_of_Internet_forum_software
-
The newest piece of news is that FluxBB is fusing with Flarum Btw. phpBB 3.1 is responsive.