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,966
  • Latest: safir45
Stats
  • Total Posts: 195,992
  • Total Topics: 21,323
  • Online today: 894
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 700
  • Total: 700

Blocs on a per-skin level

Started by aerojad, December 17, 2007, 08:00:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aerojad

Hello there.  I was wondering if there was a way to disable a certain bloc on a per-skin basis.  I have multiple skins installed on my board, but the new default I want to go with basically has the user panel already integrated into it.  I want to get rid of the redundancy on that skin but not screw with other skins that members have chosen.

Even if it's a dirty hack that would involve a not statement or something to that end with sql/php, I'm all ears.

Thank you.

IchBin

global $user_info;

if ($user_info['theme'] == 4)
echo 'your code between the single quotes';


Replace the number 4 with your theme ID. You can do multiple of these if statements of course.

This website is proudly hosted on Crocweb Cloud Website Hosting.