vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - New Notification Image (https://vborg.vbsupport.ru/showthread.php?t=166124)

ericgtr 12-24-2007 10:00 PM

New Notification Image
 
Now that we have notifications, I have modified my previous New PM hack to go along with the new setup. This will display when ever there is a new PM or Notification to grab the users attention.

In the navbar template find:
Code:

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
</td>

Add this right under:
Code:

<if condition="$show['notifications']">
<td class="alt2" valign="top" nowrap="nowrap">
<img src="$stylevar[imgdir_misc]/notification.jpg" alt="You have a new Notification" border="0"></a>
</td>
</if>

Upload the attached "notification.jpg" to your /images/misc directory

~Please click Install if you use this~

SwollenCranium 12-25-2007 09:01 PM

What Jpg ?

SwollenCranium 12-25-2007 09:12 PM

Quote:

Originally Posted by Mike-D (Post 1409051)
That pic what is in his first Post. What else :)


I was hoping it wasn't that ...:eek:

** Joking ^^ of course I know I can change the pic.

ericgtr 12-25-2007 09:12 PM

Quote:

Originally Posted by SwollenCranium (Post 1409057)
I was hoping it wasn't that ...

Yeah, it's sort of hard to notice that it's separated from the screenshot.

Hornstar 12-27-2007 10:17 AM

Thanks, I was waiting for this to be released since vbulletin changed there minds in doing it.

Question tho, when a user has no pms, or no notifications, what is displayed then? (hopefully something is still displayed. Thanks.

ericgtr 12-27-2007 03:36 PM

Quote:

Originally Posted by hornstar1337 (Post 1410038)
Thanks, I was waiting for this to be released since vbulletin changed there minds in doing it.

Question tho, when a user has no pms, or no notifications, what is displayed then? (hopefully something is still displayed. Thanks.

It's based on a condition that you have a notification, so if there are no notifications it doesn't display anything, just the default. :)

nerofix 01-02-2008 08:52 PM

you should fix your code, there it's a .gif but you say we should upload the .jpg :)

ericgtr 01-03-2008 01:56 PM

Quote:

Originally Posted by nerofix (Post 1414104)
you should fix your code, there it's a .gif but you say we should upload the .jpg :)

Changed, thanks.

Aziz Elkbiry 01-03-2008 10:11 PM

thank you

Howell 01-06-2008 08:39 PM

I changed the image into a flashing gif image and used that instead as it makes the user more aware of the notification.

slmoney 01-06-2008 11:54 PM

that flash is awesome...

I also have added the <a href="http://www.yourforum.com/private.php"> before the image..so they can click the image and it opens the private message page.

Howell 01-07-2008 04:22 PM

Quote:

Originally Posted by slmoney (Post 1416838)
that flash is awesome...

I also have added the <a href="http://www.yourforum.com/private.php"> before the image..so they can click the image and it opens the private message page.

Unfortunately that link will not be valid if there is a different notification.

A Profile visitor message for example. ;)

ericgtr 01-11-2008 09:45 PM

What I have done is just linked it to my User CP. It will display any new notification items all in one place.

BoredOutOfMyMin 01-20-2008 10:41 PM

Nice Mod.

I was tempted to put that monkey avatar as the image on the left side!

Derekclarke 01-28-2008 10:47 PM

Great Thanks.... :)

Could you edit this to display an Image when their is no notifications, and then display another when their is?

I would like to use a mail box Image.... when no notifications its just normal... but when their is a notification the flag is displayed....

I have used a Gif file for now with the popup flag when their is a notification...
But would look great if i could have the mail box all the time.

Thanks
Derek

aj8690 02-01-2008 02:16 PM

Thanks. Is there any way to link this image so it has a drop-down of all the notifications, like the "Your Notifications" link? Here is the image I made for this; feel free to use it yourself. :)

Thanks.

Teknik4 02-03-2008 05:52 PM

Nice :) Thanks.

Rich 02-08-2008 12:54 PM

Quote:

Originally Posted by Derekclarke (Post 1431228)
Great Thanks.... :)

Could you edit this to display an Image when their is no notifications, and then display another when their is?

I would like to use a mail box Image.... when no notifications its just normal... but when their is a notification the flag is displayed....

I have used a Gif file for now with the popup flag when their is a notification...
But would look great if i could have the mail box all the time.

Thanks
Derek

Just do this Derek:

Code:

<if condition="$show['notifications']">
<td class="alt2" valign="top" nowrap="nowrap">
<img src="$stylevar[imgdir_misc]/notification.jpg" alt="You have a new Notification" border="0" /> </a>
<else />
<img src="$stylevar[imgdir_misc]/nonotification.jpg" alt="You have no new notifications" border="0" />
</td>
</if>

If there is a new notification, it will display the notification.jpg. If there isn't, it will display the nonotification.jpg.

Derekclarke 02-09-2008 10:22 AM

Thanks Rich..... :)

However their is a problem.....

The No notification image appears in the wrong place....

See attached Image

Jase2 02-10-2008 02:45 PM

Try:
Code:

<if condition="$show['notifications']">
<td class="alt2" valign="right" nowrap="nowrap">
<img src="$stylevar[imgdir_misc]/notification.jpg" alt="You have a new Notification" border="0" /> </a>
<else />
<img src="$stylevar[imgdir_misc]/nonotification.jpg" alt="You have no new notifications" border="0" />
</td>
</if>

Regards Jason :)

Derekclarke 02-11-2008 06:06 PM

Nope still in the same place.....

Rich 02-12-2008 07:28 PM

Sorry, this should fix it:

Code:

<td class="alt2" valign="top" nowrap="nowrap">
<if condition="$show['notifications']">
<img src="$stylevar[imgdir_misc]/notification.jpg" alt="You have a new Notification" border="0" /> </a>
<else />
<img src="$stylevar[imgdir_misc]/nonotification.jpg" alt="You have no new notifications" border="0" />
</if>
</td>

I was in a hurry and only had the td showing if there was a notification.

Derekclarke 02-23-2008 08:18 PM

Yep That done it Thanks...

It looks Great. :)

yaoren 04-21-2008 09:10 PM

OH I love this, ty ty!

yaoren 04-21-2008 09:42 PM

Somehow I couldn't edit my previous post.

Anyhow this works fine as you can see although it forced my credits off. How can I fix this?

Attachment 79075

*Edit - sorted it out, sorry!

dannykilla 05-06-2008 11:47 AM

Would this work with the Sound Notification hack?

LorraineMc 05-07-2008 01:44 PM

Thank you have installed...this is so cute....I really wanted to use your avatar for the notification image. (I think that image is so cute for this) is there away to move the image to the left of the notification box rather then to the right? (I am not handy dandy with code so I don't want to play to much....I did try valign=left but that doesn't work) can you tell me an easy solution?

Thanks aj8690 for your image, as I am using that one right now and it works perfect

LorraineMc 05-08-2008 07:28 AM

I really hope you don't mind but i mirrored the image and converted it back to a gif and am using this as my notification image and wanted to share it back here...thank you again for this great mod.
Attachment 80132

Replicators 05-08-2008 08:16 PM

Here is what i am using, feel free to use them if you want, i didn't make em.

racechick20 06-13-2008 01:19 PM

Hey there, Ericgtr.

Thank you for a great little mode. I love it and I desperately want to use it but can I get it to work? Can I cocoa. I am using a custom skin and would have to use this in part of the side bar. I think it has to go in here somewhere, with a little editing, but what ever I do and however I try, I break the design. My image is 26x26 pixels. I've attached it, it's one I made so if anyone wants it - feel free. :)

PHP Code:

<div class="lbh">Quick Member Login:</div>
<
div class="lb">
    <if 
condition="$show['member']">
            <
div class="smallfont">
            <
span class="lbi"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></span><br />
            <
phrase 1="$pmbox[lastvisitdate]2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
            <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><br></if>
            <if 
condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
        </
div>
    <else /> 

Any ideas of how I could include this? I don't mind it being at the top or on a seperate line. Here's a screen shot of where it should go. And all this is part of the header template.

racechick20 06-13-2008 02:10 PM

Quote:

Originally Posted by racechick20 (Post 1548390)
Hey there, Ericgtr.

Thank you for a great little mode. I love it and I desperately want to use it but can I get it to work? Can I cocoa. I am using a custom skin and would have to use this in part of the side bar. I think it has to go in here somewhere, with a little editing, but what ever I do and however I try, I break the design. My image is 26x26 pixels. I've attached it, it's one I made so if anyone wants it - feel free. :)

PHP Code:

<div class="lbh">Quick Member Login:</div>
<
div class="lb">
    <if 
condition="$show['member']">
            <
div class="smallfont">
            <
span class="lbi"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></span><br />
            <
phrase 1="$pmbox[lastvisitdate]2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
            <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><br></if>
            <if 
condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
        </
div>
    <else /> 

Any ideas of how I could include this? I don't mind it being at the top or on a seperate line. Here's a screen shot of where it should go. And all this is part of the header template.

I fixed it! I had to use this:

PHP Code:

<!----Notification warning icon---->
<if 
condition="$show['notifications']">
<
img src="$stylevar[imgdir_misc]/notification.gif" alt="You have a new Notification" border="0"></a>
</if>
<!---- / 
Notification icon----> 

But I had left a </td> in there and that broke the design. D'oh!!

steve1966 06-25-2008 12:03 PM

thanks

PoetJA-1975 06-26-2008 11:29 AM

Thanx ;)

Jacquii.

Quantnet 06-28-2008 07:28 AM

can we have a transparent image to be used in dark styles?

PoetJA-1975 06-28-2008 02:05 PM

Should be able to use on any background.
Enjoy the following animated gifs in size 24px & 32 px

mA|tRiX 07-04-2008 07:22 AM

Thank you. :) Works fine. :)

Mike Gaidin 07-05-2008 08:26 PM

Nice addition. Thanks!

star88 07-08-2008 12:30 AM

thanks Eric for the mod,
and thanks to jacquii too, for the gif.
marked as installed.

PoetJA-1975 07-08-2008 07:15 AM

You're welcome ;)

Jacquii.

Artes_Marciales 07-27-2008 10:10 AM

*installed*

How to use same color...
http://img144.imageshack.us/img144/9869/captureoo1.jpg


All times are GMT. The time now is 07:13 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.01317 seconds
  • Memory Usage 1,852KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)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