TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 29, 2024, 07:15:08 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 90
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 115
  • Total: 115

Extended block access

Started by npereira, March 21, 2007, 06:43:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

npereira

#20
Doesnt work in the topic or within a board... only in the forum.

IchBin

I tested it on my forum it worked in topics and boards. If you'd like I can take a look for you. As for doing it in differnet boards, I'll have to look into that. Feel free to PM me if you want me to look at it.

npereira

Do you change anything in the custom part at the bottom?

IchBin

I didn't set any thing on the button options. I left them all set to nothing.

IchBin

Ok, found the array...


global $context;
if($context['current_board'] == 3)
{
echo 'stuff here';
}
elseif($context['current_board'] == 4)
{
echo 'stuff here';
}
else
{
return;
}


I'm sure you could combine this statement, but I'm am just code burned tonight sorry.

npereira

ok, so the box has to be phpbox. what other settings are needed to make this appear only in the boards and not the front page?

IchBin

The code I gave you on page two already does this.