#foswiki 2016-11-18,Fri

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
GithubBot[distro] gac410 pushed 1 new commit to Release02x01: https://git.io/vX7l4
distro/Release02x01 f87da94 George Clark: Item14219: Check in PatternSkinCssCookbookSidebarToggle...
[00:38]
***GithubBot has left [00:38]
FoswikiBothttps://foswiki.org/Tasks/Item14219 [ Item14219: Add WebSideBar toggle cookbook contributed by [[Main.StefanKrüger][StefanKrüger]] ] [00:38]
........................ (idle for 1h55mn)
RiskRewardHi, I'd like to put a banner at the top of a topic. I'm using "Set VIEW_TEMPLATE" in the topic to display the banner. Strangely, when I look at earlier revisions of the topic, they all show the banner too. I only want the banner to appear from (say) the fifth revision on. How do I do that? [02:33]
gac410Unfortunately Set statements are *always* taken from the current revision. Otherwise old revs would have possibly stale ACLs.
I'm not sure you can even use %SET% macro to set view template. Templates are already in place before macros are rendereed.
[02:36]
RiskRewardCould I get the view template to only display if there is something in the text of the current revision? [02:47]
gac410Maybe you could check the revision in an IF statement?
(sorry speaker muted and i've been multitasking.)
[02:58]
RiskRewardThanks. I'll go and have a go. [02:59]
......... (idle for 42mn)
Hi, I've set a preference called hidden " * Set HIDDEN = This will be invisible in the output", but the following query in the same topic doesn't produce anything "%QUERY{"{HIDDEN}"}%", any idea why? [03:41]
........... (idle for 51mn)
gac410hm Hi RiskReward. HIDDEN isn't a formfield. I think the QUERY macro works on formfields, not settings.
%HIDDEN% would expand it, not %QUERY%
[04:32]
RiskRewardThanks. [04:35]
........... (idle for 50mn)
***gac410 has left [05:25]
......... (idle for 44mn)
GuilainC_away is now known as GuilainC [06:09]
........... (idle for 52mn)
memic_whats the easiest way to add custom js files to foswiki topics?
own plugin?
[07:01]
......... (idle for 44mn)
***GuilainC is now known as GuilainC_away [07:45]
memic_is ADDTOZONE workign in templates? [07:47]
....................... (idle for 1h51mn)
JulianLevensmemic_ yes ADDTOZONE works in templates [09:38]
memic_hm
tried to add a js file
wasn working
is there a log where failed macros are logged?
[09:39]
JulianLevensIts found in foswiki.tmpl
Some failures will be logged in you web server or fw error logs
[09:40]
memic_%ADDTOZONE{"script"
id="MY::TEST"
text="<script src='%PUBURLPATH%/%SYSTEMWEB%/node_modules/exif-js/exif.js'></script>"
requires="some-id-that-exists-in-script"
}
[09:43]
JulianLevensWell that looks reasonable but I've not used addtozone much, sorry
Try using /" instead of ' in your code
[09:47]
memic_ I mean \" of course
text="<script src=\"%PUBURLPATH%/%SYSTEMWEB%/node_modules/exif-js/exif.js\"></script>"
[09:53]
stefan_slightmemic_: that worked for me...
%ADDTOZONE{
"script"
id="myownSkin/CSSFonts"
requires="PatternSkin/pattern"
text="
<style type='text/css' media='all'>
@import url('%PUBURLPATH{topic="System.myownSkin"}%/fonts/myfont_webfontkit/load_as_family.css');
</style>
"
}
[10:01]
.... (idle for 15mn)
foswiki_irc6can I turn my Foswiki user account to admin account through the CLI? I have root access to the server running Foswiki but have only a Foswiki user account. I'm trying to upgrade from 2.0.2 to 2.1.2
because according to the upgrade instructions I need to get to configure interface to make some changes
could anybody help me with that?
[10:16]
zak256@foswiki_irc6: You can edit lib/LocalSite.cfg manually. It contains all the foswiki configuration.
I think a quick fix would be adding your WikiUser to {FeatureAccess}{Configure}
The correct way would then be adding yourself to AdminGroup I think, because this is configured in {SuperAdminGroup}. I may be corrected if I am wrong.
[10:20]
***ChanServ sets mode: +o MichaelDaum [10:28]
foswiki_irc6I don't see any usernames in LocalSite.cfg, can I just add mine somthing like this? $Foswiki::cfg{FeatureAccess}{Configure} = 'myUserName'; [10:31]
zak256If myUserName is your current WikiUsername then yes [10:35]
foswiki_irc6right, that's what I meant. Thank you much, I'm gonna try that [10:36]
great, now I can access the configure interface [10:48]
zak256Glad to read. You should add yourself now to AdminGroup
Then you can reset {FeatureAccess}{Configure} = 'myUserName' again
[10:49]
foswiki_irc6I'm not able to change AdminGroup, it says on the Wiki groups dashboard: only members or admins may update group. [11:00]
zak256Hmm... don't know about that. Maybe you can edit data/Main/AdminGroup.txt manually as well then. There should be a line %META:PREFERENCE{name="GROUP" ... value="herePutYourWikiUser"}% [11:12]
foswiki_irc6yes, that worked as well, thanks again [11:25]
.... (idle for 15mn)
MichaelDaumso where does STDERR in FastCGIEngineContrib go now?
I can't do poor man's debugging anymore
my plugins use print STDERRs here and there ... yet the docu in master now recommends to print to $engine->{fhErr} ... I don't think this is handy
i.e. die() and Carp's methods all print to STDERR
fhERR seems to default to STDERR ... alas nothing reaches the error.log anymore
[11:40]
.............. (idle for 1h9mn)
this is how far I've analyzed it: https://foswiki.org/Tasks/Item14221
applies to both, master and 2x01
[12:53]
...... (idle for 26mn)
GithubBot[TopicInteractionPlugin] MichaelDaum pushed 1 new commit to master: https://git.io/vX5BO
TopicInteractionPlugin/master 8a2f33f MichaelDaum: Item14222: oo-ify core, as well as many other improvements...
[13:20]
***GithubBot has left [13:20]
FoswikiBothttps://foswiki.org/Tasks/Item14222 [ Item14222: oo-ify core, as well as many other improvements ] [13:21]
....... (idle for 31mn)
***ChanServ sets mode: +o gac410 [13:52]
gac410MichaelDaum: ... vrurg and I did test poor mans debugging on fcig, and it seemed okay. I thought I noticed once I was missing stderr, but could not recreate. [13:56]
memic_hm @ stefan_slight this ADDTOZONE isnt working [13:58]
MichaelDaumgac410, may be I am missing some aux-mute yadda?
there are actually two issues in 14222: (1) no more stderr, (2) POST broken
[13:58]
***ChanServ sets mode: +o gac410 [13:59]
MichaelDaumsorry not 14222
this is 14221 of course
I am quite sure that not supporting "print STDERR" anymore is the wrong way anyway
[13:59]
gac410y, this is too risky, I was uneasy, we should revert. [14:01]
MichaelDaumok
die() and carp would be much happier also
there seems to be some hidden dependency on STDIN working normally as part of CGI.pm
[14:01]
vrurgMichaelDaum: STDERR is duped into fhERR. Must be working. [14:02]
gac410y. no risk for 2.1.3, Better to just not capture the email wizard - it's only once. [14:03]
MichaelDaumvrurg, yea I know. thats what I dont understand either.
maybe you guys find the real bug
what I've used to verify the bug was a my @keys = $request->param(); print STDERR "keys=@keys\n"; in a POST request
for some reasin CGI.pm wasn't able to parse POSTDATA into meaningful params
[14:03]
vrurgCan it wait till next week? This week is wasted for me but I can do more testing on Monday. [14:05]
MichaelDaum@keys then was just the list if lines in it ... including the binary payload of an upload ...
vrurg, yes sure. I've applied those two patches to my engine and am able to work again.
[14:05]
memic_now the js file is loading but in the template only
i want to have it in the topis using this template
what in doing wrong?
[14:05]
foswiki_irc6I'm trying to upgrade from 2.0.2 to 2.1.2 the following. I followed the steps on the instructions (http://foswiki.org/Download/FoswikiRelease02x01x02#Upgrade_Instructions) but get following error when trying to visit configure interface: Software error: flush(): couldn't store datastr: store(): couldn't open '/var/www/foswiki/working/tmp/cgisess_59fcd2fe7ee9f26530120b07295a8a9b': Permission denied at /var/www/foswiki/lib/Foswik [14:06]
vrurgOk, gac410 – don't revert then. Perhaps we can still have it into the right way. [14:06]
foswiki_irc6what am I doing wrong there? any help? [14:06]
memic_foswiki_irc6, seems like a permission problem [14:06]
MichaelDaumMichaelDaum realizes to be the only one doing daily wiki work on foswiki/master
maybe STD* are duped into fh* too late and CGI.pm still uses the old ones?
[14:07]
foswiki_irc6after I exctracted the upgrade I can't see neither foswiki page nor config interface [14:09]
vrurgMichaelDaum: could you please add steps to reproduce the problem to the task? [14:09]
memic_foswiki_irc6, check if the user which is running the cgi has write access to tmp [14:09]
foswiki_irc6how can I check that? [14:09]
vrurgMichaelDaum: I don't think it's too late because CGI gets initialized with the correct handle. [14:09]
memic_hm this is standart unix stuff
hm anybody can tell me howto get js files into topics
^^
[14:10]
gac410foswiki_irc6: If you extracted the upgrade as root, you've changed ownership on lots of files. Need to chown -R someuser:someuser thefoswikidirec [14:13]
foswiki_irc6yes, I extracted the upgrade as root [14:14]
MichaelDaum%ADDTOZONE{"script" id="foobar" requires="..." text="<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/FooBarPlugin/some.js'></script>" }%
memic_, ^^
[14:14]
memic_foswiki_irc6, what rights do your files have now from the old foswiki? [14:15]
gac410foswiki_irc6 ... what user does you web server use? www-data, apache, www ... Depends on which OS you are running [14:15]
memic_ls -al /dir
MichaelDaum, i have the js in the template but if i add a topic with this template the js is not shown
wait
maybe if have an error
[14:15]
gac410foswiki_irc6: See https://foswiki.org/System/InstallationGuide#Step_2:_Confirm_file_and_directory_ownership_and_permissions [14:17]
memic_ah ok its added now [14:17]
MichaelDaum: [14:17]
foswiki_irc6@gac410 www-data is the webserver user [14:17]
memic_what if a want to add this js files globaly? [14:17]
gac410foswiki_irc6: So cd to path/to/foswiki and then chown -R www-data:www-data *
But MAKE SURE you are really CD'd to the right place.
[14:18]
memic_^^
years ago i did a chmod 000 /
[14:18]
gac410-R will change ownership recursively of all files below the current directlry [14:18]
memic_was fun [14:18]
gac410gac410 watched a coworker on sun server rm -rf somefile * (note the space) and he was in /
he was not happy
[14:20]
memic_bam
^^
[14:20]
can i put this js into Main/SitePreferences
?
[14:25]
foswiki_irc6@gac410 thanks much, now running upgraded Foswiki
memic_ thanks and sorry that I'm kind of new here
[14:25]
gac410memic_: You want to attach the js file to Main/SitePreferences?
foswiki_irc6: no problem don't apologize. Everyone starts learning somewhere.
[14:26]
memic_foswiki_irc6, no problem ;) you did it
i want to include a js file everywhere
[14:27]
gac410gac410 isn't sure the best way to make it global. ... MichaelDaum? [14:28]
MichaelDaummemic_, depends on the skin you are using [14:29]
memic_PatternSkin [14:30]
Set USERCOLORSURL = %PUBURLPATH%/%SYSTEMWEB%/PatternSkinTheme/nk_colors.css
css is added like this
[14:36]
MichaelDaummemic_, put it into System.WebTopBar
you might first create a copy of System.WebTopBarExample to System.WebTopBar
then add the %ADDTOZONE... anywhere
[14:36]
memic_Topic 'WebTopBar' does not exist
normal?
[14:37]
MichaelDaumread above [14:37]
memic_ok [14:38]
........ (idle for 37mn)
stefan_slightdocu states that System.WebTopBar is not shiped so a own Topic with this name is save for upgrades. Foswiki falls back to this WebTopBarExample one if it cant find the WebTopBar one.
(https://foswiki.org/System/PatternSkin#Top_44_Bottom_and_Left_Bar_customization)
[15:15]
only 'feature-request' i like to see with this is - WebTopBar WebBottomBar are site global. only WebLeftBar is Web-Specific - and if both Topics (without and with *Example) are not in a Web the sidebar renders an error message it can't find the topic.. so seems here there is no 'fallback' to a global/System or parent Web Topic.. [15:24]
gac410in templates/viewsidebar.pattern.tmpl, there is a line: %INCLUDE{"%WEB%.WebLeftBar, %WEB%.WebLeftBarExample"}% ... That could be changed to have a global include as well.
Probably do not want the System one though, as it has lots of links for the system web that are not usefull elsewhere.
So maybe. %INCLUDE{"%WEB%.WebLeftBar, %WEB%.WebLeftBarExample. %USERSWEB%.WebLeftBarGlobal"}%
[15:28]
stefan_slightgac410: hm that sounds like a good idea - i will have a look at this - hm forgot that the System one has so much extra stuff..
is there a macro/solution to get the parrent web of a subweb??
[15:31]
gac410stefan_slight: No idea on web. And I have to head out cu later [15:37]
***gac410 has left [15:38]
......................... (idle for 2h3mn)
GuilainC_away is now known as GuilainC [17:41]
ChanServ sets mode: +o gac410 [17:54]
....... (idle for 34mn)
gac410MichaelDaum: I've been pondering the button to reveal the side bar. I was wondering if it would be better to adapt something like http://codepen.io/anon/pen/JdQNpd - if the mouse is within x pixels of the left edge, expose the side bar. [18:28]
***ChanServ sets mode: +o MichaelDaum [18:39]
gac410cool. So NatSkin has it and we need to bring pattern into the 20th century :D [18:40]
MichaelDaumno, this is a customized thing for 1&1 [18:40]
gac410oh. okay. [18:41]
MichaelDaumit lacks remembering the sidebar state using a cookie [18:41]
gac410Well for convenience on small devices, I don't see remebering state important, just reveal when mouse nears edge would be great. Button is nice, but inconvenient to scroll to and tap
Combination of hide by deffault if screen < n pixels, and reveal when mouse nears edge
[18:41]
MichaelDaumah natskin _does_ have a show/hide feature by default
try https://demo.michaeldaumconsulting.com/bin/view/System/NatSkinStyleBrowser?style=reset and then make the viewport small
[18:42]
gac410I don't use my cellphone on foswiki very often, but when I do, I curse the hidden left bar - no login menu. Annoying. [18:43]
MichaelDaumit shows a hamburger menu then to swipe in and out the sidebar if hidden
try here https://demo.michaeldaumconsulting.com/bin/view/Knowledge/CrossLingualWikiEngine
[18:43]
gac410sidebar did hide, but I don't see the hamburger menu I don't think. You mean a little half crescent on edge?
oh... never mind the little stack of dashes upper right
[18:44]
MichaelDaumthis is called the hamburger menu [18:45]
gac410learn somethig every day [18:46]
MichaelDaumhttps://vtldesign.com/wp-content/uploads/2015/03/meet-the-hamburger.jpg [18:46]
gac410Not sure I like that menu. On cell phone I expect that to be the settings for the page. not revealing a hidden element
Saw it but didn't even go near it figuring it was settings.
[18:47]
MichaelDaumthe solution you pointed me to on codepen probably doesn't work out on mobile devices: there is no mouse to move near the edge
the most intuitive gesture is swiping left-to-right or the opposite direction
... on mobile devices.
[18:55]
gac410Ah... doh... That's rather obvious now that I think of it :D [18:56]
MichaelDaumswiping is n/a on non-touch screens
but then it wont be required anyway as the viewport is wide enough on the desktop in general
swiping is awesome - once you know the feature is there
alas, there is no obvious way to _discover_ it ... like testing buttons to find something out
[18:56]
gac410right. Have to look around for that. Or maybe it could be both position or swipe. But y, mobile is most often where its needed. [18:58]
MichaelDaumxactly
thats what would be required: a button that unveils once it is required, as well as some kind of swiping it back in and out
[18:58]
gac410y, can't have it disappear when mouse moves away - same issue makes sense.
No job is too small to make a project out of it. :D
[18:59]
MichaelDaumlots of work and thinking to come to an intuitive solution
let alone cross browser/device compatibility
[19:00]
gac410Well for "added documentation" only, I'll see about adding the cookbook maybe with some cleanup. And a better place to anchor it other than the WebLeftBarWebsList .. .that just doesn't seem right.
cookbook for 2.1.3, and maybe a more fully featured solution for 2.2
[19:01]
MichaelDaumhave to go now. a nice weekend to you. [19:01]
gac410you too MichaelDaum Thanks
https://github.com/mattbryson/TouchSwipe-Jquery-Plugin seems to be interesting.
[19:01]
.... (idle for 16mn)
stefan_slightgac410: the WebLeftBarWebsList was the 'easiest' for my quick hack - just because i know that it was there and i have played around with the content.. so i knew its included in all sides ;-) [19:20]
gac410y, I figured it was. And in digging around trying to find a good place, I could not find much better. [19:21]
stefan_slight;-)
i think a better anchor would be the WebTopBar
i mean as logical anchor point - but on the other hand it has nothing to do with this Bar....
[19:22]
gac410y, I wasn't sure if it needed to be "in" the bar content. But I was planning on experimenting [19:23]
stefan_slightits not necessary to be in there . [19:24]
gac410okay. Then top bar is fine. Other option is to add it to a template override. viewsidebar.pattern.tmpl But that involves creating a new skin, so in-topic is probably better. [19:24]
stefan_slightyou can use what ever you like where ever you want to call the $('body').toggleClass('showsidebar'); [19:25]
gac410okay thanks. [19:25]
..... (idle for 23mn)
stefan_slight: This works too ... <button class="sidebartoggle-button" onclick="$('body').toggleClass('showsidebar');">%JQICON{"fa-bars"}%</button> [19:48]
.................................. (idle for 2h45mn)
***GuilainC is now known as GuilainC_away [22:33]
ChanServ sets mode: +o Lynnwood__ [22:44]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)