Module NSP GK5 - Portfolio II - Dynamic Field

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Oct 24, 2014 8:49 am
Reply with quote
Report this post
Hello, I would like to add an additional field to the Portfolio II Item preview.

The field needed is the K2 itemVideo, but using a jcemediabox-zoom-image.

Any suggestions for simplifications?

Regards
User avatar
Platinum Boarder

GK User
Fri Oct 24, 2014 9:06 am
Reply with quote
Report this post
It looks like it's around this part of the controller file for the Portfolio template:

Code: Select all
   if($this->parent->config['portal_mode_portfolio2_popup'] == '1') {   
               echo   'data-cat-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_CAT_TEXT').'"
                     data-date="'.JHTML::_('date', $this->parent->content[$i]['date'], 'F j, Y').'"
                     data-date-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_DATE_TEXT').'"
                     data-author="'.$this->parent->content[$i]['author_username'].'"
                     data-author-text="'.JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_PORTFOLIO2_AUTHOR_TEXT').'"
                     data-img="'.strip_tags($this->get_image($i)).'"';
            }


Any suggestions?
Much appreciated.
User avatar
Platinum Boarder

teitbite
Sat Oct 25, 2014 11:54 am
Reply with quote
Report this post
Hi

I'm sorry, but this time I cannot help. This is considered as customisation and we do not support that.
User avatar
Moderator

GK User
Sat Oct 25, 2014 12:02 pm
Reply with quote
Report this post
Is there anybody available for hire for this customization that you could kindly me to?

Thank you
Regards.
User avatar
Platinum Boarder

GK User
Sun Oct 26, 2014 9:06 am
Reply with quote
Report this post
This is the correct part of the code. I used this part to display the intro text of the K2 item and to add links to the title etc.

Also changed the corresponding script (same folder) script.jquery.js (if you are using jquery).

See line 117 to 140 of the original code:
Code: Select all
         function showItem(img) {
            img = jQuery(img);
            popup_image_wrap.html('<a href="' + img.attr('href') + '"><img src="' + img.attr('data-img') + '" /></a>');
            popup_title.html(img.attr('title'));
            popup_cat.html('<span>' + img.attr('data-cat-text') + '</span>' + img.attr('data-cat'));
            popup_author.html('<span>' + img.attr('data-author-text') + '</span>' + img.attr('data-author'));
            popup_date.html('<span>' + img.attr('data-date-text') + '</span>' + img.attr('data-date'));
            
            var image = popup_image_wrap.find('img');
            
            var timer = setInterval(function() {
               if(image[0].complete) {
                  clearInterval(timer);
                  setTimeout(function() { popup_image_wrap.addClass('active'); }, 100);
                  setTimeout(function() { popup_title.addClass('active'); }, 200);
                  setTimeout(function() { popup_cat.addClass('active'); }, 300);
                  setTimeout(function() { popup_author.addClass('active'); }, 400);
                  setTimeout(function() {
                     popup_date.addClass('active');
                     blank = false;
                  }, 500);
               }
            }, 300);
         }



see also:
https://www.gavick.com/forums/john-joom ... 40550.html

Best,
Dirk
User avatar
Senior Boarder


cron