Hello!
I don't know if this topic goes at the correct place, sorry!
I stopped to use the bridge Joomla-SMF but I maintain it installed. I added lines in my Themes code to colorize nicks and group. There are users who still log in through component smf and in the SMF's administration panel the log errors shows me this:
http://www.domain.com/forum/index.php?option=com_smf&Itemid=75&topic=2963.msg17510
8: Undefined index: group_color
Archivo: /home/xxxxx/public_html/forum/Themes/myTheme/Display.template.php (main sub template - eval?)
Línea: 352
How can I fix the error? The lines of code replaced in Display.template.php are:
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" class="windowbg3" style="overflow: hidden; border-right: 1px solid #ffffff;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
replaced by:
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" class="windowbg3" style="overflow: hidden; border-right: 1px solid #ffffff;">
<b>', (!empty($message['member']['id']) ? '<a href="' . $message['member']['href'] . '"><span style="color:' . $message['member']['group_color'] . ';">' . $message['member']['name'] . '</span></a>' : $message['member']['name']), '</b>
<div class="smalltext">';
and
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
repaced by:
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
<span style="color:' . $message['member']['group_color'] . ';">', $message['member']['group'], '</span><br />';
Can I use a redirection and how can I do it? or I uninstall de component directly. Thanks!
Often the bridge will show you errors that are hidden otherwise. It doesn't mean the errors aren't there without the bridge, it just means they are getting hidden.
The error is telling you that $message['member']['group_color'] doesn't exist or isn't defined.
This is either a problem with $message['member']['group_color'] not being defined in Sources/Display.php or you have a membergroup that has no color definition in the first place.
Thanks for your answer, Orstio.
Quote from: Orstio on May 30, 2008, 07:37:45 AM
This is either a problem with $message['member']['group_color'] not being defined in Sources/Display.php or you have a membergroup that has no color definition in the first place.
Yes, the error occurs when a topic has a message published by a guest too, the guest group hasn't group color. Some solution to fix it?
http://www.domain.com/forum/index.php?topic=716.msg3875
8: Undefined index: group_color
Archivo: /home/xxxxx/public_html/foro/Themes/myTheme/Display.template.php (main sub template - eval?)
Línea: 352
it's a problem with the group_color mod