vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Send Private Message to Public Group Leader on Join Requests (https://vborg.vbsupport.ru/showthread.php?t=74623)

amykhar 01-18-2005 10:00 PM

Send Private Message to Public Group Leader on Join Requests
 
This quick and dirty little hack sends a PM to the leaders of a public group when a join request has been made.

I am surprised this isn't built into vbulletin.

Amy

the Sandman 01-19-2005 02:18 AM

Installed. :) There are two
PHP Code:

eval(print_standard_redirect('usergroup_requested')); 

I added the code above the second. Is that correct?

amykhar 01-19-2005 02:19 AM

oops. Hold on, let me check for a better reference point.

amykhar 01-19-2005 02:23 AM

ok. The directions have changed. The code you are looking for is:

Code:

// insert the request
                $DB_site->query("
                        INSERT INTO " . TABLE_PREFIX . "usergrouprequest
                                (userid,usergroupid,reason,dateline)
                        VALUES
                                ($bbuserinfo[userid], $usergroupid, '" . addslashes(htmlspecialchars_uni($_POST['reason'])) . "', " . TIMENOW . ")
                ");

Add the code changes after that bit of code. I've changed the directions. Thanks for catching that there were two instances of that code.

the Sandman 01-19-2005 02:28 AM

OK, so I was the first to post in this Thread, first to install, found the first problem with the instructions, and still installed it correctly? Woohoo!

amykhar 01-19-2005 02:32 AM

Easy hack for a change, huh? :D

Viks 01-19-2005 03:39 AM

As u said 'quick and dirty'.......good work!

Quote:

*clicks install*

the Sandman 01-19-2005 05:12 PM

Someone finally put in a join request and the PM was properly generated so I can verify that this works (on a security patched vB 3.0.3 Board). :)

Gryphon 01-20-2005 04:21 PM

This is great timing, I 'just' started using public groups and found it annoying when I discovered that there was no notification other than checking the Group page all the time.

j_86 01-20-2005 04:30 PM

Nice hack


All times are GMT. The time now is 11:20 AM.

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.04166 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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