HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Titles for galleries

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#72685 (In Topic #15248)
Avatar

Well-settled

I think it would be great if there was an entry field to add a title of your entry when adding a new Gallery entry.
Right above the Description field perhaps?

The way it currently is, if you want to have a Title for your entry you have to do it in the Description field.
I have had user's ask me "where do I add a title"

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#72687
Avatar

Community saint

I've found the galleries to be insufficient to accomplish any real structured data. I tossed around the idea of asking my visitors to be careful to add certain painting provenance information. In the end, I gave up and went with catalogs so I could enforce required structured data. Unfortunately, this means I give up personal galleries and the better interface for galleries.

I know I've said it several times but I wish the developers would just make the galleries features run atop catalogs thus providing the benefits of structured data without losing the better presentation features of galleries.

Bob
Back to the top
 
Posted
Rating:
#72688
Avatar

Well-settled

Agreed! but I don't really want to give up  :'(

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73107
Avatar

Well-settled

Just out of curiosity,
How hard (or how much work) would it be to add titles to the gallery module?
Or should I not even be asking this :o ?

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73118
Avatar

Community saint

I agree with both that the gallery module could be more designed. Like to have all the thumnails have the same format, and the Title field for every entry.


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#73119
Avatar

Tisnart said

Just out of curiosity,
How hard (or how much work) would it be to add titles to the gallery module?
Or should I not even be asking this :o ?

I posted a patch somewhere that involved hundreds of changes to make it happen. We can't do such a big change in a patch release, it affects too many systems.

You have 100% thumbnail control via the THUMBNAIL symbol, no need to use the standard ones in templates.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#73120
Avatar

Honoured member

Hi everybody!

Here is what you searching for:

http://www.andromedaforum.de/pg/galleries

I took support from ocProducts and they build me the title function for ocPortal 5.x.

The theme adjustments are my work :cool: -> http://ocportal.com/forum/topicview/misc/developing/gallery-customization.htm

It seems to work with ocPortal 7.x, too, but isn't fully tested actually.

The changes you have to made are quite extensive.

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#73121
Avatar

Honoured member


ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#73154
Avatar

Well-settled

Thanx Chris and Falko, now to see what I can do with this info :lol:

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73244
Avatar

Honoured member

Well, after one day of work I moved my "media_titles" files via WinMerge (such a nice tool :cool:) from 5.0.3 -> 7.1.3. ocProducts made me the customisations (paid support) about 3/4 year ago. Now I want to share it with you to hopefully improve the inbuild gallery system. I tested it yesterday and it works. What it does? You will get an additional gallery field, where you can put in an image title. I will try to support and improve it for the next time (but no guarantee). Simply upload it on your server and enjoy. Maybe you should test it firstly on a clean install and see what what it does.

Attachment


Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#73247
Avatar

Community saint

thanks

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#73249
Avatar

Community saint

Very nice gesture, Falko.

Thanks.

Bob
Back to the top
 
Posted
Rating:
#73250
Avatar

Well-settled

Awesome! Thanx Falko.

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73253
Avatar

Community saint

From me to, Thanks for this.


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#73267
Avatar

Well-settled

I created a dummy site with a clean install to try this (pretty sure I did it all right), then I tried adding an image to the gallery and the title is there now( :) ) but I always get this error.

Unfortunately a query has failed   [INSERT INTO oc_images (edit_date, image_views, add_date, allow_rating, allow_comments, allow_trackbacks, notes, submitter, url, thumb_url, comments, cat, validated) VALUES (NULL, 0, 1313362338, 1, 1, 1, 0, '', '', 'uploads/galleries/screen3.png', 462, 'b', 'uploads/galleries_thumbs/screen3.png')][Incorrect integer value: '' for column 'submitter' at row 1](version: 7.1.3, PHP version: 5.2.17, URL: /ocportal/cms/index.php?page=cms_galleries&type=_ad&redirect
=http%3A%2F%2Fdummysite.tisnart.com%2Focportal%2Findex.ph


So either I messed something up or I messed something up :lol:

I know this is not supported but I thought I would share my experience with it so far.

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73271
Avatar

Honoured member

Hey,

I'm wondering, because something seems missing:

Code


[INSERT INTO oc_images (title, edit_date, image_views, add_date, allow_rating, allow_comments, allow_trackbacks, notes, submitter, url, thumb_url, comments, cat, validated)
Check the following function in \sources_custom\galleries2.php:

Code

function add_image($title,$cat,$comments,$url,$thumb_url,$validated,$allow_rating,$allow_comments,$allow_trackbacks,$notes,$submitter=NULL,$add_date=NULL,$edit_date=NULL,$views=0,$id=NULL)
{
    if (is_null($submitter)) $submitter=get_member();
    if (is_null($add_date)) $add_date=time();

    if (!addon_installed('unvalidated')) $validated=1;
    $map=array('title'=>$title,'edit_date'=>$edit_date,'image_views'=>$views,'add_date'=>$add_date,'allow_rating'=>$allow_rating,'allow_comments'=>$allow_comments,'allow_trackbacks'=>$allow_trackbacks,'notes'=>$notes,'submitter'=>$submitter,'url'=>$url,'thumb_url'=>$thumb_url,'comments'=>insert_lang_comcode($comments,3),'cat'=>$cat,'validated'=>$validated);
    if (!is_null($id)) $map['id']=$id;
    $id=$GLOBALS['SITE_DB']->query_insert('images',$map,true);

    log_it('ADD_IMAGE',strval($id),$cat);

    require_code('seo2');
    seo_meta_set_for_implicit('image',strval($id),array($comments),$comments);

    decache('side_root_galleries');
    decache('main_gallery_embed');

    decache('main_download_category');
    decache('main_image_fader');

    return $id;
}

Best regards
Falko

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#73318
Avatar

Well-settled

Ok I think I might have this working now……I'll report back once I'm sure and I try it on my other site. ;)  :thumbs:

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73346
Avatar

Well-settled

Falko,
Correct me if I'm wrong but in your attached DL, there is 2 galleries php in the sources_custom folder
(galleries and galleries2) …It's not necessary to have both, right?  just galleries2.php ?
Thanx in advance :)

Making games is fun…having people play them is the reward!
Back to the top
 
Posted
Rating:
#73363
Avatar

Honoured member

Simply copy everything inside the *.zip file to a clean install and you will see it works. You have to use all files! In the original sources folder you can find galleries and galleries2, too ;)

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#73371
Avatar

Well-settled

Ok thanx Falko,
I got it to work on my live site now except one error I get and not sure how to fix it yet?

This is the error when I view a gallery item:

A parameter, GALLERY_TITLE, is referenced in the template, GALLERY_ENTRY_SCREEN, but not passed

Thank you so much for sharing this Falko, it is really kind of you.

Making games is fun…having people play them is the reward!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand