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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 423
  • Total: 423

[Discussion] Tabbed Block by Mouse Over

Started by Freddy, September 05, 2009, 05:31:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Freddy

Also try using this instead :

// Grabs mychat...
function mot_chat()
{
   global $txt,$context,$boarddir;
   
   if(allowedTo('yshout_view'))
   {   
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
}


You don't need to echo globals...

alhaudhie

ok nice.. but its now show

Error: No settings.

Freddy

Sorry try this :

// Grabs mychat...
function mot_chat()
{
   global $txt,$context,$boarddir;
   
   echo '
<div class="tabsmenucontent" style="padding: 10px">';

   if(allowedTo('yshout_view'))
   {   
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
 
echo '
</div>';
}


Also please take a good look at the example function in the mouseoverTabContent.php file....

alhaudhie

tq... im still looking..

after change the new code u give me.. its still show now only for one tab
Error: No settings.

Freddy

What is this yshout ? Is it a mod ?


Freddy

OK thanks - I will download it as see what I can figure out...

alhaudhie

Quote from: freddy888 on March 11, 2010, 07:54:50 PM
OK thanks - I will download it as see what I can figure out...

thanks.

Freddy

What version are you using please ?

alhaudhie


This website is proudly hosted on Crocweb Cloud Website Hosting.