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

[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

Sorry MrCare, I tried to install this but it just wont work for me.  This Mod hasn't been updated in a year and I can't get it to work at all.  People on SMF seem to be having problems with it so there is little chance I am going to figure this out when I can't even get it to install.  I suggest you find another mod or something, sorry my friend.

Freddy

Hmm... I might try it out on our test forum at Tiny Portal, I forgot about that....  it might not be till tomorrow now though... I will get back to you :)

alhaudhie

Quote from: freddy888 on March 11, 2010, 08:53:41 PM
Hmm... I might try it out on our test forum at Tiny Portal, I forgot about that....  it might not be till tomorrow now though... I will get back to you :)

ok.. take ur rest and time.. tq.

Freddy

#73
Well I had a lot of problems just getting the mod to install and work in a block, but here is a way to do this.

Only one shoutbox on a page seems to work.  So if you have a shoutbox at the top of your forum you will have to remove that.

This is simple :

In index.template.php find (if it is there - it is in Default) :

// Show the shoutbox!
shoutbox();

   
Comment out shoutbox(); So its like this :

// Show the shoutbox!
// shoutbox();


Now the shoutbox should stop appearing at the top of the forum, if it was.

In mouseoverTabContent.php use this code for your new function:


// nneonneo's Shoutbox
function mot_Shout()
{
echo '
<div class="tabsmenucontent" style="padding: 5px">';

// YSHOUT HERE - shoutbox code
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div>';
}
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// YSHOUT END - shoutbox code

echo '
</div>';
}


Make the adjustments to the order the functions get called and update your tabs in the block code that goes with this, as explained elsewhere.

Then finally in yshout.php (it's in the yshout folder from your forum root) find the top of the file :

// Figure out where the yshout folder is
global $yshoutdir;
$yshoutdir=(defined('SMF')||isset($yshout_from_index))?'yshout/':'';
// Check configuration files


And insert a couple of lines like shown here :

// Figure out where the yshout folder is
global $yshoutdir;
$yshoutdir=(defined('SMF')||isset($yshout_from_index))?'yshout/':'';

if (!isset($yshout_from_index))
$yshoutdir = '../' . $yshoutdir;

// Check configuration files


Then hopefully it will work.  There's a screen shot below of it working in the default theme.

And finally you can help me in return by giving us a link to show it working :)  Thanks !

alhaudhie

tq.. i will try it after a minutes.. tq for hard job...

alhaudhie

yes... very nice job... tq very much.. very glad...


Freddy

Glad it worked - can you please give us a link so people can see it in action ?

alhaudhie

Quote from: freddy888 on March 14, 2010, 03:02:15 PM
Glad it worked - can you please give us a link so people can see it in action ?

I just make a prepare to wait the tp version for smf2.

alhaudhie

i think the auto scrollbar having a problem to go down . its still in the top.

editable related link : http://www.simplemachines.org/community/index.php?topic=137508.msg1532028#msg1532028

Freddy

#79
I need an image of the problem or a link to see what is wrong... if it is a problem with the MOD then try speaking to the mod maker or whoever is doing it now...

This website is proudly hosted on Crocweb Cloud Website Hosting.