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: 422
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 460
  • Total: 461
  • tino

One Center block on multiple forums.

Started by 7earitup, October 13, 2007, 12:07:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

7earitup

Thanks a bunch, but what parts do I change in that to set it so the block only shows in certain forums?

tick

Well that code is supposed to do that. Is it now working. If not I will check it out

tick

ok i see now.  What boards are you wanting it to show up in.  I misread what the post said.  Get the board numbers that you want it to show up in and I will fix it.  To get those go to that board and look in the url and get the board number

7earitup

25, 29, and 30 are the IDs for the boards.

tick

Try this one 
Quoteglobal $context;
if($context['current_board'] == 25,29,30)
{
echo '<div style="text-align: center;"><img width="134" height="100" src="/forums/tp-images/Image/bleach1.jpg" alt="" /></div>';
}

else
{
return;
}
IF not I will try again.  hehe  ;D

tick

I tried it it did not work.  Try it this way.global $context;
if($context['current_board'] == 25)
{
echo '<div style="text-align: center;"><img width="134" height="100" src="/forums/tp-images/Image/bleach1.jpg" alt="" /></div>';
}
elseif($context['current_board'] == 29)
{
echo '<div style="text-align: center;"><img width="134" height="100" src="/forums/tp-images/Image/bleach1.jpg" alt="" /></div>';
}
if($context['current_board'] == 30)
{
echo '<div style="text-align: center;"><img width="134" height="100" src="/forums/tp-images/Image/bleach1.jpg" alt="" /></div>';
}
else
{
return;
}

7earitup

Ok - that works. But how can I keep it from showing the block's frame on other boards?

tick

Yeah I noticed that.  YOu will have to choose the option to not use frame or title.  Unless someone else comes along that knows a different way

7earitup

Thanks for the information though. I should be able to find many uses for it. If anyone knows how to remove the frame, please let me know.

tick

Sure thing.  Glad to have helped ya.  Tick

This website is proudly hosted on Crocweb Cloud Website Hosting.