vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Private Messages Enhancements - Private Messages vb4 like vBulletin.org (https://vborg.vbsupport.ru/showthread.php?t=251957)

abbasbsp 10-10-2010 10:00 PM

Private Messages vb4 like vBulletin.org
 
1 Attachment(s)
Please remember to click Mark as Installed if you use this modification.

install:
to install we do 1 change in (header) template

FIND :
PHP Code:

<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li

ADD BELOW :
PHP Code:

<vb:if condition="$bbuserinfo['pmunread']">
    <
a href="private.php?"><img border="0" src="images/newpm.gif" width="22" height="10"></a>
    </
vb:if> 

and upload "newpm.gif" on your vbroot/images/

YankForum 10-11-2010 05:21 PM

tnx, installed :)

sulasno 10-11-2010 05:39 PM

tagged and thanks

NightLord 10-11-2010 07:04 PM

thank you very much :P:P:P

wolfey 10-12-2010 07:32 PM

Thanks...Works good!

borbole 10-12-2010 07:53 PM

Nice modification. But can you please add the required alt atribute as well at the img tag?

COL NIL SATIS 10-13-2010 01:21 PM

tagged

zonaenlinea 10-13-2010 01:27 PM

for 4.0.7

RickyG 10-13-2010 09:34 PM

where is "images/newpm.gif"?

EDIT ** Got it using FF and DL it from this post

Dr.osamA 10-14-2010 08:16 AM

Excellent = 5 stars

installed

thanxxx

profuae 10-14-2010 03:15 PM

thanks .
nice

duditas 10-15-2010 03:37 PM

Thank you very much!

8thos 10-16-2010 12:56 AM

Cheeeaaaaaaa

abbasbsp 10-18-2010 07:14 AM

thank all

sulasno 10-18-2010 11:05 AM

the image appears below My Profile instead of by the side

OldSchoolDSL 10-23-2010 07:53 PM

Had to re-apply for 4.0.8 (as I reverted back styles), but works flawlessly

cyberchief 10-25-2010 01:40 AM

I was having issues on the placement as well. I added the above mod code right below:
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                                <vb:if condition="$vboptions['enablefacebookconnect']">
                                        {vb:raw facebook_header}
                                </vb:if>

This puts it right next to the notification link. At least in 4.0.8...

COL NIL SATIS 10-28-2010 06:33 PM

Installed..works great ...thanks !!!!!!

OldSchoolDSL 10-28-2010 07:03 PM

Quote:

Originally Posted by cyberchief (Post 2113807)
I was having issues on the placement as well. I added the above mod code right below:
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                                <vb:if condition="$vboptions['enablefacebookconnect']">
                                        {vb:raw facebook_header}
                                </vb:if>

This puts it right next to the notification link. At least in 4.0.8...

Thank. This improved the layout issue I had with 4.0.8 , but I would suggest adding the mod code to it 1 more line down under the
Code:

</url>
This will make sure that this mod is not mistakenly added into the Facebook URL

PossumX 11-07-2010 07:51 PM

1 Attachment(s)
Well, this placement seems to get fouled up when Facebook connect is being used.

In order to remedy the placement and have it show properly on my forum:

Find:

Code:

<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
Paste Below:

Code:

<vb:if condition="$bbuserinfo['pmunread']">
    <a href="private.php?"><img border="0" src="images/newpm.gif" width="22" height="10"></a>
    </vb:if>

Placement snag:

Attachment 123474

Works perfectly for my site, so I figured I'd pass it along.

abbasbsp 11-08-2010 10:37 AM

thank you

Jaske 11-16-2010 12:59 AM

where's the .gif image at?

Brandon Sheley 11-16-2010 02:28 AM

Quote:

Originally Posted by Jaske (Post 2122271)
where's the .gif image at?

in the first post ;)

mgurain 11-19-2010 11:12 AM

Hi,
thanks ichal_spy,
- Could you please update the code in the first post to reflect the write one,
which have <li></li> ?
- Can you make it a product instead of template modification.

Thanks,,

hardboiled 11-24-2010 12:27 AM

Icon shows up above the username instead of to the left, but it isn't really a problem...

MarceloS 04-04-2011 07:43 PM

Is there a way to tweak this to show a message when someone posted on a subscribed thread?

Like "if condition = new posts on subscribed threads"????

Mo HaRbI 04-29-2011 08:21 PM

Thank you

OldSchoolDSL 11-19-2011 04:21 AM

A classic and still working in

4.1.8 :D

fxdigi-cash 07-07-2014 07:59 PM

I loved this quick code because I used it in the past, and I tested it on the vb4.x.x latest version, and it works of course... :)

john7911 11-05-2014 03:00 PM

Thank you :)

ozzy47 11-06-2014 12:39 AM

For a mod that you don't need to do template edits, use this one, https://vborg.vbsupport.ru/showthread.php?t=315267

chudvs 02-05-2020 08:07 AM

still working in 4.2.5


All times are GMT. The time now is 06:05 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.01994 seconds
  • Memory Usage 1,777KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete