http://net.link.co.pt - Brand and portfolio site

Post links to sites running CMS in all its glory.
Post Reply
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

http://net.link.co.pt - Brand and portfolio site

Post by icebrian »

Just launched my brand website at http://net.link.co.pt

Thats a total of 3 sites using CMSMS ( http://cclusohungara.pt , http://miniaturas3d.com and http://net.link.co.pt ) including a theme at http://themes.cmsmadesimple.org namely "Clean Orange".

Thanks to CMSMS dev team for making my life so much simpler! Keep up the good work!

Regards,
icebrian
TweeMeterPeter
Forum Members
Forum Members
Posts: 25
Joined: Thu Aug 03, 2006 10:20 pm

Re: http://net.link.co.pt - Brand and portfolio site

Post by TweeMeterPeter »

Whoa, really nice.... :D
I' ve working as a freelance (web) designer myself. Rigth now I'm working on my 3th cmsms site. For inspiration and fun I have bookmarked all the really cool sites made in cmsms (mostly design portfolios). I've added yours too!

I like the home button and the (useless) animation thingie next to the navigation.

I see your planning on making a bilingual version (englisch/ portugues). How are you going to work that??? I'd reallly like to know since I got an bilingual assigment comming up!

Cheers,
Peter
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

Re: http://net.link.co.pt - Brand and portfolio site

Post by icebrian »

Hey TweeMeterPeter

Thanks for the compliments!  ;D, yeah very true, the tab animation is quite useless, the thing is, when I designed the website I included that tab, later on I realized people would probably end up trying to click it, I therefore added that animation, :)

Concerning multilingual sites you have various options. I have opted for running one instance of CMSMS for each language (ie: http://www.miniaturas3d.com, http://www.cclusohungara.pt) the only difference being that they all use the same upload and image directories.

You also have the option of using the multilingual module (http://dev.cmsmadesimple.org/projects/multilang/) however I never managed to get that working.

The third and last option (to my knowledge) is something about having individual content trees, one for each language. I tried searching on the forum and all I could find was this http://forum.cmsmadesimple.org/index.ph ... 40165.html .

Hope this helps.

Regards,
icebrian
Last edited by icebrian on Wed Apr 25, 2007 6:59 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: http://net.link.co.pt - Brand and portfolio site

Post by RonnyK »

Peter,

you can also create the top-level menus for your languages and putting them in the top-menu for selection. The lower-levels, lying under the languages can than be used after having choosen the language. Kind of the way the default "Top single, left subnavigation" works. For what I've read about MLE is that it requires the similar structure over the languages, with the option as described above, thats not needed.

Ronny
TweeMeterPeter
Forum Members
Forum Members
Posts: 25
Joined: Thu Aug 03, 2006 10:20 pm

Re: http://net.link.co.pt - Brand and portfolio site

Post by TweeMeterPeter »

Thanks for your suggestions on the bilinqual site issue, guys!

I've got 2 questions:
1. if I choose to do a double installation. How do configure  the upload and image folder? I would think in a directoy above the 2 cmsms installations. How do I change these settings?

2. Is it possible to use an horizontal nagivation for second level navigation. In ohter words; If I create the top level menus for the languages, am I stuck with an vertical nav for my content?

Thanks in advance,
cheers,
Peter
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: http://net.link.co.pt - Brand and portfolio site

Post by RonnyK »

Peter,

I can't answer your first question, concerning the second question. Off course you can built a second horizontal menu for the second level. Basically you can call as many {menu}s as you wnat with the parameters provided.

Ronny
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

Re: http://net.link.co.pt - Brand and portfolio site

Post by icebrian »

Peter,

Concerning your first question.

For the multiple install method i'll explain the process I take:

1) install CMSMS in your web root and in an appropriate directory for the language, ie: /home/www/cmsms/en
2) create /images and /uploads directory in web root, ie: /home/www/cmsms/images & /home/www/cmsms/uploads
3) set permissions
4) when installing set you database prefix to ie: "en_"
5) build complete website for one language

After you have finished the English version, say you want to have a Portuguese version.

1) copy /home/www/cmsms/en  to  /home/www/cmsms/pt
2) edit config.php to indicate new path
3) duplicate all tables with prefix en_ to pt_

for this last task I wrote a small web page that uses a php script to detect every table starting with a defined prefix, duplicate all of them and add new prefix, so if I had a table say en_content, it would be duplicated to pt_content.

My reasoning for doind this was simply a matter of not having one database for each language. This wasy each language can be in the same database. Also dont forget to change the prefix in config.php!

index.html
------------------

Code: Select all

<__html>
</__body>

<form action="db.php" method="get">
	<label>
		Database: <input type="text" name="db" /><br />
	</label>
	<label>
		Username: <input type="text" name="uname" /><br />
	</label>
	<label>
		Password: <input type="text" name="pass" /><br />
	</label>
	<label>
		Prefix: <input type="text" name="prefix" /><br />
	</label>
	<label>
		New Prefix: <input type="text" name="new_prefix" /><br />
	</label>
	<input type="submit" value="Go!" />
</form>

<__body>
</__html>
PHP Script
------------------

Code: Select all

<?php
$db_host = 'localhost';
$db_database = $_GET["db"];
$db_username = $_GET["uname"];
$db_password = $_GET["pass"];
$prefix = $_GET["prefix"];
$new_prefix = $_GET["new_prefix"];

// Connect
$connection = mysql_connect( $db_host, $db_username, $db_password );
if (!$connection)
{
   die ("Could not connect to the database: <br />". mysql_error());
}
// Select the database
$db_select=mysql_select_db($db_database);
if (!$db_select)
{
   die ("Could not select the database: <br />". mysql_error());
}
// Assign the query
$query ="SHOW TABLES";
// Execute the query
$result = mysql_query( $query );
if (!$result)
{
   die ("Could not query the database: <br />". mysql_error());
}

// Fetch and display the results
$i =1;
while ($result_row = mysql_fetch_row(($result)))
{
	if (strlen($prefix)== 4) { // ie "cms_"
		$tb_prefix = substr($result_row[0], 0, 4); // get tabel prefix 4chars
		$tb_name = substr($result_row[0], 4); // get table name begining from 4th char
	}
	elseif (strlen($prefix)== 3) { //ie "pt_"
		$tb_prefix = substr($result_row[0], 0, 3); // get tabel prefix 3chars
		$tb_name = substr($result_row[0], 3); // get table name begining from 3rd char
	}
	
	if ($tb_prefix == $prefix) { // if table prefix is equal to prefix you want to change
		echo 'Prefix: '.$tb_prefix. '<br />';
		echo 'Table '.$i.' name: '.$tb_name . '<br /><br />';
		
		$query2 = "CREATE TABLE ".$new_prefix.$tb_name." LIKE ".$prefix.$tb_name;
		mysql_query( $query2 );
		
		$query3 = "INSERT ".$new_prefix.$tb_name." SELECT * FROM ".$prefix.$tb_name;
		mysql_query( $query3 );
	}

	$i++;
}

//Close the connection
mysql_close($connection);

?>
Note: The first prefix (the one you want to change) can only be two or three characters! (ie_ cms_ or pt_) Also allways include the "_" after the prefix.!

PS: Please be warned that I am no PHP expert! This PHP script is by no means perfect! Use at your own risk. I shall not be responsible for any damage, loss of work, etc..

Word of advice: Don't use this unless you are sure of the risks!
Last edited by icebrian on Thu Apr 26, 2007 3:36 pm, edited 1 time in total.
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

Re: http://net.link.co.pt - Brand and portfolio site

Post by icebrian »

Peter,

This was just posted:

http://forum.cmsmadesimple.org/index.ph ... w.html#new

Have a look
Marcel
Forum Members
Forum Members
Posts: 54
Joined: Tue Feb 20, 2007 2:17 pm

Re: http://net.link.co.pt - Brand and portfolio site

Post by Marcel »

I have made 4 templates for the menu, and for every page 4 versions

http://www.americanhorsepower.nl
Post Reply

Return to “CMS Show Off”