Changing the order of appearance of K2 Gallery

GK User
Tue Jan 03, 2012 10:28 pm
Hello, how can I change the order of appearance of the picture gallery of K2 which is at the end? Moving up, shortly after the extra fields. On my site, the gallery is as important as the text.
User avatar
Senior Boarder

GK User
Fri Jan 13, 2012 11:30 am
Hi,

What do you mean by "extra fields"? I'm not sure where you want to move the gallery. Can you give me a screenshot with annotations to understand that? Also giving your site URL is helpful.
User avatar
Platinum Boarder

GK User
Fri Jan 13, 2012 4:49 pm
Hi Don Lee, you helping me again. What I do is move the gallery of the K2 up. Just below the main text, as in the image, marked with number 1.

What is marked with the number 2 is another problem that is in a tíket I opened last year (December 29) under the title "Problem in showing articles GK4 NSP module" and is still unanswered. You can also take a look?

URL
http://www.comunidadearquitetura.com.br
http://www.comunidadearquitetura.com.br ... Itemid=240
User avatar
Senior Boarder

GK User
Sat Jan 14, 2012 11:12 am
Hi,

Open file: \templates\gk_twn2\html\com_k2\templates\default\item.php

Move this code:
Code: Select all
<?php if($this->item->params->get('itemImageGalleryAnchor') && !empty($this->item->gallery)): ?>
                          
                           <!-- Anchor link to item image gallery below - if it exists -->
                          
                           <li>
                                 <a class="itemImageGalleryLink k2Anchor" href="<?php echo $this->item->link; ?>#itemImageGalleryAnchor"><?php echo JText::_('K2_IMAGE_GALLERY'); ?></a>
                           </li>
                           <?php endif; ?>

To right before:
Code: Select all

            <?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
           
            <!-- Item extra fields -->
           
            <div class="itemExtraFields">
                  <h3><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h3>
                  <ul>
                        <?php foreach ($this->item->extra_fields as $key=>$extraField):?>
                        <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
                              <span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
                              <span class="itemExtraFieldsValue"><?php echo ($extraField->type=='date')?JHTML::_('date', $extraField->value, JText::_('K2_DATE_FORMAT_LC')):$extraField->value; ?></span>
                        </li>
                        <?php endforeach; ?>
                  </ul>
                  <div class="clr"></div>
            </div>
            <?php endif; ?>

Then let me know if it helps. I will check the other issue later.
User avatar
Platinum Boarder

GK User
Sat Jan 14, 2012 11:18 am
I can't find the ticket, can you give me ticket ID or describe the issue again here?
User avatar
Platinum Boarder

GK User
Sat Jan 14, 2012 4:31 pm
Fantastic! Simply Fantastic. Thank you so much again. You are my savior!. :)
I understand a bit how the process worked. And taking advantage of that, I moved up the video portion as well. It worked perfectly. Just what I wanted. Perfect!

About the other post #12495. (I have one more with no response from a few days ago #12744)

"I'm having a problem in NSP GK4 module. By setting the title text with more than 22 characters, the title goes down the images. How to break the lines and keep the text on the right side of the images?"

Greetings from Brazil to Vietnam

Fernando Mora
User avatar
Senior Boarder

GK User
Sun Jan 15, 2012 10:12 am
Hi Fernando,

Glad it could help you :) Can you please turn off auto animation mode of the module then I can check the issue more easily?

Thanks,
User avatar
Platinum Boarder

GK User
Sun Jan 15, 2012 6:10 pm
Sure ... done
I sent you a private message data access to the site. If you need to.
User avatar
Senior Boarder

GK User
Tue Jan 17, 2012 12:27 pm
Hi,

Add this code to override.css (with css override mode enabled in template manager):
Code: Select all
.nspArt .fleft{
width: 127px;
}

This is how it will look http://easycaptures.com/fs/uploaded/417/7759963024.jpg

I hope it'd be ok!
User avatar
Platinum Boarder

GK User
Tue Jan 17, 2012 3:38 pm
Hi Don Lee. Is nearly so. I wish the text was closer to the images to get more space. I changed from 127 to 100px trying to resolve this, but the space for text was not increased, just moved to the left. How to increase space for the text to the right edge of the module?
User avatar
Senior Boarder

GK User
Tue Jan 17, 2012 11:42 pm
I found another problem with the change that you suggested. The text of the NSP module GK4 On the home page also went to the right, passing over the images, as well as attached. I had to disable the change for now.
User avatar
Senior Boarder

GK User
Thu Jan 19, 2012 8:25 am
Replace my old code by this:
Code: Select all
.nspArt > div > a{
width: 99px;
}
.nspArt h4.nspHeader{
width: 157px;
}
User avatar
Platinum Boarder

GK User
Fri Jan 20, 2012 4:31 am
Hello my friend. There's no way. In one way or another do not fit the text. This could be reviewed on an update of the module. But ...

I found a much better solution. At least pleased me much more. I put two columns of images instead of just one. I liked the result so much, that moved the module up in the page. Take a look on the link below. It was much better. Do you like architecture? Take a look at this project. Is fantastic. The view is amazing.

http://comunidadearquitetura.com.br/ind ... Itemid=240

I have attached pictures of how it was with the last change. The space for the title on the homepage was much reduced.
User avatar
Senior Boarder

GK User
Fri Jan 20, 2012 7:19 am
Yeah I think it's ok and looking nice now. Glad you could fix that yourself. Do you need any other helps?

Have a nice day!
User avatar
Platinum Boarder

GK User
Fri Jan 20, 2012 9:31 am
Not on this post Don. Only in another post that I sent on January 9 and still no one answered. On the registration page JSocial. When you arrive at the last step, not shown any button to end the process - "Last step JSocial registration. In the Next or Finish button" #12744.
Could you please check this too?

Regards...
User avatar
Senior Boarder

GK User
Fri Jan 20, 2012 11:45 am
Ok I will look for that topic to check if I can help you with the other issue.
User avatar
Platinum Boarder


cron