Code Monkey home page Code Monkey logo

shaarli-material's People

Contributors

clementkoenig avatar dependabot[bot] avatar elwinschmitz avatar kalvn avatar kovah avatar nicolasdanelon avatar tomi85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shaarli-material's Issues

I'm having this php error

Hi bro, sorry to bother but, is this your theme issue? or a shaarli issue?

2016/03/09 21:51:06 [error] 19307#0: *416476 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: search_type in /home/username/public_html/links/tmp/linklist.5163a166ad8ba7eb830e5010ffcf6cc7.rtpl.php on line 29
PHP message: PHP Notice:  Undefined variable: search_type in /home/username/public_html/links/tmp/linklist.5163a166ad8ba7eb830e5010ffcf6cc7.rtpl.php on line 34" while reading response header from upstream, client: 190.16.58.234, server: nicolasmd.com.ar, request: "GET /links/? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-username.sock:", host: "nicolasmd.com.ar", referrer: "http://nicolasmd.com.ar/links/?"
ii  apache2                              2.2.22-13+deb7u6                  i386         Apache HTTP Server metapackage
PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 09:01:48) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.5, Copyright (c) 1999-2015, by Zend Technologies

Edit a link - page size

Evolution
Define the same page size between "link" view and "Edit a link" view.
Could you please increase the width of "Edit a link" page to be close the links view page ?

Sorting

is it possible to configure the sorting of the links (modified, alpha, added, ...)?

no thumbnail displayed when description is empty

Hi Kalvn,

I noticed that if there's no description for a given link, no image was displayed, even if there was a generated thumbnail on disk.

To get the thumbnails with or without description, I had to change the condition on line 55:
{if="$value.description|thumbnail"}

Hope it's a bug and not a feature ;)

Regards,
nico

Problèmes d'affichage

I'm using the master branch of shaarli community and your theme. I've upgraded shaarli, and your theme. But I encountered some display problems.

Here is how it looks like with a local install. I tried with different browser. It was the same problem on the server installation ( https://id-libre.org/shaarli ), but for this one I went back to the default theme.

selection_420

I've disabled the plugins I was using (qrcode), but that wasn't the problem. The funny thing is that when I downgraded to the previous versions of the theme, the problem was still there, even after removing the cache of the browser.

Of course I will give you all the missing details, you can ask ! :)

login failure

when hunting https://github.com/mro/ShaarliOS/issues/13#issuecomment-233617106, I seem to be unable to login.

Response always is "Wrong login/password."

$ /usr/sbin/lighttpd -v
lighttpd/1.4.31 (ssl) - a light and fast webserver
Build-Date: Feb 23 2016 10:18:39
$ php --version
PHP 5.6.23-1~dotdeb+7.1 (cli) (built: Jun 24 2016 00:57:28) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Shaarli + Template:

$ cd /var/www/lighttpd/shaarli.example.com/

$ GITHUB="shaarli/Shaarli/archive/v0.7.0"
$ DST_DIR="public_html/material"

$ sudo rm -rf "${DST_DIR}"

$ curl --output "source.tar.gz" --location --url "https://github.com/${GITHUB}.tar.gz"
$ tar -xzf source.tar.gz
$ mv Shaarli-* "${DST_DIR}"

# Template 'Material'
$ curl --location --output template.tar.gz --url "https://github.com/kalvn/Shaarli-Material/archive/v0.7.0.tar.gz"
$ tar -xzf template.tar.gz
$ mv Shaarli-Material-*/material/ "${DST_DIR}/tpl/" && rm -rf Shaarli-Material-*
$ cat > "${DST_DIR}/data/config.php" <<zZzZEOF
<?php
  \$GLOBALS['config']['RAINTPL_TPL'] = 'tpl/material/' ; // keep the trailing slash!
?>
zZzZEOF

$ sudo chown -R www-data:www-data "${DST_DIR}"

$ BASE_URL="https://$(basename "$(pwd)")/$(basename "${DST_DIR}")/index.php"
$ USERNAME="tast"
$ PASSWORD="tust"

$ curl --silent --show-error \
    --url "${BASE_URL}" \
    --data-urlencode "setlogin=${USERNAME}" \
    --data-urlencode "setpassword=${PASSWORD}" \
    --data-urlencode "continent=Europe" \
    --data-urlencode "city=Brussels" \
    --data-urlencode "title=Review Shaarli" \
    --data-urlencode "Save=Save config" \
    --output /dev/null

Any idea what's the issue here?

QR Codes are displayed even when related plugin is disabled

hello

why force QR Code presence in linklist.html in your theme?
should be responsibility of the plugin only
is there a technical reason?

I don't want this plugin to be enabled so I would like not to display QR codes, without editing your code (custom edits will be lost at every update)

thanks
regards

The daily page is broken on mobile

screenshot_2016-05-27-19-47-39_com android chrome

As you can see, the "Daily" page is really broken on mobile. This issue concerns the default theme as well but is it possible to change that in your theme? Plus, this page is not really "material".

code & pre tags (developer issues)

Hi kalv,
I'm using shaarli in the place I work. Sometimes we need to shaare code. Or store it as a wiki like post.. I create a little css code is in the extra.html file and goes like this:

.markdown pre {
    background-color: #eee;
    padding: 4px 9px;
    border-radius: 4px;
    overflow: auto;
    box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
}

.markdown pre code {
    color: black;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    line-height: 1.7;
    font-size: 11.5px;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;  
}

So.. It may be a little improvement for your awesome theme, right? thank you so much for the extra.html file! it's awesomeeeEEEEEEE !!!!

screen shot 2016-02-15 at 12 03 17

Show date and permalink

Bonjour,

Je cherche à afficher la date en bas de mes post mais je n'y parvient pas. Y'a-t-il une solution ?

j'ai ajouté la ligne suivante :
<span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>

dans /tpl/material/linklist.html ligne 79 mais il n'y à que le permalink qui s'affiche.

D'avance, merci !


Hello,

I am trying to display the date at the bottom of my post but I can not. There's there a solution?

I added the following line:
<span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>

in /tpl/material/linklist.html line 79 but just permaink appear, not a date.

Thank you in advance.

"Are you sure you want to delete this link ?" modal not poping in "post" screen

How to reproduce:

  • Shaarlink something
  • Reshaarlink same link using bookmarklet. The previously saved shaarlink should open in the "post" screen, in a window. Now try to delete the shaarlink with the button. Nothing happens.

Expected behaviour:

A modal appears. Are you sure you want to delete this link ? Yes / No

Thanks

Favicon issue

I'm using the latest update and there are changes about the favicon.
How can I use my own favicon to work on every devices?

It could be a good idea to add a button somewhere in the options menu to add our own favicon.

Thanks.

upscale favicon ?

Hi,

What about upscaling the favicon ?

  • I went here https://www.google.com/design/icons/#ic_stars
  • Downloaded PNGs of 48dp (ic_stars_black_48dp.zip)
  • Edited ic_stars_black_48dp/web/ic_stars_black_48dp_2x.png with Gimp
  • Changed color profile to RGB
  • Filled the star with color #02a8f3

Result:
https://fralef.me/links/tpl/material/images/favicon.ico (96x96px, transparent background preserved, 1bpp, 1bit-alpha, 2-slot palette, uncompressed, 2.4K)
https://fralef.me/links/tpl/material/images/favicon.png (96x96px, transparent background preserved, compression level 9, 653 bytes)

Let me know ;)
J.

hide (+) button while editing a shaarlink

Hi,
it happened to me several times to unintentionally click the (+)* button while trying to hit 'save' button while editing a shaarlink. Result is that you lose all the text you entered :-S

Do you think we could hide this button in this situation?

Thanks
J

* the button to add a shaarlink

edit: it is especially true on mobile where (+) button is overlapping with 'save' button.

Page goes black on enabling template

Hi there,

after installing the template (material folder with 'tpl/material/' in config.php or whole repo with 'tpl/Shaarli-Material/material/' does not matter, effect is the same.
The new favicon shows up, nothing else. Page is going blank.
Returning to the original GLOBAL in config.php fixes the problem ... without using the nice, new template, of course.
I am currently using Shaarli 0.6.5 with the newest download of the material template.
Did I oversee anything?

Greetzs, Gabbalo

Arrow out of bounds

when we see both pager arrows ... the one on the right (newer) is out of boundaries creating a little right margin :(

screen shot 2016-03-30 at 17 18 15
screen shot 2016-03-30 at 17 18 06

Customization is not respected

Customization is not respected with Shaarli Community Version 0.8.0

$ cat data/config.json.php 
<?php /*
{
    "resource": {
        "data_dir": "data",
        "config": "data\/config.php",
        "datastore": "data\/datastore.php",
        "ban_file": "data\/ipbans.php",
        "updates": "data\/updates.txt",
        "log": "data\/log.txt",
        "update_check": "data\/lastupdatecheck.txt",
        "raintpl_tpl": "tpl\/material\/",
        "raintpl_tmp": "tmp\/",
        "thumbnails_cache": "cache",
        "page_cache": "pagecache"
    },

    "config": {
        "MATERIAL_PHP_DATE_PATTERN": "%d\/%m\/%Y %H:%M:%S",
        "MATERIAL_NO_QRCODE": true,
        "MATERIAL_DATE_FROMNOW": true,
        "MATERIAL_DATE_PATTERN": "DD/MM/YYYY HH:mm:ss",
        "MATERIAL_COLOR": "#9E9E9E",
        "MATERIAL_COLOR_FOCUS": "#757575",
        "MATERIAL_COLOR_ACTIVE": "#616161"
    },
    "security": {
        "ban_after": 4,
        "ban_duration": 1800,
        "session_protection_disabled": false,
        "open_shaarli": false
    },
    "general": {
        "header_link": "?",
        "links_per_page": 20,
        "enabled_plugins": [
            "qrcode"
        ],
        "timezone": "Europe\/Berlin",
        "title": "shaarli.tristank.de"
    },
    "updates": {
        "check_updates": true,
        "check_updates_branch": "stable",
        "check_updates_interval": 86400
    },
    "feed": {
        "rss_permalinks": true,
        "show_atom": false
    },
    "privacy": {
        "default_private_links": false,
        "hide_public_links": false,
        "hide_timestamps": false
    },
    "thumbnail": {
        "enable_thumbnails": true,
        "enable_localcache": true
    },
    "redirector": {
        "url": "",
        "encode_url": true
    },
    "plugins": [],
    "credentials": {
        "login": "tristank",
    }
}
*/ ?>

missing RSS feed icon

Hello,

First, thanks a lot for this wonderful theme.

I can see that you need to be logged in to see the 'RSS feed' icon. Is it by design?

J.

Plugin administration is not well reloaded

How to reproduce:

  1. Go to Plugin administration
  2. Enable or disable a plugin
  3. Click on "save plugins"
    = the page is reloaded but it's the same configuration as before =
  4. Manually reload a second time the page
    = it's ok =

permalink (date) not showing, or showing with a wrong fromnow date

Hi,

$GLOBALS['config']['MATERIAL_DATE_FROMNOW'] = true;

always showing a few seconds ago

$GLOBALS['config']['MATERIAL_DATE_PATTERN'] = 'DD/MM/YYYY HH:mm:ss'; // optional
$GLOBALS['config']['MATERIAL_DATE_FROMNOW'] = true;

always showing 2015 years ago

$GLOBALS['config']['MATERIAL_DATE_PATTERN'] = 'DD/MM/YYYY HH:mm:ss'; // optional
$GLOBALS['config']['MATERIAL_DATE_FROMNOW'] = false;

showing nothing since commit bec18701801cc140d760c261dd115fda1507a0dd of shaarli community, which is:

commit bec18701801cc140d760c261dd115fda1507a0dd
Author: ArthurHoaro <[email protected]>
Date:   Thu Mar 12 21:57:19 2015 +0100

    Define date format in templates instead of index.php.

If I switch to the default theme I can see the permalink even after this commit.

Thanks.
J.

PS: live examples of shaarlis using shaarli-material that have same bug as me http://river.hoa.ro/network.php you will recognize the favicon of those shaarlis

save shaarlink when pressing 'enter' in tag field (while editing a shaarlink)

Hi,
again thanks for this wonderful theme.

How to reproduce:

  1. edit a shaarlink

  2. place cursor in tag field

  3. press enter

  4. you are asked if you want to delete the shaarlink.

  5. expected behaviour: just save the shaarlink

Is this something that is do-able on your side? or is this something in shaarli community code.

Thanks
J.

French translation

Shaarli is mainly used by French speakers, is it possible to add a French translation for this theme?

Broken on last Version.

As the config has been moved to data/config.json.php , there is no more config.php.

Resulting in a lot of errors like this on almost every pages:

Notice: Undefined index: config in /var/www/shaarli/tmp/linklist.aeadca0864f49f08401fb0f97c162898.rtpl.php on line 64

How can I fix that ?

Thank you in advance !

2 clicks needed to login or logout

Hi,

Would it be possible to be just 1 click away from login and logout? Today we need 2:

  • 1 for displaying a submenu
  • 1 for actually log in/out

For this, I guess we need to have 1 icon for login that changes into another icon for logout.

Thanks
J.

Compatibility with emojione plugin and the ASCII Smiley option

I wrote a plugin for emojis support with Shaarli. Everything works well but not one particular option with the Material theme.

NerosTie/emojione#5

Material has a strange behavior with ASCII emojis like :) at the beginning of a line (that means they are not converted) if the markdown plugin is activated. And they are not converted in tag area too.

This issue do not exists with the default theme and I can't find where is the difference in your theme...

Could you help me? 🙏

lightbox + pluginadmin

what about add a lightbox for deleting publication process?
and the plugin admin ui ? any release date ?

again. thanks for this awesome, incredible and wonderful theme!

Blockquotes in italic

With the new version of Shaarli, there is a plugin for markdown. I don't see any major issue but blockquotes could be better like being in italic.
Blockquotes are already in a greyish font, so maybe it's not necessary.

What do you think about it?

Edit: I think there is a missing margin on the left when the markdown plugin is activated.

Nice work!

I just wanted to let you know I really appreciate this project by you. I have only done a few tweaks here and there,.
You can see my copy running on following site:
https://bookmarks.k0nsl.org

Have a good weekend,

Error Tag Rename

i write the old an the new tag in the form and go to Rename Tag.
The site reload and at the ?do=changetag site i get a 404 Not found error.
with the original theme it works fine. i use the fork from https://github.com/shaarli/Shaarli

_blank option

Evolution
Add a 'target="_blank"' option for link list on Tools/configuration of shaarli
So that on linklist page, each link opens in new tab.

On edit : delete button first in source code

On edit, the the delete button is the first "submit" button in source code.
This causes the browser to delete the post when the user hits "enter".

To fix : change type="submit" to type="button" on both delete and cancel buttons.

Other pages might be subject to this behaviour too. Default Shaarli is not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.