![]() |
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. |
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> EDIT: changed the $vbulletin-> to bbuserinfo, as it's not parsed correctly in templates... YET! |
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. |
There... now it doesn't require a file edit.
Tried to do it before but it wasn't working for me. |
i just edited my post... the $vbulletin-> thing is not parsed in templates, i always forget that... now it's working!
|
Any pics?
|
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? |
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. ;) |
er... now I'm confused. do we need to edits or not?
|
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. |
Quote:
|
Quote:
|
Here is the Template edit
In template navbar FIND Code:
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> Code:
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> |
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> |
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.
|
Quote:
replace with HTML Code:
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> done |
i liked the old blinking text on pm firget the image just make the text blink and i am straight
|
installed, thanks
|
anyone got a blinking transparent gif for dark boards? :)
|
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! |
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 ? |
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* |
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...
|
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! :) |
installed...and ... tweaked for my forums.
|
no longer requires file edit ? and whatabout global.php ?
|
Any live screenshot here ?
The site he gave us has suspended. |
<font color="SeaGreen">* christianb clicks install</font>
|
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.
|
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 |
installed
|
work with 3.5.2?
|
it's a template edit and a file upload, so yes
|
ok thanks, just most RC* things don't work in the the 3.5.2 ( from what i've tried, )
thanks |
installed, works great!!
/me clicks install |
I'm lost ;)
Is the zip file on the first post accurate? If not, which post with code do I use? Thanks in advance. |
open template navbar find $pmbox variable
replace with HTML Code:
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> done |
Quote:
|
Quote:
you have to fix those in the code above according to your image size.. Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|