Code Monkey home page Code Monkey logo

news_manager-getsimplecms's People

Contributors

cnb avatar emanwebdev avatar naavis avatar szrudi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

news_manager-getsimplecms's Issues

jquery validation loaded in all backend pages

jquery.validate js and the style for invalid dates are both inserted in all admin pages ('header' hook), while it's only used for editing posts in NM.
(not a big issue, but I'll change this while doing other changes...)

focus set to title when editing existing post

When you create a new post the cursor focus is set to the title field. That's ok.

However this also happens when you edit an existing post, even more, the title is selected. (So it's easy to accidentaly erase it by typing anything.)

An alternative could be focusing the content field instead, but I think it's better not to focus any editable field, or perhaps the Options link.

filter placeholder echoed as "filte<em>r</em>"

In the admin panel the placeholder for filtering (displayed when the filter input field is empty) is displayed as "filter" (same lang string for the Folder button is used for this)

html tags should be removed.

better default permalink/URL structure

http://get-simple.info/forums/showthread.php?tid=3972&pid=31535#pid31535

Right now if you don't select fancy URLs in NM, by default a post has an URL like:

SITE/index.php?id=news&post=title

I'm going to change this default permalink structure: NM will use the one defined in GS, so that you can have slightly better URLs without having to change the .htaccess file, like:

SITE/news/?post=title
SITE/news?post=title

(I'm using posts as an example, but this is also applicable to ?archive=, ?tag= ...)

Now my question to current NM users:
Is anyone interested in having a setting to force using old-style default permalinks, independent of the structure defined in GS? (maybe for existing sites that want to keep it because of SEO)

documentation

Update and include documentation (especially sidebar functions usage) in the admin panel, or at least as a readme file.

Add last update field

Posts have no modified date / last updated field.

filemtime($file) is used to display the post xml date when editing a post. But if you e.g. upload post files using ftp their dates will probably be changed.

It could be useful to have a lastupdate field (or lastmod, updated, ...)

Add es_ES (Spanish, Spain)

Right now there is lang/es_LA.php, and is not used when the GS language is es_ES
Will re-do from scratch.

"edit this post" link

Insert "Edit this" type link in posts (frontend) if user logged in.

  • gsconfig setting to disable, e.g. NMEDITTHIS

and/or

  • Site and/or User profile setting (checkbox)

Link to htaccess page

A link to the &htaccess info page is displayed when you have just enabled fancy url's, then you never see it again.
Add link in settings page.

no message + undo link when delete post

In NM's admin panel, if you clic the "X" (on the right) to delete a post, a popup dialog asks for confirmation ("Delete post ...?"), then if you accept, the post is deleted and you get the message "The post has been deleted" and an "Undo" link.

Well, that's how it worked with GS 3.0. But since GS 3.1, you get the popup but NOT the message + undo. (Something has been changed in the way GS handles these things.)

This only happens in NM's main admin panel (list of posts), but not if you delete a post by first editing it, then click on the Delete link above (next to "Save post")

[...]

http://get-simple.info/forums/showthread.php?tid=1056&pid=31500#pid31500

Mutisite - several news/blog pages

Unlimited NM instances. Any GS page will be able to have it's own news/blog system.

I had already done my own quick tests. Not difficult for the frontend stuff, but must think about the backend (I have several ways in mind).

Path traversal issues

Authenticated users can delete any file with .xml extension outside the posts folder by using urls like:

/admin/load.php?id=news_manager&delete=../pages/index
/admin/load.php?id=news_manager&delete=../users/username
...

Also path traversal possible in:

  • restore post
  • edit post (e.g. can load ../pages/slug )
  • ...

(Only for xml files)

sample htaccess and (some) custom permalink structures

Due to changes for issue #34 you can now have NM fancy urls (no ?post=, etc.) combined with GS custom permalink structure, like:

%slug%/ (no parent)
%slug% (no parent, no trailing slash)
...

Unfortunately the NM sample htaccess generator page doesn't use function nm_get_url (instead it has this hardcoded as %parent%/%slug%/), so it's not being correctly generated in some cases.

minor path traversal issue - frontend

You can use urls like:

SITE/index.php?id=news&post=../pages/index

and the page is displayed as if it was a post.

Not a major issue, I believe. You can make it load any .xml file in the server, but only those having title and content fields will be displayed. It doesn't work with e.g. GetSimple user files.

Anyway better fixing this.

broken link to documentation page

The link to documentation page in settings page is no longer valid.
Change it to NM forum topic for now.

It's in the language files (except Russian)

Excessive file reads - function nm_get_url

nm_get_url reads the page xml file (only to get the parent slug) every time it is called.

This happens many times, as it is often used all over the backend and frontend site.

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.