TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 340
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 206
  • Total: 206

Custom Articles

Started by kent[ka], November 09, 2011, 02:44:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kent[ka]

Okay, i've seen some posts/tutorials on how exactly the articles work in the frontpage of TP. But i'm still confused because looks like if i set a global configuration for the frontpage then i can't display certain articles in a different form/template without killing the size.

What i need is very specific and i will try to explain as much as possible.  ;D

Frontpage Settings "Custom Template" code.
<span class="upperframe"><span></span></span>
<div class="roundframe">
<div class="article_picturecolumn">
   {article_picturecolumn}
                </div>
<h4 class="titlebg"><span class="left"></span>{article_shortdate} {article_title} </h4>
<div style="padding: 0; overflow: hidden;">
{article_avatar}
<div class="article_info">
{article_category}
{article_author}
{article_date}
{article_views}
{article_rating}
{article_options}
</div>
<div class="article_padding">{article_text}</div>
{article_bookmark}
{article_boardnews}
{article_moreauthor}
{article_bookmark}
{article_morelinks}
{article_globaltags}
{article_comments}
</div>
</div>
<span class="lowerframe" style="margin-bottom: 5px;"><span></span></span>


Well this code and "normal article" form have like the same size wich i need for my frontpage, so that is good. But i need some changes that i can't do myself without changing the size of the overall article.

First what i need is a flexible custom template with the following characteristics:

Size of the title at least 3x times bigger than the actual size.
Remove the frame of the title. (The rounded box)
At the right side of the title display the icon of the category. One small icon, something like: [icon]  TITLE

For that step i tried using this code:

Quote<div class="article_picturecolumn">
   {article_picturecolumn}

But it obviusly creates a column that i don't need and just change the size of the overall article. Then below the title one small line like this one:

by [Small avatar] [Name of the member] [The time since it was made] [One small box that links to writte in the article] [The number of comments in the article right next to the box]

The avatar must be optional in the template, easy to remove or add back.

After all that, then just display the article.

I would like to be able to display the articles in 2 forms, one like the "normal article" template, and the other like the "picture + article" template, but i guess that's configuration of each article.  :P

So if this is possible and you can help me to make it, i will really appreciate.
Oh, my site is http://blizzforge.com right there you can see which is roughly the width and height.

kent[ka]

Really no one can help me to make this template for articles? :(

WillyP

You request is too confusing. Perhaps one question at a time would get better response. We are all volunteers here, and our time is limited.

kent[ka]

Well, think of an aticle form without all the normal buttons to comment or rate the article, and at the left side of the title of the article, the icon of the category where it was made.

WillyP

When you create or edit the article there are options to use or not use the comments and ratings. There is also a place to assign and/or upload icon, though I haven't used that myself so not sure if that's what you want. Try it and if it's not quite right post a link to the article and I'll take a look.

kent[ka]

Yeah, but i'm talking about the general template of frontpage for articles. Also, when i add the article category icon it just create a useless side empty bar wich takes space of the article.

WillyP

Can you post a link so I can see whats going on? I don't see any article icon category on your home page you linked to in your first post

kent[ka]

That's what i mean, i can't creae the code to show icon category in the left side of article title without creating an useless column.

This website is proudly hosted on Crocweb Cloud Website Hosting.