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??
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.2inchpvc.com%2Ferror.gif&hash=afcc7d7c1a0e01dd90faf6c7e7d78c594b6cb8e8)
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>';
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
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.
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
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.
:-[ :-[ :-[ :-[
hello??? ???
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. ;)
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!
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>';
This is probably a javascript thing, which I don't know anything about. Does it work in other browsers ?
Yeah, IE is very unforgiving of javascript errors. :P
ZarPrime
Quote from: Freddy on June 30, 2010, 02:08:06 PM
This is probably a javascript thing, which I don't know anything about. Does it work in other browsers ?
FF shows the error as well. Is there a version of the Recent Posts Block that does not use NiceTools or have the hover effect for SMF 2.0 RC3 and TP 1.0 beta 5-1 ?
Actually, could you possible turn that block off and try using one of the ones in this topic instead and see if it works better --> http://www.tinyportal.net/index.php?topic=31642.0
ZarPrime
Quote from: ZarPrime on June 30, 2010, 03:19:24 PM
Actually, could you possible turn that block off and try using one of the ones in this topic instead and see if it works better --> http://www.tinyportal.net/index.php?topic=31642.0
ZarPrime
That's where I got he on I have now, I think it is the NiceTools taht is making the error, so I would just prefer a plain block without the hover effect.
:-\
Can you have a look at my test site with the same browser you are using and see if you get the error? The site is here --> http://talesofthehavenexpanse.com/smf2test/index.php
You can collapse the right panel to get a better idea.
ZarPrime
Quote from: pvcblue on June 30, 2010, 04:32:43 PM
That's where I got he on I have now, I think it is the NiceTools taht is making the error, so I would just prefer a plain block without the hover effect.
pcvblue, I have this running on my test site and no error showing with IE8. www.cctestsite.info/ see if it shows the error for you.
Ok I looked at both the links for Lurk and Zar's and no error, so now I am really perplexed.
I'm not particularly perplexed at this at all. In fact, when I first set it up on my test site, I had a few problems with it as well. The problem was that I had another block on the FP that was using javascript and that block was interfering with this one. Try turning off all the other blocks on your FP that use javascript. Then turn them back on one at a time and you should find the problem one.
ZarPrime
Nope non of the other Javascript blocks are making any difference, I have them all turned off now and it still shows a error.
Quote
Line: 595
Char: 106
Error: Unterminated String Constant
Code: 0
That's different than the error you originally posted in the OP of this topic, isn't it?
OK, well then Freddy will need to take a look at the code. Please post all of the code here that you are using in the block using the code tags (#).
Oh, one other thing, there's no articles showing on the FP that use javascript, is there?
ZarPrime
Ok I think I have this beat now!! YEA!! I went back to the original code thread, and re-edited my code as when you click to copy and paste code from here and then goto paste it it doesn't paste correctly. Now it works without error.
Now I just need to get rid of these columns in the picture if possible.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.2inchpvc.com%2Fforumimages%2Ffix.jpg&hash=7b06c3f46ebdf92e519a6e8fbcdfcce654f39f9d)
OK, well, I will let Freddy answer this since it's his code.
ZarPrime
Quote from: ZarPrime on July 01, 2010, 01:02:11 AM
OK, well, I will let Freddy answer this since it's his code.
ZarPrime
LOL!! Thanks for all your help tho Zar( and Lurk) had you not suggested the turn on/off javablocks, I wouldn't have found the solution!!
;)
Quote from: pvcblue on July 01, 2010, 12:58:13 AM
as when you click to copy and paste code from here and then goto paste it it doesn't paste correctly.
Funny you should mention this. I've been having a issue adding php code to a block using IE8. Paste the code into the box and wait and watch for a second or two, the code seems to wrap all of a sudden rendering it unusable. This doesn't happen in firefox.
I'll add a new support thread for this later. ;)
Can you link me to the code you are using, ie which version... thanks.
Quote from: Freddy on July 01, 2010, 10:59:10 AM
Can you link me to the code you are using, ie which version... thanks.
Sure Freddy - it is this one - http://www.tinyportal.net/index.php?topic=31642.msg260654#msg260654
// *********************************************************************
// A PHP block by Freddy888 and MrCare
// !!Modified to show icon, number of views and replies.!!
// Used alongside the NiceToolTips mod, will show
// recent topics in a table with tool tip previews.
// @SMF Mods : http://custom.simplemachines.org/mods/index.php?mod=2115
// @Tiny Portal : http://www.tinyportal.net/index.php?topic=31642
// This version : 13 April 2010 Update to work with SMF2RC3
// Note that this version is ONLY for SMF2.
// *********************************************************************
// Configuration, set the number of posts to show:
$num_recent = 15;
// Config end.
global $scripturl, $settings, $modSettings, $db_prefix, $user_info;
// First get all the NiceToolTip javascript in place if it's needed.
// The javascript is not needed when we are in a board as the NiceToolTip module
// will already have loaded it. We just need to add it if we are elsewhere...
// So add the code if we are not in a board
// OR When viewing a topic the board is also set,
// so we need to add the javascript then too...
if (!isset($_GET['board']) || isset($_GET['topic']))
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>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_mini.js"></script>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_adaptive_width.js"></script>
';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$exclude = array($modSettings['recycle_board']);
else
$exclude = array();
if ($exclude === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude = array($modSettings['recycle_board']);
else
$exclude = empty($exclude) ? array() : $exclude;
// Icons...
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
// Stripped down from SSI.php ssi_recentTopics() function.
$request = tp_query("
SELECT
m.poster_time, ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name, t.num_replies, t.num_views,
IFNULL(mem.real_name, m.poster_name) AS poster_name, " . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_MODIFIED AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ",
LEFT(m.body, ". (!empty($modSettings['NiceTooltips_lenght']) ? $modSettings['NiceTooltips_lenght'] : 384) .") AS body, m.smileys_enabled, m.icon
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = m.id_member)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {$context['user']['id']})
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {$context['user']['id']})" : '') . "
WHERE t.id_last_msg >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.id_last_msg = m.id_msg
AND b.id_board = t.id_board" . (empty($exclude) ? '' : "
AND b.id_board NOT IN (" . implode(', ', $exclude) . ")") . "
AND $user_info[query_see_board]
AND ms.id_msg = t.id_first_msg
ORDER BY t.id_last_msg DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = tpdb_fetch_assoc($request))
{
// Build the array.
$posts[] = array(
'board' => array(
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'preview' => $row['body'],
'time' => timeformat($row['poster_time']),
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['is_read']),
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'viewsreplies' => $row['num_views'] . '/' . $row['num_replies'],
);
}
tpdb_free_result($request);
// Now for the output...
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="bordercolor">
<tr class="titlebg">
<td align="center" colspan="2">Subject</td>
<td align="center">Board</td>
<td align="center">Views/Replies</td>
<td align="center">Member</td>
<td align="center">Date & Time</td>
</tr>';
$bg=false;
foreach ($posts as $topic)
{
// Generate the popup.
$popup = NiceTooltip($topic['preview'], $topic['subject']);
echo '
<tr class="windowbg' , $bg ? '2' : '' , '">';
$bg = !$bg;
echo '
<td valign="middle">
' , $topic['icon'] , '
</td>
<td>
<a href="' , $topic['href'] , '"' , $popup , '>' , $topic['subject'] , '</a>';
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt['new'], '" border="0" align="right", valign="absmiddle" /></a>';
echo '
</td>
<td valign="middle">' , $topic['board']['link'], '</td>';
echo '
<td valign="middle" align="center">' , $topic['viewsreplies'] , '</td>';
echo '
<td valign="middle" >', $topic['poster']['link'], '</td>
<td 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>';
Thanks mate, I will work on this now, shouldn't be too long :)
Here you go, try this out...
// *********************************************************************
// A PHP block by Freddy888 and MrCare
// Simply shows subject, board and member.
// Used alongside the NiceToolTips mod, will show
// recent topics in a table with tool tip previews.
// @SMF Mods : http://custom.simplemachines.org/mods/index.php?mod=2115
// @Tiny Portal : http://www.tinyportal.net/index.php?topic=31642
// This version : 1 July 2010 Update to work with SMF2RC3
// Note that this version is ONLY for SMF2.
// *********************************************************************
// Configuration, set the number of posts to show:
$num_recent = 8;
// Config end.
global $scripturl, $settings, $modSettings, $db_prefix, $user_info;
// First get all the NiceToolTip javascript in place if it's needed.
// The javascript is not needed when we are in a board as the NiceToolTip module
// will already have loaded it. We just need to add it if we are elsewhere...
// So add the code if we are not in a board
// OR When viewing a topic the board is also set,
// so we need to add the javascript then too...
if (!isset($_GET['board']) || isset($_GET['topic']))
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>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_mini.js"></script>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_adaptive_width.js"></script>
';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$exclude = array($modSettings['recycle_board']);
else
$exclude = array();
if ($exclude === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude = array($modSettings['recycle_board']);
else
$exclude = empty($exclude) ? array() : $exclude;
// Icons...
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless', 'clip');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
// Stripped down from SSI.php ssi_recentTopics() function.
$request = tp_query("
SELECT
ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name,
IFNULL(mem.real_name, m.poster_name) AS poster_name, " . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_MODIFIED AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ",
LEFT(m.body, ". (!empty($modSettings['NiceTooltips_lenght']) ? $modSettings['NiceTooltips_lenght'] : 384) .") AS body, m.smileys_enabled
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = m.id_member)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {$context['user']['id']})
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {$context['user']['id']})" : '') . "
WHERE t.id_last_msg >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.id_last_msg = m.id_msg
AND b.id_board = t.id_board" . (empty($exclude) ? '' : "
AND b.id_board NOT IN (" . implode(', ', $exclude) . ")") . "
AND $user_info[query_see_board]
AND ms.id_msg = t.id_first_msg
ORDER BY t.id_last_msg DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = tpdb_fetch_assoc($request))
{
// Build the array.
$posts[] = array(
'board' => array(
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'preview' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['is_read']),
);
}
tpdb_free_result($request);
// Now for the output...
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="bordercolor">
<tr class="titlebg">
<td align="center">Subject</td>
<td align="center">Board</td>
<td align="center">Member</td>
</tr>';
$bg=false;
foreach ($posts as $topic)
{
// Generate the popup.
$popup = NiceTooltip($topic['preview'], $topic['subject']);
echo '
<tr class="windowbg' , $bg ? '2' : '' , '">';
$bg = !$bg;
echo '
<td>
<a href="' , $topic['href'] , '"' , $popup , '>' , $topic['subject'] , '</a>';
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt['new'], '" border="0" align="right", valign="absmiddle" /></a>';
echo '
</td>
<td align="middle">' , $topic['board']['link'], '</td>';
echo '
<td align="middle">', $topic['poster']['link'], '</td>
</tr>';
}
echo '
</table>';
Thanks Freddy!! This worked great and NO ERRORS!! YEA!!! :D
Excellent O0 - marked solved now..
OMG!! The freaking Error is back!!!! ARGH!!! I don't get what the problem is!? I went thru and turned off every block but this one and it is this block causing the error, even all by itself. :uglystupid2:
Did it just start doing this again by itself - I mean you didn't edit the code or anything beforehand ?
Quote from: Freddy on July 02, 2010, 10:36:58 AM
Did it just start doing this again by itself - I mean you didn't edit the code or anything beforehand ?
I had the number of posts to show set at 15, and decided to change it to 20 and it started shosing the error again, so I changed it back to 15 and it is still doing it, I don't know what the problem is now.
this is the error -
Line: 647
Char: 50
Error: Unterminated string constant
Code: 0
URL: http://www.2inchpvc.com/index.php
this is the code (I can't see where there is a unterminated string) -
// *********************************************************************
// A PHP block by Freddy888 and MrCare
// Simply shows subject, board and member.
// Used alongside the NiceToolTips mod, will show
// recent topics in a table with tool tip previews.
// @SMF Mods : http://custom.simplemachines.org/mods/index.php?mod=2115
// @Tiny Portal : http://www.tinyportal.net/index.php?topic=31642
// This version : 1 July 2010 Update to work with SMF2RC3
// Note that this version is ONLY for SMF2.
// *********************************************************************
// Configuration, set the number of posts to show:
$num_recent = 15;
// Config end.
global $scripturl, $settings, $modSettings, $db_prefix, $user_info;
// First get all the NiceToolTip javascript in place if it's needed.
// The javascript is not needed when we are in a board as the NiceToolTip module
// will already have loaded it. We just need to add it if we are elsewhere...
// So add the code if we are not in a board
// OR When viewing a topic the board is also set,
// so we need to add the javascript then too...
if (!isset($_GET['board']) || isset($_GET['topic']))
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>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_mini.js"></script>
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . (!empty($modSettings['NiceTooltips_scripturl']) ? '/' . $modSettings['NiceTooltips_scripturl'] : '') . '/overlib_adaptive_width.js"></script>
';
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$exclude = array($modSettings['recycle_board']);
else
$exclude = array();
if ($exclude === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude = array($modSettings['recycle_board']);
else
$exclude = empty($exclude) ? array() : $exclude;
// Icons...
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless', 'clip');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
// Stripped down from SSI.php ssi_recentTopics() function.
$request = tp_query("
SELECT
ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name,
IFNULL(mem.real_name, m.poster_name) AS poster_name, " . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_MODIFIED AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . ",
LEFT(m.body, ". (!empty($modSettings['NiceTooltips_lenght']) ? $modSettings['NiceTooltips_lenght'] : 384) .") AS body, m.smileys_enabled
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = m.id_member)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {$context['user']['id']})
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {$context['user']['id']})" : '') . "
WHERE t.id_last_msg >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.id_last_msg = m.id_msg
AND b.id_board = t.id_board" . (empty($exclude) ? '' : "
AND b.id_board NOT IN (" . implode(', ', $exclude) . ")") . "
AND $user_info[query_see_board]
AND ms.id_msg = t.id_first_msg
ORDER BY t.id_last_msg DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = tpdb_fetch_assoc($request))
{
// Build the array.
$posts[] = array(
'board' => array(
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'preview' => $row['body'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['is_read']),
);
}
tpdb_free_result($request);
// Now for the output...
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="bordercolor">
<tr class="titlebg">
<td align="center">Subject</td>
<td align="center">Board</td>
<td align="center">Member</td>
</tr>';
$bg=false;
foreach ($posts as $topic)
{
// Generate the popup.
$popup = NiceTooltip($topic['preview'], $topic['subject']);
echo '
<tr class="windowbg' , $bg ? '2' : '' , '">';
$bg = !$bg;
echo '
<td>
<a href="' , $topic['href'] , '"' , $popup , '>' , $topic['subject'] , '</a>';
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt['new'], '" border="0" align="right", valign="absmiddle" /></a>';
echo '
</td>
<td align="middle">' , $topic['board']['link'], '</td>';
echo '
<td align="middle">', $topic['poster']['link'], '</td>
</tr>';
}
echo '
</table>';
Yeah the error is not in the PHP code. I'm guessing it's a javascript error which unfortunately I know nothing about so can't help. :(
Can you set it up in a PHP article instead and then link me to it, so I can see if it affects me too ?
Quote from: Freddy on July 02, 2010, 11:56:38 AM
Yeah the error is not in the PHP code. I'm guessing it's a javascript error which unfortunately I know nothing about so can't help. :(
Can you set it up in a PHP article instead and then link me to it, so I can see if it affects me too ?
Well if you are using IE 7 it should, here is the link - http://www.2inchpvc.com/index.php?page=4
Can't see that until you assign the article..
Quote from: Freddy on July 02, 2010, 02:17:51 PM
Can't see that until you assign the article..
ok now try, I don't use the article feature normally, so I hope this works! LOL!!
Well that works fine in IE8 and Chrome.
I am stumped then, I don't know about javascript. Perhaps try asking the person that made the ToolTips mod as that is likely the cause as it's not working with only the one block on the front page.
Or just forget about using tool tips I guess.
Well you are a version behind now. 5.2 has been released, and it has fixed quite a few errors in the way that code was saved to the database. I see a bunch of errors in my IE8 here at work. But I see something like this in your source:
alt=\"&#58;smurf_wave&#58;\"
As you can see some of the HTML entities are not converted properly. I'm betting this is causing your errors.
This is the same similar problem I was having when I first set this up on my test site. It worked fine in an article, and a block that was shown everywhere but it wasn't working on the FP. As it turned out, I had a block on the FP that was interfering with the javascript and, once I removed that, I had no further problems.
I've also set this up here on this site recently in contemplation of changing around some things on the FP here and it is working flawlessly though it's not visible to everyone yet. Hmmm, maybe I'll go ahead and make that visible right now. It's on the FP only, at the bottom. Click the Home button here and see if it works for you.
ZarPrime
Quote from: ZarPrime on July 02, 2010, 02:41:04 PM
This is the same similar problem I was having when I first set this up on my test site. It worked fine in an article, and a block that was shown everywhere but it wasn't working on the FP. As it turned out, I had a block on the FP that was interfering with the javascript and, once I removed that, I had no further problems.
I treid the good ol' turn off and on blocks procedure to see if that was the problem, and when I got down to it was the only active block I felt it had to be the problem, not a another block interfering with it.
:'(
Hmmm, OK, the one here shows 15 topics as it should when you are logged in but only 10 when you viewing it as a guest. I'm pretty sure that I know the reason for that and I'll fix that later. It's because we have the info center set to show 10 topics and that overrides the setting in this block when not logged in.
ZarPrime
Quote from: ZarPrime on July 02, 2010, 02:47:54 PM
Hmmm, OK, the one here shows 15 topics as it should when you are logged in but only 10 when you viewing it as a guest. I'm pretty sure that I know the reason for that and I'll fix that later. It's because we have the info center set to show 10 topics and that overrides the setting in this block when not logged in.
ZarPrime
Mine does that as well (guest view vs member view) but that is because some boards guests cannot view so the posts won't list for them as well in the block.
pvcblue,
Hmmm, I wonder if this has anything to do with the fact that you have some posts listed that have nothing in them but an embedded video. If you have the YouTube video Mod enabled to allow videos to be posted on your Forum the javascript that is required for the embedding could be interfering with this block working on the FP.
I don't know that this would be the problem but it's possible.
ZarPrime
Take note of what IchBin said.
Also I think the problem could be with toolTips not working with Aeva - is that what you are using ?
Using Chrome I was able to find the problem topics and each one is where you had posted an embedded video.
So first upgrade, but I don't think this is going to work properly as it is. In IE8 your front page loads fine for me but there are errors - I don't actually get the pop up telling me, but they are there nonetheless.
Edit : ZP pipped me !
Yes indeed, this could very well be the problem. Since the only 3 topics in the block are at the bottom, change the number of topics to 10 and see if the errors go away. If it works fine, then the embedded video topics are the problem.
ZarPrime
Quote from: ZarPrime on July 02, 2010, 03:05:26 PM
Yes indeed, this could very well be the problem. Since the only 3 topics in the block are at the bottom, change the number of topics to 10 and see if the errors go away. If it works fine, then the embedded video topics are the problem.
ZarPrime
You just set a light bulb on in my head!! I had recently added a embedded video post right before this started happening, it had no intro text so the hover box wasn't showing, I have added a intopr text to it and now TA-DAA!! No Error!!
Way to go guys, what a team we have here O0 O0
Thanks Les. I'm hoping that we can put this topic to bed now once and for all. ;) :D O0
ZarPrime
Quote from: ZarPrime on July 02, 2010, 03:25:47 PM
Thanks Les. I'm hoping that we can put this topic to bed now once and for all. ;) :D O0
ZarPrime
you and me both! LOL!!!! ;D ;D
I have been researching the other error that first alerted me to this as well - the J.parentNode error - and have found it is a issue with the script of the swfobject.js file, there is extra wording added to it that causes this error and when you edit it out it fixes that error.
Good work on that, so it was indeed the the flash javascript obviously. O0
ZarPrime
Quote from: ZarPrime on July 02, 2010, 03:55:46 PM
Good work on that, so it was indeed the the flash javascript obviously. O0
ZarPrime
I think so, from what I have read, I am work right now so I cant edit my files until I get home. :-\
QuoteFreddy can you work this up so it doesn't have to use Nice Tool Tips and have Hover effects??
Here you go pvc....
// *********************************************************************
// A PHP block by Freddy888
// Simply shows subject, board and member.
// This version : 2 July 2010
// Note that this version is ONLY for SMF2.
// *********************************************************************
// Configuration, set the number of posts to show:
$num_recent = 8;
// Config end.
global $scripturl, $settings, $modSettings, $db_prefix, $user_info;
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$exclude = array($modSettings['recycle_board']);
else
$exclude = array();
if ($exclude === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude = array($modSettings['recycle_board']);
else
$exclude = empty($exclude) ? array() : $exclude;
// Icons...
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless', 'clip');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
// Stripped down from SSI.php ssi_recentTopics() function.
$request = tp_query("
SELECT
ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name,
IFNULL(mem.real_name, m.poster_name) AS poster_name, " . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_MODIFIED AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . "
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = m.id_member)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {$context['user']['id']})
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {$context['user']['id']})" : '') . "
WHERE t.id_last_msg >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.id_last_msg = m.id_msg
AND b.id_board = t.id_board" . (empty($exclude) ? '' : "
AND b.id_board NOT IN (" . implode(', ', $exclude) . ")") . "
AND $user_info[query_see_board]
AND ms.id_msg = t.id_first_msg
ORDER BY t.id_last_msg DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = tpdb_fetch_assoc($request))
{
// Build the array.
$posts[] = array(
'board' => array(
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['is_read']),
);
}
tpdb_free_result($request);
// Now for the output...
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="bordercolor">
<tr class="titlebg">
<td align="center">Subject</td>
<td align="center">Board</td>
<td align="center">Member</td>
</tr>';
$bg=false;
foreach ($posts as $topic)
{
echo '
<tr class="windowbg' , $bg ? '2' : '' , '">';
$bg = !$bg;
echo '
<td>
<a href="' , $topic['href'] , '">' , $topic['subject'] , '</a>';
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt['new'], '" border="0" align="right", valign="absmiddle" /></a>';
echo '
</td>
<td align="middle">' , $topic['board']['link'], '</td>';
echo '
<td align="middle">', $topic['poster']['link'], '</td>
</tr>';
}
echo '
</table>';
I'll put it to bed...
/me hovers mouse over the lock button.
:P
Quote from: Freddy on July 02, 2010, 05:11:49 PM
QuoteFreddy can you work this up so it doesn't have to use Nice Tool Tips and have Hover effects??
Here you go pvc....
// *********************************************************************
// A PHP block by Freddy888
// Simply shows subject, board and member.
// This version : 2 July 2010
// Note that this version is ONLY for SMF2.
// *********************************************************************
// Configuration, set the number of posts to show:
$num_recent = 8;
// Config end.
global $scripturl, $settings, $modSettings, $db_prefix, $user_info;
// leave out the recycle board, if any
if(isset($modSettings['recycle_board']))
$exclude = array($modSettings['recycle_board']);
else
$exclude = array();
if ($exclude === null && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0)
$exclude = array($modSettings['recycle_board']);
else
$exclude = empty($exclude) ? array() : $exclude;
// Icons...
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless', 'clip');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';
// Find all the posts in distinct topics. Newer ones will have higher IDs.
// Stripped down from SSI.php ssi_recentTopics() function.
$request = tp_query("
SELECT
ms.subject, m.id_topic, m.id_member, m.id_msg, b.id_board, b.name AS board_name,
IFNULL(mem.real_name, m.poster_name) AS poster_name, " . ($user_info['is_guest'] ? '1 AS is_read, 0 AS new_from' : '
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, 0)) >= m.id_msg_MODIFIED AS is_read,
IFNULL(lt.id_msg, IFNULL(lmr.id_msg, -1)) + 1 AS new_from') . "
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b, {$db_prefix}messages AS ms)
LEFT JOIN {$db_prefix}members AS mem ON (mem.id_member = m.id_member)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.id_topic = t.id_topic AND lt.id_member = {$context['user']['id']})
LEFT JOIN {$db_prefix}log_mark_read AS lmr ON (lmr.id_board = b.id_board AND lmr.id_member = {$context['user']['id']})" : '') . "
WHERE t.id_last_msg >= " . ($modSettings['maxMsgID'] - 35 * min($num_recent, 5)) . "
AND t.id_last_msg = m.id_msg
AND b.id_board = t.id_board" . (empty($exclude) ? '' : "
AND b.id_board NOT IN (" . implode(', ', $exclude) . ")") . "
AND $user_info[query_see_board]
AND ms.id_msg = t.id_first_msg
ORDER BY t.id_last_msg DESC
LIMIT $num_recent", __FILE__, __LINE__);
$posts = array();
while ($row = tpdb_fetch_assoc($request))
{
// Build the array.
$posts[] = array(
'board' => array(
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new">' . $row['subject'] . '</a>',
'new' => !empty($row['is_read']),
);
}
tpdb_free_result($request);
// Now for the output...
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="bordercolor">
<tr class="titlebg">
<td align="center">Subject</td>
<td align="center">Board</td>
<td align="center">Member</td>
</tr>';
$bg=false;
foreach ($posts as $topic)
{
echo '
<tr class="windowbg' , $bg ? '2' : '' , '">';
$bg = !$bg;
echo '
<td>
<a href="' , $topic['href'] , '">' , $topic['subject'] , '</a>';
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt['new'], '" border="0" align="right", valign="absmiddle" /></a>';
echo '
</td>
<td align="middle">' , $topic['board']['link'], '</td>';
echo '
<td align="middle">', $topic['poster']['link'], '</td>
</tr>';
}
echo '
</table>';
Freddy I get this error with this code - Parse error: syntax error, unexpected T_STRING in /2inchpvc/Sources/Load.php(2105) : eval()'d code(95) : eval()'d code on line 23
Works fine here. Have you upgraded yet. Maybe try doing it again in case you copied it wrong.
Quote from: Freddy on July 03, 2010, 12:38:04 PM
Works fine here. Have you upgraded yet. Maybe try doing it again in case you copied it wrong.
Yeah dummy me I don't know what I did, :idiot2: had to be a copy paste wrong, I guess, lol, :-[ but I did it again and works just fine! Thank You!!
No problem, glad we got you sorted out in the end :)
Quote from: Freddy on July 03, 2010, 01:23:51 PM
No problem, glad we got you sorted out in the end :)
Me too, those errors were driving me mad, MAD I tell you!! LOL!!
All kidding aside, I want to give my profuse thanks to all of you that helped me out, you guys were AMAZING!!
Gary
And finally, we will now mark this topic solved, once and for all. :D O0
ZarPrime