TinyPortal

Development => Support => Topic started by: Yorel on February 08, 2014, 10:21:36 AM

Title: Modify/Erase some options in articles
Post by: Yorel on February 08, 2014, 10:21:36 AM
Link to my forum: https://foros.puntotorrent.com/index.php
SMF version: 2.0.7
TP version: 1.0 Final
Default Forum Language: Spanish
Theme name and version: Default
Mods installed:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi40.photobucket.com%2Falbums%2Fe203%2FYorel%2Fpackages.png&hash=226523f5dab0bc763db7b703529e94105df19ed3)




Hi all:

Hope you can help me on how to modify the appaerance of our articles.

Right now, each article has 3 blocks. The next screenshot shows only 2 (the 3th is the image of the article and link in the forum)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi40.photobucket.com%2Falbums%2Fe203%2FYorel%2Ftiny_1.png&hash=05d66c077c46f1e213e8cf89158a5d8e321fd0c7)

Ok, I wanna modify the next:


That's all  :D

Thanks!!
Title: Re: Modify/Erase some options in articles
Post by: IchBin on February 08, 2014, 11:14:53 PM
You can only do these changes if you use the custom display option for articles. This allows you to choose what is displayed in the article. But I'm not sure it's as finely tuned as you are asking. If you can't achieve it with the custom template option, you'll have to modify the code to make it do what you want.
Title: Re: Modify/Erase some options in articles
Post by: Yorel on February 09, 2014, 11:18:02 AM
Thanks IchBin.

Please, tell me where the custom display option is, I don't find it. If it doesn't work, how the code could be modified?.
Title: Re: Modify/Erase some options in articles
Post by: ZarPrime on February 09, 2014, 05:06:35 PM
Yorel,

Quote from: Yorel on February 08, 2014, 10:21:36 AM
Hope you can help me on how to modify the appaerance of our articles.

The answer to this depends on where you want to change the appearance of the articles.  There are two possible answers, either you want to change the appearance of the articles on [1] the FrontPage, or [2] on their own article page.  Which one is it?

ZarPrime
Title: Re: Modify/Erase some options in articles
Post by: Yorel on February 09, 2014, 06:11:27 PM
Quote from: ZarPrime on February 09, 2014, 05:06:35 PM
The answer to this depends on where you want to change the appearance of the articles.  There are two possible answers, either you want to change the appearance of the articles on [1] the FrontPage, or [2] on their own article page.  Which one is it?

ZarPrime

Sorry but I don't know the difference between them.

The idea is all articles are published in https://foros.puntotorrent.com/index.php have the modifications I mentioned on first post.
Title: Re: Modify/Erase some options in articles
Post by: ZarPrime on February 09, 2014, 10:26:20 PM
The difference is that you can use one layout type for the article when you create it by going to TP Admin and clicking "Categories".  Once you are in "Categories", you can click the category that your articles are in and set the layout type for the article.  Here is an article on a test site that I have --> http://www.jpr62.com/hide/index.php/page,pumpkin.html

That article uses the "Picture + Article" layout type.  However, you can have a different layout type for articles that you choose to show on your FrontPage.  Here is the FrontPage of that site and it shows the article but, if you look closely, the layout is different on the FrontPage than it is for the article. --> http://www.jpr62.com/hide/index.php

The FrontPage layout type is set to "Normal article".

Now, if you want to design your own special layout type, you can "Use custom template".  Below that, there is a textbox containing the code for the default custom layout but you can change this as you see fit.  It may take some experimenting, but it's fairly intuitive for the most part and easy to change since it is html.  For instance, {article_shortdate} is different than {article_date}.  See the attached image below.

ZarPrime
Title: Re: Modify/Erase some options in articles
Post by: Yorel on February 14, 2014, 06:19:03 PM
Thanks for the explanation ZarPrime. Let my try out and get back with my results  ;)
Title: Re: Modify/Erase some options in articles
Post by: Yorel on February 15, 2014, 01:19:25 PM
At last I found out where to change the settings for our articles, Settings and Frontage.

Right now we're using "Normal Article" and wanna change some things as I said, is it possible to know the HTML code that this option uses?.

It's no longer necessary the HTML code for "Normal Article" option, we're using "Use Custrom Template" right now. The only thing I'd need is how to change the colors in the article.

Located the index.css where to change colors  O0

Thanks!