View Full Version : COmbining a few of the standard modules
joeychgo
11-15-2004, 02:41 AM
Id like to combine a few of the standard modules. User CP module, Who's Online, Forum statistics, the calander, etc.
The reason I would like to combine them is the amout of space that could be saved by eliminating the title bars and the space between the modules....
theMusicMan
11-15-2004, 05:38 AM
This can be done... all you need to do is to copy the relevant bits of the html from the templates you want to merge, into one new or existing template. Then either use the existing or new template to create a module around which you will display your information.
Brian
11-15-2004, 06:43 PM
Easy way - Edit the templates so that they'll all appear on one module.
Hard way - Combine the files and the templates.
golfrewind
03-14-2005, 05:30 AM
I tried combining the Welcome Block, Who's Online and Stats modules. I did this by combining the three php files and the three templates all into one. When I activate this new combined module, only the Stats block shows up. What am I doing wrong here?
Brian
03-14-2005, 09:42 AM
Can you post the new file you created?
golfrewind
03-15-2005, 01:37 AM
<?php
// ++=========================================================================++
// || vBadvanced CMPS 1.0.0 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
if ($bbuserinfo['userid'])
{
if ($vba_options['portal_welcome_avatar'])
{
require_once('./includes/functions_user.php');
$avatarurl = fetch_avatar_url($bbuserinfo['userid']);
if (!$avatarurl)
{
$avatarurl = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
else
{
$avatarurl = $vboptions['bburl'] . '/' . $avatarurl;
}
}
$lastvisitdate = vbdate($vba_options['portal_welcome_lastvisit_date'], $bbuserinfo['lastvisit']);
$lastvisittime = vbdate($vba_options['portal_welcome_lastvisit_time'], $bbuserinfo['lastvisit']);
if ($vba_options['portal_welcome_newposts'])
{
$getnewposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= '$bbuserinfo[lastvisit]'");
$newposts = number_format($getnewposts['count']);
}
}
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_welcomeblock') . '";');
// Get our category & options caches
$categorycache = unserialize($datastore['gallery_c_cache']);
$galleryoptions = unserialize($datastore['adv_gallery_opt']);
if (!empty($vba_options))
{
$vba_options = array_merge($vba_options, $galleryoptions);
}
else
{
$vba_options = $galleryoptions;
}
// Create a list of fields to be shown in the imagebit
$showfield = explode(',', $vba_options['gallery_imagebitdisplay']);
if (!empty($showfield))
{
$showfields = array();
foreach ($showfield AS $field)
{
$showfields["$field"] = 1;
}
}
// If you DON'T want of these fields to show then unremark
// the line in question by removing the "//" in the front it.
//$showfields['description'] = 0;
//$showfields['rating'] = 0;
//$showfields['user'] = 0;
//$showfields['dateline'] = 0;
//$showfields['views'] = 0;
//$showfields['dimensions'] = 0;
//$showfields['filesize'] = 0;
//$showfields['posts'] = 0;
//$showfields['lastpost'] = 0;
// Get our functions we need to work with
require_once('./includes/functions_bbcodeparse.php');
require_once('./includes/functions_gallery.php');
$show['category'] = true;
$query = fetch_image_fields();
// Turn the category field off/on in the display.
// $show['category'] = 0;
// Get a list of categories to be EXCLUDED from our query
if ($privatecatids = fetch_private_categories())
{
$privcatids = 'images.catid NOT IN(' . $privatecatids . ') AND ';
}
// Get a random file
$show['randomimages'] = true;
$getrand = $DB_site->query("
SELECT imageid, images.title, filename, thumbname, extension, images.catid $query[fields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
$query[tables]
WHERE $privcatids valid = 1
ORDER BY RAND()
LIMIT 2
");
// Yeah, this is the overkill method but by mimicking the logic in
// index.php it should make it easier to work with multiple images
// if somebody wants to.
if ($DB_site->num_rows($getrand))
{
while ($images = $DB_site->fetch_array($getrand))
{
// $randomimagebits .= construct_imagebits($images);
$images['url'] = construct_image_url($images, 'thumbname');
$randomimagebits .= '<a href="' . $vboptions[homeurl] . '/gallery/showimage.php?' . $session[sessionurl] . 'i=' . $images[imageid] . '$adv_sorturl"><img alt="' . $images[title] . '" border="0" src="' . $images[url] . '" /></a><br /><br/>';
}
$randomimagebits .= construct_empty_imagebits();
}
$DB_site->free_result($getrand);
unset($images);
// Slipstream the output into the content
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_gallery_random') . '";');
$doneusers = array();
$activeusers = '';
foreach ($modules AS $omods)
{
if ($omods['identifier'] == 'buddylist' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showbuddies = true;
$buddyid = $omods['modid'];
}
if ($omods['identifier'] == 'onlineusers' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showonline = true;
$onlineid = $omods['modid'];
}
}
unset($omods);
if ($showonline OR ($showbuddies AND trim($bbuserinfo['buddylist'])))
{
$getonline = $DB_site->query("
SELECT session.userid, username, usergroupid, (user.options & $_USEROPTIONS[invisible]) AS invisible
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid)
WHERE session.lastactivity > " . (TIMENOW - $vboptions['cookietimeout']) . "
ORDER BY invisible ASC, username ASC
");
if ($bbuserinfo['userid'] AND $showonline)
{
$bbuser = array(
$bbuserinfo['userid'] => array(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'musername' => fetch_musername($bbuserinfo)
)
);
$loggedin = $bbuser[$bbuserinfo['userid']];
if ($bbuserinfo['invisible'])
{
$loggedin['invisiblemark'] = '*';
}
eval('$activeusers = "' . fetch_template('forumhome_loggedinuser') . '";');
$doneusers[] = $bbuserinfo['userid'];
$numberregistered++;
}
if ($DB_site->num_rows($getonline))
{
while ($loggedin = $DB_site->fetch_array($getonline))
{
if (!$loggedin['userid'])
{
$numberguest++;
}
else
{
if (!in_array($loggedin['userid'], $doneusers))
{
$doneusers[] = $loggedin['userid'];
$numberregistered++;
$loggedin['musername'] = fetch_musername($loggedin);
$loggedin['invisiblemark'] = '';
$loggedin['buddymark'] = '';
if ($loggedin['invisible'])
{
if (($permissions['genericpermissions'] & CANSEEHIDDEN) OR $loggedin['userid'] == $bbuserinfo['userid'])
{
$loggedin['invisiblemark'] = '*';
}
else
{
$dontshow = 1;
}
}
$buddylist = array();
if (trim($bbuserinfo['buddylist']))
{
$buddylist = explode(' ', $bbuserinfo['buddylist']);
}
if (in_array($loggedin['userid'], $buddylist))
{
$loggedin['buddymark'] = '+';
if ($showbuddies AND !$dontshow)
{
$numberbuddy++;
$getbgrow = getrowcolor();
eval('$onlineusers .= "' . fetch_template('adv_portal_buddylistbits') . '";');
}
}
if ($showonline)
{
if (!$dontshow)
{
if ($activeusers)
{
$com = ', ';
}
eval('$activeusers .= "$com ' . fetch_template('forumhome_loggedinuser') . '";');
$activeusers = str_replace('"member.php', '"' . $vboptions['bburl'] . '/member.php', $activeusers);
}
}
}
}
}
}
}
$DB_site->free_result($getonline);
unset($loggedin);
if ($showbuddies)
{
if (!$numberbuddy)
{
$onlineusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['buddies']);
}
eval('$home[$buddyid][\'content\'] = "' . fetch_template('adv_portal_buddylist') . '";');
}
if ($showonline)
{
if (!$activeusers)
{
$activeusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['members']);
}
$totalonline = $numberregistered + $numberguest;
$numberregistered = number_format($numberregistered);
$numberguest = number_format($numberguest);
$maxusers = unserialize($datastore['maxloggedin']);
if ($maxusers['maxonline'] <= $totalonline)
{
$maxusers['maxonline'] = $totalonline;
$maxusers['maxonlinedate'] = TIMENOW;
$DB_site->query("UPDATE " . TABLE_PREFIX . "datastore SET data='" . addslashes(serialize($maxusers)) . "' WHERE title = 'maxloggedin'");
}
$recordusers = $maxusers['maxonline'];
$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], 1);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);
eval('$home[$onlineid][\'content\'] = "' . fetch_template('adv_portal_onlineusers') . '";');
}
unset($activeusers, $onlineusers, $doneusers);
// ######################### Forum Stats #########################
include_once('./includes/functions_forumlist.php');
cache_ordered_forums(1, 0, 0);
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$nthreads += $forum['threadcount'];
$nposts += $forum['replycount'];
$totalthreads = number_format($nthreads);
$totalposts = number_format($nposts);
}
}
$topposter = $DB_site->query_first('SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 1');
$userstats = unserialize($datastore['userstats']);
$numbermembers = number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];
$tdate = vbdate('Y-m-d', TIMENOW);
$birthdaystore = unserialize($datastore['birthdaycache']);
if (!is_array($birthdaystore) OR ($tdate != $birthdaystore['day1'] AND $tdate != $birthdaystore['day2']))
{
include_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();
}
switch($tdate)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;
case $birthdaystore['day2'];
$birthdays = $birthdaystore['users2'];
break;
}
$birthdays = str_replace(array('member.php', ','), array($vboptions['bburl'] . '/member.php', '<br />'), $birthdays);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_stats') . '";');
unset($userstats, $birthdays, $birthdaystore, $topposter);
?>
Brian
03-15-2005, 10:45 AM
Remove all of these except for the last one:
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('temlate_name') . '";');
golfrewind
03-16-2005, 04:50 AM
When I do this, I get the following error message:
Fatal error: Call to undefined function: construct_empty_imagebits() in /hsphere/local/home/vrhee/golfrewind.com/modules/rightbar.php on line 105
Brian
03-16-2005, 08:28 AM
Change construct_empty_imagebits to construct_empty_cellbits and that should take care of the problem.
golfrewind
03-17-2005, 02:03 AM
Apparently, there's some problems with the Gallery module so I just decided to start from square one. What I am trying to do is combine the Welcome Block, Who's Online and Statistics modules. Here is my code for the php file:
<?php
// ++=========================================================================++
// || vBadvanced CMPS 1.0.0 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
if ($bbuserinfo['userid'])
{
if ($vba_options['portal_welcome_avatar'])
{
require_once('./includes/functions_user.php');
$avatarurl = fetch_avatar_url($bbuserinfo['userid']);
if (!$avatarurl)
{
$avatarurl = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
else
{
$avatarurl = $vboptions['bburl'] . '/' . $avatarurl;
}
}
$lastvisitdate = vbdate($vba_options['portal_welcome_lastvisit_date'], $bbuserinfo['lastvisit']);
$lastvisittime = vbdate($vba_options['portal_welcome_lastvisit_time'], $bbuserinfo['lastvisit']);
if ($vba_options['portal_welcome_newposts'])
{
$getnewposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= '$bbuserinfo[lastvisit]'");
$newposts = number_format($getnewposts['count']);
}
}
// ++=========================================================================++
// || vBadvanced CMPS 1.0.0 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
$doneusers = array();
$activeusers = '';
foreach ($modules AS $omods)
{
if ($omods['identifier'] == 'buddylist' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showbuddies = true;
$buddyid = $omods['modid'];
}
if ($omods['identifier'] == 'onlineusers' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showonline = true;
$onlineid = $omods['modid'];
}
}
unset($omods);
if ($showonline OR ($showbuddies AND trim($bbuserinfo['buddylist'])))
{
$getonline = $DB_site->query("
SELECT session.userid, username, usergroupid, (user.options & $_USEROPTIONS[invisible]) AS invisible
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid)
WHERE session.lastactivity > " . (TIMENOW - $vboptions['cookietimeout']) . "
ORDER BY invisible ASC, username ASC
");
if ($bbuserinfo['userid'] AND $showonline)
{
$bbuser = array(
$bbuserinfo['userid'] => array(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'musername' => fetch_musername($bbuserinfo)
)
);
$loggedin = $bbuser[$bbuserinfo['userid']];
if ($bbuserinfo['invisible'])
{
$loggedin['invisiblemark'] = '*';
}
eval('$activeusers = "' . fetch_template('forumhome_loggedinuser') . '";');
$doneusers[] = $bbuserinfo['userid'];
$numberregistered++;
}
if ($DB_site->num_rows($getonline))
{
while ($loggedin = $DB_site->fetch_array($getonline))
{
if (!$loggedin['userid'])
{
$numberguest++;
}
else
{
if (!in_array($loggedin['userid'], $doneusers))
{
$doneusers[] = $loggedin['userid'];
$numberregistered++;
$loggedin['musername'] = fetch_musername($loggedin);
$loggedin['invisiblemark'] = '';
$loggedin['buddymark'] = '';
if ($loggedin['invisible'])
{
if (($permissions['genericpermissions'] & CANSEEHIDDEN) OR $loggedin['userid'] == $bbuserinfo['userid'])
{
$loggedin['invisiblemark'] = '*';
}
else
{
$dontshow = 1;
}
}
$buddylist = array();
if (trim($bbuserinfo['buddylist']))
{
$buddylist = explode(' ', $bbuserinfo['buddylist']);
}
if (in_array($loggedin['userid'], $buddylist))
{
$loggedin['buddymark'] = '+';
if ($showbuddies AND !$dontshow)
{
$numberbuddy++;
$getbgrow = getrowcolor();
eval('$onlineusers .= "' . fetch_template('adv_portal_buddylistbits') . '";');
}
}
if ($showonline)
{
if (!$dontshow)
{
if ($activeusers)
{
$com = ', ';
}
eval('$activeusers .= "$com ' . fetch_template('forumhome_loggedinuser') . '";');
$activeusers = str_replace('"member.php', '"' . $vboptions['bburl'] . '/member.php', $activeusers);
}
}
}
}
}
}
}
$DB_site->free_result($getonline);
unset($loggedin);
if ($showbuddies)
{
if (!$numberbuddy)
{
$onlineusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['buddies']);
}
eval('$home[$buddyid][\'content\'] = "' . fetch_template('adv_portal_buddylist') . '";');
}
if ($showonline)
{
if (!$activeusers)
{
$activeusers = construct_phrase($vbphrase['no_x_online'], $vbphrase['members']);
}
$totalonline = $numberregistered + $numberguest;
$numberregistered = number_format($numberregistered);
$numberguest = number_format($numberguest);
$maxusers = unserialize($datastore['maxloggedin']);
if ($maxusers['maxonline'] <= $totalonline)
{
$maxusers['maxonline'] = $totalonline;
$maxusers['maxonlinedate'] = TIMENOW;
$DB_site->query("UPDATE " . TABLE_PREFIX . "datastore SET data='" . addslashes(serialize($maxusers)) . "' WHERE title = 'maxloggedin'");
}
$recordusers = $maxusers['maxonline'];
$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], 1);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);
}
unset($activeusers, $onlineusers, $doneusers);
// ++=========================================================================++
// || vBadvanced CMPS 1.0.0 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
// ######################### Forum Stats #########################
include_once('./includes/functions_forumlist.php');
cache_ordered_forums(1, 0, 0);
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$nthreads += $forum['threadcount'];
$nposts += $forum['replycount'];
$totalthreads = number_format($nthreads);
$totalposts = number_format($nposts);
}
}
$topposter = $DB_site->query_first('SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 1');
$userstats = unserialize($datastore['userstats']);
$numbermembers = number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];
$tdate = vbdate('Y-m-d', TIMENOW);
$birthdaystore = unserialize($datastore['birthdaycache']);
if (!is_array($birthdaystore) OR ($tdate != $birthdaystore['day1'] AND $tdate != $birthdaystore['day2']))
{
include_once('./includes/functions_databuild.php');
$birthdaystore = build_birthdays();
}
switch($tdate)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;
case $birthdaystore['day2'];
$birthdays = $birthdaystore['users2'];
break;
}
$birthdays = str_replace(array('member.php', ','), array($vboptions['bburl'] . '/member.php', '<br />'), $birthdays);
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_rightbar') . '";');
unset($userstats, $birthdays, $birthdaystore, $topposter);
?>
Here is the code from the template:
<!-- Welcome / Login Block -->
<if condition="!$bbuserinfo['userid']">
<script src="$vboptions[bburl]/clientscript/vbulletin_md5.js" type="text/javascript"></script>
<form action="$vboptions[bburl]/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<input name="vb_login_md5password" type="hidden" />
<input name="s" type="hidden" value="" />
<input name="do" type="hidden" value="login" />
</if>
<if condition="!$vba_options['portal_shownavbar'] AND $bbuserinfo['userid']">
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
</if>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]
<if condition="$bbuserinfo['userid']">
<a href="$vboptions[bburl]/usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a><else />$vbphrase[log_in]
</if></strong></span></td>
</tr>
<tr>
<td class="$getbgrow">
<if condition="$bbuserinfo['userid']">
<span class="smallfont"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_back_x]</phrase></span><br />
<if condition="$vba_options['portal_welcome_avatar']">
<table cellpadding="3" align="center">
<tr>
<td><a href="$vboptions[bburl]/profile.php?do=editavatar"><img src="$avatarurl" border="0" alt="$vbphrase[edit_avatar]" /></a>
</td>
</tr>
</table>
</if>
<span class="smallfont"><phrase 1="$lastvisitdate" 2="$lastvisittime">$vbphrase[last_visited_x_at_y]</phrase><br />
<if condition="$vba_options['portal_welcome_newpms']"><a href="$vboptions[bburl]/private.php?$session[sessionurl]">$vbphrase[new_pms]</a>: $bbuserinfo[pmunread]<br /></if>
<if condition="$vba_options['portal_welcome_newposts']"><a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getnew&exclude=15,17">$vbphrase[new_posts]</a>: $newposts<br /></if>
<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a></span>
<else />
<table width="100%">
<tr>
<td>
<span class="smallfont"><b>$vbphrase[user_name]:<br />
<input class="bginput" name="vb_login_username" size="12" type="text" /><br />
$vbphrase[password]:</b></span><br />
<input class="bginput" name="vb_login_password" size="12" type="password" /><br />
<input checked="checked" class="bginput" name="cookieuser" id="cb_cookieuser" type="checkbox" value="1" /><span class="smallfont">$vbphrase[remember_me]</span>
</td>
</tr>
<tr>
<td>
<input class="button" type="submit" value="$vbphrase[log_in]" />
</td>
</tr>
<tr>
<td>
<span class="smallfont"><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase>
</span>
</td>
</tr>
</table>
</if>
</td>
</tr>
<br />
<if condition="!$bbuserinfo['userid']">
</form>
</if>
<!-- End Welcome / Login Block -->
<!-- Online Users Block -->
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] Currently Online</strong></span>
</td>
</tr>
<tr>
<td class="alt2"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
</tr>
<tr>
<td class="alt1"><span class="smallfont">$activeusers</span></td>
</tr>
<tr>
<td class="alt2"><span class="smallfont"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></span></td>
</tr>
<br />
<!-- End Online Users Block -->
<!-- Stats Block -->
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]
<phrase 1="$vboptions[hometitle]">$vbphrase[x_statistics]</phrase>
</strong></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
$vbphrase[members]: $numbermembers<br />
$vbphrase[threads]: $totalthreads<br />
$vbphrase[posts]: $totalposts<br />
<br />
<phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</span>
</td>
</tr>
<if condition="$birthdays">
<tr>
<td class="alt1"><span class="smallfont">
<b>$vbphrase[todays_birthdays]:</b><br /> $birthdays</span></td>
</tr>
</if>
</table>
<!-- End Stats Block -->
This works except a couple of minor problems. First off, the sidebar starts with a linebreak instead of being even with the rest of the forum. Second, all of the information in the Who's Online box doesn't display. It doesn't list any of the members online nor the # of members and guests online. Everything else works.
Brian
03-17-2005, 09:56 AM
Looks like you removed the foreach() statement at the top of the online users module, which is necessary for it to function.
golfrewind
03-18-2005, 07:01 PM
I have the foreach() statement in the middle of the code. Should I put it to the top of the php file?
thanks for all of your help with this.
Brian
03-18-2005, 07:14 PM
I must be going blind as I swear that wasn't there when I first looked at it. :confused:
I'm not sure why it wouldn't be working properly, but if you want to submit a support ticket I'll be glad to take a look.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.