vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - Advanced Registration (https://vborg.vbsupport.ru/showthread.php?t=236117)

Alibass 10-30-2010 09:05 PM

1 Attachment(s)
:(@valter

Seems this error start when I updated to 4.0.8

Valter 10-31-2010 07:07 AM

Ensure that product templates are up to date.

I've just tested this on two 4.0.8 forums and it worked fine.

Alibass 10-31-2010 04:34 PM

Quote:

Originally Posted by Alibass (Post 2116169)
:(@valter

Seems this error start when I updated to 4.0.8

Quote:

Originally Posted by Valter (Post 2116280)
Ensure that product templates are up to date.

I've just tested this on two 4.0.8 forums and it worked fine.

Valter,

There is an conflict with mod 'Movie Of The Week' and your mod that is causing the problem. No problems with 4.0.8, all templates clear and working properly.
I can disable MOTW and your mod works fine.

stwan 11-01-2010 01:00 PM

1 Attachment(s)
Not valid code in template vsa_areg_invite:
HTML Code:

<script language="Javascript" type="text/javascript">
                                function VSaAReg_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})$/;
                                        error_address = '{vb:rawphrase vsaareg_invitation_mailerror}: ';
                                        error_blank = '{vb:rawphrase vsaareg_invitation_missingmail}';
                                        error_number = '{vb:rawphrase vsaareg_invitation_limit}: {vb:raw vboptions.vsaareg_invite_oncelimit}';
                                        wait_message = '{vb:rawphrase vsaareg_wait}';
                                        target_clean = target.replace(" ","");
                                        email = target_clean.split(",");
                                        errmail = "";

                                        if (target_clean=='')
                                        {
                                                document.getElementById(error_field).innerHTML=error_blank;
                                                document.vsaareg_invite.vsaareg_invite_email.focus();
                                                return false;
                                        }
                                        else if (email.length>{vb:raw vboptions.vsaareg_invite_oncelimit})
                                        {
                                                document.getElementById(error_field).innerHTML=error_number;
                                                document.vsaareg_invite.vsaareg_invite_email.focus();
                                                return false;
                                        }
                                        else
                                        {
                                                for (var i in email)
                                                {
                                                        if (!emailRegExp.test(email[i]))
                                                        {
                                                                errmail += "; " + email[i];
                                                        }
                                                }
                                                if (errmail)
                                                {       
                                                        document.vsaareg_invite.vsaareg_invite_email.focus();
                                                        document.getElementById(error_field).innerHTML=error_address + "<span class=\"smallfont\">" + errmail.substr(1) + "</span>";
                                                        return false;
                                                } else {
                                                        document.getElementById(error_field).innerHTML=wait_message;
                                                        return true;
                                                }
                                        }
                                }
                                function VSaAReg_UpdName(name){
                                        if (name=='')
                                        {
                                                vsaareg_name = "";
                                        }
                                        else
                                        {
                                                vsaareg_name = "&nbsp;(" + name + ")";
                                        }
                                        document.getElementById('vsaareg_nameupd').innerHTML = vsaareg_name;
                                }
                        </script>


Fix:
HTML Code:

<script language="Javascript" type="text/javascript">
<!--
                                function VSaAReg_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})$/;
                                        error_address = '{vb:rawphrase vsaareg_invitation_mailerror}: ';
                                        error_blank = '{vb:rawphrase vsaareg_invitation_missingmail}';
                                        error_number = '{vb:rawphrase vsaareg_invitation_limit}: {vb:raw vboptions.vsaareg_invite_oncelimit}';
                                        wait_message = '{vb:rawphrase vsaareg_wait}';
                                        target_clean = target.replace(" ","");
                                        email = target_clean.split(",");
                                        errmail = "";

                                        if (target_clean=='')
                                        {
                                                document.getElementById(error_field).innerHTML=error_blank;
                                                document.vsaareg_invite.vsaareg_invite_email.focus();
                                                return false;
                                        }
                                        else if (email.length>
{vb:raw vboptions.vsaareg_invite_oncelimit})
                                        {
                                                document.getElementById(error_field).innerHTML=error_number;
                                                document.vsaareg_invite.vsaareg_invite_email.focus();
                                                return false;
                                        }
                                        else
                                        {
                                                for (var i in email)
                                                {
                                                        if (!emailRegExp.test(email[i]))
                                                        {
                                                                errmail += "; " + email[i];
                                                        }
                                                }
                                                if (errmail)
                                                {       
                                                        document.vsaareg_invite.vsaareg_invite_email.focus();
                                                        document.getElementById(error_field).innerHTML=error_address + "<span class=\"smallfont\">" + errmail.substr(1) + "</span>";
                                                        return false;
                                                } else {
                                                        document.getElementById(error_field).innerHTML=wait_message;
                                                        return true;
                                                }
                                        }
                                }
                                function VSaAReg_UpdName(name){
                                        if (name=='')
                                        {
                                                vsaareg_name = "";
                                        }
                                        else
                                        {
                                                vsaareg_name = "&nbsp;(" + name + ")";
                                        }
                                        document.getElementById('vsaareg_nameupd').innerHTML = vsaareg_name;
                                }
//-->

                        </script>


And not valid code in template vsa_areg_manage:
HTML Code:

<script language="Javascript" type="text/javascript">
<!--
                                function VSaChAregAll(obj) {
                                        arrInput = document.getElementsByTagName("input");
                                        for (i=0; i<arrInput.length; i++) {
                                                if (arrInput[i].type == 'checkbox') {
                                                        arrInput[i].checked = obj.checked;
                                                }
                                        }
                                }
                                function VSa_SwitchAreg(target)
                                {
                                        if (target=="users_mod")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "block";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="users_act")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "block";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="users_inv")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "block";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="questions")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "block";
                                        }
                                }
//-->

                        </script>

Fix:
HTML Code:

<script language="Javascript" type="text/javascript">
                                function VSaChAregAll(obj) {
                                        arrInput = document.getElementsByTagName("input");
                                        for (i=0; i<arrInput.length; i++) {
                                                if (arrInput[i].type == 'checkbox') {
                                                        arrInput[i].checked = obj.checked;
                                                }
                                        }
                                }
                                function VSa_SwitchAreg(target)
                                {
                                        if (target=="users_mod")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "block";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="users_act")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "block";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="users_inv")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "block";
                                                document.getElementById("vsaareg_tq").style.display = "none";
                                        }
                                        if (target=="questions")
                                        {
                                                document.getElementById("vsaareg_tu_mod").style.display = "none";
                                                document.getElementById("vsaareg_tu_act").style.display = "none";
                                                document.getElementById("vsaareg_tu_inv").style.display = "none";
                                                document.getElementById("vsaareg_tq").style.display = "block";
                                        }
                                }
                        </script>

And bug on screenshot:
Attachment 123297

Krusty1231 11-01-2010 01:30 PM

This is awesome if your site is invite only (which mine happens to be) I keep seeing a lot of spammers trying to sign up - but without the invite code - it's a no go for them.

Thanks for this.

Alibass 11-01-2010 04:36 PM

@stwan

Is your fix regarding my posts (161 & 163) or for something else? I don't quite follow your post.

ryancooper 11-03-2010 05:31 PM

Hello I am sorry to post this here but I am running 3.8 and this hack stopped working. I have posted in the 3.8 hack topic but got no response. Hoping someone here can help out..

Thank you for you time and any help!

This worked fine for the longest time but all of a sudden when I enter a email then hit submit and this comes above in red

Error: e-mail address(es) incorrect: [object Object]; function forEach() { [native code] }; function (){ return this.filter($defined); }; function (keys){ var obj = {}, length = Math.min(this.length, keys.length); for (var i = 0; i < length; i++) obj[keys[i]] = this[i]; return obj; }; function (object){ var result = {}; for (var i = 0, l = this.length; i < l; i++){ for (var key in object){ if (object[key](this[i])){ result[key] = this[i]; delete object[key]; break; } } } return result; }; function (item, from){ return this.indexOf(item, from) != -1; }; function (array){ for (var i = 0, j = array.length; i < j; i++) this.push(array[i]); return this; }; function (){ return (this.length) ? this[this.length - 1] : null; }; function (){ return (this.length) ? this[$random(0, this.length - 1)] : null; }; function (item){ if (!this.contains(item)) this.push(item); return this; }; function (array){ for (var i = 0, l = array.length; i < l; i++) this.include(array[i]); return this; }; function (item){ for (var i = this.length; i--; i){ if (this[i] === item) this.splice(i, 1); } return this; }; function (){ this.length = 0; return this; }; function (){ var array = []; for (var i = 0, l = this.length; i < l; i++){ var type = $type(this[i]); if (!type) continue; array = array.concat((type == 'array' || type == 'collection' || type == 'arguments') ? Array.flatten(this[i]) : this[i]); } return array; }; function (array){ if (this.length != 3) return null; var rgb = this.map(function(value){ if (value.length == 1) value += value; return value.toInt(16); }); return (array) ? rgb : 'rgb(' + rgb + ')'; }; function (array){ if (this.length < 3) return null; if (this.length == 4 && this[3] == 0 && !array) return 'transparent'; var hex = []; for (var i = 0; i < 3; i++){ var bit = (this[i] - 0).toString(16); hex.push((bit.length == 1) ? '0' + bit : bit); } return (array) ? hex : '#' + hex.join(''); }; function (){ return JSON.encode(this); }

Again I realize this is the wrong version forum but this is my last ditch effort to get it working! :)

RobbieZ 11-03-2010 06:46 PM

Quote:

Originally Posted by Alibass (Post 2116794)
@stwan

Is your fix regarding my posts (161 & 163) or for something else? I don't quite follow your post.

I tried stwan's fix but it still didnt accomplish anything.

This has stopped working on 4.0.6 so it's not 4.0.8 related and MOTW is also disabled so its not that.

@ryancooper.. same problem bud all round.

ryancooper 11-03-2010 06:56 PM

@ RobbieZ Thanks! :)

Alibass 11-06-2010 11:30 PM

@RobbieZ

I had this mod working good on 4.0.7 and 4.0.8 then I installed MOTW and the mod stopped. I can disable MOTW and the mod will work. You may have another mod conflicting.

RobbieZ 11-07-2010 12:56 AM

@Alibass

I'll disable everything on my test board and see which nod conflicts with it.

Gemma 11-07-2010 10:55 AM

Quote:

Originally Posted by RobbieZ (Post 2118875)
@Alibass

I'll disable everything on my test board and see which nod conflicts with it.

RobbieZ if you are using MOTW try disabling the Movie Of The Week: FT - Lytebox plugin.

That is what I did and the invitations work again.

edit: Just noticed you said you aren't using MOTW - maybe another Lytebox mod?

amorosso 11-07-2010 01:02 PM

Very awesome. Super easy to install and setup.

ryancooper 11-08-2010 05:18 PM

I tried disabling all plugins and still get the same error...

FReeSTER 11-12-2010 11:41 AM

For those that have problem with the style that looks bad with this mod I fixed it by adding
Code:

{vb:raw headinclude_bottom}
above </head> on templates

vsa_areg_editquestion
vsa_areg_invite
vsa_areg_manage

hope it helps

RobbieZ 11-12-2010 02:30 PM

Quote:

Originally Posted by Gemma (Post 2118980)
RobbieZ if you are using MOTW try disabling the Movie Of The Week: FT - Lytebox plugin.

That is what I did and the invitations work again.

edit: Just noticed you said you aren't using MOTW - maybe another Lytebox mod?

I disabled everything on my test board except for VGA Adv Reg and uninstalled and re-installed and it still doesnt work. lol

Cheers Gemma :)

STORMS 11-28-2010 08:42 PM

Is there a way to let my Lead Moderators access "Advanced Registration?"

btlewand 12-04-2010 03:20 PM

Does the product work with v 4.1?

Alibass 12-04-2010 08:39 PM

Yes, I'm using it on 4.1.0 PL2

Taurus1 12-12-2010 01:51 AM

Quote:

Originally Posted by El Intocable (Post 2120903)
For those that have problem with the style that looks bad with this mod I fixed it by adding
Code:

{vb:raw headinclude_bottom}
above </head> on templates

vsa_areg_editquestion
vsa_areg_invite
vsa_areg_manage

hope it helps

Thanks for that. Worked a charm! :up:

Cyamia 12-18-2010 01:18 AM

This is great Valter!!
So far, it works great as it has been promised.

Good job!!

mmacrypt 01-05-2011 12:42 AM

Thank you for this mod, I just installed this along with the Glow Mod it help prevent spam. Been getting hit hard these last 2 days and I can see this along with the other mod blocking 99% of it. So again, thank you.

Roachy 01-08-2011 08:12 AM

The maximum number of characters you can have in a question appears to be 100. Can you please raise this? 100 characters is not nearly long enough for my purposes.

Also any word on this?:

Quote:

Originally Posted by MonsterDK (Post 2114103)
hey, you know the a answers to the registration questions, they seem to be care sensitive?
so if the answer is 'apple' and you input 'Apple' it fails.. can this be sorted.. is there a way to input more than one answer to over come this?


elwachiman 01-08-2011 01:36 PM

worki perfect in vb4.0.8pl2
but dont show the invitation code.

txsbmw 01-08-2011 03:42 PM

I am getting the following when trying to send an invite. I just installed this on 4.1.0 PL2

Quote:

Error: e-mail address(es) incorrect: function(obj, start) { for (var i = (start || 0), j = this.length; i < j; i++) { if (this[i] === obj) { return i; } } return -1; }


venom2124 01-15-2011 03:18 AM

Quote:

Originally Posted by Animemike (Post 2039252)
Awesome mod!!! thanks so much

Question
What is the template called where i can edit "Message to be sent" please
ive viewed source and it says its in Navbar :O

Thanks alot

Edit allright i found the phase and edited it
Edit the plugin by adding
Code:

$vbulletin->userinfo[userid]
Close i got
To sign up please visit the following page:
http://www.myanimeisland.com/register.php?referrerid=
Just missing the user ID at the end

So what is the phrase that I need to edit to change the message.

horussjr 01-15-2011 11:52 AM

now working with other themes than the default one.... templates problems...:-??

Paul. 01-15-2011 03:49 PM

Quote:

- e-mail users automatically when their accounts are accepted (can be on/off)
Where do I make edits to this? Or even enable it?

Valter 01-16-2011 09:24 AM

It's enabled by default. Option to disable e-mails is found below user list:
https://vborg.vbsupport.ru/attachmen...4&d=1266418097

horussjr 01-16-2011 11:18 AM

Quote:

Originally Posted by horussjr (Post 2149430)
now working with other themes than the default one.... templates problems...:-??

can you help me please?

Paul. 01-16-2011 04:32 PM

Quote:

Originally Posted by Paul. (Post 2150071)
Oh I see, thank you Valter. :)

Actually.. the tick box isn't there for me.. :(
How did I manage that?

The Vegan Forum 01-16-2011 04:51 PM

Doesn't work here. Trying to setup the Question/Answer features takes me to the Smilies overview.

andreamarucci 01-19-2011 06:19 PM

From when I've updated to 408pl2 in my admin the "Only invited users can register" is set to YES but the register button appear at the top. How can I hide the register button?

horussjr 01-19-2011 06:44 PM

edit header template for each style and delete the lines corresponding

Dark_Jack 01-26-2011 04:41 PM

Great!

sivaganeshk 01-29-2011 10:41 AM

Hey, there is an error in Invite Friends...
I entered the email and It says

[I]
Quote:

Error: e-mail address(es) incorrect: [object Object]; function forEach() { [native code] }; function () { return this.filter($defined); }; function (keys) { var obj = {}, length = Math.min(this.length, keys.length); for (var i = 0; i < length; i++) { obj[keys[i]] = this[i]; } return obj; }; function (object) { var result = {}; for (var i = 0, l = this.length; i < l; i++) { for (var key in object) { if (object[key](this[i])) { result[key] = this[i]; delete object[key]; break; } } } return result; }; function (item, from) { return this.indexOf(item, from) != -1; }; function (array) { for (var i = 0, j = array.length; i < j; i++) { this.push(array[i]); } return this; }; function () { return this.length ? this[this.length - 1] : null; }; function () { return this.length ? this[$random(0, this.length - 1)] : null; }; function (item) { if (!this.contains(item)) { this.push(item); } return this; }; function (array) { for (var i = 0, l = array.length; i < l; i++) { this.include(array[i]); } return this; }; function (item) { for (var i = this.length; i--; i) { if (this[i] === item) { this.splice(i, 1); } } return this; }; function () { this.length = 0; return this; }; function () { var array = []; for (var i = 0, l = this.length; i < l; i++) { var type = $type(this[i]); if (!type) { continue; } array = array.concat(type == "array" || type == "collection" || type == "arguments" ? Array.flatten(this[i]) : this[i]); } return array; }; function (array) { if (this.length != 3) { return null; } var rgb = this.map(function (value) {if (value.length == 1) {value += value;}return value.toInt(16);}); return array ? rgb : "rgb(" + rgb + ")"; }; function (array) { if (this.length < 3) { return null; } if (this.length == 4 && this[3] == 0 && !array) { return "transparent"; } var hex = []; for (var i = 0; i < 3; i++) { var bit = (this - 0).toString(16); hex.push(bit.length == 1 ? "0" + bit : bit); } return array ? hex : "#" + hex.join(""); }; function () { return JSON.encode(this); }

Wolver2 02-03-2011 03:25 PM

Valter thank you very much for this Mod..

I was so excited to use it and everything works up to the moment after adding a reciept and send. It also says sucessful...

But any test email adress I add .. the emails never arrive in any of my inboxes :/ Im not sure why.
Other Emails from the forum arrives.. just from this mod not

I am using vb 4.05

By the way is it aswell possible to generate the Invitation codes? on the panel without sending them through email?

Wolver2 02-04-2011 08:57 PM

Got it to work now yay! LOL

I noticed the users recieve the invitation emails sometimes up to 6 hours...
A huge delay... How can i change its setting to make it send right away?

tdkmatt 02-16-2011 11:20 AM

1 Attachment(s)
a little help please. When i try and setup the question/answer i get this its really narrow, and the text is black

im using 4.1.1

tdkmatt 02-16-2011 12:27 PM

it email system works, but the template looks like that and the text is black!!! :( and you can see it until you highlight it


All times are GMT. The time now is 09:13 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.01676 seconds
  • Memory Usage 1,915KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_html_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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