Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-07-24 13:35:27

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

[plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Thanks to kind help of Zem and Nimnix the following little plugin is now available for download.

http://www.cnolle.com/plugins/cno_image_nav.txt

It will be expanded with the ability to display how many photographs are in the series (i.e. 1 of x) and possibly show a thumbnail of the next image and the previous (instead of the back and next text link). Other areas of expansion will hopefully include the ability to run the next and previous system as a loop, so when you reach the end of a series you are automatically taken back to the beginning.

It also includes a little function (a modified version of <code><txp:image_display /></code>) to embed the image into CSS as background image use.

See http://www.cnolle.com/zimmer116?c=emilie&p=50 for a live example.

Last edited by cnolle (2004-07-24 13:42:33)

Offline

#2 2004-07-24 21:51:10

rajo
Member
Registered: 2004-03-13
Posts: 43

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Are there any plans to incorporate the navigation tags with the img_index tag? So we can page through a specific number of thumbnails on a page.

Offline

#3 2004-07-25 13:01:10

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Now that would be sweet. I’ll certainly look into it. However, I am very much in a learning process when it comes to PHP and MySQL so this may take some time.

Offline

#4 2004-07-25 16:02:20

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Now updated to ver 0.14.

Added ability to use previous and next thumbnail as your navigation.

<code><txp:cno:img_next cat=“pictures” thumb=“1” /></code>

Use above URL to download updated version.

Offline

#5 2004-07-25 17:10:38

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Hi cnolle, I’m doing something wrong because I can’t get this to work at all.

I’ve:
Uploaded 2 images and put them in a cat called test.

created a page with:
<code>
<txp:cno_img_prev cat=“test” />
<txp:cno_img_next cat=“test” />
<txp:image_display />
</code>

Put the page in a section.

Now when I go to the section no image or navigation show up, I’m using clean urls if that makes any difference.

Any idea what I’m doing wrong here?

Thanks.

(really like your b&w pictures)

Last edited by lee (2004-07-25 17:19:33)

Offline

#6 2004-07-25 17:23:43

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Hi Lee,

For this to work you need to feed it the correct url:

Such as:

http://www.website.com/section?c=category&p=xx

Section is the name of the section on your site. XX is the ID of your image.

- Christian

Last edited by cnolle (2004-07-25 17:25:29)

Offline

#7 2004-07-26 20:09:56

elihu
New Member
Registered: 2004-06-21
Posts: 2

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

i’ve been fiddling around with this thing for a while and can’t seem to get it to work. i really want it to though because it’s a great idea for a plugin and it’s very useful.

Offline

#8 2004-07-27 10:29:10

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

The plugin has only been tested in Clean mode so I don’t know how it will behave in messy mode.

First you need to create a new section. Then create a new page. Assign this new page to your new section. This is the page code for the example given above.

<pre>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
<head>
<title><txp:page_title /></title>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<link rel=“stylesheet” href=”<txp:css />” type=“text/css” />
<style type=“text/css” media=“screen”>
body { background: #f8f8f8 url(<txp:cno_image_display />) no-repeat fixed center center;
}
</style>
</head>
<body id=“series”>
<div id=“left”><p>

Last edited by cnolle (2004-07-27 10:32:24)

Offline

#9 2004-07-27 15:23:59

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Updated version now available at the above location.

Now added <code><txp:cno_imgnext>Next text</txp:cno_imgnext></code> and the almost equivalent back rendition <code><txp:imgprev>Back text</txp:cno_imgprev></code>.

It doesn’t replace <code><txp:cno_img_next /></code> & <code><txp:cno_img_prev /></code> but it may be useful for those who wish to use their own back and next text or image.

Last edited by cnolle (2004-07-27 15:26:23)

Offline

#10 2004-07-27 16:28:00

elihu
New Member
Registered: 2004-06-21
Posts: 2

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

that makes sense. but i’m using messy mode, so i don’t think it will work. because the domain.com/section doesn’t function the same in both modes.

Offline

#11 2004-08-19 13:39:15

cnolle
Archived Plugin Author
Registered: 2004-03-21
Posts: 87
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

The plugin has been updated slightly.

I have removed the need for the category argument, instead the plugins pick up the category from the url. With other words you can now use the same page to present different series of photographs.

New version can be downloaded from above. Please remove the old plugin first since it doesn’t have the same name, but contains functions with the same name, if that makes any sense.

Offline

#12 2004-08-19 14:12:46

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: [plugin] [ORPHAN] cno_image_nav: Image Slideshow Plugin

Nice work.

Just a note: the name of the plugin can be misleading, I thought for several days it was creating a real slideshow (pop an image, pop another image, and so on); that would been very much less interesting than your plugin.

Offline

Board footer

Powered by FluxBB