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
Display vBMS status in vBAdvanced CMPS Details »»
Display vBMS status in vBAdvanced CMPS
Version: 1.00, by Jaxx Jaxx is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 06-09-2005 Last Update: 06-09-2005 Installs: 2
 
No support by the author.

*Note*This has been tested in vBAdvanced v1.x. As I do not have 2.0 installed, I cannot verify if it works. I decided to post it here as I had someone ask where this was and I only had it over at the vBa website.

This module for vBAdvanced CMPS will give you a block that shows your users how many total and new emails they have along with a link to the vBMS portion of your site. It will also remove the pop notification at the top of the site when new email arrives.

Name: CMPS vBMS E-Mail Block

Templates to edit: 3 Total (1 created)

Time to install: Less then 5 minutes.

I started messing around because some users and myself didn't like the actual block that popped up in the header when you recieved e-mail. So with the help of Filburt and Phlogiston, was able to get it up and running.

This is my first attempt at actually creating something of this sort, so be easy on me.

Its actually quite easy to set up. You will, of course, need vBulletin's Mail System.

Step 1

Create a new vBA CMPS module with the following info:

Module Title: vbms
File to Include: None
Template to Include: vbms

Do not activate it yet.

Step 2

Goto your Style Manager and create a new template titled:

adv_portal_vbms

Paste the following code:

PHP Code:
<!-- vbms module  -->
    
        <if 
condition="$vboptions['vbms_enabled']">
        <
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
            <
thead>
            <
tr>
        <
td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <a href="$vboptions[bburl]/vbms.php?$session[sessionurl]">vB WebMail</a></strong></span>
            </
td>
            </
tr>
            </
thead>
            <
tr>
            <
td class="$getbgrowwidth="100%">
    <
b>
    <if 
condition="$vbms_newmessages['newcount'] == 1">
    
$vbphrase[vbms_one_unread_message]
    <else />
    <
phrase 1="$vbms_newmessages[newcount]">$vbphrase[vbms_x_unread_messages]</phrase>
    </if>

    </
b>
<
br />
<
br />
    
You have $messagecount emails total.
<
br />
<
br />
<
span class="smallfont"><phrase 1="$vboptions[bburl]/vbms.php?$session[sessionurl]">$vbphrase[vbms_to_read_your_email]</phrase></span>
            </
td>
            </
tr>
            </
table>
            <
br />
        </if>
        
    <!-- 
End vbms module --> 
You may want to edit vB WebMail for your own title as you see fit.

Save it.

Step 3

Open your phpinclude_start file.

Find (should be top line):

PHP Code:
require_once("./includes/vbms_frontend_init.php"); 
Below paste:

PHP Code:
$result $DB_site->query_first("SELECT COUNT(messageid) AS messagecount FROM " TABLE_PREFIX "vbms_message WHERE userid = " $bbuserinfo['userid']); 
$messagecount $result['messagecount']; 
Save it.

Step 4

This step will get rid of the table that popups at the top of the site telling you you have new mail. If you want to keep it, skip this step.

Now open your header template.

Remove everything between (including the comments):

PHP Code:
<!-- vBMS new mail notification -->

and

<!-- / 
vBMS new mail notification --> 
Save it.

Step 5

Go back to the vbms module you created earlier and now turn it on. Check your site, you should now see the new block where you placed it.

If you do not see a # in the 'You have # messages that have not been read', check your require_once path and the code you put in at step 3.

That's it.

*Advanced Users*

Phlogiston pointed out to me earlier today that the queries in step 3 could also be placed in the vbms_frontend_init.php file, thereby allowing you to expand upon it to get further info, such as folders, subject previews, etc. So if you want, you can instead place the queries in that file just above the ?> closing tag.

Once again, I wanted to give credit and thanks to Filburt his help and patience.

And to my co-author who made me realize how stupid some mistakes can really be, Phlogiston.

Show Your Support

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

Comments
  #2  
Old 06-10-2005, 07:34 AM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try to support this as best as I can considering this is pretty much my first mod I have written.
Reply With Quote
  #3  
Old 07-15-2005, 02:42 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! I was wondering how to do this myself.
Reply With Quote
  #4  
Old 07-23-2005, 06:32 PM
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Location: Wales, UK.
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Jaxx,

Are you able to support this mod? There are a couple of things i've noticed and would like:

[1] The message You have messages that have not been read. always appears regardless of if you have any unread messages or not. Even appears if you don't have any mail at all.

[2] Instead of giving the total number of messages, can this be changed to a total of new messages only.

Hope you can help.

Paul
Reply With Quote
  #5  
Old 07-23-2005, 10:07 PM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm. I will have to look into that.

Its been a number of months since this was released and don't recall seeing that.

It should actuall look like the attachment when you have new mail.

It should say 0 when there is no new mail.
Reply With Quote
  #6  
Old 07-23-2005, 10:20 PM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, looking over my code on my site, its exactly as described above.

Only difference is I opted to have mine in the vbms_frontend_init.php file. Just do step 3 in the named file and paste it above the closing ?>

Let me know.
Reply With Quote
  #7  
Old 07-24-2005, 07:49 AM
trancetopia trancetopia is offline
 
Join Date: Feb 2005
Location: Wales, UK.
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Jaxx,

Big thanks for helping me with this.

I've made the change to vbms_frontend_init.php but I still get the same problem.

The 1st attachment shows me what I have when I have 3 read messages.

I have sent myself an email and in the vbms.php screen it show I have a new mail to bring it to a total of 4. The second attachment shows the I have 4 emails but no change to first text in the block.

Any ideas? Just to note I am using v2 of the vbms.

Thanks.
Reply With Quote
  #8  
Old 08-12-2005, 05:24 PM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm. V2, i think i'm still on v1, never got an email about any releases after he said he was going to stop.
Reply With Quote
  #9  
Old 08-12-2005, 06:25 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxx
Hm. V2, i think i'm still on v1, never got an email about any releases after he said he was going to stop.
me neither- there was an update? 2.0 has been out for awhile... 2.0.1 is what we have been waiting for, and the last I heard the new developer that had been brought onboard didn't work out, and there hasn't been any further development on vbms due to filburt1 being upset about people warezing his work.
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 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06517 seconds
  • Memory Usage 2,307KB
  • Queries Executed 22 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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