News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

if theme = id, do somthing

Started by kaamaru, July 07, 2010, 09:38:52 AM

Previous topic - Next topic

kaamaru

is there any code that will do something depending on the members theme?

For example something like:

if ($context['user']['theme']='16'){

echo 
'<p>I love theme 16 XD</p>';

}

Yağız...

You can use $user_info['theme']

kaamaru

Before you did the above I made this:

$no_httpbl = array(16);
	
if (
in_array($settings['theme_id'], $no_httpbl)){


Is this ok?

Yağız...

$no_httpbl = array(16);
if (
in_array($user_info['theme'], $no_httpbl))
:o

kaamaru


Yağız...

Don't forget to add global $user_info; if it doesn't exists in the global lists.

Advertisement: