vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Private Messages Enhancements - Private message Animation (https://vborg.vbsupport.ru/showthread.php?t=239733)

basilrath 04-02-2010 10:00 PM

Private message Animation
 
1 Attachment(s)
This cool little mod will simply enhance and add some fun to your Private Message alert and adds a little flash animation to the bottom right corner of your board. The flash mail box can then be clicked and will redirect to your private message box. Animation is based on forum home page but can easily be added to display on any page required or indeed every page and will dissapear when mailbox is read.

Added new MSN Style Pop up alert box
http://www.tabletennistalk.co.uk/u.jpg

There are three animations you can use. including msn style pop up alert box

If anyone has a different path and needs this altering in the swf and fla please post and i will arrange this asap - thanks

http://www.tabletennistalk.co.uk/forum/table/mail1.jpg

Edit template - FORUMHOME

Find
PHP Code:

{vb:raw footer

After add
PHP Code:

<!-- mail -->
<
vb:if condition="$bbuserinfo[pmunread]">
<
a style="display:scroll;position:fixed;bottom:-40px;right:-20px;" title="Click Here - new message!">
<
object type="application/x-shockwave-flash" 
   
data="/path-to-your/you-got-mail.swf" 
    
width="150" height="250">
     <
param name="movie" value="/path-to-your/you-got-mail.swf" />
   <
param name="quality" value="high"/>
  <
param name="wmode" value="transparent"/>
 </
object>
</
vb:if>
<!-- 
end of mail --> 

Save template

Upload - the relevant swf to your forum root

Note: the flash file target url is based on the relative path of

/forum/private.php although this can be changed via the fla

Demo can be seen via the site ............ HERE

Tested on ie,ff and Safari 4


added alternative swf animated mail character - choose either for your notification

+++ Updated and added "you-got-mail.swf" to suit any board using "forums" in path +++

==============================================

MSN Style Pop up Alert Added to Alert (including sound)

Same idea code below in the same place as above (use this for msn style pop up alert)

PHP Code:

<!-- mail --> 
<
vb:if condition="$bbuserinfo[pmunread]"
<
a style="display:scroll;position:fixed;bottom:1px;left:3px;" title="Click Here - new message!"
<
object type="application/x-shockwave-flash"  
   
data="/path-to-your/msn-popup.swf"  
    
width="148" height="119"
     <
param name="movie" value="/path-to-your/msn-popup.swf" /> 
   <
param name="quality" value="high"/> 
  <
param name="wmode" value="transparent"/> 
 </
object
</
vb:if> 
<!-- 
end of mail --> 

The MSN Alert can be seen on the youtube clip here

http://www.youtube.com/watch?v=S0tz8TWH4MM
(sound not on video clip)

or login on
username: msn
password: pass123
use the demo-mods stlye at the bottom of site to view test message


path to private.php is set at: /forum/private.php
(The fla is attatched also if the path needs changing on msn-popup.swf)



Mark Installed

rmxs 04-03-2010 04:50 PM

Thanks :)

rmxs 04-03-2010 05:02 PM

You have set wrong path to the swf file :)

path is forum/private.php if you use different path is not possible to access the private.php

And there is no .fla

Kolbi 04-03-2010 05:45 PM

Is this hack negative for the performance?

basilrath 04-03-2010 05:45 PM

load the swf as you wish

<!-- mail -->
<vb:if condition="$bbuserinfo[pmunread]">
<a style="display:scroll;position:fixed;bottom:-40px;right:-20px;" title="Click Here - new message!">
<object type="application/x-shockwave-flash"
data="/path-to-your/you-got-mail.swf"
width="150" height="250">
<param name="movie" value="/path-to-your/you-got-mail.swf" />
<param name="quality" value="high"/>
<param name="wmode" value="transparent"/>
</object>
</vb:if>
<!-- end of mail -->

aslong as it loads to forumhome - the fla is edited to /forum/private.php so it gets the url from that

DISLEX 04-04-2010 01:13 AM

:( That scared the crap out of me.

Hahaha

buiquockhanh 04-04-2010 01:29 AM

not work 4.0.2 :(
Here is the code I added

Code:

<!-- mail -->
<vb:if condition="$bbuserinfo[pmunread]">
<a style="display:scroll;position:fixed;bottom:-40px;right:-20px;" title="Click Here - new message!">
<object type="application/x-shockwave-flash"
data="mail.swf"
width="150" height="250">
<param name="movie" value="mail.swf" />
<param name="quality" value="high"/>
<param name="wmode" value="transparent"/>
</object>
</vb:if>
<!-- end of mail -->


basilrath 04-04-2010 08:50 AM

you changed the red paths to suit your swf file ? yes

That will place the swf on the forumhome page. you can change the position via the green code

<!-- mail -->
<vb:if condition="$bbuserinfo[pmunread]">
<a style="display:scroll;position:fixed;bottom:-40px;right:-20px; " title="Click Here - new message!">
<object type="application/x-shockwave-flash"
data="/path-to-your/you-got-mail.swf"
width="150" height="250">
<param name="movie" value="/path-to-your/you-got-mail.swf" />
<param name="quality" value="high"/>
<param name="wmode" value="transparent"/>
</object>
</vb:if>
<!-- end of mail -->

if the url linking from the swf needs changing you can do it via the fla attatched or pm me ill change it for you

it is currently set assuming your board is

www.yoursite.com/forum/private.php

buiquockhanh 04-04-2010 09:11 AM

you can see for yourself what template forumhome?

basilrath 04-04-2010 09:17 AM

i see you renamed the swf to "mail" and is the path correct to the swf?

whats the path to your board - forumhome


All times are GMT. The time now is 10:37 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.01445 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete