Hi there,
Just wondered if it's at all possible to have multiple installations of N-13 on the same server (ie; one for news, another for reviews and another for editorials, that sort of thing, using different databases of course)instead of having them as categories I have tried installing a second instance of N-13 and somehow, any changes to one database seem to affect the other.
Just enquiring....!
Regards...
You should be able to install multiple instances, each instance would need to have a separate database though.
Hi Chris
Chris wrote at 2012-02-23 02:41:00
You should be able to install multiple instances, each instance would need to have a separate database though.
Thanks for your response. Suffice to say, I have tried that, but for some reason, when I include two instances of the script from the various databses, I get a replication of the first.
I do't know if this is undoable, a bug or even something I'm doing wrong.
Heres an example:
<?php
$template = 'ShowsFrontpage';
include 'reviews/index.php';
?>
<?php
$template = 'EditorialsFrontpage';
include 'editorials/index.php';
?>
When I try to include both instances on the same page, I get a duplication of the articles entered in the first database.
Hope you are able to shed some light on this for me.
Warmest regards
Chris wrote at 2012-02-23 02:41:00
You should be able to install multiple instances, each instance would need to have a separate database though.
After thinking about it a bit more, whilst multiple installations will work, you won't be able to include multiple installations on the same page without some reworking of the system unfortunately.
Chris wrote at 2012-02-24 13:13:25
After thinking about it a bit more, whilst multiple installations will work, you won't be able to include multiple installations on the same page without some reworking of the system unfortunately.
Hi Chris,
I still think N-13 rocks. Perhaps you might consider tweaking it a bit for the next update. I guess, what I was trying to achieve, was having several includes from different databases on a page and using the Categories as subcategories under each database. Dunno if I'm making sense.
For instance, If I have a News Database, I can Have Entertainment News, Breaking News etc Also on the same make, I will have a Features Database with Editorials, Articles, Interviews etc
This will be my wish list for the upgrade. Better still, if you are able to tweak the script for that purpose would be fantastic.
For this reason, I will be putting my donation in soon.
Many Thanks and Warmest regards
The functionality you described could be achieved using solely categories. Take the following example, you have these categories
News
Entertainment News
Breaking News
If you create a new article that is Breaking News
so you assign it to the Breaking News
category, but you also assign it to the News
category.
By doing this you're then able to display all news articles by simply specifying the News
category like so
<?php
$cat[] = "News";
include 'news/index.php';
?>
This will show the new article you've just created because it has been assigned to both Breaking News
& News
. If however you wanted to display only breaking news articles you can simply specify the Breaking News
category like so
<?php
$cat[] = "Breaking News";
include 'news/index.php';
?>
Hi Chris, thanks for getting back to me.
I really appreciate all the support. I just wanted to mention that the suggestions you gave below works fine and has been the method I was using until I decided to attempt a multiple installation.
All I was trying to achieve, was subcategories via separate installations, using each one as a separate category, but I'll leave that on my wish list for now.
The functionality you described could be achieved using solely categories. Take the following example, you have these categories
News Entertainment News Breaking News
If you create a new article that is
Breaking News
so you assign it to theBreaking News
category, but you also assign it to theNews
category.By doing this you're then able to display all news articles by simply specifying the
News
category like so<?php $cat[] = "News"; include 'news/index.php'; ?>
This will show the new article you've just created because it has been assigned to both
Breaking News
&News
. If however you wanted to display only breaking news articles you can simply specify theBreaking News
category like so<?php $cat[] = "Breaking News"; include 'news/index.php'; ?>
>NOW NOT SO FRIENDLY URL'S GRRRRH......
In the mean time, I have come up against another familiar problem I resolved earlier when I first installed N-13. The Infamous Friendly URL's.
Now, I had this working until I reinstalled the script again and now, the Friendly URL's are not working. I will attempt to list the files/folder structure here in the hope that you or someone might be able to help me out.
I am getting 404 errors and all sorts. I have tried various things and nothings worked, unfortunately, I have no nails left and only have one dreadlock left and if I pull that out, I'll be completely bald so please help.
I am in the process of redesigning the site on my testing platform.
Here I go again.
My folder root - http://localhost/hhl/
My Script Folder - http://localhost/hhl/features/editorials/
My News Script - http://localhost/hhl/features/editorials/index.php
My htaccess file - http://localhost/hhl/.htaccess
My Systems Settings
Enable friendly URLs: Yes
File extension : html
Prefix : /features/editorials/
Directory filename : index.php
My .htaccess Config which resides in the folder
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
As you will notice, I already have an .htaccess file to enable code embedding so i have added the rewrite code to it.
Have I missed something or have I just messed it all up by reinstalling and moving folders?
Maybe someone can help. Chris, if you're there, pleeeeeeeeeeeeeeeeeeeze.
Thanks in advance.
Warmest regards