by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 22 12:11

    ArthurHoaro on wip-slim-routing

    Process tools page through Slim… Merge pull request #1475 from A… (compare)

  • May 22 11:28

    ArthurHoaro on wip-slim-routing

    Initialize admin Slim controlle… Merge pull request #1474 from A… (compare)

  • May 22 09:13

    ArthurHoaro on wip-slim-routing

    Process session filters through… Merge pull request #1473 from A… (compare)

  • May 21 11:26

    nodiscc on doc-rework-setup

    doc: troubleshooting: improve c… (compare)

  • May 20 12:44

    ArthurHoaro on wip-slim-routing

    Process remove tag endpoint thr… Merge pull request #1472 from A… (compare)

  • May 20 11:25

    ArthurHoaro on wip-slim-routing

    Process OpenSearch controller t… Refactor front controller tests… Merge pull request #1471 from A… (compare)

  • May 18 19:09

    nodiscc on doc-rework-setup

    formatting/emphasis fix markdown syntax server-configuration: move fire… and 5 more (compare)

  • May 18 15:30

    ArthurHoaro on wip-slim-routing

    Make FeedBuilder instance creat… RSS/ATOM feeds: process through… Merge pull request #1468 from A… (compare)

  • May 18 15:25

    ArthurHoaro on wip-slim-routing

    Fix all relative link to work w… Process picwall rendering throu… Migrate cache purge function to… and 13 more (compare)

  • May 18 10:26

    ArthurHoaro on wip-slim-routing

    Remove legacy handling of /add-… Merge pull request #1467 from A… (compare)

  • May 18 09:58

    ArthurHoaro on wip-slim-routing

    Process Daily RSS feed through … PHP 7.1 compatibility Merge pull request #1465 from A… (compare)

  • May 17 09:35

    ArthurHoaro on wip-slim-routing

    Process daily page through Slim… Slim daily: support legacy quer… Slim daily: minor bugfix with e… and 1 more (compare)

  • May 16 13:01

    ArthurHoaro on wip-slim-routing

    Process tag list page through S… Merge pull request #1463 from A… (compare)

  • May 16 11:55

    ArthurHoaro on wip-slim-routing

    Process tag cloud page through … Working version before optimiza… Handle tag filtering in the Boo… and 2 more (compare)

  • May 16 11:08

    nodiscc on doc-rework-setup

    doc: docker.md: fix stray code … (compare)

  • May 16 10:55

    nodiscc on doc-rework-setup

    **General rewording, proof-read… (compare)

  • May 16 09:35

    ArthurHoaro on master

    Document about the .meta file a… Add an example for the descript… Merge pull request #1461 from f… (compare)

  • May 12 11:57

    ArthurHoaro on wip-slim-routing

    Slim router: handle add tag rou… Merge pull request #1458 from A… (compare)

  • May 12 09:26

    ArthurHoaro on wip-slim-routing

    Migrate cache purge function to… Process logout through Slim con… Merge pull request #1407 from A… (compare)

  • May 12 09:14

    ArthurHoaro on wip-slim-routing

    Fix all relative link to work w… Process picwall rendering throu… Merge pull request #1409 from A… (compare)

The Doctor
@virtadpt
You have way more bookmarks than I do (mostly because I've been pruning mine to bring the count down).
I just finished writing a bot to interact with Shaarli, so I think I could add some stress-testing code that would use the API to put it through its paces and find pain points.
Not being able to put spaces in tags is also problematic, but I should open a ticket about that.
VirtualTam
@virtualtam
Issues tagged as tag improvements: https://github.com/shaarli/Shaarli/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Atags
Spaces in tags (or the ability to set a delimiter) is a recurring request theme :)
The SQL aspect has been bugging me for a while, this is something I'd very much like to see happening at some point! I'll try to start experimenting with Doctrine when I get enough spare time.
Regarding testing, I think something that would be greatly beneficial for developers and community alike would be to add functional tests with browser automation, e.g. with Selenium and/or RobotFramework. We're using both at work and they nicely complement unitary testing ;-)
The Doctor
@virtadpt
@virtualtam Something else that I just thought of...
I spent a lot of last night playing around with editing the default theme for Shaarli. What about an HTML5 boilerplate theme (https://html5boilerplate.com/) for Shaarli, to make it easier to write new themes? Pretty much all of the ones out there don't work anymore due to the namespacing changes, and such a thing would make it much easier to rebuild the Shaarli ecosystem.
kalvn
@kalvn
Good idea of plugin: interfacing with https://github.com/pirate/ArchiveBox
The Doctor
@virtadpt
That seems like a really good idea.
nodiscc
@nodiscc
I'll try to release v0.10.4 this week. I have to rebuild my build and testing environment.
I think I'll cherry-pick these commits to the v0.10 branch:
  • Fix thumbnails disabling if PHP GD is not installed
  • Fix a warning if links sticky status isn't set
Iwill send a PR when I manage to get everything in order (releasable tarball, docker images, everything tested)
x-0n
@x-0n
hi, I'm trying the python client, but it's not working. getting 404s, e.g. for "shaarli get-links": *212 open() "/var/www/shaarli/rootdir/api/v1/links" failed (2: No such file or directory)
I don't have a <rootdir>/api directory in my shaarli folder structure. what am I doing wrong?
nodiscc
@nodiscc
@x-0n
  • What are your configuration file contents and command line when running the client?
  • Can you post the full output including error message?
x-0n
@x-0n
sure thing. here goes:
nodiscc
@nodiscc
@x-0n remove /one from your configuration file? url = must be the base URL of your shaarli instance. See https://python-shaarli-client.readthedocs.io/en/latest/user/configuration.html#example.
x-0n
@x-0n
@nodiscc I have several shaarli instances each running on one of these urls (one, two...) so the url from the config file is the correct base url
Luce Carević
@llune
Hi!
ArthurHoaro
@ArthurHoaro
Hi
nodiscc
@nodiscc
@x-0n make sure Enable REST API is checked in Shaarli settings, also make sure your server is properly configured (including URL rewriting support)
M. Fioretti
@mfioretti_en_twitter

@virtadpt about "interfacing shaarli with ArchiveBox", which I only saw today: I believe it could work this way:

1) external script/cronjob a) gets with shaarli_client the list of bookmarks to make copies of, b) passes that list to archivebox and c) saves each file in a folder called $BOOMARKS_HOME/$ID/index.html where $ID is the identifier of that bookmark inside shaarli.

2) then, all shaarli needs to do is to add, ONLY when user is logged in, a link/button to $BOOMARKS_HOME/$ID/index.html, close to where the "edit" icon of the same bookmark is. Theoretically, this should be very, very little code, no?

Is this correct? If it is... I know how to do 1) myself, hope to actually do it in the next weeks. But I honestly have no clue on how to do 2). I don't care if there is no gui interface, i.e. I don't mind patching the shaarli source code to add the php commands that display that extra link to logged in users... but I would really need someone to write down that code for me, and tell me where to put it. Once I have that info, I can go and test myself, and report, so someone else can make a usable plugin.

The Doctor
@virtadpt
I think you could do that with Shaarli's RSS feeds.
Have Archivebox pull the RSS feed, see if it's already grabbed that URL, if not save a copy.
M. Fioretti
@mfioretti_en_twitter

@virtadpt the problem with that approach is that the RSS feed would not include private bookmarks (incidentally, this is one more case/reason why having the bookmarks as one SQLite db would be waaaay better, but that is another issue, of course). And in any case, the real problem I have and need help with is part 2 of my earlier comment: how do I hack shaarli's source code to make it display,ONLY to logged-in user, one extra link with the same bookmark ID?

Concrete example: if I look right now at my own shaarli installation, the latest (private!) bookmark includes an icon that is a link to https://example.com/?edit_link=289. Well, all I need to know is how to change the php code so that, right after that icon/link, it displays another one pointing to https://example.com/WEBARCHIVE/289/index.html, which would be the copy of the same page created by archivebox . For the record, I ALREADY tried to do this, but after a couple of hours or so of looking at the code I had to stop. My limit, of course. That is why I ask for help

ArthurHoaro
@ArthurHoaro
FYI the demo was broken for a few days because it was still using the old Docker image in PHP 5.6. I've switched to the official shaarli/shaarli image, and the workflow is way simplier. Let me know if you encounter any issue in the next few days.
arnaudmm
@arnaudmm
Hello I would like to contribute to Shaarli, is there a dev guide to setup dev environment using docker?
to be more specific i'd like to develop a new plugin
M. Fioretti
@mfioretti_en_twitter

to @virtadpt and everybody else interested in "interfacing shaarli with ArchiveBox". Back in August, see above, I asked how to change the shaarli php code so that it would ALSO point to an URL having a structure like: https://example.com/WEBARCHIVE/289/index.html

Last week I figured out how to do this. I changed the two lines in the file shaarli/tpl/default/linklist.html that call the "pencil-square-o-edit-link" icon:

<a href="?edit_link={$value.id}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link"></i></a>

in this way:

<a href="?edit_link={$value.id}" title="{$strEdit}"><i class="fa fa-pencil-square-o edit-link"></i></a><a href="https://example.com/WEBARCHIVE/{$value.id}/" target="_blank">AchiveBox</a>

The result is not pretty, visually, but works exactly as I need. Comments and suggestions of better ways are very welcome, of course. What I would really need, however, is help to put, after WEBARCHIVE/, a string of constant length, left-padded with zeroes. That is, I would like to have WEBARCHIVE/000009/... WEBARCHIVE/000289/ instead of WEBARCHIVE/9/... WEBARCHIVE/289/ . Is it possible to process {$value.id} in this way, in the code above? Thanks

The Doctor
@virtadpt
o7
M. Fioretti
@mfioretti_en_twitter
Hello again and... sorry for nagging but is there any way, inside shaarli/tpl/default/linklist.html , to call or process {$value.id} so that it is left padded with zeroes to a fixed length? So that, for example, $value.id = 3 it returns 00003, if it is 231 it returns 00231 and so on? Thank you in advance for any help!
M. Fioretti
@mfioretti_en_twitter
In case anyone is interested in knowing how my request in the previous comment ends up, or prefers to answer it on github... you can now follow it up here shaarli/Shaarli#1370
gkoerk
@gkoerk
Hey folks - am I the only one running Shaarli in Docker who keeps having the admin password reset to admin every time the service is restarted?
ArthurHoaro
@ArthurHoaro
@gkoerk Shaarli does not have a default password, so there might be an issue with your configuration.
gkoerk
@gkoerk
Hello again, friends!
Is there a proper way to bind mount the plugins directory to allow the installation of plugins not included in the docker image?
Mayhem Bill
@MayhemBill
I recently tried to install Shaarli and I'm having an issue where css isn't showing up, and I keep getting an unexpected token '<' at the beginning of a js file, can anyone tell me what I did wrong?
Tim Cleaver
@timcleaver
hello, i pulled on git master (and make composer_dependencies and make frontend_dependencies) and went from working to not working. is anybody here that i can chat to to help resolve it?
the index page comes up, but when i click to login i get a 404 error.
Tim Cleaver
@timcleaver
it was an nginx configuration issue. apologies for the noise
Jean Bernon
@jbernon_twitter
Hi anyone here ?
I installed Shaarli on my Debian laptop according to https://framacloud.org/fr/cultiver-son-jardin/shaarli. My server is working but when I go to url Shaarli-master, I get a void page and not the expected configuration form. An idea ?
Jean Bernon
@jbernon_twitter
It was a permission issue. Solved...
Jean Bernon
@jbernon_twitter
Next issue. It works, but no style sheet active. I get text pages...
Jean Bernon
@jbernon_twitter
The tpl/default/css/shaarli.min.css doesn't load ??
Jean Bernon
@jbernon_twitter
The tpl/default/css/shaarli.min.css doesn't load ??
Le script à l’adresse « http://jebede.jebe.org/shaarli/tpl/default/js/shaarli.min.js…41272ed5c91056ce298462f32bb5df50be9925855c588448f40a6ff1fd4d » a été chargé alors que son type MIME (« text/html ») n’est pas un type MIME JavaScript valide.
shaarli
Échec du chargement pour l’élément <script> dont la source est « http://jebede.jebe.org/shaarli/tpl/default/js/shaarli.min.js…41272ed5c91056ce298462f32bb5df50be9925855c588448f40a6ff1fd4d ». shaarli:632:1
nodiscc
@nodiscc
@jbernon_twitter There have been similar problems reported here shaarli/Shaarli#1393, shaarli/Shaarli#1380 with CSS files having incorrect MIME types. Your problem looks similar, you should open an issue with as much detail as you can (OS, web server, versions, browser used, webserverlogs, browser logs, etc)
matrixbot
@matrixbot
OranginaRouge Hi everyone. I may have did a mistake by accessing this "thread". I was seeking a place to discuss between Shaarli-er (cf this shaarlink. But it's seem it's the wrong place for me… :-/
OranginaRouge (i'm just trying Matric/Riot for the first time and seems not a bad tool. Rather efficient actually)
agentcobra
@agentcobra
Hi
dan
@watsond_gitlab
Hi, when adding tags to a new link, I know I can create a completely new tag, or type the first letter(s) of existing tags for auto-completion. But, is there a way to just display the ENTIRE current Tag Cloud and pick existing tags from it?
1 reply