The Arcive of vBulletin Modifications Site. |
|
[Mini-hack] Intelligent Private Messaging Alert... Details »»
|
|||||||||||||||||||||||||||
|
[Mini-hack] Intelligent Private Messaging Alert...
Developer Last Online: Feb 2013
Please do the following before attempting to install:
1.) Backup your Files before doing anything 2.) Be aware that although I have tested this myself, there may still be problems...If you do not backup your files, I cannot condone your install of this hack... 3.) If you want to Backup your Database, You can - There shouldn't be any need to... The file you should have is: install_pmimprovement_txt.php Install Info: Hack Version: 1.0 Files to edit: 1 Templates to add: 0 Templates to edit: 1 Queries to Run: 0 Time to install: Approx 1-2 Minutes Credits Requested by - Noone Support - I unfortunately cannot be here during the coming weeks (Mon-Fri), so therefore you will have to rely on others for assitance, should it be urgent...If you do require assitance, please - Only reply in this thread!! Hack info What does it do? - Basically, this makes the call for the "forumhome_pmloggedin" template act more intelligently, and tell you if you have 1 message, that you have 1 message not 1 message(s) Additional Info/Updates This is really only a Mini-Hack, and something I feel should have already been done for the Private Messaging system. Screenshots/Live Demo Thanks to corsacrazy for providing the following screenshots... 1 New Private Message (on index.php) 2 New Private Messages (on index.php) Enjoy! ![]() Satan Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Hehe sounds quite cool
![]() [high]* Mist waits for the screenshots ![]() [/high] - miSt |
|
#3
|
||||
|
||||
|
i have various other pm hacks installed so how would i go about adding your code to make this work ? here is what i have in index.php
PHP Code:
|
|
#4
|
||||
|
||||
|
@corsacrazy -
Replace (in your code above): Code:
if ($newpm['messages']==0) {
$lightbulb='off';
} else {
$lightbulb='on';
Code:
if ($newpm['messages']==0) {
$lightbulb='off';
} else {
$lightbulb='on';
}
if (($newpm['messages']==0) and ($unreadpm['messages']==0)) {
$stext='s';
} elseif (($newpm['messages']==1) and ($unreadpm['messages']==1)) {
$stext='';
} else {
$stext='s';
![]() Satan |
|
#5
|
||||
|
||||
|
Installed. Thanks, easy as pie!
|
|
#6
|
||||
|
||||
|
cheers satan works great ! here are some screen shoots !
this is when there is a single message in your inbox, there fore it will display private message |
|
#7
|
||||
|
||||
|
this is when there are two messages in your inbox, therefore it will display private messageS
|
|
#8
|
||||
|
||||
|
nice minihack chris
![]() however i'd prever to do those things via templateconditions
|
|
#9
|
||||
|
||||
|
Yeh...But I prefer hacking - It adds another thing to my profile
![]() ![]() ![]() Satan |
|
#10
|
||||
|
||||
|
it's not the ammount that counts :P
|
![]() |
|
|