101
xgarb
restricting PM to certain user groups
  • 2004/11/18 12:59

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Hello,

I'm looking for a way to restrict the use of the personal messaging system to a certain user group.

The site will have three user levels/groups.

Guest: Able to browse profiles
Member: Able to browse and create profiles
Premium Member: Above plus PMing facility

I would need to hide any buttons that open pmlite from the first two groups. How would I do that? Any other ideas/tips?

BTW this is neat.... https://xoops.org/modules/news/article.php?storyid=1864

Thanks,

Xgarb



102
xgarb
Re: no email notifications for Private Messages
  • 2004/10/12 18:13

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30





103
xgarb
Re: myalbum-p and forum image manager
  • 2004/8/22 14:06

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Seems to work. Oh and myalbum-p 2.83 is FANTASTIC!! Looks great. Love it!

xgarb



104
xgarb
Re: myalbum-p and forum image manager
  • 2004/8/21 20:37

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Hi,

Yeah I think that might be a solution. There's a newer version out that I could try at the same time.

Thanks!

Andrew



105
xgarb
myalbum-p and forum image manager
  • 2004/8/21 9:46

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Hi,

I've installed myalbum-p and set it to be the image manager for the forums. This is causing a problem with picture uploads to the forum and signatures appearing in the gallery.

Is it possible to set categories in myalbum-p that won't appear in the gallery?

Alternatively how do I switch back to using the default forum image manager?

Thanks,

Andrew



106
xgarb
Re: how to put a notification alarm while u receive a msg?
  • 2004/8/10 14:36

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30





107
xgarb
Re: time to say goodbye to newbb? - PM notification
  • 2004/4/18 12:13

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


There's a thread here about PM -> email notification

https://xoops.org/modules/newbb/viewto ... hp?topic_id=17034&forum=7

xgarb



108
xgarb
Re: PM -> you got mail - done it - comments please.
  • 2004/3/7 13:02

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


OK, I've got it working. An email is now sent to whoever is PM'd to get them to come back to the site.

I created a mail template like this...

Hello {RNAME},

{
SNAMEhas sent you a PM.

Log in to {SITENAME} ({SITEURL}) to read the message.



--------------------------------------------------------------------------------

{
SITENAME} ({SITEURL})


added the following line below 'include "mainfile.php";' in pmlite.php

include "class/xoopsmailer.php";


and the following below ' echo "<br /><a href='javascript:history.go(-1)'>"._PM_GOBACK."</a>";
} else {'
(around line 70)

$xoopsMailer =& getMailer(); 
$xoopsMailer->useMail(); 
$xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/mail_template'); 
$xoopsMailer->setTemplate("yougotmail.tpl"); 
$toUserID $HTTP_POST_VARS['to_userid'];
$sql mysql_query("SELECT email,uname FROM ".$xoopsDB->prefix("users")." WHERE uid = $toUserID");
$toUserEmail mysql_result($sql0'email');
$toUserName mysql_result($sql0'uname');
$xoopsMailer->setToEmails($toUserEmail); 
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$subject 'You've got mail!!';
$xoopsMailer->setSubject($subject);
$sname = $xoopsUser->getVar("uname");
$xoopsMailer->assign("RNAME", $toUserName);
$xoopsMailer->assign("SNAME", $sname); 
$xoopsMailer->assign("SITENAME", $xoopsConfig['
sitename']); 
$xoopsMailer->assign("SITEURL", XOOPS_URL."/"); 
$xoopsMailer->send();


All seems to work great. Feel free to point out errors or pitfalls in my implementation

Thanks,

xgarb




109
xgarb
PM -> you got mail - done it - comments?
  • 2004/2/24 10:36

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Hi,

Just starting to look at implementing a method of letting site members know when someone has sent them a PM via an autogenerated email. I'm looking at adding to this part of the pmlite code..

if ( empty($HTTP_GET_VARS['refresh'] ) && isset($HTTP_POST_VARS['op']) && $HTTP_POST_VARS['op'] != "submit" ) {


code from the register.php page like this...

$xoopsMailer =& getMailer();   etc...


Am I on the right track? I sort of know what I'm doing!

ta,

xgarb



110
xgarb
Re: How do i change the maximum signature length??
  • 2003/12/5 13:56

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


Yeah I forgot that MEDIUMTEXT is bigger than TEXT .

Limiting the amount the user can type would be great. I think the only way to stop the cursor to show max input has been reached in a text area is javascript. Don't know how you'd integrate this with the XOOPS textarea function thing. Plus users could turn js off.

I gave up on this on my site, choose TEXT and left it at that!





TopTop
« 1 ... 8 9 10 (11) 12 13 14 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

69 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 69


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits