1
areaten
Getting Magazine article template to fillwidth of site
  • 2006/3/12 20:34

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


Hi, I apologise if this is the wrong section to post this.

I'm using the Magazine module, and the article template is showing the articles in a 520pixel width.
see:
http://www.area10.info/modules/magazine/article.php?articleid=4

I have looked all over the templates and css for the Magazine module but can't figure it out.
Viewing the source of the above link it appears it is the comments table that is doing it?

<div style="text-align: center; padding: 3px;margin:3px;" class="tbl520">   </div>
  <
div class="tbl520">
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>


My edited mag_article.html template is
<{include file="db:mag_article_header.html"}>
<
br />
<
table border="0" cellpadding="0" cellspacing="0" width="100%">
  <
tr valign="top"
    <
td> <p><span class="titlemain"><{$article.titlemain}></span> <{$article.adminlink}> 
        <
br />
        <
br />
        <{if 
$article.subtitle !=''}> <span class="subtitle"><{$article.subtitle}></span
        <
br />
        <
br />
        <{/if}> <
span> <{if $article.is_include == 1}> <{include_php file="file:$my_template"}> 
        <{else}> <{
$article.maintext}> <{/if}> <br />
        <{
$pagenav}>
        </
span></p></td></tr>  
</
table>
<
br />
<
table border="0" cellpadding="0" cellspacing="0" width="100%">
  <
tr
    <
td class="info_text_02"><{$article.menu}></td>
    <
td class="info_text_02"><{$lang_copyright}></td>
  </
tr>
</
table>


and
my edited mag_comments.html template is
<div style="text-align: center; padding: 3px;margin:3px;"> <{$commentsnav}> <{$lang_notice}> </div>
  <
div>
  <!-- 
start comments loop --> 
  <{if 
$comment_mode == "flat"}>
    <{include 
file="db:system_comments_flat.html"}>
  <{elseif 
$comment_mode == "thread"}>
    <{include 
file="db:system_comments_thread.html"}>
  <{elseif 
$comment_mode == "nest"}>
    <{include 
file="db:system_comments_nest.html"}>
  <{/if}>
  <!-- 
end comments loop --> 
</
div>


I do not see where class="tbl520" is kicking in..

2
ladon
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 20:55

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


After a short .css inspection of your site is saw that the tbl520 class is defined in modules/magazine/css/styleNN.css (or style.css voor IE viewers among us :) ) There you can change the width, or remove it to show full width.

It's unfortunate that this module has it's own .css, makes it a little harder to change your design.
I am the BEST.......... at overstating things! - Resized Image

3
areaten
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 21:43

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


thanks ladon, but rather than changing or deleting the "tbl520" class, isn't there a way of just not calling it in the html templates?
as deleting or altering that class might affect another part of the site no?

4
ladon
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 22:05

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Yes, that might affect other parts of your website, but only within the magazine module.

You could just remove the class form the template.
from:
<div style="text-align: center; padding: 3px;margin:3px;" class="tbl520">   </div>
  <
div class="tbl520">
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>

to:
<div style="text-align: center; padding: 3px;margin:3px;">   </div>
 <
div>
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>

But as you can see, this template is empty beyond the divs, so is useless now you removed the class.
I am the BEST.......... at overstating things! - Resized Image

5
areaten
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 22:16

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


True, but where do is that code?

<div style="text-align: center; padding: 3px;margin:3px;" class="tbl520">   </div>
  <
div class="tbl520">
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>

is actually just the 'view source' in firefox. I can't see where to remove it in the actual html templates. (the 2nd and 3rd boxes of code that I pasted in my first post)

The unedited template "mag_comment.html" is

<div style="text-align: center; padding: 3px;margin:3px;" class="tbl520"> <{$commentsnav}> <{$lang_notice}> </div>
  <
div class="tbl520">
  <!-- 
start comments loop --> 
  <{if 
$comment_mode == "flat"}>
    <{include 
file="db:system_comments_flat.html"}>
  <{elseif 
$comment_mode == "thread"}>
    <{include 
file="db:system_comments_thread.html"}>
  <{elseif 
$comment_mode == "nest"}>
    <{include 
file="db:system_comments_nest.html"}>
  <{/if}>
  <!-- 
end comments loop --> 
</
div>


and my edited one is

<div style="text-align: center; padding: 3px;margin:3px;"> <{$commentsnav}> <{$lang_notice}> </div>
  <
div>
  <!-- 
start comments loop --> 
  <{if 
$comment_mode == "flat"}>
    <{include 
file="db:system_comments_flat.html"}>
  <{elseif 
$comment_mode == "thread"}>
    <{include 
file="db:system_comments_thread.html"}>
  <{elseif 
$comment_mode == "nest"}>
    <{include 
file="db:system_comments_nest.html"}>
  <{/if}>
  <!-- 
end comments loop --> 
</
div>


removing the class="tbl520" bit, but it is still showing the page that width!

I'm not experienced at editing templates.. am I looking in the right place?

Thanks

6
ladon
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 22:43

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


that code is in admin/template but I don't know where exactly because I don't have to module installed. Just look through all the templates of the module. XOOPS admin/templates/magazine(list).
I am the BEST.......... at overstating things! - Resized Image

Login

Who's Online

143 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits