Friday, February 8, 2013

My answer to "Does LAMPCMS support multiple subdomains like Stack Exchange?"

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


Yes, you can run multiple sites from single Lampcms library, it even comes with a lampcms.phar - php archive where entire library is packages in one file.

Every site will need own www directory with all the templates, css files, js files and own config file but the lampcms engine - can be shared between sites.

If you going to use sub-domains like you mentioned, then I'm pretty sure the you can also share database of users and user logged-in to any of your sub-domains will also be able to use any other sub-domain.

I have never done this, but in theory you can share user collection in MongoDB between multiple sub-domains in order to implement a single login.

If you run into any issues when setting this up, just ask for help here, I will help you.

Wednesday, February 6, 2013

My answer to "Integration Lampcms with postgesql"

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


MySQL is used only for the search feature, not as a main datastore. The site will work without MySQL just will not have the search and auto-suggest for when you ask new question.

If you know how to use Postgresql as a full-text search provider then yes, it can be used instead of MySQL. My goal was to eventually move to some type of real search engine like Lucene Solr.

I designed the search classes to be pluggable module using interfaces instead of hard-coded classes, so it should be possible to just write a Solr based search provider and use it instead of MySQL/PDO based provider.

Same can be do with Postgresql, but will not made as much sense as replacing MySQL with a real search engine.

Thursday, September 13, 2012

My answer to "Updating LampCMS"

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


It's not automatic. The easiest way is to start using the phar based installation.
With phar based installation you get one lampcms.phar file and also contents on the www directory which includes all templates and also a config directory with config files.

In 90% of updates changes are made only to the library classes and not to templates. Since all libraries are included in the lampcms.phar you will only need to replace the lampcms.phar with the new file. Also you will have to upload the new minified javascript file because every update to .phar file has slightly different version number and program will look for minified javascript that matches that version.

If you write custom plugins to Lampcms you don't have to worry about overriding them because plugins are stored in the config/plugins directory.

Tuesday, January 24, 2012

My answer to "Change Password Encryption"

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


OK, so you want to be able to use already encrypted passwords?
Then you can just use the same hashing as was used on SMF.

I mean, you can just use md5(username.password), it will work. It's usually a good idea to add salt to hashing but if you absolutely must be sure that existing users can login without any problems you may keep using the old hashing technique. It's still OK.

md5($string); is the same as hash('md5', $string);
the reason I use the second option is because in older version of php the hash('md5', $string) was faster than md5($string). I think there is no speed difference in the latest version of php, I just use it as a habit.

I am not sure what the data.username does? First of all what is data? This is php you know, it needs at least a dollar sign in front of variable. There is no dot notation in php also.

As for returning blank page, I am not sure why. If you enable debugging and have enabled logging, then you can look in the log file. You can quickly add anything to a log by just using the "d" function, like this:

d("log this line with this $variable");

It will automatically add a file name and line number where you added this line.

Saturday, May 7, 2011

My answer to "Added Sticky thread feature"

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


Just a
test answer

Tumblr support added

My Question on Support site for LampCMS project

This is a text post rrrr
f to test blogger API

Click here to post your reply


Tumblr support added

My question on Support site for LampCMS project

This is a text post
f to test blogger API

Click here to post your reply