View Full Version : Miscellaneous Hacks - Cyb - Advanced Registration
Valter
12-07-2008, 10:00 PM
Info:
This product adds several advanced options to control new registrations, like:
- 'Random Questions' - User must answer random question to continue with the registration (can be on/off)
- 'Invitations System' - Let users invite their friends to join community
- You can choose to accept only invited people to register
- 'moderated users' management (accept/edit/contact/delete)
- e-mail users automatically when their accounts are accepted (can be on/off)
- 'non-activated users' management (accept/edit/contact/delete)
- Option to delete inactive accounts automatically if not confirmed X days after registration
All these features are controlled from one single page.
Notes:
- Don't forget to check/update product options after installation
- Only Admins can access this product options/logs
- Inviter is automatically marked as referral when invited user registers using invitation code
Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
To set options:
Go to: AdminCP > vBulletin Options > Cyb - Advanced Registration
Versions:
v1.0 - Nov 29. 2008.
- Initial Version
v1.1 - Dec 08. 2008.
- New: Option to delete inactive accounts automatically after X days
- New: You can choose to e-mail users automatically when their accounts are accepted
- New: Enable only invited users to join
- Some minor bugs fixed
v1.2 - Dec 13. 2008.
- Fixed bug (Invitation e-mail address must be lower-case)
- Fixed bug (Random Question answer must be lower-case)
- Fixed bug (Unregistered users able to send Invitations)
- New: Limit number of Invitations user can send in 7 days
- Minor bug fixes in phrases and html
v1.3 - Dec 24. 2008.
- Improved detection of newly registered members who accepted invitations
- Fixed bug (referrer not marked if invitation code is not required)
v1.4 - Jan 02. 2009.
- Break lists into pages with standard vB navigation
- Code cleanup
v1.5 - Jan 25. 2009.
-Fixed bug (user can register without proper invitation code)
-New: Send multiple invitations at once
-New option: Maximum Invitations user can send at once
-New: Inviters are now able to add they real name to the message
-Minor bug fixes
v1.6 - Jan 25. 2009.
-Important bug fix in Invitation System
v1.7 - Feb 08. 2009.
-Fixed bug (Blank 'inviter' field for inviters who have been deleted in the meantime)
-Better inactive users detection for auto-prune (only zero-posters deleted)
-Fixed some CSS validation errors
-New: Check if e-mail address is already registered or invited before sending invitation
-Minor bugs fixed
abouahmed
12-08-2008, 07:18 PM
nice mod
i'll try it soon
installed.......
iPodHacking.com
12-08-2008, 07:29 PM
This is great :)
Installed.
Being able to limit the amount of invitations that each user has would be awesome.
valdet
12-08-2008, 08:12 PM
Cyb, as always you've done it again.
Your mods are always innovative and very useful.
Installed, rated and nominated !
Thank you very much
xthecanadianx
12-08-2008, 08:18 PM
"invite friend" doesnt show in my nav bar.
whats the address so i can put it there
manually?
thanks
Valter
12-08-2008, 08:21 PM
I'm glad you like it.
'Invite' link code:
<a href="misc.php?do=cybareginv">$vbphrase[cybareg_invitation_invite]</a>
Surround link by TD tags if needed.
digicom
12-08-2008, 08:42 PM
Thankyou Installed :up:
xthecanadianx
12-08-2008, 09:19 PM
thanks! you rock man! KEEP UP THE GOOD WORK!
Burito
12-08-2008, 09:21 PM
Can you limit invitations per user/usergroup?
For instance User/s 1 From User group X can have 10 invites?
And User/s 1 From User group Y can have 25 Invites?
Or even Invites based on post count?
Nadeemjp
12-08-2008, 10:54 PM
i will try it :)
installed:)
redlabour
12-09-2008, 05:24 AM
This is the perfect Spambots Killer. :)
But how to change the normal Invitations to the Invitations where a Invitationcode is needed?
And BTW - the navbar Link is missing in vBadvanced. :(
john102774
12-09-2008, 06:09 AM
Awesome stuff once again Cybernetec. *Reserved :)
Q-v-n-s-Q
12-09-2008, 06:32 AM
ima try this out, thank you
sensimilla
12-09-2008, 06:33 AM
Excellent work, Thanks
Leo Brazil
12-09-2008, 02:19 PM
Excellent as always Cyb mods.
If you allow a suggestion. To make this mod even more perfect, something like verify e-mail before getting access to registration page would be fantastic.
One of the anoying things with Vb is people giving fake e-mails when they attend to registration.
Cheers
Aneurysm
12-09-2008, 03:03 PM
Thanks, great work as always.
Aneurysm
12-09-2008, 03:22 PM
here are a couple requests for the next revision
check the emaill address in the outgoing invitation against the user database to make sure the email address is not already associated with a user.
use the referral ID of the sender in the outgoing invitation request so the sender will get credit for the referral. Example: http://www.domain.com/forums/register.php?referrerid=551 (you could make this an on/off option in the setup)
Put the outgoing email text in mod's VB Options like you did with the Advanced Forum Rules mod. I would be nice to be able to change the text of the email without having to edit and reinstall the xmlJust my $0.02, thanks again for the great mods!
Valter
12-09-2008, 06:41 PM
here are a couple requests for the next revision
check the emaill address in the outgoing invitation against the user database to make sure the email address is not already associated with a user.
use the referral ID of the sender in the outgoing invitation request so the sender will get credit for the referral. Example: http://www.domain.com/forums/register.php?referrerid=551 (you could make this an on/off option in the setup)
Put the outgoing email text in mod's VB Options like you did with the Advanced Forum Rules mod. I would be nice to be able to change the text of the email without having to edit and reinstall the xmlJust my $0.02, thanks again for the great mods!
1. Invitation will just be ignored if you are invited to forum where you are already member.
2. This is already implemented. When user accepts invitation and register, inviter is marked as referral.
3. Message can be modified/translated in Phrase Manager. There is no need to change original XML. Editing phrases in original XML is also not recommended because of several reasons... And it's better to keep this in phrases to allow people with several languages installed to have all translations available.
You're welcome.
redlabour
12-09-2008, 07:49 PM
This is the perfect Spambots Killer. :)
But how to change the normal Invitations to the Invitations where a Invitationcode is needed?
And BTW - the navbar Link is missing in vBadvanced. :(
Cybernetec?
Valter
12-09-2008, 09:15 PM
Enable "Only invited users can register" in product options.
For navbar link, try to globalize/insert: $cybareg_navbarlink
redlabour
12-09-2008, 09:27 PM
Enable "Only invited users can register" in product options.
Is there a possibility to let us choose if invited Users allways habe to insert a Invitation ID even normal Registrations are not disabled? Would be fine in another Update. :)
Valter
12-09-2008, 09:32 PM
Hmm, it's like logging-in to site without proper password. You must be blocked until proper pass is typed. If you are allowed to put anything as password then it's completely unneded. If they can get in without proper Invitation Code, most of typed codes will be "fhgdhfghd" - completely useless data in database, and just one more irritating field in registration form.
doc1975
12-11-2008, 03:52 PM
For some reason, I have new users attempt to register but for whatever reason, every time the answer the 'random question' it tells them the answer is incorrect... i tried it myself with the same result.
After further testing, it appears that it is case sensitive. Anyway to remove this so it accepts the answer regardless of whether they use caps or lower case?
http://www.reptilejunction.com/forums
Valter
12-11-2008, 05:01 PM
It IS case sensitive. This will be changed in next version.
Deviant K1
12-11-2008, 08:20 PM
Cyb, as always you've done it again.
Your mods are always innovative and very useful.
Installed, rated and nominated !
Thank you very much
I totally agree... 10 fold.
Cyb, you do such a great job with all your Hacks!
INSTALLED!!!:D
redlabour
12-11-2008, 10:18 PM
Any Idea why some Mailadresses are not working?
Example - AdC_Toledo@Toledo.de (This is just a fictive Example i changed only the Letters not the format!!!)
Deviant K1
12-11-2008, 10:38 PM
Quick question Cyb...
I believe this was ask previously so I apologize... but do you think there will be a way in a later update you may release that will allow specific user groups to use the "Invite Friend" option?
My reason for asking is because an "Unregistered" person visiting the site can just send invites to; for example "Frick & Frat". Neither Frick nor Frat will have ANY idea on who sent them the invitation because it lists the sender as "Unregistered". I would prefer to have only my current registered members be allowed to send invites to other people.
Or...
Is there a way to simple hide the "Invite" link (or button if using a different style template), from people that are not registered to the site. Seems simple enough, I think since a person who is not registered will see the "Register" link whereas a person who signs in does not. Is there a way to use the same concept so to speak with the "Invite" option?
Alfa1
12-11-2008, 11:17 PM
I would love a contacts inviter with this. (msn, yahoo, outlook, etc)
Any chance on this?
Ozidoggy
12-12-2008, 12:21 AM
Excellent mod!!
Would like to see where you can add the persons name that you wish to invite. Makes it a little more personal :)
doc1975
12-12-2008, 12:29 AM
Working wonderfully, just edited the phrase and made it known.
DawnsWebDesigns
12-12-2008, 07:06 AM
I tried to send an invite & after it was done it redirected me back to my main site @ dawnswebdesigns.com versus my forum's home page @ dawnswebdesigns.com/forum. Where can I fix that? Thank you for this mod. :)
Valter
12-12-2008, 03:50 PM
Forum URL setting in vBulletin Options > Site Name/URL/Contact Details.
sleepyboy2004
12-12-2008, 06:21 PM
Will this work for 3.8??
Valter
12-13-2008, 01:28 PM
v1.2 - Dec 13. 2008.
- Fixed bug (Invitation e-mail address must be lower-case)
- Fixed bug (Random Question answer must be lower-case)
- Fixed bug (Unregistered users able to send Invitations)
- New: Limit number of Invitations user can send in 7 days
- Minor bug fixes in phrases and html
To upgrade:
- Import XML, allow overwrite
- Revert hack templates if any modified
Deviant K1
12-13-2008, 03:50 PM
Thanks for the update Cyb! :D
v1.2 - Dec 13. 2008.
- Fixed bug (Invitation e-mail address must be lower-case)
- Fixed bug (Random Question answer must be lower-case)
- Fixed bug (Unregistered users able to send Invitations)
- New: Limit number of Invitations user can send in 7 days
- Minor bug fixes in phrases and html
In regards to the update above that is bold text, does the link redirects Unregistered user to the Smilie's page list by default? Just curious because others may get the same results as I have when I click on the Invite link when I am not logged in.
On a side note, I used vBa CMPS and created a different redirect page to be viewed if an Unregistered user attempts to use the invite feature. Unfortunately, I'm still trying to fix a slight bug in the HEADER of my custom template because I get a "Invalid Page Specified". I would have to refresh the page in order to get it to work properly... but besides that little bug, it works really good with the Mod :).
TilkiBey
12-13-2008, 05:10 PM
good work Cybernetec (https://vborg.vbsupport.ru/member.php?u=108756) :up:
i translated v1.2 to Turkish
i changed only the default question for our (Turks)
Turkish Explaning:
v1.2 nin tamamen T?rk?e'ye ?evirilmiş halidir
standart olarak gelen soru "T?rkiye'nin başkenti neresidir" olarak değiştirilmiştir
s?r?m g?ncellemelerini takip etmeyi l?tfen unutmayınız
thank you for translating TilkiBey ;)
Silencer Groans
12-14-2008, 02:11 AM
Thankyou Installed
Silencer Groans
12-14-2008, 03:10 AM
There is a problem
When it reviewed the existing questions or page me out a blank sheet of paper
Is there a conflict with vBSEO?
Has been installed on the work of the Forum and efficiently.
AuroraStorm
12-14-2008, 06:37 PM
Forum URL setting in vBulletin Options > Site Name/URL/Contact Details.
It didn't work for me. It changed the forum URL to http://www.mysite.com/forum and it didnt' work.
Also, the invite did not go to two different yahoo emails that I sent it to. both have the bulk or spam folder set up.
AuroraStorm
12-14-2008, 10:23 PM
*uninstalled*
...caused a five-minute delay in posting, others were unable to log in and others got a "forum not found" screen.
redlabour
12-15-2008, 04:22 AM
*uninstalled*
...caused a five-minute delay in posting, others were unable to log in and others got a "forum not found" screen.
Impossible. :rolleyes:
drsli
12-17-2008, 04:12 PM
Also, the invite did not go to two different yahoo emails that I sent it to. both have the bulk or spam folder set up.
That possibly could be a general yahoo- or vb-issue. I experienced problems with yahoo-mail-addresses without this tool too - the automatically sent activation-link-email didn?t reach the yahoo-accounts and the new users had no chance to join in until I manually sent them the info from within my normal email-account.
Edit: I created a yahoo-mail-account and registered with this tool (many thanks for providing it! :)) as a test-user with this yahoo-address. The automatically sent email showed up in the yahoo-spam-folder, but was accessible anyway. I performed no special setup for the yahoo-spam-management so far.
So everything went fine on my side.
Aneurysm
12-21-2008, 06:33 AM
Originally Posted by Aneurysm https://vborg.vbsupport.ru/external/2012/02/5.gif (https://vborg.vbsupport.ru/showthread.php?p=1681710#post1681710) here are a couple requests for the next revision
use the referral ID of the sender in the outgoing invitation request so the sender will get credit for the referral. Example: http://www.domain.com/forums/register.php?referrerid=551
2. This is already implemented. When user accepts invitation and register, inviter is marked as referral.
I have tested this a few times an it doesn't seem to work for me, The invitation email does not contain the link (if that is how it is set up to work) and the user who invites does not get a referral. Am I missing anything?
Is anyone else having trouble with this??
AuroraStorm
12-21-2008, 03:41 PM
Impossible. :rolleyes:
Whatever. You weren't there.
AuroraStorm
12-21-2008, 03:47 PM
That possibly could be a general yahoo- or vb-issue. I experienced problems with yahoo-mail-addresses without this tool too - the automatically sent activation-link-email didn?t reach the yahoo-accounts and the new users had no chance to join in until I manually sent them the info from within my normal email-account.
Edit: I created a yahoo-mail-account and registered with this tool (many thanks for providing it! :)) as a test-user with this yahoo-address. The automatically sent email showed up in the yahoo-spam-folder, but was accessible anyway. I performed no special setup for the yahoo-spam-management so far.
So everything went fine on my side.
Neither emails showed up in the spam account, which I took into consideration before I tried it so I sent two more invites to an AOL account and a bellsouth account and the same thing happened. No invites. I wasn't too concerned about that, however, as I was with the forum delay, some folx not being able to log in and the forum not found screen. When I uninstalled the hack, the problem went away.
Valter
12-23-2008, 09:23 PM
v1.3 - Dec 24. 2008.
- Improved detection of newly registered members who accepted invitations
- Fixed bug (referrer not marked if invitation code is not required)
To upgrade:
- Import XML, allow overwrite
- Revert hack templates if any modified
Aneurysm
12-24-2008, 02:54 AM
v1.3 - Dec 24. 2008.
- Fixed bug (referrer not marked if invitation code is not required)
Thanks, this corrected the issue I was having.
You Rock!
Installed & Nominated
momo2
12-24-2008, 09:21 AM
Perfect Mod ~~~
redlabour
12-26-2008, 05:35 PM
Anyway to get a integrated simple Feature to stop this chinese Idiot-Bot with Birthday on 01.01.1980? He still goes through the registration Questions. :(
- Fixed bug (referrer not marked if invitation code is not required)
There is still now ReferrerID in the Invitationmailslink. :(
drsli
12-26-2008, 05:47 PM
I got this guy from China too obviously! :(
Valter
12-26-2008, 06:43 PM
Please provide more details on 'idiot-bot'...
Product uses different way to detect referrer and update it's status. Referrerid is not needed in the registration link.
redlabour
12-26-2008, 08:07 PM
Please provide more details on 'idiot-bot'...
Product uses different way to detect referrer and update it's status. Referrerid is not needed in the registration link.
Cybernetec - the chinese Spambot that causes Registrations everywhere and the Discussions of the last Months.
samuelss
12-28-2008, 10:20 PM
I have activated this adon from the admin panel but yet its not showing to new registrant. I may be missing something. I have only imported the product into my forum although I found 2 files from the download. What is the 2nd file meant for?
Thanks.
Valter
12-28-2008, 10:26 PM
vBulletin Options > Cyb - Advanced Registration
Quick Links > Advanced Registration Management
Shazz
12-29-2008, 03:29 AM
Great addtion here cyb
samuelss
12-29-2008, 10:26 AM
vBulletin Options > Cyb - Advanced Registration
Quick Links > Advanced Registration Management
Not sure if this is an answer to my question but i will take it as it is. I ca not see any Quick Links in my Admin Panel. I can see vBulletin Options > Cyb - Advanced Registration
but not Quick Links > Advanced Registration Management.
Much appreciated.
Valter
12-29-2008, 07:02 PM
Quick Links is located in forum navbar.
https://vborg.vbsupport.ru/attachment.php?attachmentid=90326&d=1228770348
samuelss
12-29-2008, 08:22 PM
All working now except that no Invitation Code was included in the email invitation sent.
Many thanks.
Valter
12-29-2008, 09:11 PM
Invitation code is included in e-mail only when it's required to join.
Check hack options.
samuelss
12-30-2008, 04:56 PM
Invitation code is included in e-mail only when it's required to join.
Check hack options.
Thanks for being so helpful.
Valter
12-30-2008, 06:07 PM
You're welcome :-)
Valter
01-01-2009, 10:12 PM
v1.4 - Jan 02. 2009.
- Break lists into pages with standard vB navigation
- Code cleanup
To upgrade:
- Import XML, allow overwrite
- Revert hack templates if any modified
redlabour
01-02-2009, 06:30 AM
Cybernetec - the chinese Spambot that causes Registrations everywhere and the Discussions of the last Months.
Any Idea why the Spambots still come through the Registrationquestions?
kkeezer
01-02-2009, 05:46 PM
Updated, TY! :up:
Kyle
Aneurysm
01-05-2009, 06:04 AM
Thanks for the update!!!
Computer_Angel
01-06-2009, 02:14 AM
In hook: register_addmember_process
if (($cybareg_tiinfo['inviter']>0) AND empty($userdata->errors))
{
$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "cyb_advreg_invite SET done = '1' WHERE id = '".$db->escape_string($cybareg_tiinfo['id'])."' ");
$cybareg_refinfo = $vbulletin->db->query_first("
SELECT username
FROM " . TABLE_PREFIX . "user AS user
WHERE userid = '".$db->escape_string($cybareg_tiinfo['inviter'])."'
");
$userdata->set('referrerid', $cybareg_refinfo['username']);
}
$db->show_errors();
It seem you missing the show error when no invitation/ invalid invitation code. So the registration process will continue going event I set the option "Only invited users can register".
Computer_Angel
01-06-2009, 02:17 AM
In the hook : parse_templates
if ($vbulletin->options['cybareg_enable'] AND $vbulletin->options['cybareg_enable_invite'] AND $vbulletin->userinfo['userid'])
{
$cybareg_navbarlink = "<a href=\"misc.php?do=cybareginv\">".$vbphrase['cybareg_invitation_invite']."</a>";
if ($vbulletin->options['cybareg_enable_link'])
{
$vbulletin->templatecache['navbar'] = str_replace('vbphrase[faq]</a></td>','vbphrase[faq]</a></td><td class=\"vbmenu_control\">$cybareg_navbarlink</td>',$vbulletin->templatecache['navbar']);
}
}
The invite friend link seem appear when using the default template. If I use other template then the invite link doesn't appear.
Valter
01-06-2009, 06:08 PM
Just leave these plug-ins alone, it works properly. :-)
"Invite" link should be added manually to custom styles.
And use CODE tags when you want to post codes on forums.
ScienceOfMuscle
01-08-2009, 12:37 AM
Just leave these plug-ins alone, it works properly. :-)
"Invite" link should be added manually to custom styles.
And use CODE tags when you want to post codes on forums.
Hopefully you can help Cyb. I really love this mod, and installed it two days ago. What I was hoping to change was how invitations are submitted.
I want users to be able to change what the email will say, instead of having a static message that goes to all. Is there a way to do so?
Computer_Angel
01-08-2009, 12:50 AM
Just leave these plug-ins alone, it works properly. :-)
"Invite" link should be added manually to custom styles.
And use CODE tags when you want to post codes on forums.
Sorry, it's your code and I think you'll regconize .
It doesn't working properly in my forum for option "Only invited users can register" so you may recheck the code you upload in here again to see clearly what happen.
CPOWA
01-08-2009, 02:04 AM
Thank you Cyb!
This product is fantastic. I have not had a single bot registeration since I installed it the other day.
Best Regards,
Nita
GeorgeB85
01-16-2009, 11:53 AM
Um I am only seeing some of the option but not all of them. Like the link in the navbar, I dont see.
And I dont know see these either.
- 'Invitations System' - Let users invite their friends to join community
- You can choose to accept only invited people to register
- 'moderated users' management (accept/edit/contact/delete)
- e-mail users automatically when their accounts are accepted (can be on/off)
- 'non-activated users' management (accept/edit/contact/delete)
- Option to delete inactive accounts automatically if not confirmed X days after registration
According to the thread, it is supposed to all show up on one thread.
This addon does not work, im using vb3.7 and if they dont enter an invite code, they can still register
here is a screenshot of my settings
are we going to get an update on this hack to 1.5 like you did for the vb3.8 version?
Valter
01-25-2009, 12:32 AM
v1.6 - Jan 25. 2009.
-Fixed bug (user can register without proper invitation code)
-New: Send multiple invitations at once
-New option: Maximum Invitations user can send at once
-New: Inviters are now able to add they real name to the message
-Minor bug fixes
To upgrade:
-Import XML, allow overwrite
-Revert hack templates if modified before
-Check new options and update if needed
rogue-tomato
01-25-2009, 07:17 AM
awesome.
GeorgeB85
01-25-2009, 04:56 PM
v1.6 - Jan 25. 2009.
-Fixed bug (user can register without proper invitation code)
-New: Send multiple invitations at once
-New option: Maximum Invitations user can send at once
-New: Inviters are now able to add they real name to the message
-Minor bug fixes
To upgrade:
-Import XML, allow overwrite
-Revert hack templates if modified before
-Check new options and update if needed
Will this mod also be able to work on 3.8?
Valter
02-08-2009, 08:36 PM
v1.7 - Feb 08. 2009.
-Fixed bug (Blank 'inviter' field for inviters who have been deleted in the meantime)
-Better inactive users detection for auto-prune (only zero-posters deleted)
-Fixed some CSS validation errors
-New: Check if e-mail address is already registered or invited before sending invitation
-Minor bugs fixed
Upgrade info:
-Import XML, allow overwrite
-Revert hack templates if modified before
shervin_dvb
03-14-2009, 12:45 PM
do work this mode on the 3.8.1 ?
GeorgeB85
03-14-2009, 02:08 PM
I am using this on 3.8.1 and I have had two different members email me telling me they could not join because the invitation code was invalid. Why is this happening? No one else has had this issue.
mr.reza
06-01-2009, 06:00 PM
when i want to change Random Questions and click the [Setup] nothin happen .
what can i do ?
vitrag24
07-08-2009, 06:51 PM
i want to install it.
but can u add one more feature?
pay to register along with registration by invite?
I want pay to register/registration by invite and while registration user can choose any subscription..
jskoh
07-23-2009, 11:48 AM
hi.. isit the max to send invitation per time is 3? seem like more email cant be sent.
Valter
07-23-2009, 01:18 PM
Check product options.
jskoh
07-23-2009, 01:33 PM
ok.. i got it. thank.. very nice mod.
Gaskell
08-04-2009, 03:32 PM
Hi Cybernetec,
I've installed this modification but my Global Moderators (all of whom can moderate users) don't have access to the user moderation page. Instead they get sent to misc.php's smiley list. It works fine for normal Administrators though.
Any ideas on the problem?
vitrag24
08-05-2009, 08:39 AM
Hello Cybernetec,
Can u add this in next update plz?
https://vborg.vbsupport.ru/showpost.php?p=1845279&postcount=84
Gaskell
08-06-2009, 10:39 AM
Hi Cybernetec,
I've installed this modification but my Global Moderators (all of whom can moderate users) don't have access to the user moderation page. Instead they get sent to misc.php's smiley list. It works fine for normal Administrators though.
Any ideas on the problem?
Sorted this myself by finding is_member_of($vbulletin->userinfo,6) in the "Cyb - Advanced Registration - ED" plugin and replacing it with is_member_of($vbulletin->userinfo,5,6) (where 5 is my Global Moderator group).
Gaskell
08-08-2009, 10:31 AM
Is there any way to highlight COPPA users on the moderated user listing?
GeorgeB85
09-17-2009, 01:09 PM
I temporarily disabled this hack, but I am decided to re enable it. However, I think I accidently did something wrong because where it says "Invitation code: 312312312" instead of giving numbers, it gives the referrals name.
My question is, in the phrase manager, what is the number that goes in between {} so the invite code shows up instead of the referrals name.
MrRem
12-15-2009, 01:22 PM
Erm... Why does this show the Smiley list if you dont have access to send invites?
BadgerDog
01-31-2010, 06:20 PM
Installed .... :up:
Thanks ...
Is there a reason the "Random Question" doesn't appear on the registration page when that option is turned ON?
Any help would be appreciated...
Thanks
Regards,
Badger
BadgerDog
02-03-2010, 10:24 PM
Anyone else having the problem mentioned in previous post?
Thanks .. :)
Regards.
Badger
Firestorm17
07-18-2010, 03:38 PM
Excuse me , this add on work's with vb 4.0.x???
ryancooper
09-16-2010, 04:57 PM
to allow admins only to use this replace the template cyb_areg_invite with
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[cybareg_invitations]</title>
<script language="Javascript" type="text/javascript">
function CybAReg_CheckMail(email_field,error_field,target){
emailRegExp = /^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.([A-Za-z]){2,4})$/;
var error_address = '$vbphrase[cybareg_invitation_mailerror]: ';
var error_blank = '$vbphrase[cybareg_invitation_missingmail]';
var error_number = '$vbphrase[cybareg_invitation_limit]: $vboptions[cybareg_invite_oncelimit]';
var wait_message = '$vbphrase[cybareg_wait]';
var email = target.split(",");
var errmail = "";
if (target=='')
{
document.getElementById(error_field).innerHTML=err or_blank;
document.cybareg_invite.cybareg_invite_email.focus ();
return false;
}
else if (email.length>$vboptions[cybareg_invite_oncelimit])
{
document.getElementById(error_field).innerHTML=err or_number;
document.cybareg_invite.cybareg_invite_email.focus ();
return false;
}
else
{
for (var i in email)
{
if (!emailRegExp.test(email[i]))
{
errmail += "; " + email[i];
}
}
if (errmail)
{
document.cybareg_invite.cybareg_invite_email.focus ();
document.getElementById(error_field).innerHTML=err or_address + "<span class=\"smallfont\">" + errmail.substr(1) + "</span>";
return false;
} else {
document.getElementById(error_field).innerHTML=wai t_message;
return true;
}
}
}
function CybAReg_UpdName(name){
if (name=='')
{
cybareg_name = "";
}
else
{
cybareg_name = " (" + name + ")";
}
document.getElementById('cybareg_nameupd').innerHT ML=cybareg_name;
}
</script>
</head>
<body onload="document.cybareg_invite.cybareg_invite_email.focus ();">
$header
$navbar
<if condition="(($vboptions[cybareg_invite_amount]>0) AND ($cyb_areg_total_inv_user >= $vboptions[cybareg_invite_amount]))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
<td class="tcat" align="$stylevar[left]">$vbphrase[cybareg_invitations]</td>
</tr>
<tr>
<td class="alt1" align="center"><phrase 1="$vboptions[cybareg_invite_amount]">$vbphrase[cybareg_invitation_nomore]</phrase></td>
</tr>
</table>
<else />
<if condition="$bbuserinfo['usergroupid'] == 6">
<form name="cybareg_invite" id="cybareg_invite" action="misc.php?do=cybareginvdo" method="post" onsubmit="return CybAReg_CheckMail('cybareg_invite_email','cybareg_ wrongmail', document.cybareg_invite.cybareg_invite_email.value );">
<input type="hidden" name="securitytoken" value="$cybareg_sectok" />
<input type="hidden" name="cybareg_inviter_id" value="$bbuserinfo[userid]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="$stylevar[left]" colspan="2">$vbphrase[cybareg_invitations] $cyb_areg_inv_myinfo</td>
</tr>
<tr>
<td class="thead" align="$stylevar[left]">$vbphrase[email]</td>
<td class="thead" align="$stylevar[left]" width="50%">$vbphrase[cybareg_invitation_message_info]</td>
</tr>
<tr>
<td class="alt1" align="center"><span class="smallfont">$vbphrase[cybareg_invitation_notes]</span><br /><br /><span id="cybareg_wrongmail" style="color:red;">$vbphrase[cybareg_invitation_recipients]:</span><br /><br /><input type="text" class="smallfont" id="cybareg_invite_email" name="cybareg_invite_email" value="" size="50" dir="ltr" /></td>
<td class="alt2" align="$stylevar[left]" rowspan="2"><pre style="font-family:Verdana;font-size:11px">$cybareg_invmess_preview</pre></td>
</tr>
<tr>
<td class="alt1" align="center"><span class="smallfont">$vbphrase[cybareg_invitation_realname]</span><br /><br /><span>$vbphrase[cybareg_invitation_yourname]:</span><br /><br /><input type="text" class="smallfont" id="cybareg_inviter_name" name="cybareg_inviter_name" value="" size="50" dir="ltr" onkeyup="CybAReg_UpdName(this.value);" /></td>
</tr>
<tr>
<td class="tfoot" align="center" colspan="2"> <input class="buton" type="submit" value=" $vbphrase[send] " /><br>At this time invites are limited to admins only.</td>
</tr>
</table>
</form>
</if></if>
<br />
At this time invites are limited to admins only.
$footer
</body>
</html>
it doesn't actually NOT allow users to use the invites BUT it hides the invite forum to all but admins... Hope this helps soneone!
Ryan
AuroraStorm
03-31-2011, 10:17 PM
Works just fine...thanks!
AuroraStorm
03-31-2011, 10:36 PM
How can I assign this to the Super Moderator?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.