Audible PM v1.0 - Help

Started by blouogies20, June 22, 2008, 11:28:49 AM

Previous topic - Next topic

blouogies20

Hi

I tried to install the Audible PM v1.0 .  The Problem I'm having is that I did the edits for the default theme and it works perfectly but it doesn't work on my Softmc Blue Theme. 

I cant seem to find the the following:
     if($context['TPortal']['showtop']==1)

And I should add  this Before:
 
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="     http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';

// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}


Can anyone please help me out here?

I'm going to attach my index.template.php.

PLEASE HELP ME OUT!!!

Bigguy

Do you have TP installed. If not use the version of the mod that is for SMF only.

blouogies20

Quote from: Bigguy on June 23, 2008, 07:12:28 AM
Do you have TP installed. If not use the version of the mod that is for SMF only.
Yes I have TP installed!

Bigguy

Try searching for just this:

['TPortal']

blouogies20

Do you mean this?

// TinyPortal

  if($context['TPortal']['fixed_width']!=0)

echo '</td></tr></table>';

// end



Bigguy


blouogies20

Thanks Bigguy
This is what I added and it worked finally

// TinyPortal start

 
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="     http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';

// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}

  if($context['TPortal']['fixed_width']!=0)

echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';

// TinyPortal end

Bigguy


Advertisement: