qualintitative / egoweb

This is a repository for EgoWeb 2.0 created and maintained by David P. Kennedy, a researcher at the non-profit RAND Corporation. The repository is also maintained by David Zhang a research programmer at RAND. EgoWeb is a modification of the software EgoNet, which was developed by Chris McCarty at the University of Florida.
http://www.qualintitative.com/wiki/doku.php/egoweb_2.0_home
30 stars 8 forks source link

Fixing links throughout Egoweb, initially admin/index.php and navigation bar #22

Open fredson opened 6 years ago

fredson commented 6 years ago

Dear all!

I patched two files - views/layouts/main.php and views/admin/index.php -, replacing hardcoded subdirs to dynamic generation by Yii (patch attached).

That way, I could fix the links in the nav-bar and on the admin page to point to e.g. www.university.de/~foo/mystudy/importExport (as intended) instead of www.university.de/importExport (as it was after initially installing the master branch).

I did try to solve that issue with .htaccess, but any solution on that level would have been idiosyncratic and - honestly - I hate messing around with rewrite rules.

I would appreciate your feedback regarding whether that seems to be a sound fix and if it's worth being merged with master. It may be, that this still only relevant for my use case - I'm not sure.

For that - and for everything to work on my university's shared webspace - I spotted another 15 hardcoded subdirs, that than would have to be recoded. Most problably I will have to do that anyway, therefore I could than request a pull (see the attached hrefego.txt).

If you have any thoughts on that, I of course would love to hear from you. I am absolutely not an expert regarding Yii, so every comment is highly appreciated.

Finally, thank you very much for all the effort; we started using EgoWeb2.0 now for a survey on urban flood management and find it to be very helpful. It could easily become a focal tool for a whole bunch of resarch projects in our field over the next decade.

linkpatch.txt

hrefego.txt

qualintitative commented 6 years ago

Thanks for the info @fredson. I'll talk this over with @zhangster. Sounds reasonable to me but I'm not sure what all of the ramifications are.

I'm so happy to hear that this is useful for those urban flood projects. I think we will be using it on a landslide management project soon. I would love to hear more about how you are using it in this work and how you learned about EgoWeb2.0.