-
AuthorPosts
-
May 18, 2010 at 4:56 pm #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 ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
May 20, 2010 at 2:13 pm #344136Not without a live URL so we can see what’s going on.
May 20, 2010 at 10:37 pm #344184Sorry, 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, 1000uniquebiz Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
May 20, 2010 at 11:33 pm #344190rexkramer;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, 1000Try taking out the ‘auto’ parameter, it may be forcing the page to ignore the 981 px call after it, due to inheritence
Cheers Shannon
May 21, 2010 at 5:19 am #344221Sorry, 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 Frienduniquebiz
- Join date:
- February 2010
- Posts:
- 596
- Downloads:
- 0
- Uploads:
- 40
- Thanks:
- 33
- Thanked:
- 156 times in 119 posts
May 21, 2010 at 8:44 am #344243rexkramer;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
May 21, 2010 at 5:06 pm #344287I 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 ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
May 22, 2010 at 7:40 pm #344336In 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.May 22, 2010 at 11:35 pm #344371Thanks 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: 😮
May 23, 2010 at 12:21 am #344375I 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 Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 23, 2010 at 2:57 am #344380I 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,
GabrielMay 23, 2010 at 5:51 pm #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 Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
May 23, 2010 at 7:36 pm #344451Ok.. 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 folderFixed 😎
Peace,
Gabriel-
1 user says Thank You to toymaker for this useful post
May 23, 2010 at 9:39 pm #344460That 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 Friendtoymaker
- Join date:
- April 2010
- Posts:
- 123
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 10
- Thanked:
- 45 times in 32 posts
AuthorPostsThis 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