homepage destroyed after upgrade to 2.0.0

GK User
Tue Aug 31, 2010 11:12 am
i've just upgrade my template to 2.0.0 version and this is the result:
http://lnx.coldplayzone.it

the homepage is destroyed...
the mainbody is larger then before and the modules on the right are crushed

what happened? someone could help me?
User avatar
Expert Boarder

GK User
Tue Aug 31, 2010 3:27 pm
I have this problem only in pages with modules in righ_top positions... it's like right_top position doesn't exist anymore

There is a problem in news pro show gk4 too... in the homepage, you can see in "Ultime notizie" there are not arrows under the link block.. now there are 2 grey buttons....

all worked fine before the upgrade to 2.0.0

please help
thanks
User avatar
Expert Boarder

GK User
Tue Aug 31, 2010 4:37 pm
Hi amsterdam,

Do you have the jomsocial layout fixed for version 2.0.0?

Thanks
Diego
User avatar
Senior Boarder

GK User
Tue Aug 31, 2010 6:14 pm
yes, but I have Jomsocial 1.8.5
if you have version 1.8.8 you have to wait that gavick team release the compatibility with party freak
User avatar
Expert Boarder

GK User
Wed Sep 01, 2010 8:53 am
ok, I tried to re-upload all template files and many issues are fixed now.
the only problem that I have now is that all modules in the right_top position are crushed and the mainbody is larger then before.

I tried to change dimensions in the template parameters but nothing... I tried to disable those modules but nothing... I checked params.ini permissions but nothing

I think it's an easy solution for this problem... but I can't understand what I have to do to fix it
User avatar
Expert Boarder

GK User
Wed Sep 01, 2010 9:53 am
You may still use the old files in the directory ../templates/gk_party_freak/Layouts/Blocks/

You must replace all the files in your template directory. In the sourcecode auf your page I have not found the reference to the new class sidebar. This class is used by the files Left.php and Right.php

Error in your page (see: class and width -> 20% is not sufficient):
<div id="gk-right" class="column" style="width:20%">

The new code in the current template is:
<div id="gk-right" class="column sidebar" style="width:36%">
User avatar
Fresh Boarder

GK User
Wed Sep 01, 2010 11:01 am
all solved! Thank you very much! :)
User avatar
Expert Boarder

GK User
Wed Sep 01, 2010 2:01 pm
sorry but I still have some problems

first of all if i use the new file of version 2.0.0 in the code I have "column" and not "column sidebar". If I use my backup of july i have "column sidebar"... but you are saying that "column sidebar" is for the new code... how is it possible?

however... now I have the home fixed but all internal pages that use a module in right2 position are wrong.

for example look at this page: http://lnx.coldplayzone.it/index.php?op ... Itemid=325

the modules on the right are set in right2 but they are shown as they are in right_top (they are too large)

I had a look in template parameters > Dimension and I have these parameters:

Template Width: Wide Screen

Header 1 position width: 68

Left column width: 22

Left 2 column width: 22

Right column width: 36

Right 2 column width: 22

Inset 1 column width: 15

Inset 2 column width: 15


please help
User avatar
Expert Boarder

GK User
Wed Sep 01, 2010 4:27 pm
The programmer has not planned, that the value for the position Right2 can be used. You must change the core file gk.template.helper.php in the directory ../templates/gk_party_freak/libs

Find the code (for the left-column):

Code: Select all
      if ($this->countModules ("$mt") || $this->countModules ("$mb") || $this->countModules ("$left1") || $this->countModules ("$left2") ){
         $l = $this->getColumnBasedWidth ('left');
      }


and replace it by:

Code: Select all
      if ($this->countModules ("$mt") || $this->countModules ("$mb") ){
         $l = $this->getColumnBasedWidth ('left');
      } else if ($this->countModules ("$left1") || $this->countModules ("$left2") ){
         $l = $this->getColumnBasedWidth ('left2');
      }   



Find the code (for the right-column):

Code: Select all
      if ($this->countModules ("$mt") || $this->countModules ("$mb") || $this->countModules ("$right1") || $this->countModules ("$right2") ){
         $r = $this->getColumnBasedWidth ('right');
      }


and replace it by:

Code: Select all
      if ($this->countModules ("$mt") || $this->countModules ("$mb") ){
         $r = $this->getColumnBasedWidth ('right');
      } else if ($this->countModules ("$right1") || $this->countModules ("$right2") ){
         $r = $this->getColumnBasedWidth ('right2');
      }




This will solve your problem. Of course there will be problems if positions right1 and right2 are used on the same page with the positions right_top and/or right_bottom togehter. Same problems also occur for the left column.

The programmer will forgive me.[color=#000080][/color]
User avatar
Fresh Boarder

GK User
Wed Sep 01, 2010 9:40 pm
thanks for your help but I don't have the same code in that file
In gk.template.helper.php I have this code for left and right columns:


//Left
$l = 0;
$left1 = $this->getPositionName ('left1');
$left2 = $this->getPositionName ('left2');
$mt = $this->getPositionName ('left-mass-top');
$mb = $this->getPositionName ('left-mass-bottom');

if ($this->countModules ("$mt") || $this->countModules ("$mb") || $this->countModules ("$left1") || $this->countModules ("$left2") ){
$l = $this->getColumnBasedWidth ('left');
}


//right
$r = 0;
$right1 = $this->getPositionName ('right1');
$right2 = $this->getPositionName ('right2');
$mt = $this->getPositionName ('right-mass-top');
$mb = $this->getPositionName ('right-mass-bottom');

if ($this->countModules ("$mt") || $this->countModules ("$mb") || $this->countModules ("$right1") || $this->countModules ("$right2") ){
$r = $this->getColumnBasedWidth ('right');
}



I really don't understand why I have all these problems with this 2.0.0 upgrade
Is it possible that I'm the only one that have to change the core file?
I use right2 position in many pages of my site, never had problems before...
what does it mean that 'The programmer has not planned, that the value for the position Right2 can be used.'???
User avatar
Expert Boarder

GK User
Thu Sep 02, 2010 5:17 am
You have the same sourceode like me. I have listed only the relevant code.
what does it mean that 'The programmer has not planned, that the value for the position Right2 can be used.'???

That means programmer uses the same width for all position. Thats all and easy.
User avatar
Fresh Boarder

GK User
Thu Sep 02, 2010 8:36 am
sorry, my mistake... I saw different code but it was the same
ok now it's all solved
thank you so much!!!
User avatar
Expert Boarder

GK User
Thu Sep 02, 2010 2:11 pm
ciao Amsterdam ti scrivo in italiano credo mi capirai...
non ho capito quale foglio di stile devo modificare per portare il widht della right column da 20% a 36%
mi puoi aiutare
grazie ciao
User avatar
Fresh Boarder

GK User
Thu Sep 02, 2010 2:20 pm
ciao. non devi modificare nessun foglio di stile
devi solo settare i parametri direttamente da pannello di controllo > gestione template > party freak > dimension

i miei parametri sono:

Template Width: Wide Screen

Header 1 position width: 68

Left column width: 22

Left 2 column width: 22

Right column width: 36

Right 2 column width: 22

Inset 1 column width: 15

Inset 2 column width: 15

poi devi modificare il file gk.template.helper.php come da istruzioni qua sopra.

saluti!
User avatar
Expert Boarder

GK User
Thu Sep 02, 2010 2:57 pm
Great!
many thanks to Amsterdam and JRebmannDev for their works
I'll hope to be useful as same in the future
again many thanks :cheer: :cheer: :cheer:
User avatar
Fresh Boarder


cron