The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Wed Sep 17, 2008 7:56 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17321
Location: **Translation Matters**
Please use this topic if you have any question concerning JArticleFontsize.

http://extensions.joomla.org/component/ ... Itemid,35/

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 2:47 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 13, 2008 11:20 am
Posts: 10
Hello there, we have found this solution very useful however we do have an issue where by the font resizer plugin is not featuring in the front page of the joomla site?

How do we enable the JArticleFontSize Module in the article displayed in the forn page?

Cheers

Alex
alex@be-everything.co.uk


Top
 Profile  
 
PostPosted: Tue Oct 07, 2008 5:40 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17321
Location: **Translation Matters**
JArticleFontsize will work on any article, even displayed in a blog or through the frontpage component, as long as the id parametered for the plugin is present.

If the id is "contenu" and your template's overrides don't provide for this (and you do not want to modify your overrides), you can add it in the article content.

Example:

Code:
<div id="contenu">{fontsize}
<p>some text</p>
<hr id="system-readmore" />
<p>other text</p>
</div>


Therefore this will work with the default joomla container for the article which is a class "contentpaneopen"

Quote:
<table class="contentpaneopen">
<tr>
<td valign="top">

<span class="small">
Written by Administrator </span>
&nbsp;&nbsp;
</td>
</tr>

<tr>
<td valign="top" class="createdate">
Tuesday, 05 August 2008 10:26 </td>
</tr>
<tr>
<td valign="top">

<div id="contenu"><div id="fontsize"><div class="article-font">Font Size<a href="javascript:ts('contenu',1)"> <img border="0" src="http://http://mysite.com/plugins/content/jarticlefontsize/font_up.gif" alt="Larger Font" title="Larger Font"/></a><a href="javascript:ts('contenu',-1)"> <img border="0" src="http://mysite.com/plugins/content/jarticlefontsize/font_down.gif" alt="Smaller Font" title="Smaller Font"/></a></div></div>
<p>some text</p>
<p>other text</p>
</div>
etc.


Now, if you want to apply JArticleFontsize to ALL articles on the site, you have to make overrides for all instances (blog, article, frontpage) where you modify the code to be sure there is a container with the same id in each.
This container can be limited to the content of the article or include all of it i.e. title, readmore.
Example: Beez has an override for Articles default display where the container is
<div id="page"> (/templates/beez/html/com_content/article/default.php)
Choosing "page' as the id parameter will therefore let JArticleFontsize work on the whole display of the article, including Title, etc.
Adding this container in the category/blog_item.php and in frontpage/default_item.php lets therefore JArticleFontsize work on ALL site article display.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Nov 19, 2008 12:48 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Oct 26, 2008 5:27 pm
Posts: 7
Hello

Thanks for this magnificent tool

I use Joomla 1.5.7 with the milkeyway template and the build in blog facility

No matter what I do can't I get this extension to work on the frontpage and the blog - and I have read the instructions with the extensions and above :'(

Heres a link to the site (in danish): http://www.laesestil.dk

Any help would be apreciated

Sincerely
Cornelius


Top
 Profile  
 
PostPosted: Mon Feb 16, 2009 8:11 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Feb 16, 2009 8:08 pm
Posts: 2
Got the same issues on my frontpage
got joomla 1.5.9 and the milkyway template

help would be great


Top
 Profile  
 
PostPosted: Tue Feb 17, 2009 5:57 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17321
Location: **Translation Matters**
AndreasV_CGN wrote:
Got the same issues on my frontpage
got joomla 1.5.9 and the milkyway template

help would be great

Have you done what's clearly explained here?:
viewtopic.php?p=1440062#p1440062

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Feb 17, 2009 8:28 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Feb 16, 2009 8:08 pm
Posts: 2
I solved it, i made a new div in my template and so it works

thanks


Top
 Profile  
 
PostPosted: Sat Mar 28, 2009 6:59 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 14, 2009 9:29 pm
Posts: 16
Hi, any chance of a simpler explanation for us 'newbies' of Joomla?

People talk of a new Div in my template etc...where ffs?

As you can tell I am a complete novice and just about know how to edit the template (I gather we're doing this in in the HTML bit?). I basically want this tool to operate like it does on BEEZ but on the Milkyway template.

I have used the "page_bg" as the id but this only effects everything BUT the content on the page.

Grateful for a simplistic explanation...Thanks


Top
 Profile  
 
PostPosted: Wed May 27, 2009 6:59 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 25, 2008 3:38 pm
Posts: 40
Location: Plano, Texas, USA
Well I posted the div in my template and it works on all the internal pages but not the homepage item. I also went out on my server and edited the frontpage default_item.php and it didn't work. I inserted the same div. So I'm in the same boat - don't know why it won't work on the homepage.

-------------------

New mind, I downloaded another module that was easier to work with than this plugin.

_________________
Patsy Gillispie
Designer/Developer - Dallas, Texas
Visit my site: http://www.gogreencre8tive.com


Top
 Profile  
 
PostPosted: Thu May 28, 2009 8:09 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17321
Location: **Translation Matters**
Please post the code you used and specify on which line of which file with the path to the file.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Jul 07, 2009 4:47 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Aug 01, 2008 8:19 pm
Posts: 2
I've installed this plugin on a test version of a live site to try and get it working. The font resizing itself works well but my line space is not increasing as I make the text size larger. I did read that there should be a global line height defined in em but font sizes and line space on this template are defined in percentages. I did change body css to:

body {margin: 0;font-family: Arial;font-size: 80%;line-height: 1.5em;}

Should that do the trick or am I missing something?
Also, is there a way to avoid the article title being resized?

Link to the test site is:
http://www.woodstock.azgroup2.ca/


Top
 Profile  
 
PostPosted: Wed Jul 08, 2009 6:12 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17321
Location: **Translation Matters**
hzwice wrote:
I've installed this plugin on a test version of a live site to try and get it working. The font resizing itself works well but my line space is not increasing as I make the text size larger. I did read that there should be a global line height defined in em but font sizes and line space on this template are defined in percentages. I did change body css to:

body {margin: 0;font-family: Arial;font-size: 80%;line-height: 1.5em;}

Should that do the trick or am I missing something?
Also, is there a way to avoid the article title being resized?

Link to the test site is:
http://www.woodstock.azgroup2.ca/

If you keep the title in the JArticlefontsize scope then you have to add this CSS
#maincontent-block{
line-height:2em;} /// choose here the line-height.

If you do not want to keep the article title in the scope, it is better to use an override for the article and separate the rendering of the title from the rendering of its content. In this case, it is the id of the content part which has to be used by JArticleFontsize.

In your case, you could give the id
id="maincontent-block"
to the table containing the text and not to the div surrounding the article.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sun Jun 27, 2010 9:18 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Sep 22, 2007 8:56 pm
Posts: 1
Hi. Thank you for great plugin.

How can i show this next to email icon in article/default.php?

i added this, it shows font size + - icons next to email icon, but when i click nothing happens.

Plugin param: Apply to all article=no (if i put yes, 2 instance of font size shows and both works)
Code:
      <?php if ($this->params->get('show_email_icon')) : ?>
      <td align="right" width="100%" class="buttonheading">
      <?php echo JHTML::_('icon.email',  $this->article, $this->params, $this->access); ?>
      </td>
      <?php endif; ?>
<div id="contenu"><div id="fontsize"><div class="article-font">Font Size<a href="javascript:ts('contenu',1)"> <img border="0" src="http://http://mysite.com/plugins/content/jarticlefontsize/font_up.gif" alt="Larger Font" title="Larger Font"/></a><a href="javascript:ts('contenu',-1)"> <img border="0" src="http://mysite.com/plugins/content/jarticlefontsize/font_down.gif" alt="Smaller Font" title="Smaller Font"/></a></div></div>
</div>

Could you show me better way to do this? Thank you for your help.


Top
 Profile  
 
PostPosted: Tue Jul 20, 2010 1:29 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 19, 2010 5:45 pm
Posts: 3
It's not working for me: http://www.brasilmataviva.com.br/site/i ... 50&lang=en

Shows this error:

Erro: cEl is undefined
Arquivo-fonte: http://www.brasilmataviva.com.br/site/p ... xtsizer.js
Linha: 32


Top
 Profile  
 
PostPosted: Mon Sep 13, 2010 1:19 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Jan 04, 2010 6:47 pm
Posts: 160
Hi there, I trying to put it on website but I think that I making something wrong;

I enable the plugin and set this paramters like this

Id of the element containing the text of the article : sizer
Apply to all articles: yes

in my template overrides native joomla content I set a div with id=sizer

in my css i set sizer div like this


Code:
#sizer {
   line-height:2em;
   width:100%;
   text-align:right;
}


but it's don't show the font resizer...
what I doing wrong ?

It's here:
http://onestudio.com.br/terraportal/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 



Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group