Should I be wrong in this part of the forum please move this thread.

I use the pixture_reloaded theme and would like to make a condition, if a flash-video is shown or a photo. The problem is, that a filter / search could lead to 100 or more flashvideos simultanously, which is a problem of course.

So I think there should be a condition, if the "main-alias" of an article is shown, the flashvidoe should be shown, if it is a result of a taxonomy/term-selection, a photo should be shown. It would be fine also, if the flashvideo is shown if the article is shown on the startpage.

I don't know how to do this with php, but the logic should be

if "main-url" then
flashvideo
elif startpage
flashvideo
else
photo
fi

It would be very nice, if someone could help me with this problem.

Comments

linuxuser’s picture

I use a Menalto Gallery and embed the flash-video with a code from http://www.flashyourweb.com/staticpages/index.php?page=embed-o-rator

So I simply allow php for the article and insert a code like this:

<center>
<embed src="http://www.domain.tld/minislideshow.swf" width="350" height="197"
 align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent"
 allowFullscreen="true" allowScriptAccess="always" quality="high"
flashvars="xmlUrl=http://www.domain.tld/mediaRss.php?g2_itemId=375&delay=4&altLink=http://www.domain.tld/v/album/&showControls=false&siteInfoText=domain.tld"></embed>
</center>

Any other solutions are welcome.

Jeff Burnz’s picture

How do you attach images to the node with Gallery?

So you just paste the Flash embed code into the node body? Not a seperate CCK field?

Do you have a live web page I can look at that includes some flash and an image?

Need help with IE?
Learn basic XHTML and CSS first.
Get smart with web specs.

linuxuser’s picture

Yes I paste the code only in the node. I don't use CCK, although it is installed.

The site is under construction. I will send you the page with a private message.

Jeff Burnz’s picture

I emailed you back, lets do this via email and chat, we can post the solution back here when we're done...