
| To | × pt | For |
|---|---|---|
| temp1024 | 15 | Hel… |
| Chris Graham | 50 | Sup… |
| BobS | 100 | Com… |
| BobS | 500 | Com… |
| Harry-S | 100 | Hel… |
| Chris Graham | 300 | Sup… |
| Chris Graham | 300 | Sup… |
| Fletch | 100 | Hel… |
| MitraX | 250 | Com… |
| MitraX | 500 | Com… |
|
Posted 23 February 2010, 8:53 PM
|
||
|---|---|---|
|
Community saint |
I need an option to choose what part of the description to display on the thumbnail pageMy question is about the description boxes in the galleries. It's a great feature for use in describing the images displayed with the added benefit that these comments also show up when you mouse over the thumbnails. I have used the box to also contain an extended copyright notice which shows up in both places. My predicament is that I would like to say more about the images but I find what I add to the full image description box also shows up on the thumbnail but in a BIG TALL box so that if there is a lot of text included it will extend way above the top of the page where it is not readable and you cannot scroll or usefully control the text in the box. I am wondering if there is some way to make a tag or something that would select only the text you want to show up on the thumbnail while excluding other text not selected - or a vice-versa scenario. This would allow the descriptions to be greatly expanded, if desired, and make it an even more versatile tool for the View Image page. Any ideas how to do this? I am also interested in adding the titles under the thumbnails as visible page text also. Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 24 February 2010, 12:58 PM
|
||
|
Fan in action |
Code
{+START,IF_NON_EMPTY,{DESCRIPTION}}
Code
{+START,IF_NON_EMPTY,{DESCRIPTION}}
Then in your CSS you could add: Code
.full_description {
Then in your Comcode you could do like: Code
Blah blah blah this always shows.
|
|
|
Posted 27 February 2010, 1:23 AM
|
||
|
Community saint |
I modified the GALLERY_REGULAR_MODE_SCREEN template as suggested, added the CSS code to galleries.css (tried it in global.css too - no difference) and added the surround tag in the description box of the page I was testing it out on. Then cleared caches but nothing. I'm sure I'm missing something. any clue… Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 27 February 2010, 10:16 AM
|
||
|
ocStaff (admin) |
Personally if I was debugging this I would do as follows…
The results of these tests should give clues. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
|
Posted 27 February 2010, 7:04 PM
|
||
|
Community saint |
"nothing" isn't quite acurate - more like results not as expected. The "Blah blah blah this always shows." part, indeed does show up on the thumnails box and the view image description. But the text which is supposed to be seen only on the view image page remains unseen. When the view image page description box is inspected with firebug the "<div class="full_description">" shows up but this;"<div class="full_description">This bit only shows on the gallery screen. </div>" shows up in paler type, see screen shot. On the thumbnail page you can see the inspection screenshot here I cannot see any reference to this Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 01 March 2010, 11:26 AM
|
||
|
ocStaff (admin) |
I can see dude911 made a couple of mistakes. 1) The first change he said would have needed doing on GALLERY_FLOW_MODE_SCREEN.tpl also. 2) Actually he misunderstood a bit. He thought you were trying to apply this to gallery descriptions, so links to galleries showed less details than you see within the galleries. I think you're actually trying to apply to image/video descriptions, so links to images/videos show less details than what you see within the galleries. Actually all you need is to use Comcode like this… Code
Blah blah blah this always shows.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
|
Posted 02 March 2010, 5:42 PM
|
||
|
Community saint |
I did have to include the |surround| opening tag. It is added at the beginning of the "Blah blah blah…" part. Thanks Duder911 for the getting us started and to Chris Graham for getting the meat of the code to work and polishing it off. So cool, ocPortal is getting better every day. Astounding and well done! Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 02 March 2010, 6:31 PM
|
||
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
|
Posted 02 March 2010, 10:27 PM
|
||
|
Community saint |
Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 26 October 2010, 9:57 AM
|
||
|
Community saint |
I have been using this on each description box on each page where I felt I needed this function but as I re-read the posts here I am thinking I should modify the GALLERY_REGULAR_MODE_SCREEN.TPL and use a CSS tag in the description box. Perhaps one of you code-jockeys can better enlighten me as to a more excellent way than the (clumbsy) way I have been doing it. This is the code I have been using Code
ANY TEXT YOU WANT TO SHOW IS HERE OR YOU CAN PUT IT AFTER THE END TAG{+START,IF,{$OR,{$MATCH_KEY_MATCH,_WILD:galleries:image},{$MATCH_KEY_MATCH,_WILD:galleries:video}}} HIDDEN TEXT IS PUT HERE {+END}
I am just looking to streamline the process of placing comments for images without making the thumbnail description box huge - BTW on my site the thumbnail description length has been lengthened from the default. Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 29 October 2010, 3:05 AM
|
||
|
Community saint |
Prehistorics Illustrated
http://prehistoricsillustrated.com Another ocPortal powered website & The Fascinating World of Dinosaurs & Prehistoric Creatures of all Kinds |
|
|
Posted 29 October 2010, 5:21 PM
|
||
|
ocStaff (admin) |
Code
{+START,IF,{$OR,{$MATCH_KEY_MATCH,_WILD:galleries:image},{$MATCH_KEY_MATCH,_WILD:galleries:video}}} {content}{+END}
That's basically exactly what you just said, put through the lens of a Custom Comcode tag. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|