Re: [midgard] Question
Emiliano wrote: In what way does that change the startup procedure? Because the error message doesn't look familiar to me, nor does our code process -D MIDGARD in any way. AFAICT anyway. In SuSE, apache is started from within /sbin/init.d/apache. This checks for the presence of apache modules. For each module found, a "-D XXX" string is appended to a shell variable $MODULES. This variable is then exported to that shell which starts apache with the config file /etc/httpd/httpd.conf. That is the normal config file but it load tthe modules depending on the -D XXX directives. For example: IfDefine PHP LoadModule php3_module /usr/lib/apache/libphp3.so /IfDefine and further down: IfDefine PHP AddModule mod_php3.c AddModule mod_midgard.c /IfDefine This works for midgard without problems, provided the scripts are modified properly. Frank -- Dr Frank Boehme | Email: [EMAIL PROTECTED] National University of Ireland, Cork | phone: +353-21-903163 Dept of Computer Science | fax: +353-21-903113 Cork, Ireland| -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Frank Boehme wrote: In what way does that change the startup procedure? Because the error message doesn't look familiar to me, nor does our code process -D MIDGARD in any way. AFAICT anyway. In SuSE, apache is started from within /sbin/init.d/apache. This checks for the presence of apache modules. For each module found, a "-D XXX" string is appended to a shell variable $MODULES. This variable is then exported to that shell which starts apache with the config file /etc/httpd/httpd.conf. That is the normal config file but it load tthe modules depending on the -D XXX directives. For example: I see. OK, but I still can't find the error message in question anywhere. I'm wondering what part is generating it. If you pass -D MIDGARD, what gets included? Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Ralf Eisinger wrote: Hi, On 19-Sep-00 Emiliano wrote: Wolfgang Reh wrote: I have got a problem with running midgard. If I start the Apache Server with the -D MIDGARD option I get this error message: Why would you start apache like this? I think Wolfgang has a SuSe distribution. SuSE shipped there startup scripts under /sbin/init.d/apache with some defines, to launch different modules. In what way does that change the startup procedure? Because the error message doesn't look familiar to me, nor does our code process -D MIDGARD in any way. AFAICT anyway. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re[2]: [midgard] Question regarding sitegroups and the adminsite.
Hello Emiliano, Tuesday, September 12, 2000, 1:57:29 PM, you wrote: - How about making a sitegroup interface for the admin site? Only viewable by root and sg admins. The viewable restriction will have to be coded into the admin site itself. Alexander has the inside trak on the new admin site (Asgard) but I do believe sitegroup administration will be in it. It is planned though resource moving between sitegroups (as well as copying) left to Repligard due security considerations. -- Best regards, Alexandermailto:[EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] Question regarding sitegroups and the adminsite.
I've been working with sitegroups the last few days, and I'm wondering about a few things. 1. What is the difference between root(*) , admin(!) and user(+) access to a domain? 2. I'm not toatly inn on what's happening on with the admin site, but I'd like to propose that we develop some ekstra admin functions in it, maybe someone allready has done this, then it should not be to troublesome: - We should include an interface for copying and moving articles from one topic to another. Also a simmilar function for pages and elements. I've attached the code for a form I've made for moving articles between topics. It's not too good, but a start. - How about making a sitegroup interface for the admin site? Only viewable by root and sg admins. BTW: the framed admin is working just wonderfull! I realy like it. Tarjei -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question regarding sitegroups and the adminsite.
Tarjei Huse wrote: I've been working with sitegroups the last few days, and I'm wondering about a few things. 1. What is the difference between root(*) , admin(!) and user(+) access to a domain? Root gets you full admin rights one every sitegroup, including SG0 Admin gets you full admin rights on the particular sitegroup. No access checking is done within that sitegroup. You cannot access (read nor write) things outside your sitegroup. User access makes the person subject to access control (write access only, read access is not controlled in the current release) within the sitegroup. You cannot access (read nor write) things outside your sitegroup. 2. I'm not toatly inn on what's happening on with the admin site, but I'd like to propose that we develop some ekstra admin functions in it, maybe someone allready has done this, then it should not be to troublesome: - We should include an interface for copying and moving articles from one topic to another. Also a simmilar function for pages and elements. I've attached the code for a form I've made for moving articles between topics. It's not too good, but a start. I think the new admin site (now under development) will have this. - How about making a sitegroup interface for the admin site? Only viewable by root and sg admins. The viewable restriction will have to be coded into the admin site itself. Alexander has the inside trak on the new admin site (Asgard) but I do believe sitegroup administration will be in it. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Question
-- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Frederic Carlus wrote: X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Can you please disable HTML posting to this mailinglist? Messages show up empty for a lot of people. Do have you the french version of your documentation ? We don't, but there are a number of native French speakers on our list. And we would welcome a translation of course. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Question about PHP
Hello, I have just downloaded midgard, and while reading the installationinstuctions I wonder of the installation of PHP4 with apache is enough or that I must install the PHP3 module also Grx, Rolf -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question about PHP
I have just downloaded midgard, and while reading the installationinstuctions I wonder of the installation of PHP4 with apache is enough or that I must install the PHP3 module also Midgard is a superset of PHP3. We're working on PHP4. In the meantime you can run them side by side. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question about mgd_create_file
On Fri, 26 May 2000, T. Wijnen wrote: Hi, I'm trying to make a simple upload form in html that uploads a file as a file attachment to an article. But I can't seem to get it to work. The documentation about mgd_create_file is kinda short. Can someone help me with a coded example? mgd_create_file mainly creates an index record to an existing file. Move the uploaded file to its destination, then do mgd_create_file($article, $mimetype, $location, $size, $md5sum) You'll have to deduce the mimetype from the file extension or use the type that some browsers deliver with the upload. Size is available in a upload-related PHP variable (I forgot which), and there's a php function to calculate the md5 sum if you want it. Alternatively, the 1.4b3 contains file attachment methods that allow attachment of binaries to any record type. There's a description at http://www.midgard-project.org/~emiliano/midgard-1.4b3-blobs.tar.gz Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question about mgd_create_file
Emiliano wrote: mgd_create_file($article, $mimetype, $location, $size, $md5sum) Ehm, in the docs the same function has 6 parameters, the one you describe has 5. -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question about mgd_create_file
On Fri, 26 May 2000, T. Wijnen wrote: Emiliano wrote: mgd_create_file($article, $mimetype, $location, $size, $md5sum) Ehm, in the docs the same function has 6 parameters, the one you describe has 5. You're right, that should have been mgd_create_file($article, $mimetype, $name, $location, $size, $md5sum) Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] question
-- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question
Hi, On Tue, 23 May 2000, Verbeek wrote: Hello, I'm developping a portal-like website. I want to use a content management system like application for this. Midgard can do this. Is it possible to run midgart on a Win 98 machine and then ftp the pages to a unix server? Midgard doesn't run on Windows. Although you can administrate Midgard from any computer that runs a browser. I believe you can view an example of the Midgard administration site at http://www.marlowes.com. If that's the wrong location you can search midgard-project.org for the example site. I it isn't does anyone have suggestions for an application? I can't find anything that lets me work on Win 98 and host on unix. You'll have to install Midgard on a Unix, BSD, OS-X, or Linux server. Ron Thank Bart Verbeek -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] question
Midgard doesn't run on Windows. Although you can administrate Midgard from any computer that runs a browser. I believe you can view an example of the Midgard administration site at http://www.marlowes.com. If that's the wrong location you can search midgard-project.org for the example site. To make life easier - http://midgard-demo.marlowes.com Nick -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Midgard Question
Hello thee, I'd like to know whether I can use MidGard as a news update system on my website. I do NOT own a server, but I use a virtual server. So I do not have Admin.-access to the machine. My virtual server is PHP3/4 and MySQL compatible Thanks Yours in Formula 1, DailyF1News [ http://www.dailyf1news.com ] Richard Boogert-Van Loon __ Get F1 Mailed at http://www.dailyf1news.com/mlm/mlm.cgi __ The latest Formula 1 Press Releases http://www.f1news.net/news.cgi __ name: Richard Boogert-Van Loon e-mail : [EMAIL PROTECTED] web : http://www.dailyf1news.com city: The Haque country : The Netherlands __ -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question
Am Fri, 21 Apr 2000 11:03:12 -0400 hast Du zum Thema "[midgard] question" geschrieben: we are currently using midgard. it was installed by a previous employee. i am trying to determine what version it is. would you please tell me how i would locate that info. What about /server-status? If you had this apache feature enabled, you could simply go to the URL www.yourserver.com/server-status and have a look at your Apache version and the version of all your additional modules, such as Midgard. Might be simpler than telnetting to port 80 or HUPing the server. phr -- SCHÜLER-PLANSPIEL UNITED NATIONS (SPUN) 21.-25.6.2000, Bonn Die erste deutschsprachige Simulation der Vereinten Nationen http://www.spun.de/--Webredaktion: [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] question
we are currently using midgard. it was installed by a previous employee. i am trying to determine what version it is. would you please tell me how i would locate that info. thank you. -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question
Janet Pipkin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... we are currently using midgard. it was installed by a previous employee. i am trying to determine what version it is. would you please tell me how i would locate that info. locate the apache errorlog . It could very well be in /usr/local/apache/logs/errorlog . Put a tail on that file. tail -f /usr/local/apache/logs/errorlog. Kill and restart apache from a different window, and watch what happens in the other. The restart message will tell you what version of Midgard is running. b.t.w. I hope you are not suffering the 'They left me with this thing and I don't know how to deal with it' frustration. ( I mean, you mentioned the previous employee). If so, feel free to cry for help on this list, as there are many people out here ready to help you further. Armand. -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question
On 21 Apr, Janet Pipkin wrote: we are currently using midgard. it was installed by a previous employee. i am trying to determine what version it is. would you please tell me how i would locate that info. This information is contained in the Server string that is transmitted alongside every HTTP request. The easiest way to find it out would be to establish a telnet connection to the server (port 80) and run a HEAD command (HEAD / HTTP/1.0 [enter] [enter]). This should produce something like the following: $ telnet www.stonesoft.com 80 Trying 192.89.38.169... Connected to www.stonesoft.com. Escape character is '^]'. HEAD / HTTP/1.0 HTTP/1.1 200 OK Date: Sat, 22 Apr 2000 05:49:55 GMT Server: Apache/1.3.12 (Unix) mod_ssl/2.6.2 OpenSSL/0.9.5 Midgard/1.4-beta3 PHP/3.0.15+Midgard/1.4-beta3 WWW-Authenticate: Basic realm="Midgard" X-Powered-By: PHP/3.0.15 Keep-Alive: timeout=15, max=100 Content-Type: text/html Connection: close Connection closed by foreign host. The information is also available as the variable $SERVER_SOFTWARE inside Midgard pages. /Bergie -- -- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] -- http://www.iki.fi/Henri.Bergius -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] question for midgard-lib documentataion (resent)
(I don't think my original post made it through to the list, but please excuse me if this is a duplicate.) The current version of mgd_init and mgd_done (from CVS) actually initialize and free parser structures. I assume the intent is that any initialization and shutdown code should go here. Is it correct to say that "mgd_init" should be called before using any functions except "mgd_version" and "mgd_lib_match"? Is "mgd_done" guaranteed to free all resources associated with Midgard Lib? Thanks, Ami. -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Question to midgard-functions
I've generated the following script: It should show the first topic, then all of the articles of the first topic, the second topic and all of the articles of the second topic ... !-- StartSeite wird generiert -- ? { $article = mgd_get_article(23); ? (article.content:h); ? } ? ? $topic = mgd_list_topics(18); while ($topic-fetch()) {? H3 class="grey"(topic.description:h);/H3 ? $allArticles=mgd_list_topic_articles($topic,"alpha");? ? } ? I want to show the topics in a structure like this: --- topic 1 --- article 1 of topic 1 --- article 2 of topic 1 --- article 3 of topic 1 --- topic 2 --- article 1 of topic 2 --- article 2 of topic 2 --- article 3 of topic 2 --- topic 3 --- article 1 of topic 3 --- article 2 of topic 3 --- article 3 of topic 3 .. How can I access the articles of "$allArticles"? Anatol Mayr HEXAGON EDV-Dienstleistungen Weissenwolffstraße 14 A-4221 Steyregg, Austria Tel.: (+43) 732 / 640 530 Fax: (+43) 732 / 640 530 - 20 Email: mailto:[EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] Question to midgard-functions
Thanks, i've tried to access the articles of my topics in the same way, but the result is a little bit strange, because no articles are shown. My site-structure is the following: topic(18) -- subtopic(27) article(28) -- subtopic(28) No article here at the moment -- subtopic(29) article(26) article(24) article(25) article(27) Here's the script: $topic = mgd_list_topics(18); if ($topic) { while ($topic-fetch()) { ? H3 class="grey"(topic.description:h);/H3 ?php $article = mgd_list_topic_articles($topic-id); if ($article) while ($article-fetch) { ? a class="navi" href="/buchtipps/beschreibung/(article.id);.html" (article.title);/a /P ?php } } } ? So, I thought the script does the following: Go to topic 18, have a look, if there are subtopics. If yes, show the description of the subtopic. ('til this point everything works fine). Have a look if there are articles in this subtopic. If yes, show the article-id. (but this doesn't work.It seems that the script never runs in the "while ($article-fetch)". Anatol Mayr HEXAGON EDV-Dienstleistungen Weissenwolffstra?e 14 A-4221 Steyregg, Austria Tel.: (+43) 732 / 640 530 Fax: (+43) 732 / 640 530 - 20 Email: mailto:[EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question to midgard-functions
Anatol Mayr / HEXAGON wrote: Thanks, i've tried to access the articles of my topics in the same way, but the result is a little bit strange, because no articles are shown. $topic = mgd_list_topics(18); if ($topic) { while ($topic-fetch()) { ? H3 class="grey"(topic.description:h);/H3 ?php $article = mgd_list_topic_articles($topic-id); if ($article) while ($article-fetch) { ? ^ while ($article-fetch()) { ? a class="navi" href="/buchtipps/beschreibung/(article.id);.html" (article.title);/a /P ?php } } } ? Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] Question to midgard-functions
Oh, oh, oh :-) thanks a lot - now it works fine! Greetings to all of the midgardians, Anatol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emiliano Heyns Sent: Thursday, March 09, 2000 2:59 PM To: [EMAIL PROTECTED] Subject: Re: [midgard] Question to midgard-functions Anatol Mayr / HEXAGON wrote: Thanks, i've tried to access the articles of my topics in the same way, but the result is a little bit strange, because no articles are shown. $topic = mgd_list_topics(18); if ($topic) { while ($topic-fetch()) { ? H3 class="grey"(topic.description:h);/H3 ?php $article = mgd_list_topic_articles($topic-id); if ($article) while ($article-fetch) { ? ^ while ($article-fetch()) { ? a class="navi" href="/buchtipps/beschreibung/(article.id);.html" (article.title);/a /P ?php } } } ? Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Question regarding to example-script in the tutorial
I've found a good scripting-example in the tutorial, which demonstrates a lot of midgard's possibilites, and I'm trying to understand how it works: A question appears: What does: "$topic = $context[topic];" Anatol -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question regarding to example-script in the tutorial
On Thu, 2 Mar 2000, anatol wrote: I've found a good scripting-example in the tutorial, which demonstrates a lot of midgard's possibilites, and I'm trying to understand how it works: A question appears: What does: "$topic = $context[topic];" In an earlier part of the page build (the code-init element if I recollecty) the $context hash is filled with global variables used throughout the rest of the page build. I've chosen to store them in a hash to avid namespace clutter, I copy it back to a variable because if you're going to use it much it'll type read easier and I presume there will be a small runtime saving when avoiding the hash lookup every time. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] Question regarding to example-script in the tutorial
Thanks for the info - answers a pretty fast in this mailing list :-) I'm trying to understand how the HTML-page-building-process works. Is there any visual description (perhaps a picture?) how midgard works from start of the page-building until end. Anatol -Original Message- From: Emiliano [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 02, 2000 1:24 PM To: [EMAIL PROTECTED] Subject: Re: [midgard] Question regarding to example-script in the tutorial On Thu, 2 Mar 2000, anatol wrote: I've found a good scripting-example in the tutorial, which demonstrates a lot of midgard's possibilites, and I'm trying to understand how it works: A question appears: What does: "$topic = $context[topic];" In an earlier part of the page build (the code-init element if I recollecty) the $context hash is filled with global variables used throughout the rest of the page build. I've chosen to store them in a hash to avid namespace clutter, I copy it back to a variable because if you're going to use it much it'll type read easier and I presume there will be a small runtime saving when avoiding the hash lookup every time. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
RE: [midgard] Question regarding to example-script in the tutorial
On Thu, 2 Mar 2000, anatol wrote: Thanks for the info - answers a pretty fast in this mailing list :-) I'm trying to understand how the HTML-page-building-process works. Is there any visual description (perhaps a picture?) how midgard works from start of the page-building until end. I'm not much of an artist but if the following explanation makes any sense to you by all means have a stab at it. "In the beginning there was the HTTP request..." The HTTP request carries 3 important pieces of information: - The hostname - The portnumber - The URI within the host For Midgard to decide if an HTTP request matches a host under its care, the hostname must match exactly (case insensitive I believe), the port number must match or the port number in the database must be set to 0 (wildcard), the prefix defined in the database must match the start of the URI, and the host must be marked online. Even if you send no portnumber the browser will send 80 for you by default. When multiple hosts exist with the same name Midgard will pick the one with the most specific portnumber (in other words the non-0 one) and the longest prefix match (which may be of zero length). Having picked a host, midgard will walk the rest of the URI (with the leading prefix, if any, stripped off) to find the specific page record requested. Each page specifies an associated style, either explicitly or simply indicating inheritance from its parent. So what we have now is a page and a style. Midgard starts processing the midgard-root.php3 which will include a element named ROOT. The style must define ROOT (either explicitly or inherited) or nothing will happen. The ROOT may (usually will) itself reference other elements, which in turn, etc. Each element referenced is replaced with the contents of said element until all element references have been expanded. Page elements take precedence over inherited page elements of the same name, inherited page elements over style elements, style elements over inherited style elements. Elements that are referenced but not present are replaced with zero content. We have at this point a fully decorated page with no actual content. That's no good. There are two 'magic' element names, [title] and [content] that will automatically be replaced with the title and content of the current page, so if you store content there it will be placed in the makeup built by the style. Another way to insert content is to actively generate this. This is most often, although by no means necesarily exclusively, used with so-called 'active pages'. Active pages and static pages are both active in the sense that they're PHP scripts, but while a static page will only be activated for requests that target its URI directly, active pages service anything that targets its URI and beyond. Everything beyond the page URI is split on the slashes and passed to the script in the argv array, so if /article is an active page than the script would be passed the array ('about', 'you', 'and', 'me') when servicing /article/about/you/and/me.html. The script can use this information to gather information from the topic trees or even external data; everything the script in the page content prints out will turn up where [content] was referenced. Actually, this explanation ain't half bad. Anyone care to work on readability and run on sentences and put it in the manual? Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Russell Miller wrote: [Sat Feb 5 00:34:15 2000] [notice] [client 209.86.220.4] Midgard: host record for www.duskglow.com:80 not found (I'm actually more concerned about rjmconsulting.com:80, this is just an example). Now I'm assuming this is a mysql problem, but I am not sure. If it is... I've added the appropriate host records in the database but it still doesn't work. I'd have to see the relevant parts of your httpd.conf (passwords removed of course) and a dump of the host table. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Russell Miller wrote: [configs] You have no MidgardDatabase directives. You may have omitted them since I asked you to remove passwords from the files sent, but if not, that's one of your problems. The other: HostDb Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv rjmconsulting.com:80midgard N N N N N N N N N N rjmconsulting.com midgard N N N N N N N N N N This seems to be a dump of the mysql host table. This is wrong. You must set up a separate database for Midgard and load the contents of midgard.sql from the data package into it. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Question
Hello, I am not on the list, but your web page said to direct any questions here. I'm in the process of attempting to set up a mysql database driven web application on unix and apache. I've followed your setup instructions on your web page, but it still calls up the default apache page when I try to. In the logs, it says: [Sat Feb 5 00:34:15 2000] [notice] [client 209.86.220.4] Midgard: host record for www.duskglow.com:80 not found (I'm actually more concerned about rjmconsulting.com:80, this is just an example). Now I'm assuming this is a mysql problem, but I am not sure. If it is... I've added the appropriate host records in the database but it still doesn't work. I can provide dumps of the appropriate database records if necessary. Any ideas? Once I get this running, I'll probably have other questions... I just want to play around with it and see what I can do. I'm relatively inexperienced with database-backend web apps, so be gentle please :) Thanks a bunch. --Russell -- Russell miller - [EMAIL PROTECTED] - [EMAIL PROTECTED] --- The following sites are my own and do not necessarily represent the views of any of my clients. http://www.duskglow.com http://www.singlegeek.com http://www.whathaveyoudone.org PGP signature -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] question about midgards
Dear sir I have the following questions 1. Can i perform full text search by using in midgard? (All words in the articles are keyword.). 2.Does midgard support chinese characters (2bit big5/GB) ? With Best Regards Gordon Tin -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question about midgards
Gordon Tin wrote: Dear sir I have the following questions 1. Can i perform full text search by using in midgard? (All words in the articles are keyword.). Emile Heyns explored this area and has several solutions. They include support for Ht://Dig and UDMSearch engines at least. Please surf archives of this mailing list at the http://www.progressive-comp.com/Lists/?l=midgard 2.Does midgard support chinese characters (2bit big5/GB) ? No, at least for the moment. -- Sincerely yours, Alexander Bokovoy !-- 2:450/144.58 --- bokovoyATminsk.lug.net --- FractalsAtTheEdge -- -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] question about midgards
Emile Heyns explored this area and has several solutions. They include support for Ht://Dig and UDMSearch engines at least. Please surf archives of this mailing list at the The ht://dig solution currently indexes the site as presented through apache; it is not (yet) an internal search. Udmsearch supports database searching (and has i18n features). The integration of the client-side into midgard (to support internal searching by PHP code) is one of my many 2.0 projects. Udmsearch is usuable as-is, though, as it can index the Midgard database directly and comes with several front-ends that can be executed from PHP code. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Derek Beattie wrote: ? if ($article-url) { ? pCheck out:bra href="(article.url:u);"(article.url);/a/p !-- :u means in URL form -- ? } ? p align="right" a href="/news/" class="navi"More news/a/p it works except the url tries to send me to: http://server.com/news/http://other.site.com when the desired resule would be: http://other.site.com It's the :u modifier. It escapes the :, /, and . to their %code equivalents so the link will probably show up as a href="http%3A%2F%2Fother%2Esite%2Ecom"http://other.site.com/a. Best only to use URL escaping for parameter lists. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Hi, Derek Beattie wrote: It works in the sense that it displays the correct url but when I pass the mouse over the link, the url that shows up in the browsers status bar doesn't work becuase it has the http://server.com in front of the url. So lets say the url I put in the content is http://www.yahoo.com and I use the code we are talking about. ? if ($article-url) { ? pCheck out:bra href="(article.url);"(article.url);/a/p ? } ? p align="right" a href="/news/" class="navi"More news/a/p When I click on the link it tries to send me to http://server.com/news/http://www.yahoo.com - Maybe I need to use substr or something. Did you try to put a litteral url instead of (article.url); and see what you get ? What do you get in the page source ? Maybe it is not a Midgard bug, but a browser bug... Regards, [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Derek Beattie schreef: It works in the sense that it displays the correct url but when I pass the OK the display would work. mouse over the link, the url that shows up in the browsers status bar doesn't work becuase it has the http://server.com in front of the url. So lets say the url I put in the content is http://www.yahoo.com and I use the code we are talking about. When I click on the link it tries to send me to http://server.com/news/http://www.yahoo.com - Maybe I need to use substr or something. In the admin interface, what is the exact value of the URL field, and when you view source on the resultin page, what exactly does the code look like that displays the link? emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Derek Beattie schreef: Actually to fix the problem temp. I just hard coded the url in and that works fine. I basically took the code for news from the midgard example site. Go add an article to the sample page and put a url in it and see how it works for you. You're right but the VMUC site has the same problem I described earlier: it uses a href="(article.url:u);"(article.url);/a. If you remove the :u the VMUC news page works normally too. emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
ok, I think I found the problem. What a bone head. In the content admin I had www.yahoo.com instead of http://www.yahoo.com in the article url. If I don't put the http:// it must do something else? --- Emile Heyns [EMAIL PROTECTED] wrote: Derek Beattie schreef: I've tried several things but I'm still not sure how to get the desired result. Doesn't ? if ($article-url) { ? pCheck out:bra href="(article.url);"(article.url);/a/p ? } ? p align="right" a href="/news/" class="navi"More news/a/p work? emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] = . \\|// (O-O) *--oOO--(_)--OOo-* * Sender: Derek Beattie* * Personal: [EMAIL PROTECTED]* * Business: [EMAIL PROTECTED]* ** __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Question
Hello Derek, you wrote: Hi all, I've got the following code from the example site... ? if ($article-url) { ? pCheck out:bra href="(article.url:u);"(article.url);/a/p !-- :u means in URL form -- ? } ? p align="right" a href="/news/" class="navi"More news/a/p it works except the url tries to send me to: http://server.com/news/http://other.site.com when the desired resule would be: http://other.site.com This url is not intended to be clickable, it was provided as example of (variable:modifier); syntax. However, to avoid misunderstanding, it is corrected in Midgard 1.2.6. Best regards, Alexandermailto:[EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] midgard question
I've been playing with midgard and creating my own layout by copying pices from the example and admin layout. When I go to the admin page or the example page I can view the source and see something similar to the following: BODY{ font-family: Arial, Helvetica, Geneva, Sans-serif;} TD{ font-family: Arial, Helvetica, Sans-Serif;} TD.maintext{ font: Arial, Helvetica, Sans-Serif; font-size: smaller;} A.navi{ text-decoration: none;} A.navi:hover{ text-decoration: underline;} A.footer{ text-decoration: none; color: #00;} A.footer:hover{ text-decoration: underline; color: #00;} A.navil{ text-decoration: none; color: #F0F0F0;} A.footer:hover{ text-decoration: underline; color: #F0F0F0;} H1{font-family: Arial,Helvetica,Geneva,Sans-Serif; but I can't find where this stuff is setup in the layout or content manager. Thanks, Derek = . \\|// (O-O) *--oOO--(_)--OOo-* * Sender: Derek Beattie* * Personal: [EMAIL PROTECTED]* * Business: [EMAIL PROTECTED]* ** __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] midgard question
At 07:35 PM 1/14/00 -0800, you wrote: I've been playing with midgard and creating my own layout by copying pices from the example and admin layout. When I go to the admin page or the example page I can view the source and see something similar to the following: BODY{ font-family: Arial, Helvetica, Geneva, Sans-serif;} TD{ font-family: Arial, Helvetica, Sans-Serif;} TD.maintext{ font: Arial, Helvetica, Sans-Serif; font-size: smaller;} A.navi{ text-decoration: none;} A.navi:hover{ text-decoration: underline;} A.footer{ text-decoration: none; color: #00;} A.footer:hover{ text-decoration: underline; color: #00;} A.navil{ text-decoration: none; color: #F0F0F0;} A.footer:hover{ text-decoration: underline; color: #F0F0F0;} H1{font-family: Arial,Helvetica,Geneva,Sans-Serif; Those are Cascading Style Sheets (browser supported, not from midgard). You can read more about them at this URL : http://www.w3.org/Style/CSS/ Hope this helps. -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] midgard question
It's a style document that's located in Layout Administration area, specifially it's part of the head and it's titled head-style. If you follow the style element root it'll help you see how the style documents are organized and how they're called. parker On Fri, 14 Jan 2000, Derek Beattie wrote: I've been playing with midgard and creating my own layout by copying pices from the example and admin layout. When I go to the admin page or the example page I can view the source and see something similar to the following: BODY{ font-family: Arial, Helvetica, Geneva, Sans-serif;} TD{ font-family: Arial, Helvetica, Sans-Serif;} TD.maintext{ font: Arial, Helvetica, Sans-Serif; font-size: smaller;} A.navi{ text-decoration: none;} A.navi:hover{ text-decoration: underline;} A.footer{ text-decoration: none; color: #00;} A.footer:hover{ text-decoration: underline; color: #00;} A.navil{ text-decoration: none; color: #F0F0F0;} A.footer:hover{ text-decoration: underline; color: #F0F0F0;} H1{font-family: Arial,Helvetica,Geneva,Sans-Serif; but I can't find where this stuff is setup in the layout or content manager. Thanks, Derek = . \\|// (O-O) *--oOO--(_)--OOo-* * Sender: Derek Beattie* * Personal: [EMAIL PROTECTED]* * Business: [EMAIL PROTECTED]* ** __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] midgard question
Thanks!, I thought I rememberd seeing it somewhere. I can't believe how unbelievably fast people reply on this list. Hopefully I will be able to do the same in the future. Derek --- Ron Parker [EMAIL PROTECTED] wrote: It's a style document that's located in Layout Administration area, specifially it's part of the head and it's titled head-style. If you follow the style element root it'll help you see how the style documents are organized and how they're called. parker On Fri, 14 Jan 2000, Derek Beattie wrote: I've been playing with midgard and creating my own layout by copying pices from the example and admin layout. When I go to the admin page or the example page I can view the source and see something similar to the following: BODY{ font-family: Arial, Helvetica, Geneva, Sans-serif;} TD{ font-family: Arial, Helvetica, Sans-Serif;} TD.maintext{ font: Arial, Helvetica, Sans-Serif; font-size: smaller;} A.navi{ text-decoration: none;} A.navi:hover{ text-decoration: underline;} A.footer{ text-decoration: none; color: #00;} A.footer:hover{ text-decoration: underline; color: #00;} A.navil{ text-decoration: none; color: #F0F0F0;} A.footer:hover{ text-decoration: underline; color: #F0F0F0;} H1{font-family: Arial,Helvetica,Geneva,Sans-Serif; but I can't find where this stuff is setup in the layout or content manager. Thanks, Derek = . \\|// (O-O) *--oOO--(_)--OOo-* * Sender: Derek Beattie* * Personal: [EMAIL PROTECTED]* * Business: [EMAIL PROTECTED]* ** __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED] = . \\|// (O-O) *--oOO--(_)--OOo-* * Sender: Derek Beattie* * Personal: [EMAIL PROTECTED]* * Business: [EMAIL PROTECTED]* ** __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
[midgard] Document parsing, was Re: Midgard Question: creating links
On 10 Jan, Alexander Bokovoy wrote: It seems that it should be done at low level of Midgard, in midgard-lib. Then we will have open system which operates by parsers just like PHP operates by external modules. The main difference will be in the language where parser's functions is accessible - it will be C source of parser. Thus, we has no headache with syntaxical and lexical analyzers. Instead, at the high level (for example, at PHP script) we will operate with queues of parsers but not with their functions. You may see parser at this level like single function "black box" that accepts information and transforms it into another format. Last parser in each queue thus will be one that outputs Net-wide format (either HTML, XML, etc, or, for example, PDF). This is a very good idea. Also, it has something in common with the SusiSGML system Jukka and I worked on before Midgard. SusiSGML was a hack on top of Apache that handled translating SGML files (of a specific DTD) into HTML (and applying visual outlook into them). The actual SGML files were stored in the htdocs directory. When Apache got a query for a particular URI, it would then go to that path in the filesystem, look for the .html and .sgml file there, and check whether the SGML file was newer. If it was, then it Apache would translate it to HTML and save it as a .html file. The initial translation was a bit slow, but after that Apache would just use the HTML document, and so normal browsing of the site wasn't affected. Maybe a similar method could be applied with these parsers? First thing would of course be that Midgard would have to know to use all the parsers and converters needed in the process. If this could be done via a generic interface, it should be easy to write Midgard support to different parsers, and also for third parties to provide these interfaces with their parser software. I think this is the area that needs most work here. Then Midgard would need to know in what format was the document saved as in Midgard's database, was it SGML, XML, LaTeX, or something else. Based on this, and the output format specified in PHP end (HTML, WML, whatever) Midgard would then run the document through the needed parsers and save the output to a different field in the article table. After that Midgard could just use that stored information to serve further queries for the same document. Midgard 2 has a nice modification log, so it would be easy to check whether the document has changed since it was previously converted. This way we would finally get a really powerful and flexible publishing system that could work with multiple formats for Midgard. Alexander Bokovoy /Bergie -- -- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] -- http://www.iki.fi/Henri.Bergius -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Midgard Question: creating links
On 10 Jan, Emiliano Heyns wrote: (varname:u); mark up varname as URL. If $varname = "http://www.midgard-project.org/" then (varname:u); would expand to a href="http://www.midgard-project.org/"http://www.midgard-project.org//a Actually, the :u formatting means that the variable will be printed in URL-encoded format. This means that "Network Security RD" becomes "Network%20Security%20R%26D" (just an example from page I was working on). This is useful for passing text strings as GET or Midgard Active page arguments. (varname:f); mark up formatted text. Empty lines will be replaced with P will automatically, and you can include HTML markup in [...] delimiters (anything between those will be passed unchanged with the [ and ] removed. It does a great lot more but for the life of me I can't find the markup parser. There is also :F which makes all paragraphs shorter than 10 words without period a H2-level headline and lines beginning with a dash into unnumbered listings. My experience is that almost all of Web content will fit nicely in these rules, especially as you can embed HTML code into it as needed. Emile /Bergie -- -- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] -- http://www.iki.fi/Henri.Bergius -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Midgard Question: creating links
Henri Bergius wrote: On 10 Jan, Emiliano Heyns wrote: (varname:u); mark up varname as URL. If $varname = "http://www.midgard-project.org/" then (varname:u); would expand to a href="http://www.midgard-project.org/"http://www.midgard-project.org//a Actually, the :u formatting means that the variable will be printed in URL-encoded format. This means that "Network Security RD" becomes "Network%20Security%20R%26D" (just an example from page I was working on). This is useful for passing text strings as GET or Midgard Active page arguments. Correct, my bad. I just located the parser, and I'll try to write a little something about its workings. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]
Re: [midgard] Midgard Question: creating links
Alexander Bokovoy wrote: I don't look yet into 2.0 alpha sources about parser code but was it changed into module structure like other things did? Not in the version that is now in CVS, although that will naturally not necesarily be as up to date as the code that Jukka is still working on. If so, it is very good, I'd like to add some LaTeX-like formating after 1.2.6 will be released to make life easier for scientific applications of Midgard. Current implementation of parser has some limitations in extension scheme (you'll need to rewrite parser at least in two or three places in different packages), so modularizing it would be great. Actually, I've already have LaTeX-like formatting done in PHP using regular expressions and possibly support for PCRE in the text parser would be useful. I mean that text formating modules could use generalized API for accessing PCRE library like it is done with DB support. Seems like you allready put some thought in this. I would welcome this concept, so if you have ideas on this API I'd gladly discuss the remifications. Then creating parsers would be more efficient (it could be relatively simple to create parser for Word-like format, as those apps already done in Perl and C). Thus, we could achieve the same feature set that proprietary systems (like NPS) sell for thousands of dollars. Especially it would be great if those parsers could be dynamically loaded (hence, optimisation for memory footprint will be very effective). Also real document flow is impossible without those things. Hmm, nice. But the current parser does all it's work in memory; I'm not sure I'd want to serve many Word documents like this concurrently. If we want to use this we may want to have a way to circumvent this. Emile -- This is The Midgard Project's mailing list. For more information, please visit the project's web site at http://www.midgard-project.org To unsubscribe the list, send an empty email message to address [EMAIL PROTECTED]