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)

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.


All times are GMT. The time now is 01:48 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.01401 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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