[SOLVED] Remove "Launch Project"

GK User
Wed Sep 28, 2011 4:54 pm
Where do I remove or edit "launch project" ? Thanks for your help.
User avatar
Fresh Boarder

GK User
Thu Sep 29, 2011 6:37 am
Find file and edit below code where it says "Launch project"

File is at "languageen-GBen-GB.tpl_gk_myfolio.ini"

Code: Select all
Line 394:   TPL_GK_LANG_OWN_GOOGLE_FONT_FAMILY="Font family: "
Line 395:
Line 396:   TPL_GK_LANG_LAUNCH_PROJECT="Launch project"
Line 397:
Line 398:   TPL_GK_LANG_TEMPLATE_PATTERN="Background pattern"
User avatar
Platinum Boarder

GK User
Tue Oct 04, 2011 12:38 pm
Is there any way one can edit the displayed text when hovering, individually for each item? Not globally for all?

Jens
User avatar
Fresh Boarder

GK User
Tue Oct 04, 2011 1:40 pm
I am also interested in doing same thing as Jens , hope somebody can give some advise.......
User avatar
Fresh Boarder

GK User
Tue Oct 04, 2011 2:39 pm
Firstly i am trying to understand what you are trying to do as when you said "home" i am puzzled and lost. This module as you know pulls articles from K2 or Joomla and those boxes links to those articles. So by using Home in there i am not sure what you are trying but anyway follow below...

This needs modification as template uses javascript to override article title with Launch Project language string so deleting or disabling this function will revert back to articles original title alias...

Backup your files and try this if you like the results keep using it ;)

Find file: templates/gk_myfolio/js/gk.scripts.js
Find Line: 53 to 56 which is as below:
Code: Select all
         //
         if(header.getElement('a')) header.getElement('a').innerHTML = $GK_LANG_LANUCH_PROJECT;
         else header.innerHTML = $GK_LANG_LANUCH_PROJECT;
         //

Delete the code or disable it as below:
Code: Select all
         //
         // if(header.getElement('a')) header.getElement('a').innerHTML = $GK_LANG_LANUCH_PROJECT;
         // else header.innerHTML = $GK_LANG_LANUCH_PROJECT;
         //


Now in demo first box links to "Watch out! We have just landed" K2 Article. Simple edit this article and change its Alias to " Home " and first box will now show "Home" otherwise it will show "watch-out-we-have-just-landed"...
User avatar
Platinum Boarder

GK User
Tue Oct 04, 2011 4:23 pm
Thanks Norman that did it.......now probably the only thing that I need now is just insert another hovering jpg with my info , it is probably easier than editing all the text..Do you have any idea how to do it? thanks in advance.
User avatar
Fresh Boarder

GK User
Tue Oct 04, 2011 4:33 pm
You can replace the current jpg with your image but it would be same hover image in all boxes...

templates/gk_myfolio/images/nsp_bg.png
User avatar
Platinum Boarder

GK User
Tue Oct 04, 2011 4:59 pm
That will be a problem , I need them individually not global.......maybe somebody can come up with something..thanks a lot for your answers.
User avatar
Fresh Boarder

GK User
Tue Oct 04, 2011 5:16 pm
Well if admins can add identifier for each nsp gallery item then you can add custom css hover image for each nspart [x].
User avatar
Platinum Boarder

GK User
Wed Oct 05, 2011 9:43 am
I wanted to thank you, too for that code change.

Works just like i wanted to.

With "home" i only meant the description of the news element.
I want to use the images as a menu for a small site, not as a news extension like it's designed :)

Jens
User avatar
Fresh Boarder

GK User
Wed Oct 05, 2011 12:07 pm
No problem at all Jens...
User avatar
Platinum Boarder

GK User
Tue Oct 11, 2011 8:07 pm
Hiya,

Sorry, don't get where I find this file at? I've had a good look through my File Manager and can't find it?

Thanks


normanUK wrote:Find file and edit below code where it says "Launch project"

File is at "languageen-GBen-GB.tpl_gk_myfolio.ini"

Code: Select all
Line 394:   TPL_GK_LANG_OWN_GOOGLE_FONT_FAMILY="Font family: "
Line 395:
Line 396:   TPL_GK_LANG_LAUNCH_PROJECT="Launch project"
Line 397:
Line 398:   TPL_GK_LANG_TEMPLATE_PATTERN="Background pattern"
User avatar
Senior Boarder

GK User
Wed Oct 12, 2011 12:15 am
File should be same as below if you are using english language, if its not there then you should upload it by downloading again from Gavick Website...

Code: Select all
www.yourwebsite.com/language/en-GB/en-GB.tpl_gk_myfolio.ini
User avatar
Platinum Boarder

GK User
Wed Oct 12, 2011 7:44 am
Fantastic, thank you very much!
User avatar
Senior Boarder

GK User
Thu Oct 13, 2011 1:14 pm
normanUK wrote:Well if admins can add identifier for each nsp gallery item then you can add custom css hover image for each nspart [x].


I don't undestand!?!:blush:
User avatar
Fresh Boarder

GK User
Mon Oct 17, 2011 7:05 am
This needs modification as template uses javascript to override article title with Launch Project language string so deleting or disabling this function will revert back to articles original title alias...

Is it also possible to use the Title instead of the Title alias?

And is there a way to have longer strings in this "launch project field"?
User avatar
Fresh Boarder

GK User
Mon Oct 17, 2011 7:59 am
impf0s wrote:And is there a way to have longer strings in this "launch project field"?


In the settings for the module News Show Pro GK4, click on "Article Layout" and change the value for "Text limit" under "Header". That way, you can make the strings longer.
User avatar
Fresh Boarder

GK User
Mon Oct 17, 2011 8:13 am
Danke Jens
User avatar
Fresh Boarder

GK User
Tue Nov 15, 2011 3:03 pm
Salzillo wrote:
normanUK wrote:Well if admins can add identifier for each nsp gallery item then you can add custom css hover image for each nspart [x].


I don't undestand!?!:blush:


How i can customize css hover for each image? how i could identifier each nsp gallery item???

thank you!!!
User avatar
Fresh Boarder

GK User
Mon Apr 09, 2012 1:43 pm
Here is a code to identify each nsp box by using JQuery. What this does is add nspboxN to class name. N is a incremental number. See below screenshot.
Image

Step1. Add JQuery
Find File: \templates\gk_myfolio\layouts\blocks\head.php
Find Line: 102 and 103 which is below
Code: Select all
   // include JavaScript
   $this->addJS($this->URLtemplate() . '/js/gk.scripts.js');

Replace with below
Code: Select all
   // include JavaScript
   $this->addJS($this->URLtemplate() . '/js/gk.scripts.js');
   $this->addJS('http://code.jquery.com/jquery-latest.js');


Step2. Add our script.
Find File: \templates\gk_myfolio\layouts\blocks\footer.php
Find Line: Add it at the end of the file.
Add below script
Code: Select all
<script>
$(document).ready(function () {
var arts = $('.gallery .nspMain .nspArt');
   arts.each(function(i){
      var num = i + 1;
      $(this)
        .addClass('nspbox' + num )
   });
});
</script>


Tip: You can use any means to include your javascript in to your joomla. Such as using modules to include your script on specific pages. See joomla extensions for more info.

Add your required css into override.css file and make sure to enable css override option from template settings.

Example , changing hover image for box1.
Code: Select all
.nspbox1 > div > .nspContainer > div {background: url("http://demo.gavick.com/joomla16/aug2011/modules/mod_news_pro_gk4/cache/k2.items.cache.f710044bf79a4b1f5d8b085e5e5d9711_Lnsp_207.jpg") no-repeat scroll -400% -400% #000000 !important; }


Optional: See following link if you want to override links so you can use custom links.
Forum Title for Search: K2 frontpage module with categories
Code: Select all
https://www.gavick.com/forums/133/k2-frontpage-module-with-categories-14799.html


See you around...

--------------------------------
Search terms:

Myfolio add suffix, change css, override css, custom css, nsp hover image, background image.
User avatar
Platinum Boarder

GK User
Sun Jun 16, 2013 6:01 pm
normanUK wrote:Firstly i am trying to understand what you are trying to do as when you said "home" i am puzzled and lost. This module as you know pulls articles from K2 or Joomla and those boxes links to those articles. So by using Home in there i am not sure what you are trying but anyway follow below...

This needs modification as template uses javascript to override article title with Launch Project language string so deleting or disabling this function will revert back to articles original title alias...

Backup your files and try this if you like the results keep using it ;)

Find file: templates/gk_myfolio/js/gk.scripts.js
Find Line: 53 to 56 which is as below:
Code: Select all
         //
         if(header.getElement('a')) header.getElement('a').innerHTML = $GK_LANG_LANUCH_PROJECT;
         else header.innerHTML = $GK_LANG_LANUCH_PROJECT;
         //

Delete the code or disable it as below:
Code: Select all
         //
         // if(header.getElement('a')) header.getElement('a').innerHTML = $GK_LANG_LANUCH_PROJECT;
         // else header.innerHTML = $GK_LANG_LANUCH_PROJECT;
         //


Now in demo first box links to "Watch out! We have just landed" K2 Article. Simple edit this article and change its Alias to " Home " and first box will now show "Home" otherwise it will show "watch-out-we-have-just-landed"...


Hi,

Is it possible to make the above changes in Joomla 3.0? I cannot locate the above code in the file.

Many thanks,

Prit
User avatar
Gold Boarder

GK User
Sun Jun 16, 2013 9:49 pm
It is in the same file, lines 135 to 138.

See you around...
User avatar
Platinum Boarder

GK User
Sun Jun 16, 2013 10:04 pm
Perfect - I searched the file for ".innerHTML" - but I don't think it has that in this line.

Made the changes that you mentioned - worked perfectly.

Thanks again :)
User avatar
Gold Boarder

GK User
Sun Jun 16, 2013 10:36 pm
No problem at all, see you around...
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.