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,970
  • Latest: bynw
Stats
  • Total Posts: 196,031
  • Total Topics: 21,335
  • Online today: 314
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 317
  • Total: 318
  • @rjen

De/activate blocks along with page and theme

Started by fugi, December 13, 2005, 08:11:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fugi

1. How can I close/open specific blocks according to 1st page and forum?
More specifically, I want right and left blocks at 1st page and only left at forum.

2. How can I change the images inside blocks according to the theme selected?

thnx

IchBin

1. You cannot open/close blocks according frontpage or forum. You can specify which sidebars you want to display on frontpage and in forum in the TPAdmin settings.

2. You will have to wait for Bloc to answer that because it is beyond any options that TP offers. :)

bloc

:)

2. use a setting..its called $settings['theme_url'] and contain the path to your current theme folder. You also have $settings['default_theme_url'] which contain the path to DEFAULT theme folder - in case you have any images/stuff thats ONLY in that folder.

fugi

Thnx Bloc although I didn't understand a word ;D

Seriously now, where's this setting located? and how will use it?

bloc

If you use a phpblock(which you must :) )..this will for example show a image depending on theme you are in:


   echo '<img src="'.$settings['theme_url'].'/images/thumbnail.gif" alt="" />';


the $setting will put in the correct path, an all themes have images/xxx.gif, so it will change image depending on theme.

This website is proudly hosted on Crocweb Cloud Website Hosting.