Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
New PM Notification Details »»
New PM Notification
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 08-14-2006 Last Update: Never Installs: 386
 
No support by the author.

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>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-18-2006, 08:30 PM
ktp101 ktp101 is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice touch.

installed.
Reply With Quote
  #23  
Old 08-19-2006, 04:03 AM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about changing the cells background color too?
Reply With Quote
  #24  
Old 08-19-2006, 01:13 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 08-19-2006, 09:01 PM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #26  
Old 08-19-2006, 10:10 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 08-19-2006, 10:13 PM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My intent only.
Reply With Quote
  #28  
Old 08-19-2006, 11:07 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 08-19-2006, 11:31 PM
Robbed Robbed is offline
 
Join Date: Oct 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it
Reply With Quote
  #30  
Old 08-26-2006, 07:35 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #31  
Old 08-26-2006, 07:35 PM
jdk10 jdk10 is offline
 
Join Date: Apr 2005
Location: Florida
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:26 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.04442 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete