1
kumzzy
Hi guys I was wondering how do I structure the article template to look like this using WF-sections
  • 2005/4/16 0:20

  • kumzzy

  • Just popping in

  • Posts: 78

  • Since: 2005/1/9 4


Hi guys I was wondering how do I structure the article template to look like this?

http://www.nytimes.com/2005/04/15/politics...artner=homepage

I would like to have the advertisments in the center of the article and all the related ariticles and article tools flush to the extreme right...I have attached my the template file

can any 1 help?

<table width="100%"  border="0" cellspacing="0" cellpadding="10">
 <
tr>
   <
td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
     <
tr> <{if $article.userimg }> <{/if}>
         <
td width="85%" class="articleheader"><{$article.titlemain}> <{$article.adminlink}><br>td>
       tr>
     <
tr>
       <
td><table width="100%" border="0" cellspacing="0" cellpadding="0">
           <
tr>
             <
td align="left" valign="top" width="120" ><div align="left"><{$article.userimg}>div>td>
             <
td align="left" valign="top" width="818" ><{if $article.username != ""}>
                 <
div><b><{$lang_author}>b> <{$article.username}> <{if $article.email != ""}> <{$article.email}>div>
     <{/if}> <{/if}> <{if 
$article.datetime != ""}>
                 <
div><b><{$lang_published}>b> <{$article.datetime}>div>
     <{/if}> <{if 
$article.version != ""}>
                 <
div><b><{$lang_version}>b> <{$article.version}>div>
     <{/if}> <{if 
$article.id != ""}>
     <
div>
       <
p><b><{$lang_articleid}>b> <{$article.id}><{/if}><{if $novote == true}> <{if $article.rating != ""}><b><{$lang_rating}>b> <{$article.rating}><{/if}> <{if $article.votes != ""}> <b><{$lang_votes}>b> <{$article.votes}><{/if}> <{/if}> <{if $article.counter != ""}><b><{$lang_views}>b> <{$article.counter}><{$lang_times}><{/if}><br>
         <{if 
$article.forum_path}><small><a href='<{$xoops_url}><{$article.forum_path}>' alt='<{$lang_inforum}>'><img src='<{$xoops_url}>/modules/wfsection/images/forums.gif' alt='<{$lang_inforum}>'  align='absmiddle' />Discuss Topica>&nbsp;&nbsp;|&nbsp;<{/if}> <a href='print.php?articleid=<{$article.articleid}>' alt='<{$lang_printer}>'><img src='<{$xoops_url}>/modules/wfsection/images/print.gif' alt='<{$lang_printer}>' align='absmiddle'><{$lang_printer}>a>&nbsp;&nbsp;|&nbsp; <a target='_top' href='mailto:?subject=<{$lang_subjectsitename}>&body=<{$lang_subjectfound}>: <{$xoops_url}>/modules/wfsection/article.php?articleid=<{$article.articleid}>' alt='<{$lang_tellafriend}>'><img src='<{$xoops_url}>/modules/wfsection/images/email.gif' alt='<{$lang_tellafriend}>' align='absmiddle'><{$lang_tellafriend}>a>&nbsp;&nbsp;|&nbsp; <a href='topten.php?counter=1'  alt='<{$lang_popular}>'><img src='<{$xoops_url}>/modules/wfsection/images/popular.gif' alt='<{$lang_popular}>' align='absmiddle'><{$lang_popular}>asmall>
       p>
         div>
     <
p>&nbsp;p>td>
             tr>
       table>td>
     tr>
   table>
     <
table width="100%" border="0" cellspacing="0" cellpadding="0">
       <
tr>
         <
td width="100%" align="left" valign="top">
   <
div style='float: right;'>
<
table width='150' border="0" cellspacing="1" cellpadding="2">

<{if 
$article.image}><tr><td align='center'><img src="<{$article.image}>" hspace"0" vspace"1"  alt="" style="border: 1px solid black;">td>tr><{/if}>

<{if 
$relatednum || $relatednewsnum || $relatedlink}>
<
tr><td>
<
table border="0" cellspacing="1" cellpadding="2" class='relatedWrapper'>
 <
tr><td class='relatedInfo' colspan='2'>Related Informationtd>tr>
 
<{if 
$relatednum }>
<{foreach 
item=related from=$related_article}> 
  <
tr>
 <
td valign='top'><img src='<{$xoops_url}>/modules/wfsection/images/doc.gif' title='<{$lang_relatedart}>' align='absmiddle'>td>
 <
td valign='top'><div style="padding-left: 3px;"><{$related.title}>div><{if $related.summary}><div style="padding-left: 20px;"><{$related.summary}>div> <{/if}>td>
  tr>
<{/foreach}>
<{/if}>

<{if 
$relatednewsnum }>
 <{foreach 
item=relatednews from=$related_newsstory}> 
  <
tr>
 <
td valign='top'><img src='<{$xoops_url}>/modules/wfsection/images/txt.gif' title='<{$lang_relatednews}>' align='absmiddle'>td>
 <
td valign='top'><div style="padding-left: 3px;"><{$relatednews.title}>div><{if $relatednews.summary}><div style="padding-left: 20px;"><{$relatednews.summary}>div> <{/if}>td>
  tr>
<{/foreach}>
<{/if}>

<{if 
$relatedlink }>
<{foreach 
item=relatedlinks from=$related_link}> 
  <
tr>
 <
td valign='top'><img src='<{$xoops_url}>/modules/wfsection/images/link.gif' title='<{$lang_relatedlinks}>' align='absmiddle'>td>
 <
td valign='top'><{$relatedlinks.linktitle}>td>
  tr>
  <{/foreach}>
<{/if}>
table>
<{/if}>
td>tr>
table>
div>
   
   <{if 
$article.image}>  <{/if}> <{if $article.subtitle != ""}>
             <
div class = "style5"><{$article.subtitle}>              div>
             <
br />
<{/if}> <{if 
$article.is_include == 1}> <{include_php file="file:$my_template"}> <{else}> <{$article.maintext}> <{/if}> td>
       tr>
     table>
     <
br />
     <
div align "left"> <{foreach item=morelinks from=$article.morelinks}>
         <
li><{$morelinks.articlelink}> <{/foreach}>         
     div>
     <
br />
<{if 
$pagenav !=''}>
<
div align "right"><b><{$lang_page}>:b>&nbsp;<{$pagenav}>div>
<
br />
<{/if}> <{if 
$showfiles == true}>
<
div class='itemHead' align='left'> <b><{$lang_downloadsfor}> <{$article.title}>bdiv>
<
div><{$article.downloadlink}>div>
<
br />
<{/if}>
<
table width "100%" cellspacing "1" cellpadding "2">
 <
tr> <{if $relatednum }>
     <
td width "50%"><div align 'left'><b><{$lang_relatedart}>:b>div>
 <{foreach 
item=related from=$related_article}>
       <
li>
         <
div style="padding-left: 3px;"><{$related.title}>div>
 <{if 
$related.summary}>
         <
div style="padding-left: 20px;"><{$related.summary}>div>
 <{/if}> <{/foreach}> td>
 <{/if}> <{if 
$relatednewsnum }>
     <
td width "50%"><div align 'left'><b><{$lang_relatednews}>:b>div>
 <{foreach 
item=relatednews from=$related_newsstory}>
       <
li>
         <
div style="padding-left: 3px;"><{$relatednews.title}>div>
 <{if 
$relatednews.summary}>
         <
div style="padding-left: 20px;"><{$relatednews.summary}>div>
 <{/if}> <{/foreach}> td>
 <{/if}> tr>
table>
<{if 
$relatedlink }>
<
div align 'left'><b><{$lang_relatedlinks}>:b>div>
<{foreach 
item=relatedlinks from=$related_link}>
<
ul>
 <
li>
   <
div style="padding-left: 3px;"><{$relatedlinks.linktitle}>div>
<{/foreach}> <{/if}>
   
<{
section name=i loop=$downloads}> <{include file="db:wfsection_downloads.html" down=$downloads[i]}><br />
<{/
section}>
   
<{if 
$novote == true}> <br />
   <
table width="100%" border="0" cellspacing="0" cellpadding="2">
     <
tr>
       <
td valign="middle" align="center"><form method="POST" action="ratefile.php">
           <
table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E1F6FA" class='relatedWrapper'>
             <
tr>
               <
td align="center" class = "item" ><small>1
                     
<input type="radio" name="rating" value="1" checked>
               small>td>
               <
td align="center" class = "item" ><small>2
                     
<input type="radio" name="rating" value="2">
               small>td>
               <
td align="center" class = "item" ><small>3
                     
<input type="radio" name="rating" value="3">
               small>td>
               <
td align="center" class = "item" ><small>4
                     
<input type="radio" name="rating" value="4">
               small>td>
               <
td align="center" class = "item" ><small>5
                     
<input type="radio" name="rating" value="5">
               small>td>
               <
td align="center" class = "item" ><small>6
                     
<input type="radio" name="rating" value="6">
               small>td>
               <
td align="center" class = "item" ><small>7
                     
<input type="radio" name="rating" value="7">
               small>td>
               <
td align="center" class = "item" ><small>8
                     
<input type="radio" name="rating" value="8">
               small>td>
               <
td align="center" class = "item" ><small>9
                     
<input type="radio" name="rating" value="9">
               small>td>
               <
td align="center" class = "item" ><small>10
                     
<input type="radio" name="rating" value="10">
               small>td>
               <
td align="center"><small>
                 <
input type="hidden" name="lid" value="<{$article.articleid}>">
                 <
input type="submit" name="submit" value="<{$smarty.const._WFS_RATEIT}>">
               small>td>
             tr>
           table>
       form>td>
     tr>
   table>
   <{/if}> <
small>
   <
div valign="middle" align="center">[ <a href='./viewarticles.php?category=<{$article.categoryid}>'><{$lang_backtocategory}>a><b> | b><a href='./index.php'><{$lang_backtoindex}>a> ]div>
   small>
   <
div style="text-align: center; padding: 3px;margin:3px;"> <{$commentsnav}> <{$lang_notice}> div>
   <
div style="margin:3px; padding: 3px;">
     
<{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}>
     
   div>
   <
div align "right">
     <
div><a href='article.php?articleid=<{$article.articleid}>#top'><img src="images/navpagefunctions_top_over.gif">a>div>
     div>
ul>td>
 tr>
table>

Login

Who's Online

255 user(s) are online (208 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

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

Latest GitHub Commits