vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - AWCoding- Mentor (https://vborg.vbsupport.ru/showthread.php?t=250640)

AWJunkies 09-15-2010 10:00 PM

AWCoding- Mentor
 
1 Attachment(s)
VBulletin 3.5.x+/3.6.x+/3.7.x+/3.8.x+/4.0.x+

CLICK HERE TO MARK MOD INSTALLED


AWCoding- Mentor
Version 1.0.0
Release Date: 16th September 2010

Software Provided and coded by AWCoding

What Software Is:
It auto assigns a mentor unless they entered a correct referrer at registration then that person becomes there mentor. The software has an on and off feature for PMing the mentor about his new mentee as well as auto adding the two (mentor and mentee) as friends. You can select what usergroups are able to mentor and from these groups it selects a random person per new user registered to mentor. The software is used more or less as a help and go to person for new users to go to for help and questions. Makes things more personable and a point of contact for users. This will reduce heavy traffic to the owner/admins and spread help through the other groups (moderators and supermods). You can even create your own Mentor group and select from that group. You can also edit the mentor of a user by editing the user in adminCP. There is an option to show the mentee in userCP who there mentor is and a link to their profile.

Version History
Code:

Release version: 1.0.0
Release Date: 16th September 2010
Initial Release No Updates

System Requirements
VBulletin 3.5.x+/3.6.x+/3.7.x+/3.8.x+/4.0.x+

Install Guide
Just run the XML then:
EDIT PHRASE "welcomepm" BODY and put %mentor% where the link and username of mentor should go

Example text to add (English):
If you have any questions or issues contact your mentor: %mentor%

Example of what complete phrase (English):
Thanks for registering at $vboptions[bbtitle]! We are glad you have chosen to be a part of our community and we hope you enjoy your stay.

If you have any questions or issues contact your mentor: %mentor%

All the best,
$vboptions[bbtitle]


Final words
Please check out my new vb4 upgraded website HERE, I know it was long overdue. You will see other products like Donation System, Subscription System, Credit Purchase System, Pirate Poker System.
Much more to come in the future stay tuned for: Product System, Advertisement System, and Raffle/Lottery System.
I sincerely hope that you enjoy this software.

LITE SOFTWARE LINKS:
https://vborg.vbsupport.ru/external/2012/02/6.gifClick Here
https://vborg.vbsupport.ru/external/2012/02/27.pngClick Here
https://vborg.vbsupport.ru/external/2012/02/27.pngClick Here

Thank you!
Adam Ellis (AWJunkies)
https://vborg.vbsupport.ru/external/2012/02/27.png

Copyright
AWCoding Mentor ?2010 by AWNetwork, Inc.
https://vborg.vbsupport.ru/

CLICK HERE TO SHOW YOUR SUPPORT MOD INSTALLED

AWJunkies 09-16-2010 06:58 PM

Reserved first post

Hornstar 09-17-2010 05:06 AM

Nice work Adam. This sounds very similar to something I was hearing from another software company. This will really help promote activity from new members.

MichaelDance 09-17-2010 07:51 AM

seems cleaver, i'll install it :)

Alfa1 09-17-2010 01:34 PM

Very interesting. Could you add screen shots?

AWJunkies 09-17-2010 06:22 PM

Quote:

Originally Posted by Alfa1 (Post 2099618)
Very interesting. Could you add screen shots?

When I get a chance I will do videos and new screen shots of all software. Just super busy finishing up Pirate Poker Platinum and Product System. So just hang in there till I can get everything all done and put up. I have three new LITE software to put up as well.

swapps 11-18-2010 02:36 PM

Installed! Every radio-button is enabled and 2 Users are in a new created Mentor-Usergroup.

phrases welcomepm and awcm_mentorpm are edited.

But when i register a new member no one get an PM.

Any Ideas?

swapps 11-23-2010 05:43 PM

I found the problem: The choosen mentorgroup MUST BE PRIMARY.
To get it working with a secondary group you should change in the Plugin "AWC-Welcome PM":

Find an Replace:
PHP Code:

$mentor_info $this->dbobject->query_first(
                                SELECT userid, username  
                                FROM `"
.TABLE_PREFIX."user`  
                                WHERE usergroupid IN ("
.$this->registry->options['awcm_usergroups'].")  
                                ORDER BY RAND()  
                                LIMIT 1 
                            "
); 

WITH:

PHP Code:

$mentor_info $this->dbobject->query_first(
                                SELECT userid, username  
                                FROM `"
.TABLE_PREFIX."user`  
                                WHERE FIND_IN_SET(`"
.$this->registry->options['awcm_usergroups']."`, membergroupids)  
                                ORDER BY RAND()  
                                LIMIT 1 
                            "
); 

This will only working with ONE defined group (without commas). You cant define more then one group in this hack.

EddyMaxx 11-24-2010 02:53 AM

swapps... I'm a little confused. You mean this

Code:

$mentor_info = $this->dbobject->query_first("
                                SELECT userid, username 
                                FROM `".TABLE_PREFIX."user` 
                                WHERE FIND_IN_SET(`".$this->registry->options['awcm_usergroups']."`5
                                ORDER BY RAND() 
                                LIMIT 1
                            ");


swapps 11-24-2010 09:54 AM

I use vbulletin 3.8.6. in german language.

After the AddOn-Installation you will find a "PlugIn" named "AWC-Welcome PM".
You can edit the PHP-Code:

Change
PHP Code:

WHERE usergroupid IN (".$this->registry->options['awcm_usergroups']."

INTO something like that:
PHP Code:

WHERE FIND_IN_SET('X'membergroupids

(replace X with the variable or insert the secondary groupid manually)

see: http://dev.mysql.com/doc/refman/5.0/...on_find-in-set

membergroupids is the stringlist


All times are GMT. The time now is 01:09 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.01088 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)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
  • (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