Back to vBulletin 3.0 Add-Ons

[vBindex] Show Hivemail On vB Index Portal
Mod Version: 1.00, by PirateRadio

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 1
Released: 20 Nov 2004 Last Update: Never Downloads: 0
Not Supported  

Hi,

This is just a fast mod to show your new mail messages from hivemail on vB Index. You must have HiveMail >> vB Integration ( http://manual.hivemail.com/topic/vb_303_130 ) installed first.

Open vbindex.php
find:
PHP Code:
if ($deleteshout === true) {
$DB_site->query("DELETE FROM ".TABLE_PREFIX."vbindex_shoutbox WHERE shoutid = '$shoutid'");
$url "$_SERVER[PHP_SELF]?$session[sessionurl]";
eval(
print_standard_redirect('redirect_vbi_shoutdeleted'));
}

after add:
PHP Code:
// HIVEMAIL ADD
// ############################### start new mails ###############################
$show['hive_newemails'] = false;
if (
$vboptions['hive_enabled'] and $bbuserinfo['hiveuserid'] != and ($permissions['hivepermissions'] & H_CANHAVEACCOUNT) and ($permissions['hivepermissions'] & H_CANVIEWNEWMAIL)) {
$show['hive_newemails'] = true;
define('FORUM_PLUGIN'true);
require_once(
$vboptions['hive_filepath'].'/includes/vbulletin_plugin.php');

$unreadmails $DB_Hive->query("
SELECT *
FROM hive_message
WHERE userid = 
$bbuserinfo[hiveuserid]
AND NOT(status & "
.MAIL_READ.")
"
);

$mailbits '';
$nummails $DB_Hive->num_rows($unreadmails);
if (
$nummails 0)
{
$show['hive_newdetails'] = true;
while (
$unread $DB_Hive->fetch_array($unreadmails)) {
$unread['from'] = iif(empty($unread['name']), $unread['email'], $unread['name'].' <'.$unread['email'].'>');
$unread['dateline'] = date($vboptions['dateformat'].' '.$vboptions['timeformat'], $unread['dateline']);
eval(
'$mailbits .= "' fetch_template('hivemail_usercp_mailbit') . '";');
}
}
else
{
$show['hive_newdetails'] = false;
}
}
// END HIVEMAIL ADD 
save and upload

Open vbindex_customblock_1 in templates.

Find:
PHP Code:
Block $box Content 
Replace with:
PHP Code:
<!-- HIVEMAIL ADD -->
<if 
condition="$show['hive_newemails']">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
<
tr>
<
td class="tcat" colspan="7">
<
br>New E-Mail Messages: ($nummails)</span>
</
td>
</
tr>
</
thead>
<
tbody id="collapseobj_usercp_submails" style="$vbcollapse[collapseobj_usercp_submails]">
<if 
condition="$show['hive_newdetails']">
<
tr class="thead">
<
td class="thead" nowrap="nowrap">From</td>
<
td class="thead" nowrap="nowrap">Subject</td>
<
td class="thead" nowrap="nowrap">Date Received</td>
</
tr>
$mailbits
<else />
<
tr>
<
td class="alt1" align="center" colspan="7"><strong>Sorry No New E-Mail</strong></td>
</
tr>
</if>
<
tr>
<
td align="$stylevar[right]colspan="7" class="tfoot">
<
span class="smallfont"><a href="$vboptions[hive_url]">Go To Your E-Mail Account</a></span>
</
td>
</
tr>
</
tbody>
</
table>
<
br />
</if>
<!-- 
END HIVEMAIL ADD --> 

Save and thats it! Enjoy! Also, please hit install!

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024