Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-03-07 17:53:40

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Using the new image gallery tags

Ok I’ll do that – thanks for that man!

Btw, since my last post I got a bit more confused:

Messy/Clean in TXP prefs… Is that only something that shows for the user? Or does it also play a role in the way I work as an admin?

Sorry, but I’m really trying to get the “semantics” of TXP;-)

Offline

#14 2004-03-07 18:19:10

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: Using the new image gallery tags

It only changes the way TXP constructs links for the visitors. Also, even if you turn on the clean method, the messy URLs still work.


Who’s gonna textdrive you home tonight?

Offline

#15 2004-03-07 20:23:20

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Using the new image gallery tags

Ahh – that sheds a lot of light on the subject =)

But then if I hack the publish/taghandlers.php – can I then still use Clean URLs or will I miss something because of the hack?

Offline

#16 2004-03-07 21:27:13

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: Using the new image gallery tags

The new image functions that appeared in 1.15 were hard-coded to use the clean method, i.e. they miss the usual clean/messy switch that is used by other parts of TXP. Therefore the hack above will only change the generated image indexes. The next version should AFAIK correct this.


Who’s gonna textdrive you home tonight?

Offline

#17 2004-03-07 21:59:28

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: Using the new image gallery tags

Damn, that worked like a snap.

http://michaelbonakdar.com/gallery/?c=gallery&p=1 (a friend’s)

Offline

#18 2004-03-08 05:41:14

flowb33
Member
From: Portland, OR
Registered: 2004-02-25
Posts: 11

Re: Using the new image gallery tags

Is it too soon to want the photo_index page (that is, just /photos/) to display a list of all available photo categories or galleries? Does that tag exist and I’m just missing it?

Offline

#19 2004-03-08 06:54:25

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Re: Using the new image gallery tags

> flowb33 wrote:

> Is it too soon to want the photo_index page (that is, just /photos/) to display a list of all
> available photo categories or galleries? Does that tag exist and I’m just missing it?

I think we are still waiting for it.

Offline

#20 2004-03-15 18:26:14

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: Using the new image gallery tags

Now that 1.16 is out, does it the image gallert features work with messy-urls?

Btw, I never figures out what to do with the code strip beneath? What line of the file should i change, and the 667 is about the rights of the file right?

> mamash wrote:

> The messy URLs work always, but are not user and search engine friendly. The clean URLs only work when your server supports .htaccess overrides OR mod_rewrite.

To use messy URLs with 1.15’s photo features, you have to hack the publish/taghandlers.php file and change its 667 into:

<code>
$out[] = ‘<a href=”’.$pfr.’?s=’.urlencode($s).a.‘c=’.urlencode($c).a.‘p=’.$id.’”>’.
</code>

Offline

#21 2004-03-15 19:19:31

mamash
Member
From: Prague
Registered: 2004-02-21
Posts: 127
Website

Re: Using the new image gallery tags

Oops, it should read “and change its line 667 into”. However, in 1.16, it’s line number 692 (replace it with the code above). (And no, messy URLs still don’t work in 1.16.)


Who’s gonna textdrive you home tonight?

Offline

#22 2004-03-22 11:11:35

greyfodder
Member
From: Los Angeles, CA
Registered: 2004-02-29
Posts: 11
Website

Re: Using the new image gallery tags

Ok, quick question here. I am having trouble with the “photo gallery” aspects of textpattern. I just read up on several past posts, as well as the one above. I pretty well understand how it all works, and I can get something going on my site. Problem is, the index images are linking to a non-existent folder.

I uploaded my images through textpattern no problem. Now, the index images are linking like so,

http://www.anotherbrightidea.org/blog/photos/?c=people&p=5

There is no ‘photos’ folder, so I’m getting error pages. I nuse this link, and my index images show on the page just fine,

http://www.anotherbrightidea.org/blog/?s=photos&c=people

and the following address shows the correct way to view the page(well, until I get around to prettying it up abit),

http://www.anotherbrightidea.org/blog/?s=photos&c=people&p=6

So why are my index images linking incorrectly, and how do I fix it? I am using messy url’s if that helps.


Great, now even my car needs a tinfoil hat. :)

Offline

#23 2004-03-22 13:39:05

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: Using the new image gallery tags

The photo index tags don’t work with messy urls yet, but you can try mamash’s hack suggestion, posted above.


text*

Offline

#24 2004-04-06 14:39:16

.s
New Member
Registered: 2004-02-24
Posts: 9
Website

Re: Using the new image gallery tags

Is it possible to dynamically label the photos’ category? For instance, when ‘your-txp-site.com/photo/?c=beetles’ is loaded in the browser, a heading labeled ‘Beetles’ might automagically appear above the larger image?

I am working on an artist’s portfolio, and it would be nice to have a heading ‘Paintings’ above images from the ‘paintings’ category, and a heading ‘Ink’ above images from the ‘ink’ category.

Any help in this regard would be greatly appreciated.

Offline

Board footer

Powered by FluxBB