vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   New PM Notification (https://vborg.vbsupport.ru/showthread.php?t=124056)

ericgtr 08-14-2006 10:00 PM

New PM Notification
 
I've decided to upgrade my existing Flashing Envelope mod and change it around a little for 3.6. To see how it will look, checkout the screen shot.

Upload the attached image newpm.gif to your images/misc directory.

In the navbar template
Find:
Code:

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

Place Under: (be sure to change to your forum path to /forum/private.php)
Code:

<if condition="$bbuserinfo['pmunread']">
                <td class="alt2" valign="top" nowrap="nowrap">
        <a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
                </td>
        </if>


Mith 08-15-2006 09:18 PM

BTW,

As it doesn't state, it is the NAVBAR template that you need to edit.

Well done Eric, very nice mod!

*Installed*

ericgtr 08-15-2006 09:21 PM

Doh! Thanks, updated. :)

pauloo 08-15-2006 09:37 PM

Nice thank you !

Roxie 08-15-2006 10:31 PM

no icon?

Roxie 08-15-2006 10:41 PM

I'm blind. :)

StuntFactoryX 08-15-2006 11:39 PM

thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.

o0Hubba0o 08-16-2006 02:35 AM

Quote:

Originally Posted by StuntFactoryX
thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.

Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.

ericgtr 08-16-2006 02:48 AM

Quote:

Originally Posted by o0Hubba0o
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.

Cool, thanks. I've also added a note to change the path. :)

Nachtfalke 08-16-2006 11:39 AM

Nice one *klicks install* Perhaps there could be a little tweaking for the alt value for the image: It would be perfect, when it shows the Number of unread pms in it.

nedo_a 08-16-2006 11:44 AM

Quote:

Originally Posted by StuntFactoryX
thanks works awesome. i had to edit /private.php to /forums/private.php to get the link to work. thought i throw that out there for some of us noobs.

can you explain me how to do that

ericgtr 08-16-2006 01:03 PM

Quote:

Originally Posted by nedo_a
can you explain me how to do that

Where it says /private.php you will need to put in your forum path, for example if your site is www.yoursite.com/forum it will need to be /forum/private.php

StuntFactoryX 08-16-2006 01:21 PM

is there away to get in in the same box as the other pm info. i use a dark skin and it shows a border like its in its own box next to the standard pm info box.

bashy 08-16-2006 02:08 PM

Very nice...installed again

alwafi 08-17-2006 02:55 AM

Hello ericgtr

It's very Nice thanks for sharing

alwafi

Mr Chad 08-17-2006 05:19 PM

very nice... Installed

harmor19 08-17-2006 06:38 PM

This
HTML Code:

<a href="/forum/private.php?$session[sessionurl]">
Can just be
HTML Code:

<a href="private.php?$session[sessionurl]">

ericgtr 08-17-2006 06:45 PM

Quote:

Originally Posted by harmor19
This
HTML Code:

<a href="/forum/private.php?$session[sessionurl]">
Can just be
HTML Code:

<a href="private.php?$session[sessionurl]">

Only if you are running your forum root on the public_html root. That's why I specified to change it to the specific folder the board is in.

Terminatoronly 08-18-2006 09:22 AM

thanks alot working fine for me :)

Snake 08-18-2006 11:38 AM

I kinda like it. Thanks!

ktp101 08-18-2006 08:30 PM

nice touch. :D

installed.

jdk10 08-19-2006 04:03 AM

How about changing the cells background color too?

ericgtr 08-19-2006 01:13 PM

Quote:

Originally Posted by jdk10
How about changing the cells background color too?

Well, I think this will work (untested)

Change this:
Code:

<if condition="$bbuserinfo['pmunread']">
                <td class="alt2" valign="top" nowrap="nowrap">
        <a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
                </td>
        </if>

To this:

Code:

<if condition="$bbuserinfo['pmunread']">
                <td class="pmbg" valign="top" nowrap="nowrap">
        <a href="/forum/private.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/newpm.gif" alt="You have a new PM" border="0"></a>
                </td>
        </if>

Now, add this to your CSS by going to Style Manager > Main CSS and scroll to the very bottoms, then paste this into the bottom box of the Additional CSS Definitions:

Code:

.pmbg
{
        background-color: #FFFFFF;
        color: #000000;
}

Change the colors around to fit.

jdk10 08-19-2006 09:01 PM

ericgtr thanks for the assistance. I ended up reviewing the syntax of the code and wrote my own. I was able to come up with the following which is tested and works with vb 3.6.0


Code:

<if condition="$bbuserinfo['pmunread']">
        <td class="pmbg" valign="top" nowrap="nowrap">
<else />
        <td class="alt2" valign="top" nowrap="nowrap">
</if>


ericgtr 08-19-2006 10:10 PM

Quote:

Originally Posted by jdk10
ericgtr thanks for the assistance. I ended up reviewing the syntax of the code and wrote my own. I was able to come up with the following which is tested and works with vb 3.6.0


Code:

<if condition="$bbuserinfo['pmunread']">
        <td class="pmbg" valign="top" nowrap="nowrap">
<else />
        <td class="alt2" valign="top" nowrap="nowrap">
</if>


There's no link to the image or to private.php in that code though, which is fine if that's your intention, all it will do is change the cell color.

jdk10 08-19-2006 10:13 PM

My intent only.

ericgtr 08-19-2006 11:07 PM

Quote:

Originally Posted by jdk10

LOL.. alrighty then. Basically, you've taken the code I've given you and called it your own. Cool by me because it's easy for anyone who knows a little about this stuff, but overall not very cool to take credit for it.

Robbed 08-19-2006 11:31 PM

I like it

o0Hubba0o 08-26-2006 07:35 PM

Quote:

Originally Posted by ericgtr
Quote:

Originally Posted by o0Hubba0o
Yeah, I had to add that too, I would assume most forums would have it like that.

Also to keep in the old theme of the "blinking" notice, I made these real quick if anyone wants to use them, just rename it by taking of the number.

Cool, thanks. I've also added a note to change the path. :)

No problem, was going to get this for another skin I added and couldn't find, forgot to click install heh. So...
[high]* o0Hubba0o clicks install lol.[/high]

jdk10 08-26-2006 07:35 PM

Quote:

Originally Posted by ericgtr
LOL.. alrighty then. Basically, you've taken the code I've given you and called it your own. Cool by me because it's easy for anyone who knows a little about this stuff, but overall not very cool to take credit for it.

To change a bg color. Wow. Like you said anyone who knows a little about VB could do it. You didn't write anything about checking for the new PM or anything. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.

ericgtr 08-27-2006 02:44 AM

Quote:

Originally Posted by jdk10
You didn't write anything about checking for the new PM or anything.

Uh.. Try looking at the first post, which you've abviously already done. Also .pmbg is what I shared with you here at your request and is what you are also using. Whatever dude, way to create your first mod.

Erox 08-31-2006 08:32 PM

SWEET! We had this function in our 3.5 version and we just upgraded and never bothered putting it back. I like yours much better too!

redlabour 09-22-2006 10:06 PM

It was nice if one Bug was fixed :

Some PMs are not displayed as new PMs with this Hacks.

1. Any Welcome-PM from vBulletin.

2. Any PM that was send with this Hack - Admin Mass PM Members

category 09-23-2006 06:10 PM

nice hack

user02934123123 09-25-2006 04:29 PM

Excellent and simple mod. Well worth the install. Many thanks.

dieselpowered 10-13-2006 07:15 PM

Looks great...I think I will have to give it a try!

Thanks :)

Red Matrix 10-19-2006 09:25 PM

Thinking about installing this!

EDIT: I did, I did!

PassLab.net 10-20-2006 10:28 PM

sweet,

passlab.net installed ;)

sorry01 11-10-2006 07:06 AM

It's very Nice thanks 3.6.3 working

sunnycher 11-14-2006 02:20 AM

Cute! Installed!! Thank you!


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.01511 seconds
  • Memory Usage 1,821KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_html_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