1. Kris
  2. Commercial Templates
  3. Monday, 19 March 2012
  4.  Subscribe via email
J51 - MountainPine
Hi,
I have two questions (problems) on the template J51 - MountainPine (Joomla 2.5)
1. I use Polish characters (in phpmyadmin I set to utf8_general_ci database). I have a problem when the title of the article puts Polish characters (ę, ą, ó, etc.). Template J51 - MountainPine not see them. The problem affects only the article title. On the other templates in the titles of articles are displayed correctly Polish characters.
What must be set to Polish characters were displayed on a template J51 - MountainPine at article titles.
http://i43.tinypic.com/668z90.png
EDIT: I found that probably corresponds to the lack of Polish characters in the script file: j51_mountainpine/js/cufon.font.js | But I do not know what to change it to have Polish characters (encoding to UTF 8?, Font-family ":" Delicious "does not support Polish characters?). Please support.

2. In the template J51 - MountainPine give you the ability to choose the columns to the left or right.
What and where to modify the columns could be set right and the left in the template.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kris

1. If you wish you can disable the cufon font used by removing the following from the head of your templates index.php which should amend your issue. This will revert your titles back to the default font which would have a full character set.

<script type="text/javascript" src="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/js/cufon-yui.js"></script>  
<script type="text/javascript" src="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/js/cufon.font.js"></script>
<script type="text/javascript">
Cufon.replace('h2, h3, h2 a:link,h2 a:visited, .contentheading, .sidecol_block h3, .sidecol_block_menu h3, .moduleblock1 .module h3, .moduleblock1_menu .module h3');
</script>


2. You can edit the sidecolumn position via the templates parameters. Navigate to Extensions -> Template Manager -> J51_MountainPine.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

1. Fact resulted in the removal of the script to display Polish characters, but unfortunately the font was very ugly.
I found another way to have Polish characters and have a nice font (which they choose) on the template. Just keep in characters (with free license), which supports Polish characters in the format (TTF, OTF or PFB - downloadable example at: http://www.fontsquirrel.com/). That saved the font to be converted to a script file (. Js). On the http://cufon.shoqolate.com/generate/ have read font file (TTF, OTF or PFB) would then generate the font file saved as a script. To get Polish characters, select the options before generating: <Basic Latin> | <Latin-1 Supplement> | <Latin Extendend-A>
The generated file must be renamed to: cufon.font.js
Cufon.font.js (new file), copy (overwrite) to: \templates\ j51_mountainpine\js\Cufon.font.js (old file)

2. Unfortunately it is not possible to select the left and right columns (sidecolumn) at once. In this template, you can have a column on the left or right position.
Unless you would choose such a column on the left side and would be something in the code add template.css file? creating a new Module Positions sidecolumn on the right. ;)

Cheers.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kris

Thank you for posting your solution to the cufon font issue.

Regarding the sidecolumn modules will you be having both sidecolumns (left & right) present on all pages? I can put together the changes needed if this is the case otherwise the changes would be quite extensive if you wish the module positions to collapse on certain pages. I would also need to know what width you would like the columns as you would no longer be able to adjust the width via the template parameters.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

I would ask about the possibility of setting sidecolumns left and right module position (column width 180px) with the possibility of collapse at some sites, due to "Phoca Gallery Tree Module", which would be activated only in menu the "Gallery".

Thank you for your support :)
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kris

Right to start off open your templates index.php (../templates/j51_mountainpine/index.php)and locate the following...

<style type="text/css">
#sidecol {width: <?php echo ($sidecol_width); ?>px }
#content80 {width: <?php echo 865 - $sidecol_width ?>px }

<?php if($this->params->get('col_pos') == 'col_l') : ?>
#content80 {float:right; padding-right:25px; padding-left:0px;}
#sidecol {float:left; padding:0 0px 0 25px;}
<?php else : ?>
#content80 {float:left; padding-right:0px; padding-left:25px;}
#sidecol {float:right; padding:0 25px 0 0px;}
<?php endif; ?>
</style>

And replace with...
<style type="text/css">
#content80 {width:880px; padding-left:26px;}
/*--Check and see what modules are toggled on/off then take away columns width, margin and border values from overall width*/
<?php if($this->countModules( 'sidecol-a') >= 1 && $this->countModules('sidecol-b') >= 1) : ?>
#content80 {width:464px; float:right; padding:0; }

<?php elseif($this->countModules('sidecol-a') >= 1 && $this->countModules('sidecol-b') == 0) : ?>
#content80 {width:670px; float:right; padding:0 38px 0 0;}

<?php elseif($this->countModules('sidecol-a') == 0 && $this->countModules('sidecol-b') >= 1) : ?>
#content80 {width:670px }

<?php endif; ?>

#sidecol_a {float:left; width:220px; padding-left:14px}
#sidecol_b {float:right; width:220px; padding-right: 12px;}

</style>

Further down the same file locate the following..
<?php if ($this->countModules( 'sidecolumn' )) : ?>
<div id="sidecol">
<div class="sidecol_block">
<jdoc:include type="modules" name="sidecolumn" />
</div>
</div>
<?php endif; ?>

And replace with...
<?php if ($this->countModules( 'sidecol-a' )) : ?>
<div id="sidecol_a"><div id="sidecol">
<div class="sidecol_block">
<jdoc:include type="modules" name="sidecol-a" style="j51_module" />
</div>
</div></div>
<?php endif; ?>


<?php if ($this->countModules( 'sidecol-b' )) : ?>
<div id="sidecol_b"><div id="sidecol">
<div class="sidecol_block">
<jdoc:include type="modules" name="sidecol-b" style="j51_module" />
</div>
</div></div>
<?php endif; ?>


After that you will have created two sidecolumn module positions 'sidecol-a' for the left column and 'sidecol-b' for the right column. Note that these will not be listed in the positions dropdown of the modules parameters so simply just type them in to the same field.

Both left and right module positions should be collapsible.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,

Made changes to /templates/j51_mountainpine/index.php according to your description.
The changes moved the Joomla 2.5.3 (newly installed).
Modules whose names have assigned positions: Last news (sidecol-a) and Login Form (sidecol-b).
http://i44.tinypic.com/os93c5.png

Unfortunately the modules are displayed above the main content of the page.
http://i40.tinypic.com/qyej9y.png
Do not know if it matters, but in my code that I had to replace one line is slightly different from yours. The code that was in my index.php file:
<?php if ($this->countModules( 'sidecolumn' )) : ?>
<div id="sidecol">
<div class="sidecol_block">
<jdoc:include type="modules" name="sidecolumn" style="j51_module" />
</div>
</div>
<?php endif; ?>

<div id="content<?php echo $contentwidth; ?>">

And the code from You, which was to be replaced:
<?php if ($this->countModules( 'sidecolumn' )) : ?>
<div id="sidecol">
<div class="sidecol_block">
<jdoc:include type="modules" name="sidecolumn" 15:40 23/03/201215:40 23/03/2012 />
</div>
</div>
<?php endif; ?>


Thanks for your help :)
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kris

May I suggest sending us temp administration access to info@joomla51.com and we will investigate this further.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
There was one other amendment I forgot to mention.. replace the following in your templates index.php

<?php
if($this->countModules('sidecolumn') == 0) $contentwidth = "100";
if($this->countModules('sidecolumn') >= 1) $contentwidth = "80";
?>


With....

<?php
if($this->countModules('sidecolumn') == 0) $contentwidth = "80";
if($this->countModules('sidecolumn') >= 1) $contentwidth = "80";
?>


Everything should be fine now

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,
I appreciate your work.
I noticed a small error in the display of the left column (sidecol-a).
Appears only when it is displayed "alone" without the other right-hand column (sidecol-b).
http://i39.tinypic.com/2j47hig.png
http://i43.tinypic.com/5v5e1d.png
http://i43.tinypic.com/vq1n37.png
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Kris

Would you have a URL directly to this issue?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciarán,

URL: http://mebloplyt-kielce.pl
  1. more than a month ago
  2. Commercial Templates
  3. # 11
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok