Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hide {yabb pm} for a single user. (Read 2250 times)
ayjay
New Member
*
Offline


Code Moron

Posts: 30
Joined: Jan 13th, 2009
Hide {yabb pm} for a single user.
Feb 27th, 2011 at 1:55pm
Print Post  
Hello clever people,

can anyone please tell me how to hide {yabb pm} in the Display.Template for just a single user?

I have an auto reply on the PM's but people still PM me (and I don't read them) so I would like to hide it just for me.

Thanks!
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Hide {yabb pm} for a single user.
Reply #1 - Feb 27th, 2011 at 5:27pm
Print Post  
Hi,

This should do it - In Sources/Display.pl find:

Code
Select All
	  $contactblock =~ s/({|<)yabb pm(}|>)/$template_pm/g; 


And replace with:

Code
Select All
	  if ($musername ne "yourusername") {
		$contactblock =~ s/({|<)yabb pm(}|>)/$template_pm/g;
	  } else {
		$contactblock =~ s/({|<)yabb pm(}|>)//g;
	  } 


  
Back to top
 
IP Logged
 
ayjay
New Member
*
Offline


Code Moron

Posts: 30
Joined: Jan 13th, 2009
Re: Hide {yabb pm} for a single user.
Reply #2 - Feb 28th, 2011 at 10:24am
Print Post  
Derek Barnstorm wrote on Feb 27th, 2011 at 5:27pm:
This should do it 


...and it certainly did!

You have just saved me hours and hours a week typing "I don't read PM's, email me instead".

Thank-you very much Derek.
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Hide {yabb pm} for a single user.
Reply #3 - Mar 1st, 2011 at 3:59am
Print Post  
No problem.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint