collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 426
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Log error: Error id_member  (Read 4975 times)

0 Members and 1 Guest are viewing this topic.

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Log error: Error id_member
« on: February 26, 2009, 12:09:56 PM »
Hi :-)
I see in my forum's log error and there are those errors :
Simple Portal 2.1.1 and SMF2 RC1

-------------------------------------------------------------------------
8: Undefined variable: id_member
Apply Filter: Only show the errors from this file
File: /home/macrofor/public_html/smf2rc/Themes/default/SPortal2.template.php (portal_below sub template - eval?)
Line: 199
-------------------------------------------------------------------------

The portal works ok.

My MODS:

Mod Name     Version     
1.    Custom Tab    1.2    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF Gallery Pro Recent Profile Images    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    No Temp Directory Removal    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Go Up & Go Down    1.1    [ Uninstall ] [ List Files ] [ Delete ]
6.    Yet Another Global Announcements Mod    1.1.6.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    SMF Gallery Pro    1.4.5    [ Uninstall ] [ List Files ] [ Delete ]
8.    Quick PM    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    nCode Image Resizer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Default Avatar    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF Links    1.8.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    MessagePreviewOnHover    1.7    [ Uninstall ] [ List Files ] [ Delete ]
13.    Bookmarks    2.2.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    SMF Gallery Pro Profile Link    1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Search Focus Dropdown    1.2    [ Uninstall ] [ List Files ] [ Delete ]
16.    Highslide Image Viewer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    PM Readed    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMF Staff Page    1.6    [ Uninstall ] [ List Files ] [ Delete ]
19.    eFloating Bar for Guest & Members    0.1    [ Uninstall ] [ List Files ] [ Delete ]
20.    vBulletin Style Meta Tags    1.1    [ Uninstall ] [ List Files ] [ Delete ]
21.    New Topic Button    1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    PM to New Members    1.0    [ Uninstall ] [ List Files ] [ Delete ]
23.    Cilickable posts    0.1    [ Uninstall ] [ List Files ] [ Delete ]
24.    Sitemap    2.0.0    [ Uninstall ] [ List Files ] [ Delete ]
25.    MCLegendII RC1    3.0    [ Uninstall ] [ List Files ] [ Delete ]
26.    SimplePortal    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
27.    Indicator On Board AOB    1.1    [ Uninstall ] [ List Files ] [ Delete ]
28.    Bakers Dozen Pages    1.1    [ Uninstall ] [ List Files ] [ Delete ]
29.    nneonneo's AJAX ShoutBox    1.22    [ Uninstall ] [ List Files ] [ Delete ]
30.    SMF Gallery Pro SSI    2.0    [ Uninstall ] [ List Files ] [ Delete ]
31.    Share this topic SMF Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
32.    Avatar On Board    2.1    [ Uninstall ] [ List Files ] [ Delete ]
33.    More Spiders    1.2    [ Uninstall ] [ List Files ] [ Delete ]
34.    Wysiwyg Quick Reply    1.1    [ Uninstall ] [ List Files ] [ Delete ]

Any ideas ?
Thanks!
Antonio
« Last Edit: March 10, 2009, 02:51:45 PM by fotografo74 »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Log error: Error id_member
« Reply #1 on: February 26, 2009, 12:42:50 PM »
Any PHP blocks you have? Please post the codes if you have any.
And slowly, you come to realize... It's all as it should be...

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #2 on: March 01, 2009, 07:19:46 AM »
Any PHP blocks you have? Please post the codes if you have any.
I have this Php code ( recent pics from SMF gallery)
Code: [Select]
////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 5/9/2007
// 1.7.1
// - quick fix to parsing the url
//
// Updated 5/9/2007
// 1.7
// - added option to view pics that members on your buddy list posted
//
// For list of all previous updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $id_member, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 4;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 1;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 0;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 4;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 0;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 0;
// display category the picture is in?
$gal_dispCategory = 0;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 0;
// display filesize?
$gal_dispSize = 0;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "15,16";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 0;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $id_member : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
g.thumbfilename,
g.id_picture,
                g.id_topic,
g.id_member,
g.date,
g.title,
g.description,
g.views,
g.filesize,
g.height,
g.width,
g.commenttotal,
g.id_cat,
t.num_replies
FROM '.$db_prefix.'gallery_pic g INNER JOIN  '.$db_prefix.'topics t ON t.id_topic=g.id_topic
WHERE g.approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND p.id_member = NULL " : "AND g.id_member in ($gal_buddylist)")) : "AND g.id_member = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND g.id_cat NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND g.id_cat IN ($gal_allowCats)").'
GROUP BY g.thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY g.date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY g.views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY g.commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($id_member == $row['id_member'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['id_picture'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="index.php/topic,'.$row['id_topic'].'.0.html"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'inviata';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on id_member
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT member_name FROM ".$db_prefix."members WHERE id_member = ".$row['id_member']));
echo ' da <a href="'.$scripturl.'?action=profile;u='.$row['id_member'].'">'.$gal_tmp['member_name'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
if ($row['num_replies']==0)
echo '<span style="color:red"> Commenti totali: '.$row['num_replies'].'</span>';
else
echo 'Commenti totali: '.$row['num_replies'];

echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE id_cat = ".$row['id_cat']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['id_cat'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Vista ".$row['views']." volte<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">Vedi tutte le foto di questo utente</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">Vedi tutte le foto degli amici</a>';
}
}
} else {
echo 'Non hai il permesso di vedere le foto!';
}

and Quick upload photo to SMF gallery pro
Code: [Select]
global $smcFunc, $scripturl, $txt, $context, $settings, $modSettings, $boarddir;
// gallery.index.php is not loaded yet, so load it here
require_once($boarddir.'/Themes/default/languages/Gallery.italian.php');

// text area tag var
$ta_tag = "TEXTAREA";

//Get the category
@$cat = (int) $_REQUEST['cat'];



// display the block info
echo '
<div class="tborder">
<form method="POST" enctype="multipart/form-data" name="picform" id="picform" action="' . $scripturl . '?action=gallery&sa=add2">
<table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" height="129">
</tr>

<tr class="windowbg2">
<td class="smalltext"><b>Titolo:</b><br /><input type="text" name="title" size="15" /></td>
</tr>
<tr class="windowbg2">
<td class="smalltext" align="left"><b>Categoria</b> </td>
</tr>
<tr class="windowbg2">
<td class="smalltext"><select name="cat">';


// get our query results to create select box
$dbresult = $smcFunc['db_query'] ('', "
SELECT
id_cat, title, orderby
FROM {db_prefix}gallery_cat
ORDER BY roworder DESC");
while($row = $smcFunc ['db_fetch_assoc'] ($dbresult)) 


 if (($row['id_cat'] != 1) && ($row['id_cat'] != 15) && ($row['id_cat'] != 16)) 
{    echo '             <option value="' . $row['id_cat']  . '" ' . (($cat == $row['id_cat']) ? ' selected="selected"' : '') .'>' . $row['title'] . '</option>'; }


echo '
</select>
</td>
</tr>

<tr class="windowbg2">
<td class="smalltext" align="left"><b>Descrizione:</b> </td>
</tr>

<tr class="windowbg2">
<td class="smalltext"><'.$ta_tag.' name="description" rows="7" cols="16"></'.$ta_tag.'></td>
</tr>

<tr class="windowbg2">
<td class="smalltext" align="left"><b>Parole chiave:</b> </td>
</tr>
<tr class="windowbg2">
<td class="smalltext"><input type="text" name="keywords" maxlength="100" size="15" /></td>
</tr>
<tr class="windowbg2">
<td class="smalltext" align="left"><b>' . $txt['gallery_form_uploadpic'] . '</b> </td>
</tr>
<tr class="windowbg2">
<td class="smalltext"><input type="file" size="12" name="picture" /></td>
</tr>';

if(!empty($modSettings['gallery_commentchoice'])){
echo '
<tr class="windowbg2">
<td class="smalltext" align="left"><b>' . $txt['gallery_form_additionaloptions'] . '</b> </td>
</tr>
<tr class="windowbg2">
<td class="smalltext"><input type="checkbox" name="allowcomments" checked="checked" /><b>Permetti commenti</b></td>
</tr>';
}

echo '
<tr class="windowbg2">
<td class="smalltext" width="28%" colspan="2" height="26" align="left" class="windowbg2"><input type="submit" value="Carica foto" name="submit" /></td>
</tr>

</table><br />
';



echo '
</form>
</div>';

and block php calendar events :
Code: [Select]
require("/home/macrofor/public_html/smf2rc/SSI.php");
global $scripturl;
$now = mktime();
         $today = date('j',$now);
         $year = date("Y",$now);
         $month = date("n",$now);
         $days = array($today=>array(NULL,NULL,'<a align="center" style="color: steelblue; font-weight: bold; border: solid 1px black; background-color: white; padding: 2px 4px 2px 4px; font-size: xx-small; font-family: verdana, sans-serif;" href="'.$scripturl.'?action=calendar;sa=post;month='.$month.';year='.$year.';day='.$today.'" target="_self">'.$today.'</a>'));

         $day_name_length = 3;
         $month_href = $scripturl . '?action=calendar';
         $first_day = 0;
         $pn = array();

$first_of_month = gmmktime(0,0,0,$month,1,$year);
#remember that mktime will automatically correct if invalid dates are entered
# for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
# this provides a built in "rounding" feature to generate_calendar()

$day_names = array(); #generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); #%A means full textual day name

list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day
$title   = htmlentities(ucfirst($month_name)).' '.$year;  #note that some locales don't capitalize month and day names

#Begin calendar. Uses a real <caption>. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
if($p) $p = '<span style=" font-size: xx-small; font-family: verdana, sans-serif;">'.($pl ? '<a href="'.htmlspecialchars($pl).'">'.$p.'</a>' : $p).'</span> ';
if($n) $n = ' <span style="font-size: xx-small; font-family: verdana, sans-serif;">'.($nl ? '<a href="'.htmlspecialchars($nl).'">'.$n.'</a>' : $n).'</span>';
$calendar = '<table>'."\n".
'<caption >'.$p.($month_href ? '<a href="'.htmlspecialchars($month_href).'">'.$title.'</a>' : $title).$n."</caption>\n<tr>";

if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
#if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '<th style=" font-size: xx-small; font-family: verdana, sans-serif;" abbr="'.htmlentities($d).'">'.htmlentities($day_name_length < 4 ? substr($d,0,$day_name_length) : $d).'</th>';
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}

if($weekday > 0) $calendar .= '<td style=" font-size: xx-small; font-family: verdana, sans-serif;" colspan="'.$weekday.'"> </td>'; #initial 'empty' days
for($day=1,$days_in_month=gmdate('t',$first_of_month); $day<=$days_in_month; $day++,$weekday++){
if($weekday == 7){
$weekday   = 0; #start a new week
$calendar .= "</tr>\n<tr style=\"text-align:right;\">";
}
if(isset($days[$day]) and is_array($days[$day])){
@list($link, $classes, $content) = $days[$day];
if(is_null($content))  $content  = $day;
$calendar .= '<td "'.($classes ? ' class="'.htmlspecialchars($classes).'">' : '>').
($link ? '<a href="'.htmlspecialchars($link).'">'.$content.'</a>' : $content).'</td>';
}
else
{
$calendar .= "<td style=\"padding-right: 4px; font-size: xx-small; font-family: verdana, sans-serif;\"  onmouseover=\"this.style.backgroundColor='#ededed'\" onMouseOut=\"this.style.backgroundColor=''\"><a";
if(((($weekday+$first_day) % 7)==0)||((($weekday+$first_day) % 7)==6))
{
$calendar .= ' style="color:#C00000;"';
}
$calendar .= " href=\"".$scripturl."?action=calendar;sa=post;month=".$month.";year=".$year.";day=".$day."\" target=\"_self\">$day</a></td>";
}
}
if($weekday != 7) $calendar .= '<td style=" font-size: xx-small; font-family: verdana, sans-serif;" colspan="'.(7-$weekday).'"> </td>'; #remaining "empty" days
echo $calendar.'</tr>';

if (ssi_todaysBirthdays('')) {
  echo '<tr><td><hr></td><td colspan="5" style=" font-size: xx-small; font-family: verdana, sans-serif;" align="center">Compleanni</td><td><hr></td></tr><td colspan="7" class="calendarblock">';
  ssi_todaysBirthdays();
  echo '</td></tr>';
}

if (ssi_todaysCalendar('')) {
  echo '<tr><td><hr></td><td colspan="5" style=" font-size: xx-small; font-family: verdana, sans-serif;" align="center">Prossimi eventi</td><td><hr></td></tr><td colspan="7" style=" font-size: xx-small; font-family: verdana, sans-serif;">';
  ssi_todaysCalendar();
  echo '</td></tr></table>';
}

All blocks works ok :-)
Thanks!
Antonio

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #3 on: March 03, 2009, 02:28:29 PM »
News ?  :D

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Log error: Error id_member
« Reply #4 on: March 04, 2009, 10:14:37 AM »
can I take a look at the line where that error happens , I mean line 199 in SPortal2.template.php  isn't it ?

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #5 on: March 09, 2009, 09:19:17 AM »
can I take a look at the line where that error happens , I mean line 199 in SPortal2.template.php  isn't it ?
Thanks Nabil  :-)
In SPortal2.template.php is not line 199...!
The forum works ok but i have always this error ( for gust and member)
Antonio

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Log error: Error id_member
« Reply #6 on: March 09, 2009, 04:02:29 PM »
try this with any error you have in the Forum Error Log : just add this sign @ on that Sentence of Code , sometimes not neccessarly at the begining , that's why I wanted to see the Code, try it yourself .

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #7 on: March 10, 2009, 04:22:47 AM »
try this with any error you have in the Forum Error Log : just add this sign @ on that Sentence of Code , sometimes not neccessarly at the begining , that's why I wanted to see the Code, try it yourself .
Thanks Nabil :-)
I attached the file
Antonio

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: Log error: Error id_member
« Reply #8 on: March 10, 2009, 12:47:47 PM »
Quote
8: Undefined variable: id_member
Apply Filter: Only show the errors from this file
File: /home/macrofor/public_html/smf2rc/Themes/default/SPortal2.template.php (portal_below sub template - eval?)
Line: 199

I don't see neither id_member (not even one) nor line 199 in the SPortal2.template.php

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Log error: Error id_member
« Reply #9 on: March 10, 2009, 01:47:44 PM »
In your "recent pics from SMF gallery" block, you have used $id_member two times, but I can't see it being defined anywhere. You may try defining it at the top of your codes.
And slowly, you come to realize... It's all as it should be...

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #10 on: March 10, 2009, 02:37:28 PM »
Thanks Nabil :-)
Thanks Blue Dream, i'll try :-)
Antonio

Offline fotografo74

  • Jr. Member
  • **
  • Posts: 51
  • SMF Version: 2 RC1-1
  • SP Version: 2.3
Re: Log error: Error id_member
« Reply #11 on: March 10, 2009, 02:47:43 PM »
Thanks Nabil :-)
Thanks Blue Dream, i'll try :-)
Antonio
Maybe i found the error!
In other PHP block ( photo of the week) , the same code of the recent pics, i forgot change ID_MEMBER to id_member for works with SMF2 RC1 !
I'll see if errors disappared.
Antonio

[EDIT] Noe it's ok! Thanks!
« Last Edit: March 10, 2009, 03:07:56 PM by fotografo74 »