JArticleFontsize 1.5 native — support

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

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.
Locked
User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

JArticleFontsize 1.5 native — support

Post by infograf768 » Wed Sep 17, 2008 7:56 am

Please use this topic if you have any question concerning JArticleFontsize.

http://extensions.joomla.org/component/ ... Itemid,35/
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

iconicprojects
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue May 13, 2008 11:20 am

Re: JArticleFontsize 1.5 native — support

Post by iconicprojects » Mon Oct 06, 2008 2:47 pm

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]

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: JArticleFontsize 1.5 native — support

Post by infograf768 » Tue Oct 07, 2008 5:40 am

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.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

laesestil-dk
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sun Oct 26, 2008 5:27 pm

Re: JArticleFontsize 1.5 native — support

Post by laesestil-dk » Wed Nov 19, 2008 12:48 pm

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

AndreasV_CGN
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Feb 16, 2009 8:08 pm

Re: JArticleFontsize 1.5 native — support

Post by AndreasV_CGN » Mon Feb 16, 2009 8:11 pm

Got the same issues on my frontpage
got joomla 1.5.9 and the milkyway template

help would be great

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: JArticleFontsize 1.5 native — support

Post by infograf768 » Tue Feb 17, 2009 5:57 am

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
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

AndreasV_CGN
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Feb 16, 2009 8:08 pm

Re: JArticleFontsize 1.5 native — support

Post by AndreasV_CGN » Tue Feb 17, 2009 8:28 am

I solved it, i made a new div in my template and so it works

thanks

davegas666
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sat Mar 14, 2009 9:29 pm

Re: JArticleFontsize 1.5 native — support

Post by davegas666 » Sat Mar 28, 2009 6:59 pm

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

User avatar
prdg1
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Wed Jun 25, 2008 3:38 pm
Location: Plano, Texas, USA
Contact:

Re: JArticleFontsize 1.5 native — support

Post by prdg1 » Wed May 27, 2009 6:59 pm

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: JArticleFontsize 1.5 native — support

Post by infograf768 » Thu May 28, 2009 8:09 am

Please post the code you used and specify on which line of which file with the path to the file.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

hzwice
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Aug 01, 2008 8:19 pm

Re: JArticleFontsize 1.5 native — support

Post by hzwice » Tue Jul 07, 2009 4:47 pm

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/

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: JArticleFontsize 1.5 native — support

Post by infograf768 » Wed Jul 08, 2009 6:12 am

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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

freefall
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Sep 22, 2007 8:56 pm

Re: JArticleFontsize 1.5 native — support

Post by freefall » Sun Jun 27, 2010 9:18 pm

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.

adrfaria
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jul 19, 2010 5:45 pm

Re: JArticleFontsize 1.5 native — support

Post by adrfaria » Tue Jul 20, 2010 1:29 pm

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

User avatar
will_c
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 160
Joined: Mon Jan 04, 2010 6:47 pm

Re: JArticleFontsize 1.5 native — support

Post by will_c » Mon Sep 13, 2010 1:19 pm

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/


Locked

Return to “Extensions for Joomla! 1.5”