vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Send a Private Message to Public Group Leaders Upon a Join Request (https://vborg.vbsupport.ru/showthread.php?t=83086)

amykhar 06-13-2005 10:00 PM

Send a Private Message to Public Group Leaders Upon a Join Request
 
I'm still surprised this isn't built in yet. What this mod does is to send a private message to all of the leaders of a public group, letting them know that somebody wants to join the group.

To install:
Add a new phrase: (obviously, change the url to go to your board ;) )
group_memberships_message
Code:

Text:
A request has been made to join the public group: {1}, of  which you are a leader.
You may validate the user here

Then, upload the plugin and turn it on. Easy as pie. Enjoy and thanks to Kirby for his tutorial on how to send private messages.

mOdEtWo 06-14-2005 09:43 PM

Very nice.

M1th 06-14-2005 10:39 PM

Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

https://vborg.vbsupport.ru/showpost....48&postcount=7

No need to use the while loop for the $pmdm->set then. :)

amykhar 06-14-2005 11:52 PM

Quote:

Originally Posted by M1th
Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

https://vborg.vbsupport.ru/showpost....48&postcount=7

No need to use the while loop for the $pmdm->set then. :)

OK. I'll play with it later.

Gryphon 07-21-2005 05:43 PM

My private messages were showing <br> from new lines in the phrase, also trying to make the link click-able it was showing html instead of parsing bbcode, so I had to make a change to do_parse in the plugin. Attached is my minor edit and my phrase.

amykhar 07-21-2005 05:59 PM

Thank you :)

timelord726 07-22-2005 10:43 PM

Ridiculous that this hasn't been made a standard feature yet. Thank you very much, incredibly simple yet unbelievably useful hack.

amykhar 07-22-2005 11:15 PM

My pleasure. If I get time, I'll add in a feature so that users are notified via PM when they are accepted or denied.

FD929 07-30-2005 12:33 AM

Is there any way to hyperlink the url? I've tried bbcode, html, and just plain hoping the software would automatically parse. Is it possible?

amykhar 07-30-2005 02:01 AM

Read post 5.

Boofo 07-30-2005 02:23 AM

Quote:

Originally Posted by Blackjack
My private messages were showing <br> from new lines in the phrase, also trying to make the link click-able it was showing html instead of parsing bbcode, so I had to make a change to do_parse in the plugin. Attached is my minor edit and my phrase.

Is the phrase GLOBAL?

Boofo 07-30-2005 02:26 AM

Quote:

Originally Posted by M1th
Could reduce the number of query insertions by sending to multiple users at once:

Have a look at this: :)

https://vborg.vbsupport.ru/showpost....48&postcount=7

No need to use the while loop for the $pmdm->set then. :)

You had a chance to look at this yet, amy? ;)

amykhar 07-30-2005 03:08 AM

Yes. It's in the updated version.

Amy

Boofo 07-30-2005 05:07 AM

Thank you, ;)

Is the phrase supposed to be GLOBAL? ;)

amykhar 07-30-2005 02:00 PM

Yes. It's a global phrase Bob.

ricker 08-11-2005 04:06 AM

Quote:

Originally Posted by error
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

Sometimes I can reproduce this, sometimes I can't. One of my users got this today, after he typed in his reason.

amykhar 08-11-2005 04:21 AM

Any weird characters in the reason?

ricker 08-16-2005 04:05 PM

Quote:

Originally Posted by amykhar
Any weird characters in the reason?

Nopers. Short and to the point, all regular characters. He was actually bright enough to try with punctuation and without, and both failed.

TMM-TT 09-12-2005 05:24 PM

Got an error in RC3, that I did'nt get in RC2:

Quote:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:

DELETE FROM usergrouprequest
WHERE usergrouprequestid IN();

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
Error Number : 1064

This error has been reported, and can be fixed, by looking here: http://www.vbulletin.com/forum/bugs3...iew&bugid=1286


(Sometimes I'm too fast for my own good ;))

harry1951 09-30-2005 03:05 PM

Does this works on 3.5.0 ???

q8manar 10-01-2005 04:57 AM

From where we can use send to all
I installed it but i don't know how to use it

amykhar 10-01-2005 01:39 PM

It's not what you think it is, if I am reading your question correctly. This mod sends a pm to the group leader when somebody requests permission to join the group. It does NOT allow you to mass pm the group.

Amy

The Wise One 10-03-2005 11:18 PM

installed. works good on 3.5.0 so far.

Zachariah 10-04-2005 12:25 AM

thank you ma'am.

Cyricx 10-04-2005 07:25 PM

I'm getting this error with this plugin enabled on 3.5 gold

Code:

Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758
When I disable this plugin it works fine.

Any ideas?

Snake 10-06-2005 07:19 PM

Thanks for the hack.

dookie 10-07-2005 01:10 PM

Works fine @ 3.5 Gold here

TRR 10-08-2005 09:09 PM

I am also getting the fatal error mentioned above.

jluerken 10-12-2005 07:36 AM

Phrase group_memberships_message contains a link to the editusergroups section in the usercp.

If HTML for PMs is not allowed this is not working.

vBTags like [URL] are also not working and I don't want to enable HTML for PMs.

Is there another solution to fix this?

Ted S 10-16-2005 06:32 AM

Quote:

Originally Posted by Cyricx
I'm getting this error with this plugin enabled on 3.5 gold

Code:

Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758
When I disable this plugin it works fine.

Any ideas?

Check that you've got the phrase added. If that doesn't work try the udpated version in the second post of this thread... that worked for me.

Cyricx 10-17-2005 12:50 PM

That was it! Thanks!!

Not sure how the phrase got deleted but thats definately what was causing the error.

Mephisteus 10-17-2005 03:04 PM

You could add the phrase to the plugin :) (if its a product)

amykhar 10-17-2005 04:20 PM

This was written before products and vbulletin changed the way it handled phrases on upgrades. Anybody who has it installed can easily change it to a product on their own system to avoid it from happening in the future.

majorxp 11-11-2005 02:02 PM

I gotta install this.......I agree, this should be part of vb..

majorxp 11-11-2005 02:27 PM

Quote:

Originally Posted by jluerken
Phrase group_memberships_message contains a link to the editusergroups section in the usercp.

If HTML for PMs is not allowed this is not working.

vBTags like [URL] are also not working and I don't want to enable HTML for PMs.

Is there another solution to fix this?

did anyone figure this out? I'm in the same boat. Here is what my message looked like.

Code:

A request has been made to join the public group, + SWG Player, of which you are a leader.<br />
<br />
You may validate this user <a href="http://www.swglegend.com/lnr/portal/joinrequests.php?usergroupid=[ARG:2 UNDEFINED" target="_blank">]here</a> and you can manage all user groups <a href="http://www.swglegend.com/lnr/portal/profile.php?do=editusergroups" target="_blank">here</a>.

darn...I just realized that there is an ARG errror for {2}...any thoughts?

lanoix 11-14-2005 02:17 PM

Installed... I just modified it to translate the title of the PM too ;)
Thanks!

GeorgeNewbie 11-14-2005 04:13 PM

Im pretty new to all of vb and code stuff, but this seems like a great addition to any board. I was wondering if anyone could tell me where I would make these changes at....i.e where to make the new phrase and how to put in the plug-in

Thanks for any and all help!
G-

VAN 11-23-2005 03:53 AM

Just what I needed. Thanks Amy. :)

Feel like adding a bit more?

How about adding the ability for the group leader(s) to send a PM to the person submits a join request and is approved or rejected?

If accepted, user gets a "Welcome to the Group" PM.

If rejected, they get a "Sorry, but you do not meet the specified requirements to join this group."

Just another way to keep people from having to repeatedly check their UserCP for join status.


Just an idea. :)

amykhar 11-23-2005 12:40 PM

I've thought about doing it when I have time. I guess I just keep expecting Jelsoft to make this a standard feature as it obviously should be one.

Vizionz 11-23-2005 12:42 PM

i like this hack. but am i missing something somewhere where user can make there own groups. and is there any hacks that would allow created user groups to allows create a forum when created. amy your smart and been around thats why i ask in the same topic (sorry for offtopic questions )


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02140 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete