We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23443
    • 10 Posts
    Hi guys,

    I found out about Modx a short while ago and started testing it on my personal (Dutch) website. Since there is now something worthy to show you might want to take a look at http://www.remorse.nl. It’s not finished yet but you’ll get the point smiley.

    Currently I’m writing a portfolio snippet to show my webprojects and when it’s finished I’ll publish it for the rest of this wonderful community.

    Cheers!
      These bytes are 100% useless smiley
      • 28373
      • 204 Posts
      Nice clean layout, bright colors - easy on the eye ... cool smiley
        • 33337
        • 3,975 Posts
        Nice site! smiley

        Another thing, I noticed that you have lots of entries in your blog, did you use some kind of import script ?

        Thanks and regards,

        zi
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 23443
          • 10 Posts
          Quote from: zi at Mar 28, 2006, 06:43 AM

          Another thing, I noticed that you have lots of entries in your blog, did you use some kind of import script ?

          Yes, I’ve replaced my own custom made blog software with MODx. I didn’t want to loose al my blog entries and wrote a small convertor for it wink.
            These bytes are 100% useless smiley
            • 33337
            • 3,975 Posts
            Quote from: Piro at Mar 28, 2006, 08:55 AM

            Yes, I’ve replaced my own custom made blog software with MODx. I didn’t want to loose al my blog entries and wrote a small convertor for it wink.

            Thanks smiley

            zi
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Would you be able to share that with the rest of us?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 23443
                • 10 Posts
                Ofcourse, but don’t expect to much of it wink (and above all, it’s very unclean code, but it worked for me).

                <?php
                
                $dbi = @mysql_connect('localhost', 'dbuser', 'dbpass') or die(mysql_error());
                @mysql_select_db('dbname');
                
                $query = 'SELECT * FROM ml_article';
                $sth = mysql_query($query);
                
                $menuindex = 7;
                while($rec = mysql_fetch_object($sth))
                {
                	$timestamp = strtotime($rec->DATE_CREATED);
                	
                	$introtext = '';
                	$content = '';
                	
                	if($rec->INTRO && $rec->DATA)
                	{
                		$introtext = $rec->INTRO;
                		$content = $introtext . $rec->DATA;
                	}
                	else
                	{
                		$content = $rec->INTRO;
                	}
                	
                	$q = 'INSERT INTO modx_site_content';
                	$q .= '(type,contentType,pagetitle,longtitle,alias,published,pub_date,parent,isfolder,introtext,content,richtext,template,menuIndex,searchable,cacheable,createdby,createdon,editedby,editedon,hidemenu)';
                	$q .= 'VALUES(';
                	
                	$q .= quote('document') . ',';
                	$q .= quote('text/html') . ',';
                	$q .= quote($rec->TITLE) . ',';
                	$q .= quote($rec->TITLE) . ',';
                	$q .= quote('article-' . $timestamp) . ',';
                	$q .= '1,';
                	$q .= $timestamp . ',';
                	$q .= '2,';
                	$q .= '1,';
                	$q .= quote($introtext) . ',';
                	$q .= quote($content) . ',';
                	$q .= '1,';
                	$q .= '1,';
                	$q .= $menuindex++ . ',';
                	$q .= '1,';
                	$q .= '1,';
                	$q .= '-1,';
                	$q .= $timestamp . ',';
                	$q .= '1,';
                	$q .= $timestamp . ',';
                	$q .= '1,';
                	
                	$q = substr($q, 0, -1);
                	$q .= ')';
                	
                	echo '<li>' . $q;
                	
                	mysql_query($q) or die(mysql_error() . ' -- ' . $q);
                }
                
                function quote($str)
                {
                	$str = str_replace("'", "''", $str);
                	return "'$str'";
                }
                
                ?>
                  These bytes are 100% useless smiley