Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Apr 2016, 03:22
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
exclude private messages from notifications total

im trying to exclude PMs from the total count of notifications and the list.

<if condition="$notification['total'] > 0">

i know it would be built off this, i just have no idea how to set it up

example

<if condition="$notification['total'] > 0"> (AND IS NOT A $bbuserinfo[pmunread] NOTIFICATION)
show all other notifications
<else />
NO NEW NOTIFICATIONS
</if>

*note !$bbuserinfo[pmunread] was tried, but failed

i found $notifications['pmunread']
but still cant figure out how to not show them in the notifications
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.

Last edited by Dr.CustUmz; 06 Apr 2016 at 03:37.
Reply With Quote
  #2  
Old 06 Apr 2016, 03:24
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Have you tried to use the difference:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 06 Apr 2016, 04:16
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
i have not
but i found a plugin that might do the job i just need help converting one line


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Im no good when it comes to vb4 code, and I think this needs to be an eval. Im just not sure how exactly to convert it to vb3

this (along with the rest of the code) unsets pmunread from notifications and creates it individually.

--------------- Added 06 Apr 2016 at 04:19 ---------------

i did manage to get the correct if statement


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

that removes pm notifications from the notifications list, but the notification still remains in the total count, and if i can get that code in my previous post converted it should solve it

--------------- Added 06 Apr 2016 at 04:31 ---------------

I GOT IT =P lmao was so easy -_-

plugin:

in notifications_list

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the rest was achieved by the original if conditions

templates:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

shows total notifications OTHER THAN PMS since we unset them


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

shows amount of pms

that'll do it =)
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.

Last edited by Dr.CustUmz; 06 Apr 2016 at 04:32.
Reply With Quote
  #4  
Old 06 Apr 2016, 05:07
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I think I would use the difference rather than unsetting a variable...that may cause issues...
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 06 Apr 2016, 05:29
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
im only unseting it in the notifications_list, what potential issues could there be? i tried the difference but couldnt get that to work.

the end goal is: (not implemented in these codes)

NOTIFICATIONS LIST (no pm)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

notification total (no pm)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

pm total

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 06 Apr 2016 at 05:32 ---------------

btw

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is the way i thought it would work =/ no luck
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote
  #6  
Old 06 Apr 2016, 05:33
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I was assuming both variables mentioned were available and that you wanted to take action only if there were non-pm related notifications.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 03:08.

Layout Options | Width: Wide Color: