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

buiquockhanh 04-04-2010 09:27 AM

I have created the correct path to mail.swf.But it is not..You can pm yahoo: buiquockhanh276

basilrath 04-04-2010 09:45 AM

Quote:

Is this hack negative for the performance?
Not on my site and others i have it on as its only there until you read pm

Quote:

I have created the correct path to mail.swf.But it is not..You can pm yahoo: buiquockhanh276
Resolved

basilrath 04-04-2010 10:36 AM

in what way do you want to adjust?

buiquockhanh 04-04-2010 10:36 AM

how to adjust sound swf

Dr.osamA 04-04-2010 10:40 AM

good work

installed + 5 Stars

http://www.alra7ba.info/zip/you-got-mail.swf

http://www.alra7ba.info/zip/mail2.swf

thanxxx

basilrath 04-04-2010 10:57 AM

Nice one

sulasno 04-04-2010 10:58 AM

what do I do with you-got-mail.fla ?

basilrath 04-04-2010 10:58 AM

Quote:

Originally Posted by sulasno (Post 2015538)
what do I do with you-got-mail.fla ?

Nothing if your path to your private.php is

www.yoursite.com/forum/private.php

as the relevant path in the fla is set to link straight to your members inbox

sulasno 04-04-2010 02:13 PM

thanks and installed

steve1966 04-04-2010 10:08 PM

Hello my path shows forums not forum so what do i need to change and how do i do it thanks

basilrath 04-04-2010 10:16 PM

hia

firstly change the path to the swf to suit your forums of the two instances that say "/path-to-your/you-got-mail.swf" in red

the green is just the positioning which you can leave

<!-- 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 -->

then change the fla path to your private.php path - if you havnt any idea how to edit an fla then tell me your forum path first

if you still have a problem ill edit the fla to suit your board so it works.

sulasno 04-05-2010 06:50 AM

this Mod is not working in the default style but it's working in another style;
I wonder why ?

edit

found the cause; me bad lol

steve1966 04-05-2010 06:56 AM

Quote:

Originally Posted by basilrath (Post 2015832)
hia

firstly change the path to the swf to suit your forums of the two instances that say "/path-to-your/you-got-mail.swf" in red

the green is just the positioning which you can leave

<!-- 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 -->

then change the fla path to your private.php path - if you havnt any idea how to edit an fla then tell me your forum path first


if you still have a problem ill edit the fla to suit your board so it works.

hello i sent you a pm if could please edit the file for me thanks

basilrath 04-05-2010 07:49 AM

Ok steve.......... having looked at your board root you need the following code added. I will edit the fla for you so the link gets your private.php. I will edit the fla to suit "forums" and attatch the file asap.

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="http://www.shareme.org/forums/you-got-mail.swf" 
width="150" height="250"
<
param name="movie" value="http://www.shareme.org/forums/you-got-mail.swf" /> 
<
param name="quality" value="high"/> 
<
param name="wmode" value="transparent"/> 
</
object
</
vb:if> 
<!-- 
end of mail --> 

The mod now has the attatched "you-got-mail.swf" to suit your board being "forums" so anyone who's board has "forums" rather than "forum" choose the relevant zip.

Hope this fixes the problem Steve

YankForum 04-05-2010 01:08 PM

very nice
thnx 4 sharing :)
installed in 30 seconds with no problem

DJPushpu 04-05-2010 02:11 PM

its not working on my site
i am installed this code but not working
www.dadasongs.com

basilrath 04-05-2010 02:38 PM

With the path your board currently sits on you will need to add the following code to place the swf on site.........

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="www.dadasongs.com/you-got-mail.swf" 
width="150" height="250"
<
param name="movie" value="http://www.dadasongs.com/you-got-mail.swf" /> 
<
param name="quality" value="high"/> 
<
param name="wmode" value="transparent"/> 
</
object
</
vb:if> 
<!-- 
end of mail --> 

This should be fixed

DJPushpu 04-05-2010 04:04 PM

Quote:

Originally Posted by basilrath (Post 2016195)
With the path your board currently sits on you will need to add the following code to place the swf on site.........

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="www.dadasongs.com/you-got-mail.swf" 
width="150" height="250"
<
param name="movie" value="http://www.dadasongs.com/you-got-mail.swf" /> 
<
param name="quality" value="high"/> 
<
param name="wmode" value="transparent"/> 
</
object
</
vb:if> 
<!-- 
end of mail --> 

This should be fixed

its working but after click image url go to http://www.dadasongs.com/forum/private.php
when the my url is http://www.dadasongs.com/private.php
how solve it ????

basilrath 04-05-2010 07:04 PM

1 Attachment(s)
Quote:

its working but after click image url go to http://www.dadasongs.com/forum/private.php
when the my url is http://www.dadasongs.com/private.php
how solve it ????

ok download the zip i have attatched in this post. I have edited the fla file to suit your board. Simply upload to your froum and overwrite the one you used previously. everything else is the same.

DJPushpu 04-06-2010 03:11 AM

Quote:

Originally Posted by basilrath (Post 2016363)
ok download the zip i have attatched in this post. I have edited the fla file to suit your board. Simply upload to your froum and overwrite the one you used previously. everything else is the same.

Thanks Bro
its working:)

steve1966 04-06-2010 09:52 AM

Quote:

Originally Posted by basilrath (Post 2016034)
Ok steve.......... having looked at your board root you need the following code added. I will edit the fla for you so the link gets your private.php. I will edit the fla to suit "forums" and attatch the file asap.

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="http://www.shareme.org/forums/you-got-mail.swf" 
width="150" height="250"
<
param name="movie" value="http://www.shareme.org/forums/you-got-mail.swf" /> 
<
param name="quality" value="high"/> 
<
param name="wmode" value="transparent"/> 
</
object
</
vb:if> 
<!-- 
end of mail --> 

The mod now has the attatched "you-got-mail.swf" to suit your board being "forums" so anyone who's board has "forums" rather than "forum" choose the relevant zip.

Hope this fixes the problem Steve

thanks that worked brilliant thank you

labrador083 04-06-2010 06:38 PM

Quote:

Originally Posted by basilrath (Post 2016363)
ok download the zip i have attatched in this post. I have edited the fla file to suit your board. Simply upload to your froum and overwrite the one you used previously. everything else is the same.

Then I get to have the same url as you have done for this post, but with http://www.alra7ba.info/zip/mail2.swf
My site is http://www.mysite.com/private.php
Thank you in advance
Sorry for my English, I'm french

basilrath 04-07-2010 08:11 AM

Then your code would be the following:

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="http://www.alra7ba.info/mail2.swf"  
width="150" height="250">  
<
param name="movie" value="http://www.alra7ba.info/mail2.swf" />  
<
param name="quality" value="high"/>  
<
param name="wmode" value="transparent"/>  
</
object>  
</
vb:if>  
<!-- 
end of mail --> 

That is after you have unzipped the mail2.swf of course.

Then you should be fine

sulasno 04-07-2010 08:42 AM

is there an update to this Mod ?

btw this Mod does not work in Safari

basilrath 04-07-2010 12:00 PM

I will look into asap

labrador083 04-08-2010 02:04 PM

Quote:

Originally Posted by basilrath (Post 2017316)
Then your code would be the following:

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="http://www.alra7ba.info/mail2.swf"  
width="150" height="250">  
<
param name="movie" value="http://www.alra7ba.info/mail2.swf" />  
<
param name="quality" value="high"/>  
<
param name="wmode" value="transparent"/>  
</
object>  
</
vb:if>  
<!-- 
end of mail --> 

That is after you have unzipped the mail2.swf of course.

Then you should be fine

Thank you, but we we are misunderstood.
its working but after click image url go to http://www.mysite.com/forum/private.php
when the my url is http://www.mysite.com/private.php
You can edit the .fla of mail2.swf.
Thank you

basilrath 04-08-2010 03:06 PM

1 Attachment(s)
labrador083............

sorry my fault .......... edited fla and attactched new swf for you to use. Overwrite swf and private.php url will be fine

labrador083 04-08-2010 04:56 PM

Quote:

Originally Posted by basilrath (Post 2017959)
labrador083............

sorry my fault .......... edited fla and attactched new swf for you to use. Overwrite swf and private.php url will be fine

Many thanks te verser ta gentillesse

basilrath 04-09-2010 05:57 AM

Quote:

Originally Posted by sulasno (Post 2017324)
is there an update to this Mod ?

btw this Mod does not work in Safari


Safari 4 is fine .......

ie fine

firefox fine

Toxic2 04-10-2010 07:04 AM

Gads I can't get this to show up LOL arggh I like the mailbox LOL I am using the Simple Black Theme, sent you a PM on it


All times are GMT. The time now is 06:28 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.01717 seconds
  • Memory Usage 1,891KB
  • 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
  • (9)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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