Contact Robert Hartung

x Cancel
posted 9 months ago

Searching for a name (Apps for Facebook)

Hey all,

I've been developing some facebook apps for customers and I am working on a facebook API for my CMS - as I have seen what is possible with it, I am now searching for a name for a service/product/website (first idea was SoMeTo (=Social Media Tools) that I dont like much ) where you can get apps for your facebook page + manage your facebook account easily (idea: all in one place).

Maybe someone of you has an incredible idea for a name - that would be awesome! :)

Best Regards Robert

posted 12 months ago

Simple ajax based chat with php/php-cgi + mysql in the backend

Hello folks!

I am working on a project that has livestreams. I want users to be able to chat with each other. Users can login into the chat and then post messages.

For this I have set up a login handler (nothing special). If logged in a user can post a message (focusing the input and hitting enter or clicking the "go"-button).

If this is done I do a POST request to ajax/chat/postMessage.php and write that message into the database. No problem so far.

The problem I am concerning about is this: A "getter" is called (ajax/chat/getter.php?last=) that will return last x messages if no lastId is present or waits(!) for messages to be inserted from a user. This can be done like this: while(1) { $qry... if($num_rows) { echo json ; break; } sleep(); }. This is useful because the user does not have to query the server for new messages within a fixed interval (like 1 sec) - but he get's the messages when new are present + instantly! I will also include a time limit (set_time_limit(...)) so the scripts ends some time (this part is done already).

My problem is that I concern about server's performance. I have a lighttpd server with php5-cgi in the background. As far as I know the php5-cgi handlers (10 at the moment) will handle all requests that come in. But what if there are > 10 Users in the chat, waiting for messages, does the php5-cgi handlers wait until older requests are finished OR do they process other requests while others are sleeping?

Does anyone of you have experience with this?

posted 1 year ago

rhCMS' new backend design

1. Edit: Replaced the Snap due to some server(?) issue (some minor changes included)

This once was a concept I was playing around with - the last days and hours it growed to a possible new design for my CMS' backend.

Any ideas and thoughts about it? Any improvements - is everything clear for you?

Best Regards and Thanks
Robert
  1. Edit: Replaced the Snap due to some server(?) issue (some minor changes included)

This once was a concept I was playing around with - the last days and hours it growed to a possible new design for my CMS' backend.

Any ideas and thoughts about it? Any improvements - is everything clear for you?

Best Regards and Thanks Robert

posted 1 year ago

How to detect if a board / topic has new posts?

Hey everyone,

i am currently recoding my forum module of my CMS. In the first version I saved many things in cookies. Which I never liked. I am thinking about saving statuses of when a user last visited a topic in the database.

My idea so far: Have a table that saves all last views of topics attached to a user's ID and the date. After that I can compare the last post's datetime from a topic to any user. This way I can check if a topic has new posts.

For the boards i would query onto all topics in the forum and check if there is one topic missing or has a newer date of its last post.

One more thing I would add is that if all topics are finally read in a board, an automated "mark all" entry is put into database that marks all topics read in a forum. That way it might be easier to check only the latest post in a board.

Have you better solutions?

Best Regards Robert

posted 2 years ago

Get a specific element from AJAX Response

Hey everyone,

I am currently trying to get a specific HTML Element (by ID) from an AJAX Request I made.

The request can be made via GET or POST. Returned is a HTML String and I want to get a specific Element (it's innerHTML value) from it.

I tried to make a XMLObject out of it and tried Ext.DomQuery but nothing seems to be working so far.

The main problem is I can't attach it to the document itself because the ID I try to query may be in the document itself.

I'd appreciate any kind of solution!

Yours Robert

posted 2 years ago

Reply/Answer in Forums or Comments

Hello everyone,

I have been thinking about this problem a long time now and I didn't find a good solution so far.

The problem is the following:

In a forum or comments system (e.g news, gallerie, etc) users should be able to reply/answer to a post and so I need to get all subposts of a post/comments (via MySQL).

If there is only one level I could just query for subqueries of the current page's post - no problem here (I'd guess - maybe there's a better solution?)

But what if there is a higher number of levels to be allowed to reply to a reply of a reply (...) ? I couldn't think of a nice solution here.

Do you have any experience or suggestions here?

Thanks Robert

posted 2 years ago

[update] Design idea for my CMS' backend

http://www.rhcms.de/img/screens/features/dashboard/001.png

Previous post: forrst.com/posts/…

This is what it finally looks like - I made it a lot lighter and redesigned some parts. I also added the capability to add buttons on the left side to each box (e.g the X at the dashboard).

More Screenshots will soon be available on my official CMS' website. Thoughts and improvements strictly required :)

posted 2 years ago

Design idea for my CMS' backend

While should've learned I came up with this new design for my backend.

You can minimize and maximize the left navigation which is the main navigation with some kind of "categories" and the modules available.

On the left you have the yellow notification bar where you are notified about unpublished articles, reported comments, new news feeds etc. On the right of this bar you have your own favorites (bookmarks).

Below you have two more navigations one with the general modes (e.g. user overview and create user) and the other one for detailed editing options (e.g edit user's data, user's password, user's groups etc).

A breadcrumb then follows the navigation and starts the actual content. Via the icon on the right you can see if you can add this page to your bookmarks.

As you can see, you can minimize the left and only the icons are visible. When hovering over it the navigation element maximizes (dont know if I really like this so far ;))

Would like to have some ideas. I think it's very useful and clear for a user using it the first time. I improved the navigations a lot in comparison to my old CMS.

Any thoughts, Ideas, Improvements?

Thanks
Robert

While should've learned I came up with this new design for my backend.

You can minimize and maximize the left navigation which is the main navigation with some kind of "categories" and the modules available.

On the left you have the yellow notification bar where you are notified about unpublished articles, reported comments, new news feeds etc. On the right of this bar you have your own favorites (bookmarks).

Below you have two more navigations one with the general modes (e.g. user overview and create user) and the other one for detailed editing options (e.g edit user's data, user's password, user's groups etc).

A breadcrumb then follows the navigation and starts the actual content. Via the icon on the right you can see if you can add this page to your bookmarks.

As you can see, you can minimize the left and only the icons are visible. When hovering over it the navigation element maximizes (dont know if I really like this so far ;))

Would like to have some ideas. I think it's very useful and clear for a user using it the first time. I improved the navigations a lot in comparison to my old CMS.

Any thoughts, Ideas, Improvements?

Thanks Robert

posted 2 years ago

Spam Detection with JavaScript instead of captchas - a little idea

I just had a little idea this morning and I wanted to share it with you.

The basic idea is, that I hate captches and probably most of you do as well. And so I came up with this idea. I thought about the fact, that the main difference between bots and humans is their interactivity on a website.

That's why I wanted to put eventListeners on the website and even some of the form elements and check the score.

Basicalle I have "captures" that can be loaded individually. Each capture adds +1 to a hidden input field. When the event occurs, the hidden input field will be decresed and another one will be incremented. If no events occur, but the bot has javascript enabled, there will be a high count in one of the field but actually there were no interactions.

This is kind of a double check to see how many captures there were in the form (e.g for your PHP Script).

This is the test site i've set up this morning:

rhscripts.de/…

Captures are at the moment: scrolling, mouse movement, focus, tabbing, key down and clicking to input fields.

My questions is, what do I do if there is no JavaScript enabled, how to detect spam anyway or do you have other cool ideas to do a "hidden" spam detection the user is not invoked in? I could maybe give the user a message that he was clarified as spam and he should do further steps to proof he's not? e.g a simple link, confirmation email, other thoughts and ideas are appreciated!

Also I would like to hear your feedback on that idea.

Best Regards Robert

posted 2 years ago

Searching for a project name

I am willing to start a project that tests my website for me (fill out forms, make page requests etc).

Any ideas on a name for it? could include test case and web or even a fantasyname like "cabadoodle".

Thanks for any ideas! :)