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,976
  • Latest: aicrazy
Stats
  • Total Posts: 196,164
  • Total Topics: 21,352
  • Online today: 625
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 286
  • Total: 287
  • @rjen

Different looking blocs?

Started by RaXavier, February 24, 2011, 12:39:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RaXavier

I would like to learn more about how to change the appears of blocs
I know typically blocs follow the basic format of the forum blocs, but is it possible to make side blocs, front page, and so on look different form one another? I know before it required a "hack" of the general code. But im seeing in a DZ theme i can choose the header of it and their are several options, so has something changed to allow more flexibility?

thanks

ZarPrime

I'm not sure exactly what you are referring to.  If you mean changing the color of a particular block's header, this is supported in the latest version of TP, if the theme author has created different colors, etc., for the headers.  For instance, I just changed the color of the header in the "Themes" block on Crip's site so that it is different than the other blocks.  You can see it in the right panel by scrolling down to that block.  Here's the link --> http://www.jpr62.com/theme/index.php?action=forum

Is that what you are trying to do?  What versions of SMF and TP are you using?

ZarPrime

RaXavier

well i started asking about headers and lead to main thing; does tp currently support having blocs (right, left,top...) look different from middle/forum bloc? i dont just mean header but additional images unique to that bloc type alone? before u needed a full hack, just wondering if it more friendly now

(going for clan theme style)

IchBin

There are only the additional options you see in the block options. If you want something custom, you just need to customize the CSS to do what you need.

bloc

If a DZ theme can change the appearance of a panel, that means that theme has customized the TPBlockLayout.template.php for itself - or as IchBin mentions, can change the CSS for that panel.

All the panels have a unique id in the stylesheet, making it possible to override the default styles.

RaXavier

Quote from: Bloc on February 24, 2011, 07:28:49 PM
If a DZ theme can change the appearance of a panel, that means that theme has customized the TPBlockLayout.template.php for itself - or as IchBin mentions, can change the CSS for that panel.

All the panels have a unique id in the stylesheet, making it possible to override the default styles.

sorry still new to the concept; so now each is ided as unique and be edited easily? thanks

ZarPrime

You can set all the blocks in a particular panel to use the same style.  For instance, on this test site (http://talesofthehavenexpanse.com/smf2test/index.php), I have set all the blocks in 3 of the panels to use the same style, all different, just by changing the styles in the panel settings (/index.php?action=tpadmin;sa=panels).

Top Panel uses --> titlebg+roundframe
Left panel uses --> catbg+windowbg
Right panel uses --> titlebg+windowbg

ZarPrime

This website is proudly hosted on Crocweb Cloud Website Hosting.