vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vB Blinking Evelope on PM (https://vborg.vbsupport.ru/showthread.php?t=96221)

adamgessel 09-13-2005 10:00 PM

vB Blinking Evelope on PM
 
This hack should work for every Release Candidate version.

=============
DEMO BOARD
=============
Demo board is located at: http://www.forumfreedom.net/
Feel free to visit.

=============
DESCRIPTION
=============
This hack is very simple: it adds a blinking envelope to your forum if you have a new private message, making it easier to know if you have a new private message. This actually came from a request from the 3.5 modification request forum.

=============
INSTALLATION
=============
Difficulty: Easy
Time: Less than a minute

PLEASE CLICK INSTALL!!!

UPDATE: NO LONGER REQUIRES FILE EDIT.

nexialys 09-14-2005 01:11 AM

sugg: just make the envelop modif in the template, no need to edit the global.php...
Code:

<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']!= 0"><IMG SRC=benvelope.gif></if>
doing so, your edit can be moved to Templates Modifications!

EDIT: changed the $vbulletin-> to bbuserinfo, as it's not parsed correctly in templates... YET!

adamgessel 09-14-2005 01:16 AM

Tried doing that but...

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/adamgess/public_html/forum/includes/adminfunctions_template.php(3510) : eval()'d code on line 42

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

That's why I had to do the template edit... maybe I'll try again later.

adamgessel 09-14-2005 01:19 AM

There... now it doesn't require a file edit.

Tried to do it before but it wasn't working for me.

nexialys 09-14-2005 01:20 AM

i just edited my post... the $vbulletin-> thing is not parsed in templates, i always forget that... now it's working!

Boofo 09-14-2005 02:58 AM

Any pics?

dieselpowered 09-14-2005 05:11 AM

I am confused, 1st post claims that no file edits are required, yet the instructions show to modify global.php as well as edit the navbar template??

Am I missing something, should there be an xml file in the folder?

Boofo 09-14-2005 06:15 AM

You can do the global part as a navbar temple edit.

I'm still using Chen's old vb2 one that uses js and it works fine. ;)

GrendelKhan{TSU 09-14-2005 07:53 AM

er... now I'm confused. do we need to edits or not?

Andreas 09-14-2005 07:28 PM

According to the ZIP - yes.

@adamgesel
Could you please update the ZIP to make this a Template Modification so it can be moved to the correct Forum?
Thanks.

Delphiprogrammi 09-25-2005 12:42 PM

Quote:

Originally Posted by Boofo
Any pics?

that envelope jumps up and down nice nice

lairnoc 09-25-2005 07:25 PM

Quote:

UPDATE: NO LONGER REQUIRES FILE EDIT.
sorry but if i dl the file still needs a file edit...

Andreas 09-26-2005 09:31 AM

Here is the Template edit

In template navbar
FIND
Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>

REPLACE that WITH:
Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']">img src="$stylevar[imgdir_misc]/benvelope.gif" width="18" height="16" alt="" /></if><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>

Upload benvelope.gif to images/misc

deathemperor 09-26-2005 10:25 AM

you missed a < before img tag, below is the correct version
HTML Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']"><img src="$stylevar[imgdir_misc]/benvelope.gif" width="18" height="16" alt="" /></if><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>


o0Hubba0o 10-02-2005 04:46 AM

Would it be possible to get ONE person to post everything we need to do for this? All the posts saying you can or cant or should do it this way and they're all different from what's in the zip.

Delphiprogrammi 10-02-2005 08:04 AM

Quote:

Originally Posted by o0Hubba0o
Would it be possible to get ONE person to post everything we need to do for this? All the posts saying you can or cant or should do it this way and they're all different from what's in the zip.

open template navbar find $pmbox variable

replace with

HTML Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']"><img src="$stylevar[imgdir_misc]/benvelope.gif" width="18" height="16" alt="" /></if><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>

upload the benvelope.gif image to /forum/images/misc

done

Vizionz 10-03-2005 06:18 PM

i liked the old blinking text on pm firget the image just make the text blink and i am straight

dsotmoon 10-03-2005 10:48 PM

installed, thanks

thedvs 10-05-2005 07:54 PM

anyone got a blinking transparent gif for dark boards? :)

TygerTyger 10-06-2005 12:31 PM

Very handy mod indeed. I like :D Few suggestions though...

Remove your Thumbs.db file from the zip :D

Locate the envelope image in the images directory by default. Or even images/misc. That's what it's there for ;)

Add a single whitespace after $displetter in the code so it is nicely spaced between the image and the PM message info, and knock IMG and SRC down into lower case (it's good practice!)

What happened to the envelope icon? It looks corrupted mate, there's artifacts all over bumping the filesize way up. You can use mine if you like, I really posted it for thedvs but anyone who wants it can use it. There's a square and slightly rounded version, both about an 8th the filesize of the original.

Thanks for the mod again, it's the samll touches that can make the difference!

Bellinis 10-26-2005 10:40 AM

Thanks for this! :)

I've attached my blinking envelope which we used on our previous board. Very nice one.....

How would the link look like if I would like the envelope to be clickable ?

imported_magjr 10-26-2005 11:27 PM

Very nice, as was stated before, a black one would be great. I have a black skin and white folder lol. At least I KNOW pms will be read, out of sheer annoyance haha.

*clicked install*

totenmaske 10-28-2005 05:03 AM

Would this work in Postbit(I hope that the template I'm thinking of) so that the blinking envelope could be located either by the members name or by the IM icons? It might be more noticable there...

ktaylor 10-31-2005 09:35 PM

I also would really like one that is transparent in the background so that it'll mesh with any background color!

You'll also notice that the width/height needs to be changed to match the size graphic your using! :)

idwf 11-04-2005 08:31 AM

installed...and ... tweaked for my forums.

sensimilla 11-14-2005 01:11 PM

no longer requires file edit ? and whatabout global.php ?

G-Force 199 11-14-2005 01:42 PM

Any live screenshot here ?
The site he gave us has suspended.

davidw 11-14-2005 01:57 PM

<font color="SeaGreen">* christianb clicks install</font>

Gary King 12-08-2005 07:14 PM

A real screenshot would be nice, instead of forcing people to visit your own forums if they want to see the mod in action. Yes, you can make animated GIFs. And yes, your website IS suspended, apparently. And finally, the same effect of this could have been achieved WITHOUT any file modifications. Just use the global_start hook.

Kuimera 12-10-2005 10:07 AM

I added this smooth animation and give it a space between the icon and the "Private message" text.
Dont forget to cahnge the size of it in the template changes to 18 x 11

majorxp 12-15-2005 03:00 PM

installed

Smiry Kin's 12-18-2005 03:39 AM

work with 3.5.2?

99SIVTEC 12-19-2005 09:01 PM

it's a template edit and a file upload, so yes

Smiry Kin's 12-19-2005 09:11 PM

ok thanks, just most RC* things don't work in the the 3.5.2 ( from what i've tried, )

thanks

The Chief 01-09-2006 03:05 AM

installed, works great!!

/me clicks install

YLP1 01-10-2006 01:24 AM

I'm lost ;)

Is the zip file on the first post accurate? If not, which post with code do I use?

Thanks in advance.

bogene2020 01-18-2006 01:48 AM

open template navbar find $pmbox variable

replace with




HTML Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']"><img src="$stylevar[imgdir_misc]/benvelope.gif" width="18" height="16" alt="" /></if><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>

upload the benvelope.gif image to /forum/images/misc

done

silurius 01-19-2006 09:20 PM

Quote:

Originally Posted by bogene2020
open template navbar find $pmbox variable

replace with




HTML Code:

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><if condition="$bbuserinfo['pmunread']"><img src="$stylevar[imgdir_misc]/benvelope.gif" width="18" height="16" alt="" /></if><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>

upload the benvelope.gif image to /forum/images/misc

done

What does this fix? The original steps seem to work OK for me, although the envelope GIF is a little funny-looking (not a show-stopper).

sensimilla 01-24-2006 08:03 AM

Quote:

Originally Posted by silurius
What does this fix? The original steps seem to work OK for me, although the envelope GIF is a little funny-looking (not a show-stopper).


you have to fix those in the code above according to your image size..

Quote:

width="18" height="16"
btw worked fine for me, thanks

bada_bing 01-27-2006 05:01 PM

Installed Great Hack


All times are GMT. The time now is 04:52 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.01443 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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