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)

ceho 07-18-2010 04:05 PM

The mod is great, but it ignores the additional.css. As this is where I defined parts of my header and footer, is it somehow possible to make the mod use the additional.css?

Thanks!

Edit: got it, {vb:raw headinclude_bottom} is missing. By the way, the Advanced Forum Rules have the same little issue, the PayPal Donate mod doesn't (I found the solution by comparing the templates ;-)).

aimsln 07-19-2010 07:01 PM

Creating mastercode for Invation system:


Replace the plug-in code of "VSa - Advanced Registration - MN"
PHP Code:

if ($vbulletin->options['vsaareg_enable'] AND $vbulletin->options['vsaareg_enable_questions'])
        {
            
$vbulletin->db->hide_errors();
            
$vbulletin->input->clean_array_gpc('p', array(
                
'vsaareg_id' => TYPE_UINT,
                
'vsaareg_answer' => TYPE_STR)
            );
            if (
$vbulletin->GPC['vsaareg_id']>0)
            {
                
$vsaareg_tqinfo $vbulletin->db->query_first("
                    SELECT id, question, answer
                    FROM " 
TABLE_PREFIX "vsa_advreg AS vsa_advreg
                    WHERE id = '"
.$vbulletin->db->escape_string($vbulletin->GPC['vsaareg_id'])."'
                "
);
                if (
strtoupper($vbulletin->GPC['vsaareg_answer']) != strtoupper($vsaareg_tqinfo['answer']))
                {
                    
$userdata->error('vsaareg_wrong_answer'$vbphrase['vsaareg_random_question']);
                }
            }
            
$vbulletin->db->show_errors();
        }
    
        if (
$vbulletin->options['vsaareg_enable'] AND $vbulletin->options['vsaareg_enable_invite'])
        {
            
$vsaareg_invonly "";
            if (
$vbulletin->options['vsaareg_enable_invite_only'])
            {
                
$vsaareg_aregcode $vbulletin->input->clean_gpc('p''vsaareg_code'TYPE_STR);
                
$vsaareg_invonly "AND code = $vsaareg_aregcode";
            }
            if(
$vsaareg_aregcode != 'masterinvitecode'
            {
                
$vbulletin->db->hide_errors();
                
$vsaareg_tiinfo $vbulletin->db->query_first("
                    SELECT id, inviter, invited, code
                    FROM " 
TABLE_PREFIX "vsa_advreg_invite AS vsa_advreg_invite
                    WHERE invited = '"
.$vbulletin->db->escape_string($vbulletin->GPC['email'])."' AND done = '0' $vsaareg_invonly
                "
);
                if (
$vsaareg_tiinfo['id']>0)
                {
                    if (empty(
$userdata->errors))
                    {
                        
$vbulletin->db->query_write(" UPDATE " TABLE_PREFIX "vsa_advreg_invite SET done = '1' WHERE id = '".                        $vbulletin->db->escape_string($vsaareg_tiinfo['id'])."' ");
                        
$vsaareg_refinfo $vbulletin->db->query_first("
                            SELECT username
                            FROM " 
TABLE_PREFIX "user AS user
                            WHERE userid = '"
.$vbulletin->db->escape_string($vsaareg_tiinfo['inviter'])."'
                        "
);
                        
$userdata->set('referrerid'$vsaareg_refinfo['username']);
                    }
                }
                else if (
$vbulletin->options['vsaareg_enable_invite_only'])
                {
                    
$userdata->error('vsaareg_wrong_invcode');
                }
                
$vbulletin->db->show_errors();
            } else {
                
$userdata->set('referrerid'useridnumber);
            }
        } 

Replace masterinvitecode by your string. Sample would be: funnyday
PHP Code:

if($vsaareg_aregcode != 'funnyday'

And change the useridnumber to the user who will be listed as the referer:
PHP Code:

$userdata->set('referrerid'1); 

Not the username but the userid!

In my case this is our admin.

:)

oddmud 07-19-2010 11:42 PM

I may be stupid but, I tried to register an account, and it didn't show me anywhere about sending invitations. I checked the settings, and usergroups 1 and 8 are not allowed to send invitations. So when do they get to send invitations if their still waiting email confirmation, or what not...

I'm not sure that makes a whole bunch of sense, but yeah.. i'm a little confused.

Gun Geek 07-20-2010 02:15 AM

Add aol to the list above.

BrightStar 07-20-2010 09:18 AM

Quote:

Originally Posted by Gun Geek (Post 2071085)
You need to make sure that your forum cookie settings are set up properly. I noticed that when logged in if I went to any other page it logged me out it wasnt just with this mod.

I've installed this mod on another forum and it works perfectly fine. the URL it takes you is exactly the same on both forum when setting up a random question but on my actual forum it takes me to the smilies page.

Could someone help me fix this as developer seems to be ignoring my question.

Thanks a lot.

ProFifaLeagues 07-20-2010 09:27 AM

Quote:

Originally Posted by Mike007 (Post 2071925)
I've installed this mod on another forum and it works perfectly fine. the URL it takes you is exactly the same on both forum when setting up a random question but on my actual forum it takes me to the smilies page.

Could someone help me fix this as developer seems to be ignoring my question.

Thanks a lot.

Maybe worth redownloading the xml and trying to re import it mate

BrightStar 07-20-2010 04:15 PM

Quote:

Originally Posted by rammieone (Post 2071927)
Maybe worth redownloading the xml and trying to re import it mate

Well that didnt help but thanks for the tip. Odd thing is it doesnt even appear in quick links menu either!

KURTZ 07-26-2010 04:39 PM

1 Attachment(s)
fully italian translation ... :D

mailshuxin 07-27-2010 06:16 AM

1 Attachment(s)
Chinese version
Tested on vbulletin suite 4.0.4

mailshuxin 07-27-2010 06:20 AM

Thins mod is very great


All times are GMT. The time now is 08:19 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.01479 seconds
  • Memory Usage 1,779KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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