These are chat archives for idleberg/Bootstrap-Listr

10th
Mar 2016
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:41
@carroux easily? Yes.
in index.php in the first lines, find the variable definition $root_dir = dirname($_SERVER['PHP_SELF']);
replace as such
#$root_dir       = dirname($_SERVER['PHP_SELF']);
$root_dir       = "http://WHERE.TO.REDIRECT";
Jan T. Sott
@idleberg
Mar 10 2016 08:44
a very bad idea, i think. you will never be able to navigate back to the root.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:44
ah
Jan T. Sott
@idleberg
Mar 10 2016 08:45
why don't you integrate listr through an iframe and offer additional navigation on the outside?
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:48
@idleberg #$root_dir = dirname($_SERVER['PHP_SELF']); $root_dir = "http://google.com";
shared.zeroserieux.com has $root_dir as http://google.com
as a temporary measure, i see no problem in doing such
Jan T. Sott
@idleberg
Mar 10 2016 08:50
bad UX?
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:51
i don't understand
Jan T. Sott
@idleberg
Mar 10 2016 08:52
you never know how someone lands on your site. let's assume someone sends you a link to a subfolder.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:52
okay
Jan T. Sott
@idleberg
Mar 10 2016 08:52
breadcrumbs suggest a certain navigational pattern and changing the link of home breaks that pattern
do you see any problem with the page or the breadcrum? apprt from the HOME being google.com
Jan T. Sott
@idleberg
Mar 10 2016 08:54
apart from that? of course not.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:55
so basically, it solves @carroux's problem in an 'easy' way, right?
Jan T. Sott
@idleberg
Mar 10 2016 08:55
i'd call it 'dirty'
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:55
understood it ain't the best way, i was gonna write that
but it's 'easy' enough to replace one variable
Jan T. Sott
@idleberg
Mar 10 2016 08:57
i think there are better ways, especially when you already change the code. i'd probably add a bootstrap nav outside the listr container
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 08:59
adding a <header></header> would also do
Jan T. Sott
@idleberg
Mar 10 2016 09:00
ultimately it's @carroux's decision
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:00
Could be solved in many ways
i was going to write about possible solutions before i saw you wrote... had to defend my point regarding the "easy".
another suggestions would be adding javascript window.location = "http://new-website.com";
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:07
.htaccess rule (create a DIR called home) ...RedirectMatch 301 /home/ http://www.new-website.com$1;
same for nginx
Jan T. Sott
@idleberg
Mar 10 2016 09:08
please
there are probably a zillion solutions, lets not all list them
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:08
What's the deal here @idleberg
He asked for solutions
Jan T. Sott
@idleberg
Mar 10 2016 09:09
they all have in common that they break the UX
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:10
no site functionality suffers from any of the mods
Jan T. Sott
@idleberg
Mar 10 2016 09:10
breaking that doesn't solve the problem, it adds another. add a dedicated navigation outside the listr container, be it by editing the listr-template.php or by embedding listr as an iframe.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:13
location /home {return 301 $scheme://new-website.com$request_uri;} for nginx, in the server block.
i have not yet tested with symlinks
Jan T. Sott
@idleberg
Mar 10 2016 09:16
the problem remains the same, face it
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:17
mayb describe the problem - i don't see it and UX only says 'user experience' in my head
Jan T. Sott
@idleberg
Mar 10 2016 09:18
it's all there, i'm not going to repeat myself
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:18
i don't mean to be an ass here. just providing options i would consider myself.
Jan T. Sott
@idleberg
Mar 10 2016 09:19
picture a dialog with two buttons: "okay" and "cancel". what you're suggestion is: hey, let's use the "okay" button to do something else.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:21
so what's the point? If he integrates listr into an application of his own, the home button could link back to his root home page
Jan T. Sott
@idleberg
Mar 10 2016 09:21
maybe you will understand it, if you disable the icon theme
bottom line is: there is an expectancy about what a dialog does and you are breaking it
if you need something else, add something else (i already gave two suggestions)
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:27
Okay. i thoug maybe you meant $root_dir was used by somewhere else, which it isnt... could have a website that says "hey welcome this is the project blahblah, click here to browse the files" -- then the "home" location woud be to go back, my life isn't about browseing files, i have used the pretty listr now i want back to the home of wherever i was redirected from
Jan T. Sott
@idleberg
Mar 10 2016 09:27
DUDE
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:28
yes
Jan T. Sott
@idleberg
Mar 10 2016 09:28
you can do whatever you want. you can make that button call your mother, i couldn't care less. it will never be officially supported, because it breaks things. if you can't see that, i don't care either.
i try ruling out scenarios that i couldn't possibly think of. i don't know how a blind person would use that site. breaking functionality certainly wouldn't make it easier for that person, would it?
yes, everybody could still access the root dir by typing the URL, but it's overly complicated
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:31
well i'm no "officiel" support - the guy asked for a simple fucking solution. I've given solutions, you too.
Jan T. Sott
@idleberg
Mar 10 2016 09:31
but it's no solution
it's a dirty fix
that breaks things
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:32
you are right
it ain't a solution
does what he wants, easy dirty and quick.
Jan T. Sott
@idleberg
Mar 10 2016 09:33
stop it already
and it's not easy
since it requires intervention with every update. that's not easy.
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:34
no, i'm putting an end to this, and not sarcastically or anything. It works, but it's not how it should be done is what i say
yes thats why it ain't a solution, agreed
Mathieu Aubin
@mathieu-aubin
Mar 10 2016 09:41
the iframe solution is a very good one
Chris Carroux
@carroux
Mar 10 2016 10:33
thanks for the ideas, you guys, I appreciate the discussion
I agree that changing the $ROOT_DIR would be an easy fix, but also a dirty one now that I think about it
in the sense that it sort of betrays the expected behavior of the breadcrumbs
but @mathieu-aubin, seeing your site that you linked was actually really helpful
what I'm trying to do you have already accomplished with the navbar at top with the "SHARED FILES" logo (though for my purposes I would be changing the link target to the root of the main site instead of the root of the listr sub-site)
as well as the "buy me a beer" footer, nice touch
Chris Carroux
@carroux
Mar 10 2016 10:38
were you able to add those without messing around with the listr php files? I wasn't sure if it's possible to prepend/append content to the page through the config file, I may have just overlooked something completely
too short on sleep...
ideally I could add a navbar or even just logo at the top without having to mess around with the php files, since as you said @idleberg that would require manually re-applying those changes after every update, which is not fun
Jan T. Sott
@idleberg
Mar 10 2016 10:44
you cant prepend/append html right now
Chris Carroux
@carroux
Mar 10 2016 10:49
ah okay, thanks for confirming
Jan T. Sott
@idleberg
Mar 10 2016 11:44
in theory, you could use some wild javascript using "append script"
probably not worth the effort