Section One BBS

Welcome, Guest.


Subject: MCI and ASCII for HTML Date: Tue Sep 13 2016 12:38 pm
From: Darryl Perry To: Pequito

On 09/13/16, Pequito said the following...
 
 Pe> On 09/12/16, Darryl Perry said the following...
 Pe>  
 Pe>  DP> Hi all!

 Pe>  DP> I just wanted to share a php library I used in conjunction with the
 Pe>  DP> mystic_library.php library of Frank Linhares that I updated.  I've us
 Pe>  DP> it as a base for my website and now I've also created a simple librar
 Pe>  DP> that will convert MCI colors and ASCII characters into beautiful HTML
 Pe>  DP> images.

 Pe> OK this is pretty sweet though do we have to have it setup similar to
 Pe> the way you have it in the example?  Here is what I attemped.

 Pe> <?php
 Pe>   $data_path = '/mystic/data/';
 Pe>   include 'mystic_library.php';
 Pe>   include 'mconv.php';

 Pe>     $oneliners=mystic_oneliners($data_path,10);
 Pe>     foreach ($oneliners as $line1) {
 Pe>       echo "<tr>";
 Pe>       echo "<td>".myconv($line1['text'])."</td>";
 Pe>       echo "<td>".$line1['from']."</td>";
 Pe>       echo "</tr>";
 Pe>     }


 Pe> hmm maybe its the quotes.. will try something else. :P

How exactly is if failing?  Maybe you can look in your apache or nginx error
logs to see any errors if any.  But looking at your code, it looks like it
should work.

Looking at the mystic_library.php, I see that the mystic_oneliners() function
does not already do MCI translation.  So unless the 'text' or 'from' fields have
some MCI code in them, they should just be displayed with the default color.

What you should do is try it with your file descriptions.  You'll see how
great it works there.

 "No matter where you go, there you are!" - Buckaroo Bonzai

--- Mystic BBS v1.12 A31 (Raspberry Pi)
 * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (44:100/4)

Previous Message       Next Message
In Reply To: Re: MCI and ASCII for HTML (Pequito)