Xequte User Forums
Xequte User Forums
Profile | Join | Active Topics | Search | Forum FAQ
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

     
Forum Tips
» This forum is for users to discuss their software problems and suggestions for improvement.  Remember that only a tiny percentage of our users experience such problems (To be precise less than 0.7% have ever posted on this forum)
» Include your software version number (as displayed in the About Box)
» Check the FAQ before posting as most common questions have already been answered
» You don't need to also e-mail us separately as our support team will respond to all questions on this forum
 
 All Forums
 Xequte User Forums
 MailList King
 Getting list of groups in HTML/PHP
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Henrik

Hungary
4 Posts

Posted - Apr 26 2007 :  07:24:46  Show Profile  Reply
I am just planning to use MLK, with web based subscription handling for users.

On such a web page I wish to list al the avaialable groups for subscription.

I wonder how a PHP code can collect the list of groups.
1. Groups seems to be stored in binary files, hard to extract...
2. The only user method I know is via email request ("SubscribeInfo"), which triggers the answer in a sent email.

Any suggestion how to list groups on web page ?

Thanks

Henrik

justuspost

USA
71 Posts

Posted - Apr 27 2007 :  16:14:41  Show Profile  Reply
What I have done in this situation is to write a php mail script that when the form is filled out, the info is mailed to an address that MLK checks. it is formatted in such a way that MLK can read it and follow a certain action.

If you want the groups on a page, you can simply have a list/dropdown/checkboxes of user friendly names for them to select. Then once the form is submitted, php will take that value and send it to mlk formatted however you need to subscribe them to that/those groups.

Justus
Go to Top of Page

xequte

7042 Posts

Posted - Apr 29 2007 :  01:08:32  Show Profile  Reply
Hi Henrik

Another option if your MLK database is accessible from your web server is to use ODBC to directly read the MLK database.

Note: You need the Business version to use ODBC.

Nigel
Xequte Software
nigel@xequte.com
Go to Top of Page

Henrik

Hungary
4 Posts

Posted - May 02 2007 :  06:53:41  Show Profile  Reply
quote:
Originally posted by justuspost

What I have done in this situation is to write a php mail script that when the form is filled out, the info is mailed to an address that MLK checks. it is formatted in such a way that MLK can read it and follow a certain action.

If you want the groups on a page, you can simply have a list/dropdown/checkboxes of user friendly names for them to select. Then once the form is submitted, php will take that value and send it to mlk formatted however you need to subscribe them to that/those groups.

Justus



Hello Justus,

Thanks for the comment. However it does not solve my problem of having DYNAMIC list of groups: whenever the MLK admin adds a new group in MLK, it should appear on the webpage as one of the selectable groups. A static webform cannot do this. The next reaction about the ODBC solution may solve this.

Bye,

Henrik

Henrik
Go to Top of Page

Henrik

Hungary
4 Posts

Posted - May 02 2007 :  06:56:55  Show Profile  Reply
quote:
Originally posted by xequte

Hi Henrik

Another option if your MLK database is accessible from your web server is to use ODBC to directly read the MLK database.

Note: You need the Business version to use ODBC.

Nigel
Xequte Software
nigel@xequte.com




Hello Nigel,

Will I find guiding in docs on how to set up this ODBC? Which file/DB it should be pointing at? If not in docs, can you reply this?

I do not remember seeing it in users guide, and upon install we seem to have just a CSV file - can it be ODBC accessed?

Thanks,

Henrik

Henrik
Go to Top of Page

xequte

7042 Posts

Posted - May 03 2007 :  06:00:38  Show Profile  Reply
Hi Henrik

There are instructions sent with the ODBC driver (available after purchasing the Business version). Essentially it allows any other database engine to directly read the MLK mailing list database.

A CSV file you are seeing is probably just a text back of your database.

Another way I have heard of a user generating the group list "dynamically" (and also remotely) involved parsing the response to a GroupInfo command.

We could also consider having MLK write an up-to-date copy of the group list to a plain text file.



Nigel
Xequte Software
nigel@xequte.com
Go to Top of Page

Henrik

Hungary
4 Posts

Posted - May 03 2007 :  07:53:30  Show Profile  Reply
Hello Nigel,

Purchase of business version is sent to Xequte by email (I hope I get my key soon).

I am looking forward to the ODBC driver.

Henrik

Henrik
Go to Top of Page

xequte

7042 Posts

Posted - May 04 2007 :  00:03:29  Show Profile  Reply
Hi Henrik

The ODBC driver is only sent as requested. So please email sales@xequte.com after your purchase goes through.

Nigel
Xequte Software
nigel@xequte.com
Go to Top of Page

justuspost

USA
71 Posts

Posted - May 04 2007 :  14:34:32  Show Profile  Reply
You may be able to dynamically generate the available user groups in this fashion, ODBC or having MLK write an update file, but this will ONLY make available the list names. This will not put the names into a user friendly form or allow a mail form to process them. If you plan to make available user friendly names for the groups, this will need to be scripted manually. Realistically I can't imagine that it will be often that one would be adding a group or rather often enough that it would matter.

Being dynamic in this case means that MLK, web page and script will need to be in sync. This is not difficult if the values are consistent, but if you would like some kind of presentation, there will be manual updating involved.

The one resolve for this would be for MLK to allow an alias or c-name for group names. I think that it would even be acceptable to require "" around the name for MLK to process an alias being that most of these will be sent via scripts and it would be easy to strip "" from a name being dynamically displayed on a web page.

Justus

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: