Page 1 of 1

JArticleFontsize 1.5 native — support

Posted: Wed Sep 17, 2008 7:56 am
by infograf768
Please use this topic if you have any question concerning JArticleFontsize.

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

Re: JArticleFontsize 1.5 native — support

Posted: Mon Oct 06, 2008 2:47 pm
by iconicprojects
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
[email protected]

Re: JArticleFontsize 1.5 native — support

Posted: Tue Oct 07, 2008 5:40 am
by infograf768
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: Select all

<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"
<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/conten ... ont_up.gif" alt="Larger Font" title="Larger Font"/></a><a href="javascript:ts('contenu',-1)"> <img border="0" src="http://mysite.com/plugins/content/jarti ... t_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.

Re: JArticleFontsize 1.5 native — support

Posted: Wed Nov 19, 2008 12:48 pm
by laesestil-dk
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

Re: JArticleFontsize 1.5 native — support

Posted: Mon Feb 16, 2009 8:11 pm
by AndreasV_CGN
Got the same issues on my frontpage
got joomla 1.5.9 and the milkyway template

help would be great

Re: JArticleFontsize 1.5 native — support

Posted: Tue Feb 17, 2009 5:57 am
by infograf768
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?:
http://forum.joomla.org/viewtopic.php?p ... 2#p1440062

Re: JArticleFontsize 1.5 native — support

Posted: Tue Feb 17, 2009 8:28 am
by AndreasV_CGN
I solved it, i made a new div in my template and so it works

thanks

Re: JArticleFontsize 1.5 native — support

Posted: Sat Mar 28, 2009 6:59 pm
by davegas666
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

Re: JArticleFontsize 1.5 native — support

Posted: Wed May 27, 2009 6:59 pm
by prdg1
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.

Re: JArticleFontsize 1.5 native — support

Posted: Thu May 28, 2009 8:09 am
by infograf768
Please post the code you used and specify on which line of which file with the path to the file.

Re: JArticleFontsize 1.5 native — support

Posted: Tue Jul 07, 2009 4:47 pm
by hzwice
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/

Re: JArticleFontsize 1.5 native — support

Posted: Wed Jul 08, 2009 6:12 am
by infograf768
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.

Re: JArticleFontsize 1.5 native — support

Posted: Sun Jun 27, 2010 9:18 pm
by freefall
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: Select all

		<?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.

Re: JArticleFontsize 1.5 native — support

Posted: Tue Jul 20, 2010 1:29 pm
by adrfaria
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

Re: JArticleFontsize 1.5 native — support

Posted: Mon Sep 13, 2010 1:19 pm
by will_c
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: Select all

#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/