Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[vBindex] Show Hivemail On vB Index Portal Details »»
[vBindex] Show Hivemail On vB Index Portal
Version: 1.00, by PirateRadio PirateRadio is offline
Developer Last Online: Nov 2004 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-19-2004 Last Update: Never Installs: 1
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-19-2004, 11:11 PM
Skyline_GT Skyline_GT is offline
 
Join Date: May 2003
Location: Vancouver, BC
Posts: 482
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice
THank
Reply With Quote
  #3  
Old 11-19-2004, 11:24 PM
PirateRadio PirateRadio is offline
 
Join Date: Nov 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you install it, please let me know how it goes
Reply With Quote
  #4  
Old 11-20-2004, 01:41 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That works too well. Unfortunately those messages with long usernames and long subjects mess up the page :-(

So what I did, since this appears only when there are new emails, I placed under the navbar. I am using vbadvanced btw. Thanks, I installed.
Reply With Quote
  #5  
Old 11-20-2004, 01:58 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you add the option to delete the mail from homepage too without even reading it? (for junk mails)
Reply With Quote
  #6  
Old 11-20-2004, 10:21 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, would be cool to see CMPS mod for this as well
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03974 seconds
  • Memory Usage 2,282KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete