• Re: Mysticphp Disply last callers in a web page

    From Todd Yatzook@1:229/2 to Netsurge on Friday, October 11, 2019 16:56:49
    From: nospam.Todd.Yatzook@f799.n142.z1.binkp.net

    On 11 Oct 2019, Netsurge said the following...

    I'm using the mysticphp library to pull in a list of callers to a web page An ar ray is created and displays on screen How do I format it f a readable display

    You want a foreach formula for each item contained in the array.
    Something like this:

    Yeah, what he said. =) Anything to loop through each row, and you can format
    it in HTML however you want it displayed after that.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Fairman@1:229/2 to All on Friday, October 11, 2019 12:02:01
    From: acampb5160@gmail.com

    I'm using the mysticphp library to pull in a list of callers to a web page An array is created and displays on screen How do I format it for a readable display

    Regards

    Richard Fairman

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Netsurge@1:229/2 to All on Friday, October 11, 2019 16:23:28
    From: nospam.Netsurge@f101.n229.z1.binkp.net

    I'm using the mysticphp library to pull in a list of callers to a web
    page An ar ray is created and displays on screen How do I format it for
    a readable display

    You want a foreach formula for each item contained in the array. Something
    like this:

    $lastcalls=$mystic->lastcallers(10, true);
    $lcr = array_reverse($lastcalls, true);
    foreach ($lcr as $lc){
    $lc['city']=$mystic->decode($lc['city']);
    echo "<tr>";
    echo "<td width='25%'>".$lc['user']."</td>";
    echo "<td >".$lc['city']."</td>";
    $ldate=date("d/m/y",$lc['date']);
    echo "<td align='right'>".$ldate."</td>";
    echo "</tr>";
    ;

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness
    |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Todd Yatzook@1:229/2 to Netsurge on Saturday, October 12, 2019 13:14:42
    From: nospam.Todd.Yatzook@f799.n142.z1.binkp.net

    On 12 Oct 2019, Netsurge said the following...

    I'm afraid I'm a non programmer Is there any existing software to do this I have looked at mysticphp website and the info is nicely displa I want to do somet hing similar. Sorry to be a pain but I have been struggling for days An alternat ive ive I have
    been pursuing is to directly display the mystic data file in a web pa

    I'm the original creator of the mysticphp library and unless you have
    some understanding of using php I don't know of any other way to display the info you are looking at displaying.

    Awesome, I finally get a chance to thank you for indirectly helping me with a formatting issue I was having when I wrote my own PHP script to display Mystic's last callers with custom image and formatting.

    Getting the info to display right was a bitch, so I "cheated" and used your example just to get the data to show correctly. I even thanked you and
    credited you in my script.

    So, seriously, thank you again =)

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Fairman@1:229/2 to All on Saturday, October 12, 2019 02:44:04
    From: acampb5160@gmail.com

    I'm afraid I'm a non programmer Is there any existing software to do this I have looked at mysticphp website and the info is nicely displayed I want to do something similar. Sorry to be a pain but I have been struggling for days An alternative ive I have
    been pursuing is to directly display the mystic data file in a web page.

    Regards
    Richard

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Netsurge@1:229/2 to All on Saturday, October 12, 2019 10:21:18
    From: nospam.Netsurge@f101.n229.z1.binkp.net

    I'm afraid I'm a non programmer Is there any existing software to do
    this I have looked at mysticphp website and the info is nicely displayed
    I want to do somet hing similar. Sorry to be a pain but I have been struggling for days An alternat ive ive I have
    been pursuing is to directly display the mystic data file in a web page.

    I'm the original creator of the mysticphp library and unless you have some understanding of using php I don't know of any other way to display the info you are looking at displaying.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness
    |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Fairman@1:229/2 to All on Saturday, October 12, 2019 12:31:22
    From: acampb5160@gmail.com

    Can you point me to the example. I have seen the web page at mysticphp where the array has been formatted nicely but I cannot fathom how it was done. I've
    looked at the page source
    Regards

    Richard

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Netsurge@1:229/2 to All on Saturday, October 12, 2019 21:59:00
    From: nospam.Netsurge@f101.n229.z1.binkp.net

    Awesome, I finally get a chance to thank you for indirectly helping me with a formatting issue I was having when I wrote my own PHP script to display Mystic's last callers with custom image and formatting.

    Getting the info to display right was a bitch, so I "cheated" and used your example just to get the data to show correctly. I even thanked you and credited you in my script.

    No worries. It's not cheating at all, it's called learning, lol.

    I'm just glad that after all these years, before returning to bbsing, someone has kept the damn thing alive.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness
    |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Fairman@1:229/2 to All on Tuesday, October 15, 2019 03:00:37
    From: acampb5160@gmail.com

    I've got round my lack of program skills by pulling in the callers.dat file for
    display in a web page Not very pretty but readable Still hoping for a way to format the array created by mysticphp

    Regards

    Richard

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Todd Yatzook@1:229/2 to Richard Fairman on Tuesday, October 15, 2019 15:45:12
    From: nospam.Todd.Yatzook@f799.n142.z1.binkp.net

    On 15 Oct 2019, Richard Fairman said the following...

    I've got round my lack of program skills by pulling in the callers.dat file for display in a web page Not very pretty but readable Still hoping for a way to format the array created by mysticphp

    Hey Richard. Netsurge gave an example in response to your question a few days ago. Here's his example:

    $lastcalls=$mystic->lastcallers(10, true);
    $lcr = array_reverse($lastcalls, true);
    foreach ($lcr as $lc){
    $lc['city']=$mystic->decode($lc['city']);
    echo "<tr>";
    echo "<td width='25%'>".$lc['user']."</td>";
    echo "<td >".$lc['city']."</td>";
    $ldate=date("d/m/y",$lc['date']);
    echo "<td align='right'>".$ldate."</td>";
    echo "</tr>";
    ;

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Netsurge@1:229/2 to All on Tuesday, October 15, 2019 23:20:56
    From: nospam.Netsurge@f101.n229.z1.binkp.net

    Hey Richard. Netsurge gave an example in response to your question a few days ago. Here's his example:

    I thought I made it easy, guess not.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness
    |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Fairman@1:229/2 to All on Wednesday, October 16, 2019 01:07:17
    From: acampb5160@gmail.com

    Hi I'm afraid I'm very much a non programmer Where do I place your code to use with mysticphp Do I place it within mysticphp or immediately after An example would be useful Sorry about my lack of knowledge I'm 70 and still remember the old days of
    acoustic modems and dial up at 300 each way My main interest is with BBC micros
    to use them to play online adventure games linking to my bbs via via a hayes software modem on a pc My web site would be a gateway to my bbs using ftelnet I
    have got the
    array to display ok
    Thanks again
    Richard Fairman

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Netsurge@1:229/2 to All on Wednesday, October 16, 2019 22:50:24
    From: nospam.Netsurge@f101.n229.z1.binkp.net

    Hi I'm afraid I'm very much a non programmer Where do I place your code
    to use w ith mysticphp Do I place it within mysticphp or immediately
    after An example wou ld be useful Sorry about my lack of knowledge I'm
    70 and still remember the old days of
    acoustic modems and dial up at 300 each way My main interest is with BBC micros to use them to play online adventure games linking to my bbs via via a hayes so ftware modem on a pc My web site would be a gateway to
    my bbs using ftelnet I ha ve got the
    array to display ok

    You will need some basic understanding of PHP and HTML in order to achieve
    what you are looking for.

    May I suggest googling some PHP/HTML examples in order to get you headed in
    the right direction.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness
    |11SciNet |03ftn hq |08% |07https://scinet-ftn.org

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)