Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #91  
Old 18 Jul 2008, 15:51
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Real name: Rich
Originally Posted by Jase2 View Post
Hi Andreas,

The following bit:


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

How would I go about changing this to a phrase, so that users can have the message however they like. Is it possible?

Thanks.

-- Jason
Thats actually pretty easy Jason. You need to set 2 things.

First you need this BEFORE the message is called to be sent:

$message = $vbphrase[your_phrase];

Then change the line you have posted above to read:

$pmdm->set('message', $message);
__________________
Rich

Swapped 2 sites to Xenforo since vBulletin left me hanging for so long with the vB4 - PHP5 compatibility issues. Running PHP 5.5 with Xenforo with NO issues.
Reply With Quote
  #92  
Old 03 Sep 2008, 22:40
squishi squishi is offline
 
Join Date: May 2006
Does this work with 3.7.3?
And if so, wkhat file do I need to include in the php file?
Reply With Quote
  #93  
Old 09 Sep 2008, 16:03
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Real name: Vinayak
Originally Posted by squishi View Post
Does this work with 3.7.3?
And if so, wkhat file do I need to include in the php file?
yes it would work in all versions of vb

no file to include.
Reply With Quote
  #94  
Old 07 Apr 2009, 06:53
Excalibur82 Excalibur82 is offline
 
Join Date: Dec 2008
Since my code deals with PM's I need to exclude myself from receiving a PM as I am the one making the new comment.


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

Now what I am trying to do is this (I know this won't work but an example of what I need:

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

I couldn't find anything to exclude my id, does anyone know how to do this?

Thanks
Reply With Quote
  #95  
Old 07 Apr 2009, 17:58
mferguson's Avatar
mferguson mferguson is offline
 
Join Date: Jan 2003
Real name: Mark Ferguson
You should be able to exclude yourself using the following query given that userid is a column in the threadcomment table.


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

Reply With Quote
  #96  
Old 07 Apr 2009, 19:52
Excalibur82 Excalibur82 is offline
 
Join Date: Dec 2008
Thank you very much, thats what I needed.

Had to change it:

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

Works like a charm.

Last edited by Excalibur82; 07 Apr 2009 at 20:05.
Reply With Quote
  #97  
Old 07 Apr 2009, 22:22
mferguson's Avatar
mferguson mferguson is offline
 
Join Date: Jan 2003
Real name: Mark Ferguson
Glad to help!
Reply With Quote
  #98  
Old 03 May 2010, 01:58
bpr's Avatar
bpr bpr is offline
 
Join Date: Dec 2009
Is it possible to transfer it for the vb 4.0. x ?
Reply With Quote
  #99  
Old 13 May 2010, 21:22
steveheinsch steveheinsch is offline
 
Join Date: Mar 2007
I am sending to a lot of recipients at once. Its in a loop sending to 20 recipients at a time (user1;user2;etc)

Occasionally Ill get the following error when checking $pmdm->errors:

XXXX has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

If you are trying to send this message to multiple recipients, remove XXXX from the recipient list and send the message again.
How does one check to see if someone is allowed to receive a PM before its sent so I can exclude them from the recipients?

I am using $botpermissions['adminpermissions'] = 2; to override if their mailbox is full, but don't want to send a PM to people who aren't allowed by way of permissions to receive them.

Can this be checked in the query I am using to select names from the user table? Or is there code that can be used to check to see if the user is able to receive PM's?

I appreciate any insight.
Thanks,
Steve
Reply With Quote
  #100  
Old 13 Dec 2012, 02:51
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
hello, I want send a content to two people, but different title, how to?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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 06:05.

Layout Options | Width: Wide Color: