Code Monkey home page Code Monkey logo

chyrp-lite's People

Contributors

cekkr avatar diffusehyperion avatar inasis avatar jaywilliams avatar jerrywham avatar meskarune avatar roughnecks avatar wireheadmech avatar xenocrat avatar xiaofeng-ling 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chyrp-lite's Issues

Cyrillic tags

Hi. At the moment Chyrp doesn't support cyrillic script in tags, they just don't work.
So I just wanted to ask if there is some easy way how I could solve this myself or is this problem more complicated?)

Trying to install from master repo

I am getting an error on line 543 of install.php

Parse error: syntax error, unexpected ';', expecting ')' in /install.php on line 543
Line 543: $set = array($config->set("sql", $settings);

Also, why is it so much different than the 2016-03 install.php file?
Line 543: $config->set("sql", array());

Feature request: Recent posts module

The only thing I'm looking for that's not already in the module folders is a section for recent posts.
Is there is already a way to do this with the current modules? If not, I could write my own, but it does seem like this would be something people would frequently want in a blog and shouldn't be very difficult to implement. If I do end up creating my own, I'll let you know.

Numeric Tags causing Offset Error in Tag-Class

When adding a numeric Tag like "4212", our postal code, I get:

Notice: Undefined offset: 4212 in /home/.sites/664/site489/web/chyrp-lite/modules/tags/tags.php on line 614
Notice: Undefined offset: 4212 in /home/.sites/664/site489/web/chyrp-lite/modules/tags/tags.php on line 615

I removed the tag in the Database where there are no Quotes around the newly added tag which probably causes the error:

neumarkt: "neumarkt"
4212: 4212

First line is a working tag, second one does not work.

Login page for guests without `View Site` permission

If you remove all permissions from a guests, chyrp-lite's root looks fine:

Access Denied
You are not allowed to view this site.

Nothing else is displayed. index.php prevents users from locking themselves out (

!in_array($route->action, array("login", "logout", "register", "activate", "lost_password", "reset")))
), which is good. However, i see some problems:

  • the allowed actions (login, et al) are displayed inside the site default theme. That means that email, tags and other information that shouldn't be public is revealed.
  • /?action=login is easy for the admin to remember, but not for collaborators. The root should display the login form if necessary.

I think that an independent login + register page (that doesn't extend default.twig) for this case would be the best way to go. It has the positive side effect of reducing chyrp-lite's fingerprint.

If the site is public, then there's no problem in keeping the login form inside the default template.

chyrp not working on IIS

My server is running IIS (not my choice). I ran the install script just fine, but the index.php page just shows a blank page and there is no error message.

I'm guessing it's because of the htaccess file not being compatible with IIS. Is there a work around for this?
Or are there larger issues with trying to use this on a windows machine?

No Pages Menu Using Sparrow Theme

When I activate the default Blossom theme, I can see a separate pages menu with the pages listed that I have created. However, when I activate the Sparrow theme which I use, there is no pages menu displayed. Only menu displayed is:
Email Feed Archive Admin Controls Log out

Insert JavaScript or HTML inside text body in post

Hello.... I just want to share a way to insert JS or HTML in the text body in EVERY POST. You can use it to insert JS advertising code or something in your post. I modify the ##themes/ThemeName/feathers/text.twig file as described below...

{% extends "content" ~ DIR ~ "post.twig" %}

{% block content %}
{% if post.title is not empty %}
<h2 class="post_title">
<a href="{{ post.url() }}" rel="bookmark" title="{{ 'Permanent link to &#8220;%s&#8221;' | translate | format(post.title | striptags | normalize | fix(true)) }}">{{ post.title|capitalize }}</a>
</h2>
{% endif %}
<section class="body{% if post.body | length > 1000 %} longform{% endif %}">
{% set text = post.body |split(' ') %} 
{% if text|length < 101 %} 
	{% for t in text|slice(0, lenght) %} {{ t }}{% endfor %}
	
	InsertJSorHTMLhere

	
{{ post.title|capitalize }} {{ text|length }}s
{% elseif (text|length > 100) and (text|length < 501) %} 
    {% for t in text|slice(0, 60) %} {{ t }}{% endfor %}
	
	InsertJSorHTMLhere
	
	
	{% for t in text|slice(61, lenght) %} {{ t }}{% endfor %} {{ post.title|capitalize }} {{ text|length }}s
{% elseif text|length > 500 %} 
    {% for t in text|slice(0, 70) %} {{ t }}{% endfor %}

	InsertJSorHTMLhere
	

	{% for t in text|slice(71, 380) %} {{ t }}{% endfor %}

	InsertJSorHTMLhere
	
	
	{% for t in text|slice(381, lenght) %} {{ t }}{% endfor %} {{ post.title|capitalize }} {{ text|length }}s
{% else %}
    {{ text|join(' ') }}
{% endif %}</section>
{% endblock %}


Support Forum

@xenocrat Do you think it's possible we can talk about putting up a support forum? I would like to see more active users and give support as well as have a Showcase topic to display existing sites. I think it will help gain recognition and build a follower base.

Thoughts?

I can not log in and I can not register a new user.

Hello
Thank you very much for this wonderful script.
I have installed it but I can not log in and I can not register a new user.
I tried to install it more than once but without interest although the data is 100% correct but I can not access the control panel.

1

2

The error is:
Invalid authentication token.
Please consider setting a stronger password for your account.

SQLite: error with post view URLs containing date/time

Chyrp Lite 2017.01 introduced a SQLite compatibility problem that results in an error when a visitor attempts to view a post using a clean post view URL that contains a date/time component. This problem also affects keyword searches in the blog or admin console that attempt to filter by date/time.

Error after Upgrade

Twig Error
Unknown "items" filter in "layouts/default.twig" at line 20.
Backtrace

includes/controller/Main.php on line 773
modules/homepage/homepage.php on line 36
includes/class/Trigger.php on line 83
includes/class/Trigger.php on line 59
includes/class/Route.php on line 117
includes/class/Route.php on line 117

Invalid security key

Noticed a problem with access using Chrome on Android device.
First time logging into admin panel I get the message "Access Denied Invalid security key".
On the second time it finally lets me in, but still the Invalid security key message appears when trying to apply any changes in admin panel: settings, themes, writing a post, etc.
Other browsers seem to handle everything just fine. But still curious what might be the case and how it can be solved?

Conditional "Blog" link in the sidebar

In the Blossom and Topaz themes, the "Blog" link is conditional

https://github.com/xenocrat/chyrp-lite/blob/master/themes/blossom/content/sidebar.twig#L11
https://github.com/xenocrat/chyrp-lite/blob/master/themes/topaz/content/sidebar.twig#L11

Is a matter of taste, and the themes are there to modify them, but having a disappearing element in the navigation bar felt unnatural to me (my first thought was that there was something broken). A static navigation list could be considered for the default themes.

No comment box, nowhere to like posts

I installed it & see no comment box, nowhere to like posts, etc.

Checked settings, modules, etc.

Do I need to add this functionality to whatever theme I'm using?

Tumblr Import

I have a tumblr account I am trying to import from. When I type in my link, I get the following message...

Content could not be retrieved from the given URL. Server returned a message: HTTP/1.1 404 Not Found

My link to my tumblr page is valid. Not sure why it's throwing this error. Any ideas?

Database Error - no such table: sessions

I get the following message in the latest release, the master and develop branches

Database Error
SQLSTATE[HY000]: General error: 1 no such table: sessions
Query String

SELECT sessions.data
FROM sessions
WHERE (sessions.id = :id)
ORDER BY sessions.id

Parameters

Array
(
    [:id] => s35i4vcah2s0k64qq3k9buv436
)

Backtrace

    includes/class/Query.php on line 65
    includes/class/SQL.php on line 195
    includes/class/SQL.php on line 232
    includes/class/Session.php on line 38
    includes/helpers.php on line 36
    includes/common.php on line 318
    includes/common.php on line 318

There's no clear pattern, it can be after browsing a few pages or several, but most of the times after login in as admin and opening /admin. Happens on pages that were already visited successfully before too, for logged in and out users. Clearing the cache solves the issue temporarily.

Cache, cookies and sessions were cleared before each fresh installation. Referes were enabled.

Unwanted smiley rendered when writing: =d

Hi. I just wrote a text containing the line: SELINUX=disabled . This gets rendered as SELINUX😃isabled . Is suppose that rendering of smileys should not occur in code blocks?

Regards,
Rolf

WYSIWYG inserting attempt question

This is not exactly a chyrp lite issue, but I just don't know where else to ask.

I heard that there are no plans on adding wysiwyg editor as a module, but still I decided to try something myself.
Since I'm not a programmer I tried to insert a cdn ckeditor at least.
As far as I understand, main .js script call should go to ../admin/layouts/default.twig next to other scripts in the head.
And the CKEDITOR.replace( 'body' ); function should go after the textarea in ../admin/partials/post_fields.twig and page_fields.twig
I've been trying different ways of inserting, different wysiwyg editors and same problem - just nothing happens, textarea stays the same.
Just can't get my head around this.
I guess all this requires something more to be inserted to chyrp lite. Or maybe I just don't see something obvious.
Sorry if the question is too unrelated, but it would be just awesome if you could give any hints on this subject even though it's not that much about chyrp itself :3

Activating Recaptcha in Kordofan

Missing argument 1 for recaptcha_get_html(), called in /mysite/modules/recaptcha/recaptcha.php on line 52 and defined (/mysite/modules/recaptcha/lib/recaptchalib.php on line 106)

Backtrace

modules/recaptcha/lib/recaptchalib.php on line 106
modules/recaptcha/recaptcha.php on line 52
includes/helpers.php on line 1737
includes/controller/Main.php on line 804
includes/controller/Main.php on line 763
includes/controller/Main.php on line 432
includes/class/Route.php on line 122
includes/class/Route.php on line 122

Uploader Feather behavior on edit post

Recently used the uploader Feather a lot to post a Gallery for every day of a really long holiday. Everytime I want to edit the Content I have to reupload the Fotos. Please change to only delete Uploads when there are new uploads or the post is updated. TIA.

Content of `.htaccess` is duplicated

The <IfModule mod_rewrite.c> block is written twice for some reason. That said, what's the rationale behind writing and proofing it from the installation? Shipping a htaccess file and renaming it to .htaccess simplifies the process. Plus, the error message can instruct the user to rename it manually if the permissions fail.

Ensure that JS is enabled during installation

I didn't notice that Javascript was disabled during the installation, which lead to a strange behaviour and errors:

  • selecting SQLite 3 as adapter didn't remove the MySQL fields
  • some MySQL fields, like the table prefix, were getting passed to SQLite 3
  • the site was created without any warning but there were dozens of "Database Error" messages at random intervals

Tested with the latest release and the develop branch.

A "you must enable Javascript" banner would solve the installation problem, but differentiating and validating SQLite and MySQL fields in the form would probably be a good idea.

Activation Email Not Recieved

I have attempted to register an account for myself on Chyrp Lite blog and I get the message

We have emailed you an activation link

But I never received an email in my inbox nor junk folder. Is there a config file I need to make sure email settings are setup in? I haven't had much luck finding out the reason why nothing is received.

Guest - Front page Posting Form

Hello.. I love Chyrp Lite.
This is just a question. I want to use chyrplite as a guestbook function.
Anybody knows how to create simple guest front page post with Maptcha enabled?
The Guest does not need to login/register first. Maptcha is needed to be solved by Guest. Default form submission is "Denied" mode.
Thanks for any comment / ideas .

Referer - AJAX error prevents installing extensions

Trying to install any extensions results in an alert saying

There was an error enabling the extension.

The POST seems to be wrong (missing values):

action=enable_module&extension=highlighter&confirm=&hash=

and returns the following HTML and response

Access Denied: Invalid security key.

Access Denied: Invalid security key.

Seems to be caused by blanked referers. If I disable AJAX or enable referers, extensions are installed normally. Fresh chyrp-lite install, latest release.

Theme caching

Hello again!

I'm attempting to create a theme and the design keeps caching. I think it's a twig caching issue but I'm not a hundred percent sure.

For example, I removed links in the default.twig menu area and they still persist, among other small changes. Like adding a line of text or adding random inline CSS to make sure things are actually updating (these "test" additions don't show up).

I've cleared my browser cache (Chrome), and disabled caching (as far as I can tell) from my local AMPPS installation.

(also I'm very sorry for constantly showing up!)

Translations not working

I copied the english chyrp.pot and did my translation then I copied it to /includes/locale/de_DE/LC_MESSAGES and named it chyrp.pot. In settings you then see german as an option. But when I select it and click update the language doesnt change.

Added Features

@xenocrat Here are some features I would like to see implemented.

  1. More Themes
  2. Ability to change what is displayed on the menu from the admin panel (customizable menu)
  3. Have a grouping option that will allow admin to add page links so that can group by audio, photos, even certain collections of photos based on categories or tags that the members add to their uploads when posting. Like have nature category group photos tagged with nature, animals, etc and a page link can then be created titled Nature and it displays those photos. Also, can create a page titled New or Recent and it displays the most recent within the past week, etc.

Sorry if I am posting this in the wrong spot as I wasn't sure where else to post it. Remember we used to have the forum on the old site

php5-intl is a requirement

Hi. I want to install chyrplite on my raspberry pi with a variant of Raspbian installed (osmc). I get an error: "Call to undefined function locale_get_default()". It seems php5-intl must be installed as a requirement. Perhaps this should be added to the documentation? I ran "apt-get install php5-intl" which made the error disappear.

Updated Feathers

I have updated the feathers to follow your format for Chyrp-Lite. I thought I had credentials once to push them to you but it keeps failing stating that I don't have permission.

Error after installation

I received this message right after it installed and told me to login.

The line of code is:
foreach (Config::current()->enabled_modules as $module)

Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Please consider setting a stronger password for your admin account.

Chyrp Lite has been installed
What now?

Error in feed if no posts exist

On a fresh install, /?action=feed returns

Error
Invalid argument supplied for foreach() (/var/www/chyrp/includes/controller/Main.php on line 751)
Backtrace

    includes/controller/Main.php on line 751
    includes/class/Route.php on line 122
    includes/class/Route.php on line 122

Importers fail to create new posts

The relevant part of the error is

array_merge(): Argument #2 is not an array (/var/www/chyrp/includes/model/Post.php on line 230)
Backtrace

    includes/model/Post.php on line 230
    modules/importers/importers.php on line 296

I fixed it changing the order of the last 2 parameters in

$new_post = Post::add($values,
(and changed "" to array()).

It seems like all importers have the same issue, so just to confirm: am I doing something wrong? If not, I can PR a patch right away.

Password forgotten

I am trying to remember my password but I can't. I am also trying to figure out which type of encryption are you using so I can put in a password again for my admin account so I can log back in. Thanks.

weight & height video

Greetings. Excellent sms. The question - is how to change the size of output video in posts? now video in all templates is stretched into the size of the post.

Multi User

I see the latest version has user self registration features. Am I dreaming?? I am in love! Great Job D!

Add post display Error

My mysql sql_mode is TRADITIONAL mode, so when adding a new post will be wrong:

Database error: Incorrect datetime value: '0000-00-00 00:00:00' for column

I have modified my sql_mode for ANSI mode, the problem is temporarily resolved, hoping to solve the problem in the code.

Comment line breaks

I wasn't sure where to put this since this isn't a direct issue with Chyrplite so much as a question.

I'm using the Sparrow theme on a test site and noticed comments don't retain linebreaks. The comment text is printed out in a single line / paragraph.

Is there a way to have comments preserve linebreaks via CSS or some other method?

Markdown editor

Any chance a markdown editor will be introduced in the core or as an extension?

I know the original Chyrp had an extension for it, though I can't remember the name.

Error when installing 2015.06

I get the following messages when installing.

Notice: Only variable references should be returned by reference in /includes/class/Config.php on line 135

Notice: Only variable references should be returned by reference in /includes/class/SQL.php on line 465

Notice: Only variable references should be returned by reference in /includes/class/SQL.php on line 468

PHP7 probelm

I have tried to install Chyrp Lite on Ubuntu 16.04 where PHP7 is the default install. I do, however, get this error:

session_write_close(): Session callback expects true/false return value

I hve tried to figure what is going on, but -alas- it is beyond my PHP skills.

Post sort order

Imported a list of posts from Chyrp.
Most-recent posts are listed at the top - this is fine.

Found a typo in the first post, edited it - leaving original timestamp. Save post.
It is now listed at the bottom (i.e. invisible). Also in admin, this post is last in the list.

Can posts be sorted automatically by timestamp descending?

Likes module: error when guest visitors attempt to like

Due to an error in Like module's code and misconfiguration of the database indexes when installing, likes cannot be recorded by nor attributed to visitors in the guest group. The solution is to install the files from the referencing commit below.

Add more options to the importers

I'm working on adding more options to the importers: custom status, timestamp, tags and category. Would you like to get it as a PR when it's done? Otherwise I'll make a dedicated fork and post the link here.

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.