test
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • rexkramer Friend
    #151155

    Hello,
    i can´t get the template width parameter to work!?
    Specified Pixel and Specified Percentage does not work at all. I always get the min-width of 981px.

    Any clues?

    John Wesley Brett Moderator
    #344136

    Not without a live URL so we can see what’s going on.

    rexkramer Friend
    #344184

    Sorry, no live site.

    I tried to compare it with the older purity 1 technique. That one is working fine, in the same installation!
    The Prurity 2 template-width parameter does not have any effect. All other template params work fine though.

    The page source does always include these lines:

    <!–Width of template –>
    <style type=”text/css”> .main {width: 980px;margin: 0 auto;} #ja-wrapper {min-width: 981px;} </style>

    No matter if i enter and save the parameter with:
    SPECIFIED PIXEL, 1000

    uniquebiz Friend
    #344190

    rexkramer;179316Sorry, no live site.

    I tried to compare it with the older purity 1 technique. That one is working fine, in the same installation!
    The Prurity 2 template-width parameter does not have any effect. All other template params work fine though.

    The page source does always include these lines:

    <!–Width of template –>
    <style type=”text/css”> .main {width: 980px;margin: 0 auto;} #ja-wrapper {min-width: 981px;} </style>

    No matter if i enter and save the parameter with:
    SPECIFIED PIXEL, 1000

    Try taking out the ‘auto’ parameter, it may be forcing the page to ignore the 981 px call after it, due to inheritence

    Cheers Shannon

    rexkramer Friend
    #344221

    Sorry, i don´t understand your suggestion?

    The code line i posted above, is generated by the template backend parameters and some PHP-code in head.php file. So, i assume that the error is somewhere in the parameter transfer or the logic… my skills are limited 😉 can just follow and read roughly…

    BTW, i am using the default.php layout, which includes head.php

    uniquebiz Friend
    #344243

    rexkramer;179356Sorry, i don´t understand your suggestion?

    The code line i posted above, is generated by the template backend parameters and some PHP-code in head.php file. So, i assume that the error is somewhere in the parameter transfer or the logic… my skills are limited 😉 can just follow and read roughly…

    BTW, i am using the default.php layout, which includes head.php

    Hi Rex

    Looking at your code sample here

    <!–Width of template –>
    <style type=”text/css”> .main {width: 980px;margin: 0 auto;} #ja-wrapper {min-width: 981px;} </style>

    The word auto I referred to may be interfering with the min width of 981 you declared in the #ja wrapper. declaration. I suggested you remove the word AUTO from the .main declaration and see if that allows the second declaration to work. This is because it is the first of the declarations and takes predecence over the second call

    Cheers Shannon

    rexkramer Friend
    #344287

    I will try it, but i doubt that this is the core of the problem. Because this line is written by Joomlart, and it is the included template width parameter… so, i wonder why i am the only one with these issues?!

    Maybe my topic and the question needs a better description: The 980px in that line, should be replaced by the backend template parameter. In my test case it should read 1000px! As you can see, it still 980 as a base, and the minwidths is +1.

    :confused:

    John Wesley Brett Moderator
    #344336

    In your template parameter page…are you getting a small red warning line that says:
    The parameter file templatesja_purityparams.ini is not writable!

    If you are getting the warning, you simply need to give the params.ini file 775 permissions…as you are changing it on the back end…but it’s not saving.

    Also the template width is stored in the [FONT=”Arial Black”]params.ini[/FONT] file…and is READ by the template.
    Open [FONT=”Arial Black”]params.ini[/FONT] up… with a text reader like Notepad…NOT with Word. See if changing it there manually works. Be very careful playing around in this file…as it is the cerebral cortex of everything.

    Have fun!
    John.

    rexkramer Friend
    #344371

    Thanks for pointing me on the INI file. I am aware of the importance of this file and the permissions setting. That is the really strange part: I have other templates which also states the file is unwritable… but that was never an issue in the past. I am always allowed to change and save the values, no matter what the message said. For example:

    Purity 1 INI file has after the first change the value 644. And it works as expected. I can change the settings in any flavor.

    Purity 2 INI file is set to 555, after every change and save operation. I also tried to set the initial permissions to 755. There is no difference at all. I can enter the pixel value 1111, and it seems to save it. No doubt, because the value is stored in that field. It does not revert to the default! These values ARE in the INI file:


    ja_screen=fix
    ja_screen-fluid-fix-ja_screen_width=1111

    :confused: 😮

    rexkramer Friend
    #344375

    I found the problem 😎
    The usertools screen width stores its value in a cookie. This cookie was still active or not deleted, it is valid for 1 year!?! Shouldn´t it be deleted by a reset button? But there is no such a button or function.

    A dependent issue: In my case, i chose a custom fixed px width for the template. If there is no reset button for the usertools screenwidths, the user will never return to my custom width, right!?

    Another solution would be to set the WIDE screen value of the usertools to the my specified CUSTOM width. So, the user has the choice between FULL, NARROW, CUSTOM (wide).

    Maybe this should go into the next Purity release 😉
    Anyway, a really cool framework, if you spend some time in the details and layout options!

    toymaker Friend
    #344380

    I was not able to replicate your problem… I made a clean install, changed widths using pixels or percentage… etc… everything worked as expected.

    Anyway… its good to know you got it to work and found a fix for your specific problem.

    Peace,
    Gabriel

    rexkramer Friend
    #344441

    🙂 thanks for your thoughts… sometimes it helps to think about a problem from scratch, and the discussion leads to a (selfmade) solution 😉

    BTW, did you try the default usertools for the screenwidths? As far as i can see, they only offer three options: narrow, wide and full. There is no reset button! But i can see a file with the reset function in the usertools subdirectory. Maybe this is a feature for a future release. Its very important IMHO.

    To clearify the issue:
    Try to set a custom pixelwidth… maybe 1111px for testing purposes. You are only able to display this width, until a user clicks on the usertools in the upper right corner. Because the usertools have 3 hardcoded width values… the user will not get back to your custom width of 1111px.

    CU

    toymaker Friend
    #344451

    Ok.. here’s a fix you can use while the developers come up with a permanent upgrade

    Open the file templatesja_purity_iilayoutsblocksusertoolsscreen.php, go to line 10 and before the closing </ul> tag, add this code…


    <li><img style="cursor: pointer;" src="<?php echo $this->templateurl(); ?>/images/reset<?php echo ".$imgext"?>" title="Reset Screen" alt="Reset Screen" id="ja-tool-reset" onclick="switchTool('<?php echo $this->template."_".JA_TOOL_SCREEN;?>','');return false;" /></li>

    This code will send a null string to the width setting function, which I noticed, resets the page width to your configured value.

    i made an ugly temp icon you can use while you build a better one… (attached)
    Save this icon into the templatesja_purity_iiimages folder

    Fixed 😎

    Peace,
    Gabriel


    1. reset
    rexkramer Friend
    #344460

    That was not my intention, that you do the work for “them” 😉
    I wonder why they missed it… could have saved me some hours of my short life.
    I believe myself to remind… there were reset options in older templates.

    Anyways, thanks to YOU.

    toymaker Friend
    #344462

    No prob mate… I do this cause I love to 😀
    It’s always very gratifying to make someone happy.

    Peace,
    Gabriel

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 6 voices, and was last updated by  aceh 13 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum