PDA

View Full Version : Miscellaneous Hacks - AWCoding- Mentor


AWJunkies
09-15-2010, 10:00 PM
https://vborg.vbsupport.ru/external/2012/02/27.png
VBulletin 3.5.x+/3.6.x+/3.7.x+/3.8.x+/4.0.x+

CLICK HERE TO MARK MOD INSTALLED (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=250638)


AWCoding- Mentor
Version 1.0.0
Release Date: 16th September 2010
Software Provided and coded by AWCoding (http://www.forumcoding.com)

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

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! 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


[B]Final words
Please check out my new vb4 upgraded website HERE (http://www.forumcoding.com/), 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/showthread.php?t=250340)
https://vborg.vbsupport.ru/external/2012/02/27.pngClick Here (https://vborg.vbsupport.ru/showthread.php?t=250587)
https://vborg.vbsupport.ru/external/2012/02/27.pngClick Here (https://vborg.vbsupport.ru/showthread.php?t=250445)

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

[B]Copyright
AWCoding Mentor (http://www.forumcoding.com/) ?2010 by AWNetwork, Inc.
https://vborg.vbsupport.ru/

CLICK HERE TO SHOW YOUR SUPPORT MOD INSTALLED (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=250638)

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
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:
$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:

$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

$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 WHERE usergroupid IN (".$this->registry->options['awcm_usergroups'].")

INTO something like that: 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/en/string-functions.html#function_find-in-set

membergroupids is the stringlist

Jay106n
01-20-2011, 07:09 AM
Is there a difference in the german and english versions? I want to make this work so a secondary usergroup will be the mentor group with the english version 3.8.6 and 3.8.0

Jay106n
01-21-2011, 08:15 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 WHERE usergroupid IN (".$this->registry->options['awcm_usergroups'].")

INTO something like that: 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/en/string-functions.html#function_find-in-set

membergroupids is the stringlist

Got it working. Thanks :)

Jay106n
01-21-2011, 11:30 AM
Can there be a way to rotate through the mentor usergroup rather than being random?

Jay106n
02-17-2011, 05:53 PM
With this installed anybody who refers a person to the forum is automatically their mentor.Is there a way to stop a non-mentor user from receiving the notification if they directly refer somebody to the forum? I don't want my non-mentor users to become a mentor just because they referred somebody.

AWJunkies
03-08-2011, 05:30 PM
Thanks for helping eachother. I will have an update as soon as I can get to it huge work load right now with tons of software.