CLOG Tags for Families?

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
racoll
Posts: 5258
Joined: 26 Jan 2004, 12:18
My articles: 6
My images: 182
My catfish: 2
My cats species list: 2 (i:2, k:0)
My aquaria list: 1 (i:0)
Spotted: 238
Location 1: London
Location 2: UK

CLOG Tags for Families?

Post by racoll »

Title says it all really.

As they can be used for both species and genera, is is worthwhile to make them work for families?

Not essential, just saves a wee bit of time when linking to families.
User avatar
Silurus
Posts: 12461
Joined: 31 Dec 2002, 11:35
I've donated: $12.00!
My articles: 55
My images: 896
My catfish: 1
My cats species list: 90 (i:1, k:0)
Spotted: 428
Location 1: Singapore
Location 2: Moderator Emeritus

Post by Silurus »

The clog tag automatically italicizes the terms within, and as family names are not italicized, a new tag would have to be created at the family level.
Image
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

If jools could send me the code from phpBB that does the CLOG tags, I'll see if I can add "family" or something... [the name "flog" could be misunderstood, I think].

We also would need a piece of code similar to:
scripts/clog_link.php (which I can pretty much guess what it looks like - but I haven't got that code either)

This part is not hard to write (compared to the work on "ocurrences" that me and Jools have been doing the last few weeks, at least).

Of course, ultimately, Jools is the one that decides what and how we develop the site - he may prefer not to spend time on this and do something "better".

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

It's not a bad idea at all and Silurus makes a good point about italicization.

I've also long been thinking about a

Code: Select all

[cimg]
tag to show cat-elog midsized images too with a link to the page.

Let me have a think about it tomorrow or maybe even tonight...

Jools
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

Mats,

No rush as I know you've been ill. Did you get the code for this from me or not - I can't remember if I sent it.

Anyway, I propose to add this and then fix the italics issue thereafter?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

Yes, I've got the code. I'll look at it later on today or tomorrow.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

*bump*

As I've looked into this recently with what has now become an improvement on the [ cimg ] concept, I'm fairly well up to speed on what is required for a family one.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

I've just mailed an updated copy. It worked when I tested it a while back.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

testing:



Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

The "image" on that seems a bit confused, but otherwise fine.

And of course, you'd need to add the "Don't italicize" bit of code - but I think that's just a copy'n'paste from the bit that does that in other places, right?

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

OK, that works, however,

a) It's in italics and
b) it tries to generate an invalid mouseover image

It will need it's own tag if these issues are to be overcome?

[ clogfamily ] ?

[ family ] ?

[ cfamily ] ?

Any suggestions?

Jools
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

MatsP wrote:you'd need to add the "Don't italicize" bit of code - but I think that's just a copy'n'paste from the bit that does that in other places, right?
Nope, it would be a super-ugly regular expression that says add italics if the tag contents contains a space.

A new tag is a much easier option, but still tricky.

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

Jools wrote:
MatsP wrote:you'd need to add the "Don't italicize" bit of code - but I think that's just a copy'n'paste from the bit that does that in other places, right?
Nope, it would be a super-ugly regular expression that says add italics if the tag contents contains a space.

A new tag is a much easier option, but still tricky.

Jools
I'm not a fan of super-ugly regular expressions! :-(

And just looking for a space wouldn't work for something like , right?

Unfortunately, I don't know what the code looks like o add the clog tags - is it just a regular expression at the moment saying "take whatever is within the tag and apply to the link-script"?

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

MatsP wrote:Unfortunately, I don't know what the code looks like o add the clog tags - is it just a regular expression at the moment saying "take whatever is within the tag and apply to the link-script"?
It's too darn big to post! Can I email you it?

Jools
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

MatsP wrote:And just looking for a space wouldn't work for something like , right?
Right, I hadn't though of that, so I'd need to use the database to hit the genus or family table to work out what we are displaying - that's possible, I had to do something similar to get the family info for species clog uses.

That still leaves the italics problem, we need a new tag.

Jools
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

We ROCK!



The italics is just the last problem, maybe the same tag is possible.

Jools
Last edited by Jools on 15 Jun 2007, 14:30, edited 1 time in total.
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

Jools wrote:
MatsP wrote:Unfortunately, I don't know what the code looks like o add the clog tags - is it just a regular expression at the moment saying "take whatever is within the tag and apply to the link-script"?
It's too darn big to post! Can I email you it?

Jools
Of courese, fire away.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

Done, I also need to stop displaying an image.

Jools
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

OK, it's all working!

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

Hmmm.

I can't think of any easy solution to just use the regular expression method that is in the current bbcode.php.

I honestly think the best way is to add a hack to bbcode to call a function with the contents between the tags and let that function sort out what it "translates to".

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

I know, it's not a pretty thing. Want to try rustling up such a function?

Jools
User avatar
MatsP
Posts: 21038
Joined: 06 Oct 2004, 13:58
My articles: 4
My images: 28
My cats species list: 117 (i:33, k:0)
My aquaria list: 12 (i:10)
My BLogs: 4 (i:0, p:164)
Spotted: 187
Location 1: North of Cambridge
Location 2: England.

Post by MatsP »

Yes, I'll have a go - it'll be after the weekend tho'.

--
Mats
User avatar
Jools
Expert
Posts: 16274
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:235, k:1)
My aquaria list: 21 (i:13)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

No worries, that's me just getting back up to speed now that the Linder clan are heading home.

Jools
Post Reply

Return to “All Resolved Issues”