Wednesday, February 29, 2012

My answer to "Admin options"

This is my answer to a Question on Support site for LampCMS project


When you logged in as admin you can just do the sticky posts, edit other people posts, delete posts, lock post, retag post etc right from the normal pages. So basically there is no admin section for most of the normal site keeping.

Also when logged in as admin and clicking on the "Settings" link you will see extra link "Clear cache"
The category editor is not ready yet, but it will be added to the "Settings" block also and will be visible only to people with permission to edit categories.

As admin of site you also can edit settings in !config.ini file to activate/deactivate some features of site like enable Facebook or Twitter, other social sites intergation and acl.ini to edit permissions for various user groups.

Sunday, February 19, 2012

My answer to "Registration failed. Argument 2 passed to MongoCollection::insert() must be an array, boolean given..."

This is my answer to a Question on Support site for LampCMS project


Thank you. This is interesting, looks like the API for this mongoCollection may have changed since I wrote the class. I mean, there has been several updates to php's Mongo library since then.

Originally it was possible to pass 'true' to MongoCollection insert method as second parameter, meaning a 'safe' mode, meaning to write data to disk immediately.

Indeed, looking a the latest documentation on php.net site it does say that second param cannot be boolean anymore.

http://us2.php.net/manual/en/mongocollection.insert.php

I will make update now and will commit the update to github ASAP.

Thank you.

My answer to "Why do not my upvotes result in the user gaining reputation points?"

This is my answer to a Question on Support site for LampCMS project


This is possibly a bug. Unfortunately this site does not run on the very latest version that I still have in development, and there was a bug with reputation that I fixed awhile ago but did not have time to upload everything yet.

My answer to "Is the aim of LampCMS to implement all the features of Stackoverflow?"

This is my answer to a Question on Support site for LampCMS project


No, that would be the aim of Stackoveflow I suppose.
Lampcms aim is to implement the best features for a Q&A site. It already has features not available on Stackoverflow and I'm definetely not going to implement all features of Stackoverflow.

Also if there are some good features worthy of implementing you want to suggest, I will consider them too.

Thursday, February 9, 2012

My answer to "Integration with Drupal 7"

This is my answer to a Question on Support site for LampCMS project


I don't know... Can you?

Seriously, I don't like Drupal at all, I downloaded it and look at the code and all, and I really don't like the way it's made.

I am definitively not going to attempt to integrate Lampcms with Drupal, unless it's a for-hire project.

Friday, January 27, 2012

My answer to "Search Engine Optimization"

This is my answer to a Question on Support site for LampCMS project


Are you talking about the main page only?
What do you mean by 'description', do you mean the description meta tag?

I just modified it so that a description that you set in !config.ini as SITE_NAME will be set as default value for 'description' meta tag.

In any controller you can override this at any time by adding this anywhere inside your main() function in any controller:

$this->aPageVars['description'] = $this->_('My cool site');

In this example 'My cool site' will be a translation string, so you can even translate it in your xlif translation files.

If you don't want it to be translatable string then you can just hard code it
$this->aPageVars['description'] = 'My cool site';

As for "All questions" title, you can also modify it.
The best way to do this is to create a xliff file, even for the English strings, which I don't currently have.
This way you can "Translate" strings that are used on the site to your own values.

Look in /translations/messages.ru.xlf file
You can copy that file to your own language and even to messages.en.xlf
Then just write your own translated strings for any string that is used in this site. Anywhere in the code you see something like $this->_('some string') means it's going through translation object, trying to find value in the loaded translation array.

So if you add your own messages.en.xlf and define you own version of 'All questions' then your version will be used on the site.

I will soon make new commit to github, so the default value for 'description' will be there too.
The next changes I am working on is support for categories. Alot has been done already but I still have to write a controller and templates to render a view of all categories.

Thursday, January 12, 2012

My answer to "I really like this script and looks like everything i need But is there a mobile version?"

This is my answer to a Question on Support site for LampCMS project


It has a very capable RESTful API, with read/write methods.
You can build a mobile app for Iphone, Android, HTML5 with this API.

I will one day start working on mobile app, my plan is to work on Android app since I have some previous experience with Android development.

If anyone else is interested in this, please post here, we can work together on this, I will answer all your questions about the API we have, since it's not documented yet.