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

Recent Topics block error??

Started by pvcblue, June 26, 2010, 11:42:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pvcblue

I recently noticed this error from my browser (see image) and it goes away if I turn off the Recent Topics block, anyone know what could be the problem??



I use this code with Nice Tools -



// "Recent Topics" a php Block// Prefered settings when being designed// Border and title on// Title ="Recent Topics"global $context, $settings, $options, $scripturl, $txt, $modSettings, $sourcedir;echo '<style type="text/css">   .nice_tooltip_fgclass {   background-color: ' . $modSettings['NiceTooltips_FGCOLOR'] . ';   opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';   }   .nice_tooltip_bgclass {   background-color: ' . $modSettings['NiceTooltips_BGCOLOR'] . ';   opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';   }   </style>';$what=ssi_recentTopics('20', NULL, 'array');echo '   <script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') .   '/overlib_mini.js"></script>';echo '   <script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_adaptive_width.js"></script>';$what=ssi_recentTopics('20', NULL, 'array');echo '<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';echo '<tr class="catbg2"><td valign="middle">Subject</td><td valign="middle">Board</td><td valign="middle">Poster</td></tr>';foreach ($what as $topic)  {   // Generate the popup.$popup = NiceTooltip($topic['preview'], $topic['subject']);      echo '<tr><td class="windowbg" valign="middle">';      echo '<a href="', $topic['href'], '"', $popup , '>', $topic['subject'],' </a>', $topic['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $topic['topic'] . '.msg' . $topic['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>';      echo '</td><td class="windowbg" valign="middle" >', $topic['board']['link'], '</td>';      echo '</td><td class="windowbg" valign="middle" >', $topic['poster']['link'], '</td></tr>';  }echo '</table>';


"Smurfs, Smurfs, and More Smurfs!"

ZarPrime

pvcblue,

I've never seen this issue here or on my test site.  What versions of SMF/TP are you using?  Does it happen when using the default SMF theme?  What is Nice Tools?  Are you using the Recent Topics block that comes with TinyPortal?  Never mind, it's obvious that you aren't.  What version of Internet Explorer?  Where did this code come from?  Have you asked the person who wrote this Nice Tools script why it doesn't work correctly with Internet Explorer?

ZarPrime

pvcblue

#2
Quote from: ZarPrime on June 26, 2010, 01:44:06 PM
pvcblue,

I've never seen this issue here or on my test site.  What versions of SMF/TP are you using?  Does it happen when using the default SMF theme?  What is Nice Tools?  Are you using the Recent Topics block that comes with TinyPortal?  Never mind, it's obvious that you aren't.  What version of Internet Explorer?  Where did this code come from?  Have you asked the person who wrote this Nice Tools script why it doesn't work correctly with Internet Explorer?

ZarPrime

Let's see -

SMF 2.0 RC3
TP 1.0 beta 5-1
IE 7

the code came from the old TP forum, in the snippets, I would link it but when I click it here the link takes you back to the old forum and says its closed.

Here is a recent topic from me about changing the code - http://www.tinyportal.net/index.php?topic=32700.0

Tiny Tools is the script provided to make the hover effect for the "preview" of the posts.

"Smurfs, Smurfs, and More Smurfs!"

ZarPrime

Can you find the original topic where this code came from and let me know where it was from and I will merge your topic there so that someone can maybe help you.

ZarPrime

pvcblue

Quote from: ZarPrime on June 28, 2010, 01:10:47 AM
Can you find the original topic where this code came from and let me know where it was from and I will merge your topic there so that someone can maybe help you.

ZarPrime

It doesn't exist here - when I click on the link for the original thread in the Block Codes Lists it tries to take me to the "old" TP forum and that doesn't exist anymore.

:-[ :-[ :-[ :-[

"Smurfs, Smurfs, and More Smurfs!"

pvcblue


"Smurfs, Smurfs, and More Smurfs!"

lurkalot

Quote from: pvcblue on June 30, 2010, 05:39:39 AM
hello???  ???

I think you'll find most of the topics are over here on the new site, it's the links that are wrong.   

These are the newest snippets, http://www.tinyportal.net/index.php?board=216.0

This is the old snippets index, http://www.tinyportal.net/index.php?topic=4983.0

So what is the exact name of the snippet chosen from either of those two pages?

Also, have you actually posted in the support thread before the move, if so ask one of the staff to merge your old posts with your new account, that way you'll be able to find it. ;)

Lesmond

PVC I have merged your old post from tp.net now, it hasn't increased your post count, but if you click "Show Posts" in your profile, you will see 5 pages of post in your name "pvcblue" hope that helps!

pvcblue

Thanks Les and Lurk,

The code I am using is from this thread - http://www.tinyportal.net/index.php?topic=31642.0

then I wanted it customized a bit so Freddy made it in this thread - http://www.tinyportal.net/index.php?topic=32700.msg262591#msg262591

but now I am getting the error I posted about above in the first post. (found out it was this block by process of elimination, turning off and on each block until the error went away)

I thought maybe it was the modifications so I switched back and still the error -



// "Recent Topics" a php Block
// Prefered settings when being designed
// Border and title on
// Title ="Recent Topics"

global $context, $settings, $options, $scripturl, $txt, $modSettings, $sourcedir;

echo '
<style type="text/css">
.nice_tooltip_fgclass {
background-color: ' . $modSettings['NiceTooltips_FGCOLOR'] . ';
opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';
}
.nice_tooltip_bgclass {
background-color: ' . $modSettings['NiceTooltips_BGCOLOR'] . ';
opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';
}
</style>';

$what=ssi_recentTopics('20', NULL, 'array');

echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_mini.js"></script>';

echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_adaptive_width.js"></script>';

$what=ssi_recentTopics('20', NULL, 'array');
echo '<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
echo '<tr class="catbg2"><td valign="middle">Subject</td><td valign="middle">Board</td><td valign="middle">Poster</td><td valign="middle">Time</td></tr>';

foreach ($what as $topic)
{
// Generate the popup.
$popup = NiceTooltip($topic['preview'], $topic['subject']);

echo '<tr><td class="windowbg" valign="middle">';
echo '<a href="', $topic['href'], '"', $popup , '>', $topic['subject'],' </a>', $topic['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $topic['topic'] . '.msg' . $topic['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>';
echo '</td><td class="windowbg" valign="middle" >', $topic['board']['link'], '</td>';
echo '</td><td class="windowbg" valign="middle" >', $topic['poster']['link'], '</td><td class="windowbg" valign="middle" >';
if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
echo '<a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" border="0" style="float: right;" /></a>';
echo '<span class="smalltext">', $topic['time'], '</span></td></tr>';
}

echo '</table>';





"Smurfs, Smurfs, and More Smurfs!"

Freddy

This is probably a javascript thing, which I don't know anything about.  Does it work in other browsers ?

This website is proudly hosted on Crocweb Cloud Website Hosting.