flynntes / sleeky Goto Github PK
View Code? Open in Web Editor NEWπ¨ A sleek and simple frontend & backend theme for YOURLS
Home Page: http://sleeky.flynntes.com
License: MIT License
π¨ A sleek and simple frontend & backend theme for YOURLS
Home Page: http://sleeky.flynntes.com
License: MIT License
Hi
was trying to work out a way of messaging you sorry for opening it as an issue as it's not. Just wanted to say thank you for the Sleeky design.
I saw it a couple of days ago but needed a responsive version so built a new one from scratch but used some of your code for styling etc.
Thank you once again.
First of all: this looks great!
I did everything as written on Github and the Backend works just fine, but the Frontend doesent work properly (see screenshot)...
Thanks in advance!
Cheers
Screenshot: https://ibb.co/tp6Y1zw
Domain: http://linkcarrot.cc
Hi there ,
After 2.3.0, every version of sleeky has the same problem that I cannot log in to the admin page in one time. I have to click on the log in button, and got a blank page, then I have to click the "go back" button on my browser, only in this way can it display the admin page.
Why this happenes? I think this is not my problem cause the setting has nothing wrong.
Hello,
Thank you for your themes, very good job but frontend shortner doesn't work if i disable reCaptcha in config.php.
When I try it and click on Shorten, nothing append.
No problem in backend.
I use the lastest versions of your themes and yourls.
You can try it by yourself here : https://go.breat.fr.
Admin interface does not look good on mobile at all. It isn't responsive to resolution.
Hi :) Thanks for the great theme!
I noticed that when creating links from the bookmarklets, the page doesn't account for the pop up at the top of the page, which will appear behind the "shorten URL" top bar. Also that "shorten URL" bar looks different than in the admin interface β¦
I don't care too much, but wanted to let you know.
Hey there,
Should preface by saying that everything about this theme is spectacular. Blown away by the quality of your work mate. Looks & works like a dream.
The only issue I've hit is that link previews stop displaying the moment I enable the backend Sleeky plugin. Is there anything specific in the Sleeky settings I've missed or need to change to fix this?
Cheers for all your hard work so far. Hope this one is just a PEBKAC & easily fixed. Let me know your thoughts.
-Al
I've added today Sleeky backend theme to my YOURLS. It's great, but I have seen that anonymous users cannot access to URL statistics, even if they create the shortened URL.
Is there a way to enable this feature?
Thanks for the theme and help!
I wrote a good handful of plugins to work with the stock backend and used the infos.css and infos.js in order to create nice tabbed
It would be cool to include some documentation on how to include our own public pages (terms and conditions, privacy policy etc...)
Also, a separate public stats page would be awesome, don't really want users being shown a link to the admin panel and yourls documentation
When investigating a separate issue, I enabled errors to display. I then found that my page title wasn't loading properly. This was because 'title' was defined in both the /user/config.php
and in the sleeky /config.php
.
This is actually quite confusing so I have removed the sleeky config and opted for all my settings to be defined in the user/config.php
only.
My solution to this was to:
/config.php
,include 'config.php';
line from header.php
,require_once( dirname(__FILE__).'/includes/load-yourls.php' );
statement above include 'header.php';
in index.php
, anduser/config.php
This works because /includes/load-yourls.php
's task is to load the user/config globally and initialize the engine. With the require_once above the header include, header.php can access the same definitions without conflict.
I figured I should share if someone else is finding warnings of duplicate definitions or just want to keep all their settings in one place. It's a pretty quick fix.
Frontend doesn't load when I drag it into my main file can anyone help?
I know I'm supposed to put a bug report here, but this went in really smoothly.... and as far as I can tell it's exactly what I needed.
So the only issue is.... I have to say thank you, and great work!
Not clear which config.php. If this is the main config, what settings are related to Sleeky
GET https://fonts.googleapis.com/icon?family=Material+Icons net::ERR_TIMED_OUT
GET https://fonts.googleapis.com/css?family=Open+Sans:400|Montserrat:400,700 net::ERR_TIMED_OUT
My chrome displays these in the latest version and I cannot change the index.php to Chinese because after did this my index will become totally garbled.
Please do some check. I will change to the older version. Thanks.
Hi.
I am trying to edit the images on sleeky so I can customize it to what I want. But, It (for some reason) always defaults to the regular Sleeky images. I have even over written them and it is still the same images. Also, how can I add custom HTML to it?
The Sleeky front page would be perfect for team members being confused by the complex admin page. It'd be great if you could add a simple log in freautre to the frontend so we can limit access.
Great work, keep it up!
I am having a problem using Sleeky and trying to generate QR codes using the IQRCodes plugin when logged out as a public user would be.
My current configuration is:
YOURLS v 1.7.9
YOURLS-IQRCodes v 2.1.2
YOURLS-U-SRV v 2.1.0
Sleeky v 2.4.1
PHP v 7.2.3
MySQL v 10.3.23
(For those unfamiliar with this plugin: IQRCodes uses the U-SRV plugin to serve the QR code image when .qr is added to the short link, through a helper file called srv.php located in the pages folder.)
When I'm logged in, everything works fine, the QR code displays centered on it's own page on a black background.
However, when logged out the image does not render, no CSS loads and it looks likes this...
When I check the error logs I am getting,
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/USERNAME/public_html/user/plugins/sleeky-backend/plugin.php:145) in /home/USERNAME/public_html/user/pages/srv.php on line 40
followed by the same for lines 156, 157 and 158 of the srv.php file.
In the Sleeky backend plugin file, if I block, (line 145)
// Hide admin links for non-authenticated users
if (yourls_is_valid_user() != 1) {
echo <<<HEAD
<style>ul#admin_menu li:not(.frontend_link) {display: none}</style>
HEAD;
from loading, the QR code displays as expected.
However, this is not a fix as I need these lines to load to hide the admin links from my public users.
In srv.php line 40 sets a cookie to help with javascript calls, and lines 156 to 158 set the content types which is why the QR code won't load without them.
header('Content-type: ' . $ctype);
header('Expires: 0');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
I have tried merging the above code with the Sleeky code but couldn't get it to work.
I also tried adding a php.ini file to public_html containing buffer_output = on
and then adding,
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/USERNAME/public_html
</IfModule>
to htaccess to make it apply to sub directories, but this didn't work either.
I'm only a novice when it comes to PHP so have no idea what to try next.
Thanks in advance for any help.
I'm having fun hacking at your code here, and I was hoping you might be able to help me get a qr code image on the result page using this plugin
http://techlister.com/plugins-2/qrcode-plugin-for-yourls/354/
When using the Domain Swap plugin the Admin Menu gets scrambled up.
Enable Javascript for Sleeky to work correctly.
Just setup Sleeky together with the current YOURLS v1.7.4.
Backend looks great but frontend doesn't seem to have any CSS on it. The configurations made in config.php work but all elements are just listed in the top left in front of the standard blue background. I was able to set a background image but it still looks kind of shitty.
Server: Ubuntu 18.04 (already has node and lessc installed for another Web package)
This is not a bug as such, but a request for info.
I have installed Sleeky on my YOURLS and have it working OK.
But I want to change the color scheme for the Dark theme.
For the front end, I want to tweak values in /var/www/yourls/frontend/assets/less and recompile to a new set of CSS files.
For the back end, I want to tweak values in /var/www/yourls/user/plugins/sleeky-backend/assets/css and recompile a new set of CSS files.
Please could you give me a talk through on how to do this?
Very many thanks if so...
I tried to add recaptcha but the styling won't allow for it.
Hi,
Yourls is fundamental in Linux system because it solves the wget issues of long URLs with special flags like ? and &
But with the last version of the plugin the unique file that wget catch is:
<style>ul#admin_menu li:not(.frontend_link) {display: none}</style> <script type="text/javascript"> window.location="_URL_SHORTENED_"; </script> <small>(if you are not redirected after 10 seconds, please <a href="_URL_SHORTENED_">click here</a>)</small>
I love the purpose of this the new feature, but there should be the option in the admin mode to disable it.
Thanks for your awesome work.
All the best
Sleeky is a GREAT theme, but we can't use it until it supports the Google Analytics plugin for the UTM parameters. That's a big reason why we use YOURLS in general.
This is the Google Analytics plugin we use specifically
Specifically, these fields are added to the Generate Shortlink form:
I might dig into it a bit to see if I can create a PR, I hope it's straight-forward because I'd love to be using Sleeky full-time.
Thanks!
First of all, it's an awesome theme, but I'm experiencing some kind of incompatibility with some QR codes plugins as SmartQR (v 1.2-drg-git) or Sean's QR Code Short URLs (v 1.1).
When I activate Sleeky Backend cant access to QR code image with .qr added to the end of the keyword as fun the main theme.
Thanks,
Jaime
Hello, backend works only with password locked admin page.
If you want a free admin page without password everything crushed!
YOURLS user/config.php
/** Private means the Admin area will be protected with login/pass as defined below.
** Set to false for public usage (eg on a restricted intranet or for test setups)
** Read http://yourls.org/privatepublic for more details if you're unsure */
define( 'YOURLS_PRIVATE', true ); <------------ false everything crushed!
Will there be dark mode for sleeky?
Because I use the website for another purpose, it is not index.php. I changed it to url.php, but I found the code after shortening the address:
<div class="close noselect">
<a href="https://xxxx.xxx/"><i class="material-icons">close</i></a>
</div>
SO,how can I change to "https://xxxx.xxx/url.php"
Hi,
Just put in the sleeky-backend on our YOURLS website and it is working well, the only issue we are having is an unexpected behaviour with the Lastpass browser extension. You can see what happens in the attached image.
Wondering if you have encountered this and if you have any idea how to fix the issue. Thanks.
I really love the look of sleeky, but I also really miss the option to choose a custom short url.
Is it possible to make that field optional?
Thank you so much
The link to the CSS on header is defined this way
<link rel="stylesheet" href="<?php echo siteURL ?>assets/css/base.css">
<link rel="stylesheet" href="<?php echo siteURL ?>assets/css/mobile.css">
<link rel="stylesheet" href="<?php echo siteURL ?>assets/css/tablet.css">
<link rel="stylesheet" href="<?php echo siteURL ?>assets/css/desktop.css">
However, the console says those are all 404
Which I assume, the Gruntfile.js
failed to create those files.
On the occasion it successfully creates the files however, I got another issue about Resource interpreted as stylesheet but transferred with MIME type text/html
which caused by https://DOMAIN/assets/css/base.css
redirects to https://DOMAIN/
Any help on this please?
I am using YOURLS 1.7.2 on nginx
Hi all,
I have an issue with the Frontend reCaptcha v3.
When I set it on as define("enableRecaptcha", true);
in the config.php in the Frontend folder.
When I put the link and custom link, hit the shorten link, the page is just frozen. It did not go anywhere. I also refreshed the page but it did not help either.
However, when I defined the Recaptcha back to false. Everything works fine.
Is there anyone have the same issue? And how to fix this please? Thanks so much.
Please note: I already tried to reset with the new sitekey and secretkey from Google. But it did not help.
Kind regards,
Quang
The index redirect Plugin is not working with the current release. When I click the link to the frontend in the sidebar, it works. When I try to open the frontend link direktly, it displays an empty page. When I deactivate the Sleeky Backend plugin, it works correctly.
IN YOURLS core, there is the shunt_html_addnew
filter to enable manipulation of the admin new url submission form, which I used with the Expiry plugin. This behavior seems to be bypassed in Sleeky, and the submission form does not include the option to expire the link.
Is it possible to disable the frontend page or lock it behind a login?
If you log out from admin page and you try to log in again there is only a WHITE page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.