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: 422
  • Total: 422

[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.

alhaudhie

how can i add this in
mouseoverTabContent.php
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'];

Freddy


alhaudhie

TQ..

i have try like


// Grabs mychat...
function mot_chat()
{

echo '
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'];
}


but did not success

Freddy



Freddy

and you added a new tab or replaced an unused one ?

What actually happens when you use your code ?

alhaudhie

ok..

i take this code from my upper block that already running wealth..
(without using tabbed)
the chat is running very well..
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'];



then i change/replace i frame code in  my older code  in mouseoverTabContent.php
and insert that code above like

// Grabs recent topics...
function mot_chat()
{

echo '
<div class="tabsmenucontent" style="padding: 5px">
<iframe name="the_iframe" id="the_iframe" src="http://samplesite.com" allowtransparency="true" frameborder="0" scrolling="no" width="100%" height="195"></iframe>
</div>';
}


to

// Grabs mychat...
function mot_chat()
{
   
   echo '
   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'];
}

its show nothing.. and other tabs is also missing.





Freddy

Did you change this section in the block code ? :

<div id="mytabsmenu" class="tabsmenuclass">
<ul>
<li><a href="#" rel="gotsubmenu[selected]">New Topics</a></li>
<li><a href="#" rel="gotsubmenu">Tools</a></li>
<li><a href="#" rel="gotsubmenu">New Articles</a></li>
<li><a href="#" rel="gotsubmenu">New Files</a></li>
<li><a href="#" rel="gotsubmenu">Statistics</a></li>
<li><a href="#" rel="gotsubmenu">Member</a></li>
<li><a href="#" rel="gotsubmenu">Search</a></li>
</ul>
</div>


So that it shows your new tabs ?

alhaudhie

Quote from: freddy888 on March 11, 2010, 07:24:43 PM
Did you change this section in the block code ? :

<div id="mytabsmenu" class="tabsmenuclass">
<ul>
<li><a href="#" rel="gotsubmenu[selected]">New Topics</a></li>
<li><a href="#" rel="gotsubmenu">Tools</a></li>
<li><a href="#" rel="gotsubmenu">New Articles</a></li>
<li><a href="#" rel="gotsubmenu">New Files</a></li>
<li><a href="#" rel="gotsubmenu">Statistics</a></li>
<li><a href="#" rel="gotsubmenu">Member</a></li>
<li><a href="#" rel="gotsubmenu">Search</a></li>
</ul>
</div>


So that it shows your new tabs ?
i only change the old one.. that is i think i do not need to change/add new one..

Freddy

You need one for each function you call in the mouseoverTabContent.php file.  Is that what you have ?

I think you need to go back and read the example again, it tells you exactly what you need to do.

This website is proudly hosted on Crocweb Cloud Website Hosting.