1
daante
quick question on modification
  • 2004/5/13 2:01

  • daante

  • Just popping in

  • Posts: 1

  • Since: 2004/5/13


Hey everyone,

I must say that this is a great tool. I actually found out about it yesterday and have been playing with it ever since.

I got most of it figured out except for some small details.

One of which is in formating I guess. I started a test site. you can view below..i just installed one of the already made themes...

Test Site

and was wondering if someone could help me out with the news part of it. I created a topic pic but cant get it to align like the one on this site...

News Format

Basically, I want my news section to be in that format..with the topic pic on the left and the poster on the bottom...the best i could get it so far is how you see it on the test site..

Any help appreciated..sorry for the long post..

D.

2
Mithrandir
Re: quick question on modification

This is not a long post

The site, you are looking at, has changed the template showing news items (modules/news/templates/news_item.html - or clone the default template and edit the cloned news item through administration menu -> system admin -> templates)

The template for the news item says where to place the various elements, which makes up a news item, using Smarty templates, which is like HTML with some added programming elements.

Try this for a news_item template instead (I have just moved the imagelink to a separate cell (which will probably make it look somewhat weird, but there is something for you to work with )
<table cellpadding="0" cellspacing="0" class="item">
    <
tr>
        <
td>
        <
table cellpadding="0" cellspacing="0" width="98%">
            <
tbody>
                <
tr>
                    <
td class="itemHead">
                        <
span class="itemTitle"><{$story.title}></span>
                    </
td>
                </
tr>
                <
tr>
                    <
td class="itemInfo">
                        <{if 
$story.poster != ''}><span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span><{/if}>
                        <
span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>)
                    </
td>
                </
tr>
                <
tr>
                    <
td>
                        <
div class="itemBody"><{$story.imglink}></div>
                    </
td>
                    <
td><div class="itemBody">
                            
                            <
class="itemText"><{$story.text}></p>
                        </
div>
                    </
td>
                </
tr>
                <
tr>
                    <
td class="itemFoot">
                        <
span class="itemAdminLink"><{$story.adminlink}></span>
                        <
span class="itemPermaLink"><{$story.morelink}></span>
                    </
td>
                </
tr>
             </
tbody>
         </
table>
      </
td>
  </
tr>
</
table>

Login

Who's Online

131 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

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

Latest GitHub Commits