[00:44] fabricius joined #tikiwiki [01:57] marclaporte joined #tikiwiki [04:32] Tiki-KGB 03nkoth r47691 10trunk/lib/ 10cache/cachelib.php 10cache/memcachelib.php [04:32] Tiki-KGB [FIX] Do not try and use memcache even if pref is enabled if memcache is disabled on server, otherwise fatal error [04:54] Tiki-KGB 03nkoth r47692 10trunk/lib/core/Tiki/Command/RedactDBCommand.php * [FIX] more redactor fixes [05:26] Tiki-KGB 03nkoth r47693 10trunk/lib/core/Tiki/Command/RedactDBCommand.php * [ENH] more redacting [05:46] chibaguy joined #tikiwiki [07:30] marclaporte joined #tikiwiki [08:25] fidel joined #tikiwiki [08:26] fidel good morning - i am just realizing that 1 single article in our tiki does not show the categories-tab for a specific user [08:26] fidel this never happened before - nor does it happen for this user on other articles [08:26] fidel any idea? [08:27] fidel its a 9.6 installation? [08:27] fidel -? [08:43] marclaporte joined #tikiwiki [08:45] marclaporte joined #tikiwiki [09:09] fidel solved [09:41] redflo joined #tikiwiki [10:48] pianoliv joined #tikiwiki [10:52] Tiki-KGB 03xavidp r47694 10trunk/templates/wizard/admin_wiki.tpl * [FIX]Missing tr tags and unify string for same link [10:55] Tiki|bot New Forum Posts: problem with pictures in file galeery after change version tiki. - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=49283 [10:56] Tiki-KGB 03xavidp r47695 10trunk/lang/ca/language.php * [TRA]Conflict resolved and a few strings improved [11:04] Tiki-KGB 03xavidp r47696 10trunk/ 10templates/wizard/admin_wysiwyg.tpl 10lib/prefs/wysiwyg.php [11:04] Tiki-KGB [MOD]Show description inside the info popup box to clean the interface, as in other screens. The other strings are kept as such since they are too specific for that screen to choose between to options (showing the differences between the two). [11:24] redflo joined #tikiwiki [12:04] Tiki-KGB 03xavidp r47697 10trunk/templates/wizard/admin_jcapture.tpl * [FIX]Add missing tr tags [12:11] jonnyb joined #tikiwiki [12:58] Tiki-KGB 03nkoth r47698 10trunk/lib/core/Tiki/Command/RedactDBCommand.php * [FIX] prevent duplicate key errors [13:01] xavi joined #tikiwiki [13:45] Tiki|bot New Forum Posts: "require_once(lib/init/initlib.php): failed to open stream" Issues - http://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=49284 [14:04] arildb joined #tikiwiki [14:12] rodrigoprimo joined #tikiwiki [14:27] xavi arildb ? [14:27] arildb Hi xavi [14:27] xavi Hi Arild [14:28] xavi I've created a User Wizard with a few screens, but I?m missing something (beyond my skills) because the settings are not being stored [14:29] xavi I was wondering whether commiting to trunk (it doesn't break anything; it's self contained, etc), or send the files to you first through email so that you can review what may I be missing [14:30] Tiki-KGB 03jonnybradley r47699 10trunk/lib/userslib.php * [FIX] users: Missing operators from SQL query [14:30] xavi I copied most logic from the equivalent files for user preferences (php & tpl), but I'm unsure about forms: where the data of the form be submitted: to "tiki-wizard_user.php" or to the general "tiki-user_preferences.php" file [14:31] arildb Have you set the method isEditable = return true. Otherwise the prefs are not saved [14:31] xavi oups, nope :-) [14:31] xavi I'll try [14:31] arildb That' probably the error [14:33] xavi mmmm, not enough [14:33] xavi the first screen to set the "Real name" saves nothing [14:34] arildb commit it and I will take a look [14:34] xavi and in fact, it isn't retrieveing the "System Administrator" name that it contains when you visit the tiki-user_preferences.php [14:34] xavi ok, thks [14:39] xavi commited [14:39] xavi bbl (lunch time) [14:40] Tiki-KGB 03xavidp r47700 10trunk/ 10(11 files in 3 dirs) [14:40] Tiki-KGB [NEW]Basic structure to create a User Wizard to allow users set up their basic settings (depending on the general settings enabled in the site). So far, it's not linked from anywhere else. Work in progress (commit early, commit often), to be reviewed by arildb (thanks) [14:55] Tiki|Log joined #tikiwiki [14:55] Topic for #tikiwikiis now Tiki Wiki CMS Groupware - the only Free Web App with the most built-in features & the most open Open Source software community! Tiki 11.0 (Vega), 10.4, 9.6 & 6.12 LTS is out! Question? Just ask! We log the channel @ http://irc.tiki.org (start line with [off] to exclude message from log) [14:56] Tiki-KGB 03jonnybradley r47701 10trunk/lib/ 10userslib.php 10smarty_tiki/modifier.avatarize.php 10core/Services/User/Controller.php [14:56] Tiki-KGB [REF] userinfo: Move code to build the link for the user-info popup into userslib (plus a small comment correction in the controller) [15:01] rodrigoprimo joined #tikiwiki [15:16] chibaguy joined #tikiwiki [15:24] arildb back xavi? [15:24] xavi hi arildb, yes [15:24] arildb I had a look ... a couple of comments [15:24] xavi ok [15:25] fabricius joined #tikiwiki [15:25] arildb 1) If the page alters any preferences, return true in isEditable [15:25] arildb 2) >Do not die or redirect from a page handler. Issues should be resolved differently and allow the user to continue [15:26] xavi ok [15:27] xavi however, I do not know what to do instead to "die", when errors are found [15:27] arildb 3) The "structure" is a bit wrong. In onSetupPage, do not set preferences, use {preference=blabla} in the .tpl file. Do saving of "custom values" in the onContinue function. Preferences are saved automatically, as long as isEditable returns true [15:27] arildb die will stop the processing without any form of cleanup [15:28] arildb In the wizard pages, the user should be allowed to continue [15:29] arildb I will commit my (minor) changes [15:29] xavi thanks [15:30] xavi I got quite lost in ./lib/wizard/user_preferences_info.php attempting to rescue as much logic from the corresponding tiki-user_preferences.php [15:31] arildb he he...yes a litlle monster that one [15:31] xavi :-) [15:31] xavi thanks for your help (limited skills set here, I told you) [15:32] Tiki-KGB 03arildb r47702 10trunk/ 10(5 files in 2 dirs) [15:32] Tiki-KGB [ENH] Some alterations to make the new userpages more correct. [15:32] Tiki-KGB The "structure" is a bit wrong. In onSetupPage, do not set preferences, use {preference=blabla} in the .tpl file. Do saving of "custom values" in the onContinue function. Preferences are saved automatically, as long as isEditable returns true. [15:32] Tiki-KGB I have not updated that. [15:32] xavi but since the accident, it happens every now and then that I have a few hours per day quite free for things like these [15:33] arildb xavi: How do you intent to trigger the user wizard? [15:33] xavi no idea yet, step by step [15:33] arildb yes [15:34] xavi I thought there was already a way to launch it for new users, but I'm wrong, it's only in cases where "user registration" is validated by admins. In such case, there is a preference to seet the url to send the users once their accounts are validated [15:34] xavi bbl [15:35] chkpnt joined #tikiwiki [15:35] chkpnt Hi. Here is AutoLink enabled. How do I suppress a link to an external page? [15:36] chkpnt thought it is ))...(( but doesn't work [15:42] xavi hi chkpnt. In the old days, ]...[ worked for external pages [15:43] ricks99 )) (( is only for internal pages [15:43] xavi in present times, if ]...[ doesn't work for you, you can try (maybe) ~np~ http://example.com ~/np~ ? [15:43] xavi hi ricks99 [15:43] ricks99 hiya xavi [15:44] ricks99 chkpnt: do you want to supress the external link globally? or just for a specific instance? [15:45] xavi the other day I thought: "hey, Rick has'nt said anything about the Admin Wizard (yet)". [15:45] ricks99 lol [15:45] xavi ricks99: too busy with the books? [15:45] ricks99 mixed feelings.love the idea, think it is a step in right direction. but i think i came into the conversation too late. will wait and see [15:46] ricks99 books... sigh [15:51] jonnyb joined #tikiwiki [15:59] chkpnt ricks99: only one specific link [15:59] chkpnt xavi: thanks. I'll give it a try. [15:59] ricks99 iirc, will need to use the ~np~ [16:07] xavi arildb, I'm checking for instance at user_preferences_notifications.php, and they seem to be not defined. I.e., I set: {preference name=user_wiki_watch_editor} in the tpl, and then I get in the page: "Preference user_wiki_watch_editor is not defined: [Error]" [16:08] Tiki-KGB 03jonnybradley r47703 10trunk/ 10lib/core/Services/User/Controller.php 10lib/userprefs/userprefslib.php 10templates/user/info.tpl [16:08] Tiki-KGB [FIX] userinfo: Correct last login and improve label and round distance to nearest metre. [16:14] chkpnt left #tikiwiki [16:16] Tiki-KGB 03xavidp r47704 10trunk/templates/wizard/user_preferences_notifications.tpl * [FIX]Fixed syntax for preference definition in the wizard [16:40] Tiki-KGB 03jonnybradley r47705 10trunk/ 10lib/userslib.php 10lib/smarty_tiki/modifier.userlink.php 10templates/modules/mod-last_visitors.tpl [16:40] Tiki-KGB [ENH] user-info: Use same service for userlink modifier popups as is now on avatars. Still TODO: caching and show "idletime" (if still needed) [16:44] Tiki-KGB 03xavidp r47706 10trunk/lib/wizard/pages/user_preferences_info.php * [MOD]Remove the fat and leave file small to improve organically step by step [16:45] Tiki|bot New Forum Posts: Running TikiWiki behind a frontend - http://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=49287 [17:24] Tiki-KGB 03xavidp r47707 10trunk/lang/es/language.php * [TRA]Conflict resolved [17:40] Tiki-KGB 03jonnybradley r47708 10trunk/templates/vimeo/upload.tpl [17:40] Tiki-KGB [FIX] vimeo: Remove busy modal from upload form before post-processing (in case something goes wrong) [17:40] Tiki-KGB 03jonnybradley r47709 10trunk/templates/trackerinput/files.tpl [17:40] Tiki-KGB [FIX] vimeo: Create reference to vimeo file if "uploaded" by entering the URL, and change the label accordingly [17:58] Tiki-KGB 03jonnybradley r47710 10trunk/templates/vimeo/upload.tpl [17:58] Tiki-KGB [FIX] vimeo: Another fix for webkit browsers adding uploaded files twice in tracker fields [18:14] Tiki-KGB 03jonnybradley r47711 10trunk/lib/filegals/filegallib.php [18:14] Tiki-KGB [FIX] vimeo: Better error reporting on delete (still doesn't delete the filegal object, change the mime-type to remove "orphans" - better solution to come) [18:36] ricks99 anyone know how to make the images "clickable" when using the {carousel} plugin? [19:04] arildb joined #tikiwiki [19:10] xavi polom [19:10] arildb Hi xavi [19:11] xavi hi arild [19:11] xavi I still don't get the user wizard to work, after the prefs have been converted to {preference name=value} [19:11] jonnyb hi xavi [19:12] arildb You have to move all processing to the onContinue method. [19:12] xavi hi jonny@irc [19:12] xavi I get something like: "Preference user_wiki_watch_editor is not defined: [Error]" [19:12] arildb In the onStartup method, only decide what should be shown, e.g. hide some prefs, because they don't apply. [19:13] xavi when viewing the page [19:13] xavi example: ./lib/wizard/pages/user_preferences_notifications.php (the last one in the user wizard) [19:13] arildb hm-m [19:13] xavi I'm missing something to check current values [19:14] xavi or maybe those user prefs work differently than site prefs [19:14] arildb I am not sure, but I believe it's one big prefs space [19:16] Tiki-KGB 03jonnybradley r47712 10trunk/lib/filegals/filegallib.php [19:16] Tiki-KGB [MOD] vimeo: If remote delete fails continue to remove the tiki object but report the problem in more detail [19:16] xavi mmm, they may go into two different mysql tables, fyi (tiki_preferences vs tiki_user_preferences ?) [19:16] arildb In user_preferences_notifications.tpl, the preferences are not defined. [19:16] arildb Instead it used input type="checkbox" [19:17] xavi svn up [19:17] arildb This setting must be saved explicitly in the onContinue method, as I doubt the common prefs saving will work [19:17] xavi that was changed in r47704. Ensure you have this revision for this tpl file [19:17] arildb updating [19:18] arildb yes, different now [19:18] arildb checking user_wiki_watch_editor [19:19] xavi I confirm that user prefs are stored not in tiki_preferences but in tiki_user_preferences mysql table [19:19] arildb xavi user_wiki_watch_editor does nopt seem to behave like a regular pref. So, you must do custom handling [19:20] arildb That means.. [19:20] arildb 1) add the input in the .tpl file, e.g

{tr}Wiki{/tr}

[19:20] arildb 2) in onContinue, trap $_REQUEST['"user_wiki_watch_editor'] ... and process/save it. [19:21] arildb ...In onSetupPage you may want to check the existing value, and set the input ch3eckbox to the correct state [19:22] arildb undestandable? [19:22] xavi ok, I'll try [19:22] xavi and I guss I need to include_once ('lib/userprefs/userprefslib.php'); next to the require_once('lib/wizard/wizard.php'); [19:23] xavi s/guss/guess [19:24] arildb You will need to include this whereever needed. Note that onSetupPage and onContinue is called in 2 different "contexts", thus you cannot store values in the Wizard object [19:30] Telesight joined #tikiwiki [19:33] xavi arildb: I want to include "$tikilib->set_user_preference($user, 'user_calendar_watch_editor', 'y');" in the function onContinue [19:34] arildb ok...any problem? [19:34] xavi but tiki complains (error 500) that it doesn't know the function set_user_preference (which is defined in lib/tikilib.php [19:35] xavi do I need to include lilb&tikilib.php explicitly somewhere? (and if so, where) [19:35] arildb Is tikilib defined. try setting either: global $tikilib [19:35] xavi ok [19:36] arildb the recommended way to is to use TikiLib::lib('tiki') .... but global will work here [19:36] xavi ok, error 500 gone, but value not stored yet [19:37] arildb so, somethig is still wrong .... can you commit again? [19:39] xavi committing [19:39] xavi again, I only touched the last screen (Notification preferences), since it kind of the simplest one. Once it works there, I hope I learn how to fix the previous ones [19:40] Tiki-KGB 03xavidp r47713 10trunk/ 10templates/wizard/user_preferences_notifications.tpl 10lib/wizard/pages/user_preferences_notifications.php [19:40] Tiki-KGB [MOD]Changed syntax to user prefs again (they work differently than site prefs), and added some logic to catch values in function onContinue. thanks arildb [19:40] arildb ok, let me look at the parameter we talked about above [19:41] arildb xavi: I think I see the problem [19:42] xavi ok [19:42] arildb input type="checkbox" name="user_wiki_watch_editor" value="true" checkboxes uses "checked, not value. [19:42] arildb Let me make an adjustment and run a test, to verify [19:42] xavi ok [19:42] xavi thks [19:51] arildb seems I was wrong, when value is included in a checkbox input, that seems to be used and not the checkbox state ... [19:52] arildb making some more adjustments [19:53] arildb This, however means that it always returns true, which is incorrect [19:54] xavi mmmm, hey, I managed to make it save values [19:54] arildb what did you change? [19:54] xavi mmmm, but they are not stored in the right place, it seems (I can't see them when I visit tiki-user_watches.php ) [19:54] xavi let me commit [19:56] Tiki-KGB 03jonnybradley r47714 10trunk/templates/trackerinput/files.tpl [19:56] Tiki-KGB [ENH] vimeo: Add some rudimentary validation for vimeo URLs (error messages still appear in the wrong place if multiple files fields in the form, existing issue to fix soon) [19:58] Tiki-KGB 03xavidp r47715 10trunk/lib/wizard/pages/user_preferences_notifications.php [19:58] Tiki-KGB [MOD]Added notification lib, tikilib, and Setup initial wizard screen with their smarty values [19:58] xavi ^arildb [19:58] arildb running test... will check afterwards [19:58] xavi ok [20:04] arildb I think I have solved it, but running a new test now. [20:04] xavi ok [20:04] fabricius joined #tikiwiki [20:04] arildb The problem is the $user is (probably) not declared global in onContinue [20:05] xavi ah, ok [20:05] arildb xavi: Do you have a debugger? [20:05] xavi nope, I wish I knew how to set it up and use it [20:06] arildb yes, that simplifies things a lot + you get to see trace the execution path [20:06] xavi I managed to use a (visual) debug with Fortran a decade ago or so... but I never completed the phpstrom crash-course with success [20:07] arildb I am on Windows and uinsg vs.php, a Visual Studio plugin [20:08] xavi I can tell you I tried hard, I even helped with the documentation here, and I recorded the video myself from the live remote tutorial by robert Plummer years ago... but, I'm still not able to use it in my computers [20:08] xavi http://dev.tiki.org/PhpStorm [20:10] arildb The phpstorm page looks good, but I am on Windows for othe rprojects. So, Visual STudio is good for me [20:11] arildb xavi: works now [20:11] arildb let me commit [20:11] xavi great! :-) [20:11] rodrigoprimo joined #tikiwiki [20:13] arildb I did not test with your latest additions, but I see no conflict [20:13] xavi ok [20:13] arildb committed [20:14] Tiki-KGB 03arildb r47716 10trunk/ 10templates/wizard/user_preferences_notifications.tpl 10lib/wizard/pages/user_preferences_notifications.php * [FIX] A couple of fixes to make the user wizard page save the user prefs [20:17] xavi yes, arildb, it works :-) [20:17] arildb :-) [20:17] arildb then you should have a pattern to work from with the other pages [20:17] xavi yes. I'll see how far I can reach without any extra guidance :-) [20:18] arildb glad to help [20:18] xavi thanks ;-) [20:24] arildb xavi: In the onSetupPage you must also set $user as global, I believe [20:25] xavi ok, done, thanks [20:29] xavi arildb, btw, can I remove the
and submit button from the user_preferences_notifications.tpl ? [20:30] * xavi confused about how the values are sent somewhere without a "form"; and also confused about which php file they should be sent to (if form is needed: user wizard or tiki-user_notifications.php) [20:30] arildb yes, you must. I didn't see that. The form is added in the wizard frame's tpl file [20:30] xavi ok, thks [20:34] Tiki-KGB 03xavidp r47717 10trunk/ 10templates/wizard/user_preferences_notifications.tpl 10lib/wizard/pages/user_preferences_notifications.php [20:34] Tiki-KGB [FIX]Former form removed and global $user added also at onSetupPage function (thanks arildb) [20:34] Tiki-KGB 03yonixxx r47718 10trunk/templates/ 10(26 files) * [ENH]Adding css style instead of inline style [20:34] Tiki-KGB 03fmg-sf r47719 10trunk/doc/devtools/experimental/unzip/unzipper.php * [ENH] more versions offered to download [20:36] Tiki-KGB 03yonixxx r47720 10trunk/css/admin.css * [ENH]Adding css style for the admin wizard [20:36] Tiki-KGB 03yonixxx r47721 10trunk/styles/layout/design.css * [ENH]Adding css style for the user wizard [20:36] Tiki-KGB 03yonixxx r47722 10trunk/styles/BiDi/BiDi.css * [ENH]Adding css style so admin and user wizard are rtl compatible [20:38] Tiki-KGB 03yonixxx r47723 10trunk/templates/wizard/user_preferences_notifications.tpl * [ENH]Adding css style instead of inline style [20:40] rodrigoprimo joined #tikiwiki [20:44] xavi arildb (or rodrigoprimo , in fact ;-) ), I don't know how to store the new preferences of daily reports [20:44] xavi I managed to fetch the right values at display time [20:44] xavi but not to store the new preferences [20:44] xavi in fact, they are not user preferences [20:44] xavi and they are stored in another mysq table [20:45] xavi and this file ./lib/core/reports/Factory.php is not intuitive enough for me [20:45] arildb xavi: I am not familiar with daily reports, but I can do a quick check if I see something [20:45] xavi so... I'll commit what I have, at least [20:46] arildb Is it the setting on the panel: User Watches and preferences, called Use Reports? [20:47] arildb called: use_daily_reports ... so, it seems to be right [20:47] xavi yes [20:48] Tiki-KGB 03xavidp r47724 10trunk/lib/wizard/pages/user_preferences_reports.php * [MOD]Fetch the right values of Daily reports for the user. [20:54] arildb xavi: I think the option is set in lib\core\Reports\Users.php. Saving does not seem straight forward. Maybe you should send an email to the dev-list for advice [20:55] arildb ..or you can try to use Reports_Users directly [20:56] xavi thanks arildb. In fact, the father of current library is rodrigoprimo . Rodrigo, are you available for some help about how to store user preferences related to Daily Reports? [20:59] rodrigoprimo hi xavi [20:59] rodrigoprimo xavi: what are the new preferences? [21:01] xavi back [21:01] xavi hi rodrigoprimo :-9 [21:02] xavi s/:-9/:-) [21:02] xavi there is a new feature in trunk called Wizards, and we are settnig up a wizard for new users, so that a few preferences are shown to them at once [21:03] xavi therefore that means not new preferences for daily reports, but saving the same preferences from another file, the one related to the user wizard [21:04] xavi and we noticed that daily reports does not store the choices from the user as a user preference but "somehow differently" [21:05] xavi I mean, with user prefs, we can do something like: [21:05] xavi if (isset($_REQUEST['user_calendar_watch_editor']) && $_REQUEST['user_calendar_watch_editor'] == 'on') { $tikilib->set_user_preference($user, 'user_calendar_watch_editor', 'y'); } [21:06] xavi but with the user choices or daily reports.... no idea how to save the choices the user can make [21:13] marclaporte joined #tikiwiki [21:14] rodrigoprimo xavi: check tiki-user_reports.php for an example on how to save user reports preferences [21:15] rodrigoprimo xavi: let me know if you need more help [21:15] xavi ok, thanks rodrigoprimo. I'll check there [21:16] Tiki-KGB 03arildb r47725 10trunk/templates/wizard/admin_jcapture.tpl [21:16] Tiki-KGB [ENH] Make the selected jCapture gallery name bold. [21:16] Tiki-KGB Easier to spot [21:17] arildb enough for me today. See you tomorrow [21:18] marclapo1 joined #tikiwiki [21:26] Tiki-KGB 03xavidp r47726 10trunk/lib/wizard/pages/user_preferences_params.php [21:26] Tiki-KGB [MOD]Added missing code borrowed from tiki-user_preferences.php. get values placed at onSetupPage; set values placed at [21:26] xavi the commit message should end with: "...at onContinue" [21:29] fabricius reverend [21:31] xavi rodrigoprimo: so easy. Thanks, that was the file with the magic to save these preferences. It works :-) [21:31] rodrigoprimo xavi: great! :) [21:32] xavi once you ever test trunk again, you'll see the admin Wizard showing up the first time you log in as admin :-) [21:32] xavi something like: https://doc.tiki.org/Admin+Wizard [21:32] xavi and we are towards having a basic User Wizard in place also :-) [21:33] xavi arildb did the magic with the infraestructure and first working example [21:39] Emenems joined #tikiwiki [21:40] Tiki-KGB 03xavidp r47727 10trunk/ 10templates/wizard/user_preferences_reports.tpl 10lib/wizard/pages/user_preferences_reports.php * [FIX]Daily report settings are saved properly. Thanks rodrigoprimo [21:51] xavi ok, done for the day. cheers [21:51] xavi left #tikiwiki [22:38] Caarrie joined #tikiwiki [23:50] Tiki-KGB 03nkoth r47728 10trunk/ 03lib/core/Tiki/Command/BackupFilesCommand.php 03lib/core/Tiki/Command/DumpDBCommand.php 10console.php * [ENH] Add ability to generate backup and db dump from console [23:59] fabricius joined #tikiwiki