Giter Club home page Giter Club logo

gs-blog's People

Contributors

every0ne avatar ferchosj avatar frusanov avatar gschintgen avatar jeckyl avatar johnstray avatar nikynik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gs-blog's Issues

Move all HTML sections to separate files

Move all the HTML sections, mainly in the adminFunctions.php file, to separate files. This make for much easier reading of the code, and much easier updating of the HTML.

Custom field labels are non-translatable

Each custom field, including default ones, have a label on them that will show up in the post editor. Due to the nature of the manage_custom_fields.php library, this cannot be changed.

Discussion: Do we really need to have custom fields setup for a blog? or are the defaults more than sufficient for production use?

Implement a Tag Cloud

Determine and implement a method for generation of a 'Tag Cloud'. Tag clouds show a formatted list of tags with font size determined by tag popularity.

Remove social media functions

Remove all the social media functions from frontEndFunction.php. Users can now add their own social media systems by adding their code to the selected template layout file.

Multi User Plugin Incompatibility

Here's the error I receive with the latest version of Get Simple Blog (from GitHub) and the latest version of Multi User (from Extend) with GetSimple 3.3.4 installed.

Warning: MultiUser::getUserPermission() [multiuser.getuserpermission]: Node no longer exists in /mywebdirectory/plugins/user-managment.php on line 195

Advertising code causing php warning

Advertising code in the 'Original' theme was causing a php warning when the relevant setting data was not available due to a fresh install of the plugin. The data was only available when upgrading from previous versions that contained this data.

Remove CodeMirror files

Remove CodeMirror files. They are not required because CodeMirror is already included in the GetSimple core.

Check for and repair any references to the files.

Slow admin page and version check error

Hello,

I'm starting to use gs-blog on my fresh get-simple install and I've found 2 minor problems :

  • Each time we try to access the blog admin page, gs-blog version is checked and make the access really slow. Once disabled, everything looks good to me so I'm wondering if this block in 'gs-blog/inc/adminFunctions.php' realy usefull ? :
    if(!isset($_GET['update'])) {
        $update = blog_version_check();
        if($update[0] == 'current') {$ucolor = '#308000';}
        elseif($update[0] == 'update') {$ucolor = '#FFA500';}
        elseif($update[0] == 'beta') {$ucolor = '#2B5CB3';}
        else{$ucolor = '#D94136';}
    } else {$ucolor = '#777777';}
  • Also, there's actually an error with the checked version of gs-blog. In get-simple extend API we got version 3.3.1 but in 'gs-blog.php' you set the actual version to 3.3.0 :
define('BLOGVERSION','3.3.0');

Hope this help you a little, I'll try to be as helpfull as possible :)

Better handling of date/time formats for different languages.

To better handle the format of dates in the plugin, add a new string to each language file with that languages date format, then use the i18n() function to get the format.

Example language file:

$i18n = array(
    "DATE_FORMAT' => '%d %b %Y',
);

Example usage in a date function:

date ( i18n_r ( BLOGFILE.'/DATE_FORMAT' ) , time() );

Sitemap Integration

Enable the plugin to integrate with GetSimple's SiteMap functions so that blog posts will be shown in the website's site map. This will allow for better Search Engine Optimisation.

TODO:

  • Build separate class to handle management of the site map.
    • Class __destruct() method:
      • Execute plugin filter and check validity of return
      • Format the XML if setting enabled in gsconfig.php
      • Save the XML Structure to file and call 'sitemap-aftersave' plugin hook
      • Ping search engines if required
  • Integrate the class with the following functions:
    • $Blog->savePost - Add/edit entry when a post is saved or modified
    • $Blog->deletePost - Delete entry when post is deleted.
    • $Blog->saveSettings - Update links when PrettyURLs are enabled or disabled.

Possible additions to the class:

  • Add entries for Category
    • Create addCategory() and removeCategory() methods
    • Integrate the class with Category management functions: saveCategory, deleteCategory, updateCategory
  • Handle entries for Archives
    • Add entry for archive date when saving a post if an entry for that month doesn't already exist.
    • Remove entry for archive date when there are no more posts in the archive - this should be done when deleteItem() is called after deleting a post. Loop through all posts to check if there are any left in the archive date.
  • Handle entries for Tags
    • Add entry for each tag on a post when the post is saved, first checking if an entry for the tag doesn't already exist.
    • Remove entry for a tag when there are no posts remaining that contain that tag. This should be done when deleteItem() is called after deleting a post by looping through all posts and identifying which tags they have.

Develop a new thumbnail system.

Develop a new system for adding thumbnails to posts. The current system is poor/buggy and lacks support for choosing images in the uploads folder.

Should include support for img alt values

Fix "Go Back" links on posts.

Modify the "Go Back" links that appear at the end of posts to point to an actual address rather than using the JavaScript back(1) method.

Rewrite frontEndFunctions.php as a class

Rewrite the frontEndFunctions.php file grouping all functions together into a class of useable functions instead of just a bunch of functions.

Provide a method of backwards compatibility so that calling the function name the old way will redirect to the respective class function.

RSS Auto-Importer thumbnail support

Implement a method for the RSS Auto-Importer to download an image from the original post.

Incorporate the phpQuery library to easily select the first image in the originating post, then try to download it to the uploads folder and append it to the post.

Lists should be able to be echoed or returned

Outputting of lists should have the ability to be echoed with the default HTML format, or returned as a php array that a user can format accordingly.

This will require rewriting of multiple functions, including but not limited to those relating to archive lists, category lists, etc.

Implement layout templating system

Create a layout templating system for the blog that shows a dropdown list of layouts to choose from. Layouts can be custom made by creating a new php file containing the layout.

Review Italian language file for obsolete strings

If possible could you please go through the language file and search for and remove any strings that are no longer in use. This will involve searching all the php files for each string in the language file. If you can't find a reference to that string anywhere, delete the string from the language file. I'd like to have this done by the v3.5.0 milestone, so you have a fair bit of time to do this.

Update Check Error

Hi John, sorry for the multiple posts - trying to keep things organized. I get the following error when I click "update Check".

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/bsayers/public_html/dev/bsllc2015/plugins/gs-blog/inc/versionCheck.php on line 26

Warning: file_get_contents(http://get-simple.info/api/extend/?id=810) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/bsayers/public_html/dev/bsllc2015/plugins/gs-blog/inc/versionCheck.php on line 26

Links break after save

Hello,

I'm experiencing some difficulty with the plugin. If I add a hyperlink to a post, save it and check it, it works fine. But if I edit that post with the link, (not modify the link just a part of the post), the link href turns into a "/", example: <a href="/">link text</a>

I'm not sure if I have a configuration issue or I'm doing something wrong but maybe you can point me in the right direction. I've downloaded and installed the latest version here http://get-simple.info/extend/plugin/getsimple-blog/810/ and it seems to work fine on my local machine, however, after uploading it to a server off site, this issue starts occurring.

Dynamic generation of RSS feeds.

Determine and implement a method to have RSS feeds dynamically generated on the fly, rather than created and stored in a file.

Missing argument for getRegexUnicode()

WARNING: MISSING ARGUMENT 1 FOR GETREGEXUNICODE(), CALLED IN C:\WAMP\WWW\ADMIN\INC\BASIC.PHP ON LINE 699 AND DEFINED IN C:\WAMP\WWW\ADMIN\INC\BASIC.PHP ON LINE 712

Is this even related to GS Blog? Or is it a fault in the GS core? Investigation required.

Create hooks to allow extensibility by other plugins

Create hooks that will allow other plugins to integrate this plugin.

For example, another plugin will soon be developed by this team to allow posting of blog posts to a facebook page. This secondary plugin will use the hooks to detect when a post has been saved, then take that post and send it to a facebook page.

Hook List

  • blog_post-aftersave : Called after a post was saved and passed an array containing a list of the post's data fields, including: slug, title, date, author, tags, category, image, imagealt, content.

Filter List

  • blog_post-presave : Allows modifying of a post prior to it being saved to file. Called on post save, but before writing to file. Passed an array containing a list of the post's data fields, including: slug, title, date, author, tags, category, image, imagealt, content

Hierarchical URL Issue

Hello, I'm trying out your GS Blog plugin and I'm having some trouble with the post URLs. I'm a big fan of mvlcek's plugins and I'm using his i18n Navigation plugin to support Hierarchical URL's but when I create a new post in GS Blog, the URL shows the %parents% placeholder - like this: http://www.mydomain.com/%parents%/blog/post/post-title

I also noticed the post URL doesn't include the trailing slash (/). Do you know if there's a way to fix these two issues? I'm new to PHP so any help you can offer would be most appreciated! Here's the info from mvlcek's website, I always have nested/child pages in the websites I build, so I'll need these plugins to work together. I usually use i18n Special Pages to create Blogs but would definitely prefer to use a real solution like you have here. Thanks!

HIERARCHICAL URLS (SEEN HERE) Since version 3.2 you can use the placeholder %parents% in your fancy URL in order to include all ancestors of your page and not just the immediate parent.

Review Spanish language file for obsolete strings.

If possible could you please go through the language file and search for and remove any strings that are no longer in use. This will involve searching all the php files for each string in the language file. If you can't find a reference to that string anywhere, delete the string from the language file. I'd like to have this done by the v3.5.0 milestone, so you have a fair bit of time to do this.

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.