Seem very similar to me. So, the problem must lay somewhere else. In one of your earlier posts you mentioned that upgrading MMBase was not an option. Why? Using a more current version of MMBase may help with a lot of issues.

---André



Op 22-jun-2007, om 13:12 heeft Dave Smits het volgende geschreven:

This is mmbasedebug entirly
<%@ page language="java" contentType="text/html; charset=UTF-8" session="false" %> <%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0"; prefix="mm" %>
<mm:cloud>
<mm:import id="curtime"><mm:time time="now"/></mm:import>

<html>
        <head>
                <title></title>
        </head>

        <body>
        <table>
        <mm:node number="urban">

<mm:relatednodes type="newsarticle" constraints="starttime > $curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'" max="6" orderby="starttime" directions="down">
                <tr>
                        <td height="50">
                
                
                        <mm:field name="title" /> <br />
                        <mm:related path="artist" max="1">
                                relatie met artiest <br />
                                <mm:node element="artist">
                                        element artiest <br />
                                        <mm:relatednodes type="image" 
role="title">
                                                relatie plaatje <br />
                                                <mm:image template="s(80)+quality(100)" 
/><br />
                                                <img src="<mm:image 
template="s(80)+quality(100)" />"/><br />
                                                
                                                <mm:image /><br />
                                                <img src="<mm:image />"/><br />
                                                
                                        </mm:relatednodes>
                                </mm:node>
                        </mm:related>
                        
                        <br /><hr /><br />
                        </td>
                </tr>
                <mm:last inverse="true">
                        <tr><td height="6"></td></tr>
                </mm:last>
        </mm:relatednodes>
        </table>
</mm:node>
</mm:cloud>
</body>
</html>

The other file is really big but here the part of the the headlines
<mm:node number="urban">
<% int i = 0; %>
<mm:relatednodes type="newsarticle" constraints="starttime > $curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'" max="6" orderby="starttime" directions="down">
<% i++; %>
        <tr>
                <td height="50">
                <div id="hp_news<%=i%>" style="overflow:hidden;">       </div>
        
                <script type="text/javascript">
                        // <![CDATA[
var fo = new FlashObject("swf/headlines.swf", "hp_news<%=i%>", "395", "50", "7", "#FFFFFF");
                        fo.addVariable("url", "<mm:field name="number"/>");
fo.addVariable("id", "<mm:related path="artist" max="1"><mm:node element="artist"><mm:relatednodes type="image" role="title"><mm:image template="s(80)+quality(100)" /></ mm:relatednodes></mm:node></mm:related>");
                        fo.addVariable("title", "<mm:field name="title"/>");
                        fo.addParam("wMode", "transparent");
                        fo.addParam("menu", "false");
                        fo.write("hp_news<%=i%>");
                        // ]]>
                </script>
                </td>
        </tr>
        <mm:last inverse="true">
        <tr><td height="6"></td></tr>
        </mm:last>
</mm:relatednodes>
</mm:node>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users- [EMAIL PROTECTED] On Behalf Of André van Toly
Sent: vrijdag 22 juni 2007 13:10
To: Discussion list for designers (front-end) and community
Subject: Re: [Users] mm:image

Op 22-jun-2007, om 13:07 heeft Dave Smits het volgende geschreven:
So good as. In mmbasedebug is there no flash en in between the
relation tags is some text to see with relations he can find
But the java code (and mmbase tags) are the same

Is it possible for you to post them both here?

---André


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of André van Toly
Sent: vrijdag 22 juni 2007 13:05
To: Discussion list for designers (front-end) and community
Subject: Re: [Users] mm:image

Op 22-jun-2007, om 12:39 heeft Dave Smits het volgende geschreven:
Hi,
I thought it work but I just looked on the site www.juize.fm and
without the flash only HTML: http://juize.fm/juizefm/mmbasedebug.jsp

And the code for retrieving the images in both files (homepage and
mmbasebug.jsp) is the same?

---André

and the problem is back
someone an idea?

Grtz Dave





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of Dave Smits
Sent: woensdag 20 juni 2007 17:21
To: Discussion list for designers (front-end) and community
Subject: RE: [Users] mm:image

Oke tanks i will try it. I think the order by is not reaaly
interessing me. But an former collegeu made it this way. I hope it
work!

-----Oorspronkelijk bericht -----
Van: "André van Toly" <[EMAIL PROTECTED]>
Aan: "Discussion list for designers (front-end) and community"
<[email protected]>
Verzonden: 20-6-07 17:17
Onderwerp: Re: [Users] mm:image

Hi,

Normally it is not needed to include the name of the relation in a
<mm:related /> when the relation is a 'related' (or a 'insrel' for
that matter). The MMBase taglib defaults to 'related' and that makes
it possible to write 'path="artist"' in stead of
'path="related,artist"'. But in your case you're using
'related.number' as a means of sorting your list, which is also a bit
odd and not very widely used. Maybe your problem is related to that.

Is it possible for you to use another relation to define the relation
between artist and article? For example 'posrel' with which you can
sort relations by value in the 'posrel.pos' field. You would get
something like this:

<mm:related path="posrel,artist" max="1" orderby="posrel.pos"
directions="UP">
   relatie met artiest <br />
   <mm:node element="artist">
     element artiest <br />
   </mm:node>
</mm:related>

You can also use directions="DOWN" if you want to sort the other way
around.

At least I would drop the 'related' piece in 'path="related,artist"'
and just write 'path="artist"'. I think your problem will can be
solved with that. Of course you can no longer use
'orderby="related.number"' but have to find another way to sort (or
just leave it if you can work around it, or when it really does not
matter).

---André


Op 20-jun-2007, om 16:50 heeft Dave Smits het volgende geschreven:

I changed de code a little bit:

<%@ page language="java" contentType="text/html; charset=UTF-8"
session="false" %>
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0";
prefix="mm" %>
<mm:cloud>
<mm:import id="curtime"><mm:time time="now"/></mm:import>

<html>
        <head>
                <title></title>
        </head>

        <body>
        <table>
        <mm:node number="urban">

        <mm:relatednodes type="newsarticle" constraints="starttime >
$curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'"
max="6" orderby="starttime" directions="down">
                <tr>
                        <td height="50">
                
                
                        <mm:field name="title" /> <br />
                        <mm:related path="related,artist" max="1"
orderby="related.number">
                                relatie met artiest <br />
                                <mm:node element="artist">
                                        element artiest <br />
                                        <mm:relatednodes type="image" 
role="title">
                                                relatie plaatje <br />
                                                <mm:image template="s(80)+quality(100)" 
/><br />
                                                <img src="<mm:image 
template="s(80)+quality(100)" />"/><br />
                                                
                                                <mm:image /><br />
                                                <img src="<mm:image />"/><br />
                                                
                                        </mm:relatednodes>
                                </mm:node>
                        </mm:related>
                        
                        <br /><hr /><br />
                        </td>
                </tr>
                <mm:last inverse="true">
                        <tr><td height="6"></td></tr>
                </mm:last>
        </mm:relatednodes>
        </table>
</mm:node>
</mm:cloud>
</body>
</html>


It looks of mmbase can't found the relation to de artist.... but
why works it on the no-cache version?
And after I upload the new file the images works for a few minutes.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of Dave Smits
Sent: woensdag 20 juni 2007 11:26
To: Discussion list for designers (front-end) and community
Subject: RE: [Users] mm:image

Hi,

The code:
<%@ page language="java" contentType="text/html; charset=UTF-8"
session="false" %>
<%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0";
prefix="mm" %>
<mm:cloud>
<mm:import id="curtime"><mm:time time="now"/></mm:import>
<html>
        <head>
                <title></title>
        </head>

        <body>
        <table>
        <mm:node number="urban">

        <mm:relatednodes type="newsarticle" constraints="starttime >
$curtime-24*60*60*21 AND endtime > $curtime AND publish = 'y'"
max="6" orderby="starttime" directions="down">
                <tr>
                        <td height="50">
                
                
                        <mm:field name="title" /> <br />
                        <mm:related path="related,artist" max="1"
orderby="related.number">
                                <mm:node element="artist">
                                        <mm:relatednodes type="image" 
role="title">
                                                <mm:image template="s(80)+quality(100)" 
/><br />
                                                <img src="<mm:image 
template="s(80)+quality(100)" />"/><br />
                                                
                                                <mm:image /><br />
                                                <img src="<mm:image />"/><br />
                                                
                                        </mm:relatednodes>
                                </mm:node>
                        </mm:related>
                        
                        </td>
                </tr>
                <mm:last inverse="true">
                        <tr><td height="6"></td></tr>
                </mm:last>
        </mm:relatednodes>
        </table>
</mm:node>
</mm:cloud>
</body>
</html>

And the url: www.juize.fm/juizefm/mmbasedebug.jsp
(is the url with 2 servers and squid cache)

And the no-cache on one server: http://r538-cms.bluedome.net/
juizefm/mmbasedebug.jsp



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of André van Toly
Sent: woensdag 20 juni 2007 10:06
To: Discussion list for designers (front-end) and community
Subject: Re: [Users] mm:image

OK,

Now I see:

<script type="text/javascript">
     // <![CDATA[
     var fo = new FlashObject("swf/headlines.swf", "hp_news1",
"395",
"50", "7", "#FFFFFF");
     fo.addVariable("url", "764325");
     fo.addVariable("id", "");
     fo.addVariable("title", "Spike Lee naar Rotterdam!");
     fo.addParam("wMode", "transparent");
     fo.addParam("menu", "false");
     fo.write("hp_news1");
     // ]]>
</script>

And the Flashes that do have images, no longer have session id's.
That's a plus ;-)

But apperently there is/goes something wrong in your statement:

<mm:relatednodes type="newsarticle"
   constraints="starttime > $curtime-24*60*60*21 AND endtime >
$curtime AND publish = 'y'"
   max="6" orderby="starttime" directions="down">
<mm:related path="related,artist" max="1"
orderby="related.number"><mm:node element="artist"><mm:relatednodes
type="image" role="title"><mm:image template="s(80)+quality(100)" /
</
mm:relatednodes></mm:node></mm:related>
</mm:node>
</mm:relatednodes>

If I where you I would create a testpage with just the above code
and
see - without the Flashes obstructing the view - what happens. And
maybe debug it by rephrasing your code in some way but that it still
returns the same article titles and images and see if that helps.

---André


Op 20-jun-2007, om 9:33 heeft Dave Smits het volgende geschreven:
Hi,

Thanks; i changed it but mmbase still return no image :(

http://juize.fm/juizefm/home.jsp?bladie=bla&juize=true (I used the
strange parameters to pass the squid-cache)

Maybe you must refresh a few time to see because yesterday I drop
the mmbase cache (/mmbase/admin) and that worked; but that was on
one server and we got 2 servers running.

greets
dave




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:users-
[EMAIL PROTECTED] On Behalf Of André van Toly
Sent: woensdag 20 juni 2007 9:00
To: Discussion list for designers (front-end) and community
Subject: Re: [Users] mm:image

Op 20-jun-2007, om 0:13 heeft Dave Smits het volgende geschreven:
But solve this my problem?

I do also think that your problem could be related to the session
id's that get generated by your web application server (Tomcat?).
These sessions get invalidated after a while, depending on your
app.
server's settings. Apparently, from what I can detect from looking
from the outside, does your website not depend on sessions. So you
might as well turn them off, they are on by default.

The easiest way to do so is by including this page declaration in
the
very top of your template:

   <%@ page language="java" contentType="text/html"
session="false" %>

If that does not help, your problem might be related to some other
issue, but this needs to be eliminated first.

---André



________________________________

Van: [EMAIL PROTECTED] namens Michiel Meeuwissen
Verzonden: wo 20-6-2007 0:01
Aan: Discussion list for designers (front-end) and community
Onderwerp: Re: [Users] mm:image



2007/6/19, Dave Smits <[EMAIL PROTECTED]>:
if dont have a image the result is
fo.addVariable("id", ""); so the flash can't get a image.

if <mm:image> work
the result is fo.addVariable("id", "/juizefm/mmbase/images/
525596;jsessionid=87315FFB25CC3120B188C9FF6689344");

Turn the session of.

<[EMAIL PROTECTED] session="false" %>
or so.


Michiel


--
mihxil'  http://meeuw.org <http://meeuw.org/>
nl_NL eo_XX en_US
_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users


<winmail.dat>
_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users

--
André van Toly
MMBase development & Userfriendly webdesign

W: http://www.toly.nl
M: +31(0)627233562
------------------------------------------------------------------
~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
------------------------------------------------------------------ -
-
-
-
----------
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely
receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users




--
André van Toly
web http://www.toly.nl                            mobile +31(0)
627233562
----------------------------------------------------------------
~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
------------------------------------------------------------------- -
-
-
----------
The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely
receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
------------------------------------------------------------------- -
-
-
----------
The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely
receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users




--
André van Toly
web http://www.toly.nl                            mobile +31(0)
627233562
----------------------------------------------------------------
~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
-------------------------------------------------------------------- -
-
----------
The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
-------------------------------------------------------------------- -
-
----------
The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users




--
André van Toly
web http://www.toly.nl                            mobile +31(0)
627233562
----------------------------------------------------------------
~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
--------------------------------------------------------------------- -
----------
The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised
to receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking any
action in relation to the contents of this information is strictly
prohibited and may be unlawful. Neither the sender nor the
represented institution are liable for the correct and complete
transmission of the contents of an e-mail, or for its timely receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users


--
André van Toly
MMBase development & Userfriendly webdesign

W: http://www.toly.nl
M: +31(0)627233562
------------------------------------------------------------------
~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users
---------------------------------------------------------------------- ---------- The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in relation to the contents of this information is strictly prohibited and may be unlawful. Neither the sender nor the represented institution are liable for the correct and complete transmission of the contents of an e-mail, or for its timely receipt.


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users


--
André van Toly
MMBase development & Userfriendly webdesign

W: http://www.toly.nl
M: +31(0)627233562
------------------------------------------------------------------ ~~<<>>~~


_______________________________________________
Users mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/users

Reply via email to