[01:43] amette_ left #tikiwiki [01:53] fabricius joined #tikiwiki [01:59] torsten1 joined #tikiwiki [04:36] Caarrie joined #tikiwiki [05:23] torsten1 joined #tikiwiki [05:25] torsten1 joined #tikiwiki [09:02] Kolle joined #tikiwiki [09:52] Kolle good morning luciash :) [09:52] Kolle im back at it again [09:52] Kolle today its going to work!! [10:14] robertokir joined #tikiwiki [10:53] fabricius joined #tikiwiki [11:20] luciash polom [11:24] fabricius bolow [11:30] Kolle what language is this guys? ^^ [11:30] jonnyb joined #tikiwiki [11:44] fabricius Kolle: English! :) [11:44] amette_ joined #tikiwiki [11:45] fabricius Kolle: Iam sure, you are from Germany, right!? [11:45] Kolle polom and bolow is english? ;D [11:45] Kolle yes im from germany [11:48] jonnyb polom [11:48] jonnyb polom is "Tiki" :) [11:48] Kolle how that? [11:51] jonnyb see https://tiki.org/glossary Kolle, and welcome! :) [11:52] Bsfez joined #tikiwiki [11:57] Kolle hey johnnyb, thank you :) [11:58] amette_ left #tikiwiki [11:58] amette_ joined #tikiwiki [12:00] Bsfez polom [12:00] jonnyb hi Bsfez [12:00] Bsfez Hello Jonnyb :) [12:00] Bsfez Thanks for the push ! [12:04] Kolle ok you guys, today we are more people. and more people = more brains. i almost achieved what i wanted to achieve.. i have the php script which generated 4 random digits. now i want the 4 digits to be written into a lets say 4digits.tpl file.. any ideas how to do this? [12:05] Kolle there seem to be 2 commands in php which can provide this.. fwrite and file_put_contents [12:05] Kolle but i dont know how to do this exactly :( [12:10] jonnyb Kolle: a .tpl file is a smarty template, so maybe you need to look at $smarty->assign('varname', $value) in your php? [12:11] Kolle hmm, my php is rather simple.. VERY simple.. i dont know where to find this smarty template. my 4digits.tpl is empty and should be filled with the 4 digits [12:11] Kolle [12:11] Kolle this is my whole php script [12:14] jonnyb Is this for a Tiki? There might be better ways to do this, like using a plugin [12:14] Kolle yes, its for tiki [12:14] Kolle the main aim is to generate a random 4 digit number using this php script [12:15] Kolle unfortunaetly, there is no straight plugin for this [12:15] Kolle or am i wrong? [12:15] jonnyb not that i know of, maybe try writing a little plugin? [12:16] jonnyb check this out https://dev.tiki.org/Hello-World#To_create_a_new_plugin [12:16] Kolle okay, i will! thank you [12:16] jonnyb sorry, i have to get on now, good luck :) [12:17] Kolle thank you :) [12:21] amette_ polom [12:21] jonnyb moloq amette_ [12:21] amette_ heya jonnyb :) [12:22] jonnyb amette_: did you meet Kolle? You might be neighbours (ish) [12:23] amette_ Yeah, I just wondered the same, no, we haven't met yet. Hi, Kolle! :) [12:23] amette_ From what I've read in here a while ago... you were discussing your needs with fabricius and luciash... you won't need a plugin... the cron-way makes sense in this case. [12:25] amette_ (Though nobody really understands, why you would want to hide your four precious digits in the source of the page... either you have an amazingly weird use case or it just doesn't make sense. But well, we're not here to judge. ;) ) [12:26] amette_ Hmm... and having thought just one minute more... a plugin actually still would make sense... it would be the proper way to include the file you generated via cron... so yes... you should look into a very simple plugin after all. [12:26] fabricius joined #tikiwiki [12:27] amette_ Then the process becomes: 1. Plugin reads contents of file into variable, 2. Plugin assign variable to Smarty, 3. Smarty template displays it (including the comment that hides it) [12:27] amette_ hi fabricius [12:27] jonnyb sorry i didn't read up on the whole use case, so possibly not the correct answer... [12:28] amette_ No, jonnyb, I think you're right. I was just thinking only of the first half of their process and you of the second, I guess. ;) [12:32] fabricius Hello jonnyb, luciash, amette_, Jyhem: following problem in Tiki 17 productive site (conference website) ... a usertracker to collect additional data at registration is in place and works ... users can display/view this data (only) when using plugin LIST with filter content={{user}} ... so far so good ... BUT ... I do not find a way to let the user edit his own data. [12:32] fabricius Is there any bug known? [12:33] fabricius I have another tracker on the same installation where registered users can input data and upload an abstract. there it works. [12:34] fabricius I do not find the difference apart from the one tracker is a usertracker and the other not [12:34] fabricius I am stuck [12:34] chibaguy joined #tikiwiki [12:34] chibaguy polom [12:36] amette_ moloq chibaguy [12:37] chibaguy hi amette_ [12:39] amette_ fabricius: isn't there a link from user preferences to edit the user tracker data? [12:42] amette_ left #tikiwiki [12:42] amette_ joined #tikiwiki [12:46] jonnyb hi fabricius and chibaguy [12:46] chibaguy hi jonnyb and all [12:46] jonnyb fabricius: are you using inline editable on the list plugin page? or a tracker plugin as well? [12:54] fabricius amette: yes there is a link, but that does not help. The user cannot view the tracker or the tracker-item ... only way to see the data is a wiki page with a {LIST()} on it and this data is plain text ... apart from the admin, who indeed sees and cn edit, but not the ordinary user of group Regsitered only [12:54] chibaguy jonnyb: question about List plugin GUI: Do some things need to be input by hand? I don't see "content" in the "filter" dropdown. (asking as a relative noob re List plugin). [12:55] amette_ jonnyb: have you ever noticed elasticsearch errors, when saving very long pages? It is enough to just fifty paragraphs of Lorem Ipsum and it will save, but not index properly. [12:55] fabricius jonnyb: I have inline=y in the LIST plugn. I do not have a PluginTracker in place. [12:55] amette_ It says: "Indexing failed while processing 'TestPage' (type wiki page) with the error “Parsing search query failed: “[tikidev_main_5a09a5901e714/qumzKzGwQVeV6tG1Z9vbWg] QueryShardException[failed to create query: ....... " [12:56] fabricius hi chibaguy [12:56] amette_ fabricius: sounds like an ordinary permission issue, no!? [12:56] fabricius I am unsure, cause I fiddled around with permissions a lot - categor permissions [12:56] jonnyb sorry all, back bad, need to lie down, bbl [12:57] fabricius be better soon jonnyb [12:57] jonnyb fabricius: do you have "owner can edit" set on the tracker properties? [12:57] amette_ fabricius: so give Registered explicit perms to do it and see if it works. [12:57] jonnyb thanks [12:57] fabricius amette_: the tracker has to be non public (contains personal data like address and acdemic background) [12:57] chibaguy jonnyb, no rush about my question - go lie down :-) [12:58] amette_ and yes: owner can edit + the auto-set user field needs to be in the tracker [12:58] amette_ fabricius: I know, I meant for testing. [12:58] fabricius I have set administrator and user can edit .. and user can edit his own item [12:59] fabricius I have done that, but will do again ... the problem is, that the user can see+edit his own item only at the point when he sees the other users items aswell [13:00] fabricius I do not get to the point in between - might be an error_40 (configurtion issue) or a bug, I don't know [13:00] Kolle hi amette [13:00] Kolle thank you for clearing up :) ill read further into the plugin thing now [13:01] amette_ :) [13:01] fabricius amette_: I will try again and document step by step what I did ... then I make a temporary page with url and post here ... thx for helping so far [13:01] amette_ fabricius : it works with your submission tracker... so I think it's a config issue and not a bug. [13:02] fabricius Kolle: where in Germany you are located about? I am in the very north west of Bavaria [13:03] Kolle aus paderborn, NRW :) [13:03] Kolle about 100km from dortmund [13:04] fabricius ah I know. Not very often u there. [13:04] fabricius But I knw where it is. [13:04] Kolle :) youre around würzburg/aschaffenburg? [13:05] fabricius If I am right, from here you have to pass Paderborn, if you go for a travel to check, if Bielefeld exists [13:05] Kolle hehe right [13:05] Kolle bielefeld, the town which "does not exist" [13:05] fabricius Yes I am directly in the center of Würzburg [13:06] Kolle small world ;) [13:14] Kolle hey guys, anyone of you maybe with some spare time right now? i struggle to create this plugin :( as i said, i have never coded anything in my life before. it makes no sense to me (the link on how to create plugins) [13:15] amette_ left #tikiwiki [13:15] amette_ joined #tikiwiki [13:17] fabricius If you are not a coder this will be a longterm and difficult task. I am not a coder either. [13:17] Kolle damn ;/ [13:19] fabricius I see it this way: you are working for a company and need some code snippet, respectively a simple plugin for your company. there are a number of sel-employed freelancer coders making a living of coding mainly Tiki stuff ... why you do not ask your company for a little buget and a coder like amette for a quote and then you as the employer get the ressources quickly that you need to do the job [13:22] fabricius and further more, generally this will not be custom coded, if not agreed differently. if the plugin makes sense for more than for only an extremely specific and rare use case, the code can be added to the legacy code, respectively upstream and you and your company have that at every next versions upgrade included ... saving maintaining costs from upgrade to upgrade. [13:23] fabricius so Kolle, go ahead and query with amette_, if you fnd that a good idea ... side effect: amette_ speaks German very well :D [13:24] Kolle good idea, but the problem is that i am an apprentice since 3 months.. my "boss" is a masters degree IT admin, so this code snippet would be very easy for him to create :( his philosophy is: give the new guy a rather difficult task and let him get the result himself. i managed to do all the tasks whch were given to me, but this one makes me struggle [13:24] Kolle i did not have to code anything besides now [13:25] fabricius Kolle: your job is not to DO everything yourself, even when it is high above your state of apprentice, but TO FIND SOLUTIONS: [13:25] Kolle good advice with amette as well, but i dont want to "steal" her time since she seems to be pretty busy [13:25] Kolle haha yeah well i have the solution, but i dont know how to achieve it [13:26] Kolle the only thing i am missing is how the php script will write the 4 digits into the .tpl [13:26] Kolle all i need is this step. when this step is done i can finish this job [13:27] amette It's not stealing, if it is being paid. ;) But yeah, I get the situation you're in.. and a Tiki-Plugin is actually a pretty good task in this situation! :) It's rather straight-forward and simple, but still complex enough to teach you a lot. [13:27] amette The Hello World page jonnyb linked earlier, should be pretty helpful. [13:29] fabricius You can go to your boss and make a presentation with all your findings and all waht you have done and solved and then what the necessary steps are, where you need support by other pros. [13:29] fabricius You can tell him: 2 options to finalise .. [13:29] fabricius a. you or another employed coder codes the plugin for me. advantage: no extra bill; disadvantage: time to get known the code of the software, upgrade issues / reintegration at every upgrade [13:29] fabricius b. a Tiki consultant / external Tiki coder is contracted. advantage: very quick result. very good fit in the existing code base. code is in place at any upgrade and co-maintained b the community disadvantage: none [13:32] fabricius Kolle: if it is only the task to write the digits in the tpl, I personally would solve it with an sh script in the command line and with enough time I would get ther trial and error in few hours or days on my own .. I just have not the time to invest horus or days for your comany and you are the apprentice [13:36] Bsfez joined #tikiwiki [13:36] fabricius First: it is your apprentice [13:36] fabricius Second: go and get a Linux Laptop or make a dual installation on yours [13:36] fabricius Third: do use other OS like Windows ONLY for stuff that you HAVE to do with software that is not available for Linux [13:36] fabricius Fourth: go and get used to the command line and sh magic asap!!! [13:36] fabricius Fifth: you can then present your boss the solution based on a command line script (easy!!!) and then suggest the options how to obtain a PHP plugin, where alternatively depending on what apprentice you do, you can say ... somebody else has to do the PHP or I'll do that after learning PHP, so in a few weeks or month. Until then it worls with sh [13:37] fabricius /s/worls/works [14:32] Kolle hey guys, i managed to create the plugin (i guess) [14:33] Kolle php seems to be not that bad :) [14:33] Kolle i can see the plugin in my wiki, but i cant check the "activate" box :( there is just the description, but no box whatsoever [14:33] Kolle where is the mistake? [14:34] Kolle i have full admin rights [15:08] fabricius joined #tikiwiki [15:32] Bsfez joined #tikiwiki [15:33] Bsfez joined #tikiwiki [16:05] amette_ Kolle : Do you have a function wikiplugin_include_info() at the top of your plugin? I think that's needed to get it to register properly with Tiki. [16:22] Kolle i hope [16:22] Kolle may i post my script here? [16:25] Bsfez joined #tikiwiki [16:27] Kolle ok i do not have the include string [16:27] Kolle i have this [16:27] Kolle function wikiplugin_codegenerator_info() { [16:27] Kolle codegenerator is the name of my .php file [16:30] Kolle OMG it works [16:30] Kolle somehow!! at least i can activate the plugin now [16:55] robertokir joined #tikiwiki [17:10] amette_ Good stuff, Kolle! :) [17:18] Kolle if you are curious, here is my script: [17:18] Kolle = 3.0 function wikiplugin_codegenerator_info() { return array( 'name' => tra('Codegenerator Plugin'), 'documentation' => 'http://www.portal.incony.de', // will add help link to https://doc.tiki.org/PluginHelloWorld 'description' => tra('Generates random codes between 1000 and 9999'), 'format' => 'wiki', // html or wiki: must be lower case; not any other value accepted 'prefs' => [17:19] Kolle ok, its not complete [17:19] Kolle if anybody is more interested, i could provide it through an online share or something like this [17:20] amette_ yes, please don't paste code here. there are pastebins on the web for this. [17:22] Kolle yes, sorry. thought so [17:22] Kolle thank you all again for helping me out [17:22] Kolle everybody helped me so big thanks!! <3 [17:22] amette_ You're welcome. Happy to hear it worked out! :) [18:14] robertokir joined #tikiwiki [19:25] Telesight joined #tikiwiki [19:46] Jyhem polom [19:55] Jyhem I see how I can sort LIST plugin results using {sort mode="tracker_field_f_122_asc"} but can I cascade sorting? Like sort by field 122, then 120? [19:55] Bsfez joined #tikiwiki [20:01] Jyhem can I set target=_blank using the [url|text] syntax? [20:01] Bsfez Arf... it was possible and I recall a bug [20:05] fabricius joined #tikiwiki [20:09] Jyhem ohh :-( [20:09] Jyhem anyway, I can always fall back on