Hardkap » Pritlog - Blogging made simple

Pritlog 0.81 - Plans

(30 posts)

Tags:

  1. Prit
    Pritlogger

    I have not worked much on Pritlog in a week or so. Now, I have been thinking of starting to work on Pritlog 0.81. I am thinking of going slowly with the version numbers as it is nearing 1.0 so that we can get as much covered in terms of making things smooth and more professional by the time we get to 1.0.

    These are the major goals for now. The list can always expand depending on feedbacks/suggestions.

    1. Easy theming: An attempt to separate core logic and presentation php/html
    2. Release couple of themes as done with 0.7
    3. Fix any bugs and minor fixes that come up from version 0.8
    Posted 12 months ago #
  2. Prit
    Pritlogger

    After playing around with a simple templating method, here is a test blog: (user:admin, pass: password)
    http://hardkap.net/pritlabs/sulog1

    You can login and go to admin, advanced and select one of the themes available.

    Posted 11 months ago #
  3. john
    Member

    Hi Prit,

    1. Theme Engine: it works well. Congratulations !

    It will surely atract people looking to change visual presentation without touching a line of code, as well as theme developers willing to share their creations, definitely a good move to increase Pritlog's user base.

    I also asume you had to separate presentation from logic in several functions. I'll look forward until you release the code to see if it justifies to port all changes I'did so far to the new version.

    2. Oher suggested features / improvements:

    2.a Searchbox: today it only works with single words, or if you enter an existing exact phrase. I suggest to increase its functionality to accept multiple words (OR) and phrases in quotes.

    2.b Edit Comments: some editing capability to manage comments (not just delete them)

    2.c Image Upload:

    - possible bug: can't get the file manager when trying to edit a post

    - image resizing: I still think Pritlog image upload needs some resizing capabilities. Of course current approach wouldn't be a problem if admin is the only one posting, but it might be required if you open the blog to several authors to prevent someone uploading a 2Mb 3000px wide pic, destroying your layout and slowing everything down.

    2.d Mail to Post Author

    Pritlog is already a nice blog script in its current state, please take some of my comments as a matter of personal preference. I know you try to keep it simple and that's perfectly fine. Good work !

    Posted 11 months ago #
  4. Prit
    Pritlogger

    Thanks for the suggestions John.

    I did not understand the "Mail to Post Author". Can you explain?

    Posted 11 months ago #
  5. gorfreeman@gmail.com
    Member

    Where can I download this version with the themes?

    Add please xmlrpc

    Posted 11 months ago #
  6. Prit
    Pritlogger

    This is not available for download yet. This is a pre-alpha preview of what is being done. An alpha will be out the next week and a final release within the next 3-4 weeks.

    I will look into xmlrpc. If I understand correctly, this is generally used for ping's and trackbacks. Please let me know why you use xmlrpc and its advantages.

    Posted 11 months ago #
  7. gorfreeman@gmail.com
    Member

    Sorry for my bad english.

    • I will look into xmlrpc. If I understand correctly, this is generally used for ping's and trackbacks. Please let me know why you use xmlrpc and its advantages.

    No.
    It is used in send blog posts and edit blog posts via blog clients software like WINDOWS LIVE WRITER, Semagic ... etc.
    ______________________________

    Can I help in modifying the Wordpress themes for your engine?

    Posted 11 months ago #
  8. john
    Member

    Prit,

    Sorry for not being more explanatory.
    by "mail to post author" I mean a way to send a private mail (PM) to the author of a post (as an alternative to leaving a public comment)

    Posted 11 months ago #
  9. Prit
    Pritlogger

    Thanks John.

    @gorfreeman .. Thanks for explaining the purpose of xmlrpc. I will definitely look into this one. I usually select the features that would not add any bloat to Pritlog because one of the goals of Pritlog is to remain light weight.

    You can absolutely help in modifying wordpress themes for Pritlog. The only requirement would be to get GPL and other opensource licensed themes and leave the attribute to the original creator of the theme and add "modified for Pritlog" to that. When the alpha/beta is out, you can get the theme format. Thanks for this offer.

    Posted 11 months ago #
  10. Prit
    Pritlogger

    Plugin Experiment:

    I tried a plugin class called SHP. It uses hooks to execute plugins. I added around 12 hooks for now and will be adding more for this experiment. You can see it in action if you go to the test blog site - http://hardkap.net/pritlabs/sulog2 (user: admin, pass: password).

    Go to admin >> Manage Plugins and enable/disable the "Test Plugin". When enabled, this plugin adds a new menu item called "Function1". You can click it to reveal new pages that are not part of the default Pritlog code. You can also enable/disable the nicEdit for newentry and editentry.

    I am excited to see how plugins are working. I never imagined that Pritlog might use plugins one day.

    Posted 11 months ago #
  11. john
    Member

    Hi Prit,

    I tested the plugin option.

    I could enable / disable nicedit and also display Function 1 as a new menu item (however urls I entered were not retained / clicking on the menu shows the empty form)

    Could you explain the differences / advantages between doing this via plugins or through config parameters as currently done to set admin options ?

    Posted 11 months ago #
  12. Prit
    Pritlogger

    Hi John ...

    The Function1 plugin does not do anything but displays a sample form and when you enter anything and submit the form, it takes you to a new page displaying what you entered. I just wanted to demonstrate how this additional functionality was possible only through plugins without touching the Pritlog code.

    Anybody using Pritlog can release a customized plugin and anyone else interested can download and try it out on their Pritlog installation. If they don't like it, they can just remove this without again touching the code. They can temporarily enable/disable the plugin. This gives a lot of flexibility and people can mix and match the plugins they desire to make Pritlog the way they want it, without doing any coding or knowing the code.

    If we didnt use plugins, we cannot add such a functionality without modifying the Pritlog code.

    Let me know if I make sense.

    I will try explaining with an example
    You had suggested about a contact form to the post author. We could write a plugin for doing this. We can tell the plugin where to attach in the Pritlog code (for example: the post footer). Whoever wants it can use it. But the core Pritlog code does not change.

    Posted 11 months ago #
  13. Prit
    Pritlogger

    John .. I just added a contact plugin for demonstration. It does not validate or actually send an email. But check it out. Read my above post too.

    Posted 11 months ago #
  14. john
    Member

    Hi Prit,

    In the way you describe it, plugins would make a lot of sense.
    In fact it might be an excellent option to port my changes to the next release.

    But - and please correct me if I'm wrong - when you say "without touching the Pritlog code", it seems to me that this statement could be true only for very simple plugins.

    For example: if I want to add a checkbox to the new entry form, which also relates to a field in the administration page, then the plugin would have to interact with more than one function. Another case: some modifications I did, required significant changes to the original function logic.

    - do you think plugins could be applied in such cases ?
    - how do you call / share a plugin among several functions ?

    I visualize plugins as a sort of "external functions" able to add functionality to the Pritlog functions they are intended to "expand" Correct ?

    Posted 11 months ago #
  15. admin
    Key Master

    Hi John ...

    It depends on the hooks that are provided. The plugin code executes where the hooks are. Right now, I have around 42 hooks. I have not added any in the admin area yet. If it is useful as you mentioned, we can add hooks to the admin pages also.

    If you can explain the actual scenario of your requirement (adding a field to the new entry form, which also relates to the admin page), I will see if a plugin can accomplish it.

    Posted 11 months ago #
  16. john
    Member

    Prit,

    That was just a way of asking if a plugin could span over multiple functions, but I think the answer for that is yes, as I guess that in most cases plugins are a collection of functions by itself.

    The point were I think plugins would be more difficult to implement is where I made "significant changes to the original function logic"

    Let's say a mod requires different If statements, place a link instead of a static text, and an extra field in the db. How could a plugin override the original code without the function itself being "prepared" to work with that plugin ? or even worse to work with the variety of plugins people could develop ?

    Correct me if I'm wrong, but hooks are basically if statements around code sections that you would like to be able to modify.

    ////////////////////////////////////////////////////////////////
    I just had this crazy idea to simplify the plugin implementation:
    ////////////////////////////////////////////////////////////////

    Pritlog is already very "modular" using several functions, even for closely related tasks (new entry form, new submit, edit form, edit submit, delete form, delete submit, etc)

    What about using plugins to replace one or more complete functions with modified ones, instead of struggling with hook placements within a given function to anticipate what people might want to do !

    In this case, placing a few hooks on the mainLogic() function could do the job.
    (in addition, original functions could be groupped into separate include files for related tasks)

    This solution seem to me more simple, more flexible, and much more powerful.
    .. it makes life easier to plugin developers
    .. and for me to keep with the latest release :)

    What do you think ?

    Posted 11 months ago #
  17. john
    Member

    Prit,

    adding to the previous post:

    Plugin detection could be as easy as checking if an include with the same filename as the original function it is intended to replace exists in the plugin directory. No need for checkboxes to enable / disable.

    Posted 11 months ago #
  18. Prit
    Pritlogger

    Hi John ...

    The hooks that I am using now have the functionality to replace the entire page generated by any Pritlog functions with customized content. Also, using these several hooks, we could add many functions/plugins to execute at the same place in Pritlog. This will not be possible with your approach. With hooks, we may have much more flexibility and more possibilities for plugins.

    Posted 11 months ago #
  19. john
    Member

    there are probably things I still don't understand about plugins. Awaiting your next release to experiment and learn what could be done :)

    Posted 11 months ago #
  20. when I first used pritlog I could see the function and understand what it did (even though I don't know php), as it progressed it got a bit more difficult but more functionality came into existance also so you win some & you lose some. I think the plugin/function is a great way to go. I'd go one step further and make category clouds and all the above mentioned as plugins that people can enable and place at will.

    Just tested the test blog with nicEdit disabled! Very nice job!

    Posted 11 months ago #
  21. Prit
    Pritlogger

    Thanks Ken. Yes, I believe we can make the category cloud into a plugin.

    Posted 11 months ago #
  22. john
    Member

    New suggestions to improve comments display (viewEntry function)

    - list in reverse chronological order (better for posts with many replies)

    - make email visible if admin is logged in (enable direct contact without having to extract the address from the db)

    Posted 11 months ago #
  23. Prit
    Pritlogger

    Hi John ... Just added a new plugin for doing these two things (list comments in reverse order and displaying email when logged in as admin). Check it out at:
    http://hardkap.net/pritlabs/sulog3

    Posted 11 months ago #
  24. john
    Member

    Hi Prit,

    Looks perfect.

    Still trying to understand the "hook" concept:
    - I just read a post at http://www.s5h.net/2007/11/09/php-plugin-mechanism/
    does this explanation match the approach you are using ?

    Posted 11 months ago #
  25. Prit
    Pritlogger

    Hi John .. I am using the PHP class SHP from the below link:
    http://www.phpclasses.org/browse/package/4497.html

    Posted 11 months ago #
  26. Prit
    Pritlogger

    Hi John and those interested .. I have a SVN repo for Pritlog at Google code:
    http://code.google.com/p/pritlog/source/browse/#svn/branches/plugins

    There are unwanted extra files that will be removed before the alpha release. Right now, this is just for easy development purposes.

    I am new to SVN, so I am still a beginner. But it is interesting. I tried SVN and GIT and because Pritlog is small and collaboration is not as much, I thought SVN might be better.

    Posted 11 months ago #
  27. While I cannot code php I can download and begin testing and possibly porting themes if possible at this point and provide feedback and reg. input.

    Thanks!

    Posted 11 months ago #
  28. Prit
    Pritlogger

    Thanks Ken. Are you familiar with SVN? Themes are always appreciated. There may be very less changes to the themes before the release.

    If you download anything from the svn repo, make sure you use the branch - "plugins". This is the latest working version.

    Posted 11 months ago #
  29. Yikes.. So I download the svn on google and load up my server & guess what ? I remember that pritlog does not function on my home server.. If I had broadband or cable i'd be more than happy to test and port themes but pritlog does not function the way it does on a real server.. whatever that means. You say you designed pritlog on a windows machine or you only test on a live-server ? Crazy that it would not work on a local server.

    Well, I'm interested in helping but don't have the internet connection to upload and download, test, etc.. Apologies for forgetting this fact.

    Posted 10 months ago #
  30. Prit
    Pritlogger

    Ken .. does it show any errors? I always test on my local server before uploading to a test site. It should work if the server has PHP5 and Sqlite enabled.

    Posted 10 months ago #

Important: If you want to be notified for any new post on this thread/topic, please go to your profile, activate favorite notification and then subscribe to this topic.


RSS feed for this topic

Reply

You must log in to post.