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)
-   -   Login by username or email (https://vborg.vbsupport.ru/showthread.php?t=96832)

HMBeaty 12-14-2011 09:02 PM

Quote:

Originally Posted by malmazan (Post 2277805)
Did you change anything with respect to the latest v3 versions? I'm getting this error on v4.1.8:
Code:

Fatal error: Cannot redeclare fetch_replaced_session_url() (previously declared in root/includes/functions_login.php:14) in root/includes/functions_login.php on line 568

Only thing that was changed for vB 4 was this:
PHP Code:

 infractiongroupids

was added to the query

malmazan 12-15-2011 09:55 AM

Quote:

Originally Posted by imedic (Post 2276513)
There is a small bug ( a space between - and > ) and gives an error if you upgrade to 3.8.7 PL2 so here is the working code I use:

I tried that on v4.1.8 and it seems to work fine. Thanks for sharing.

wangyu1314 06-28-2012 12:10 PM

it is ok in vbb 3.8.7pl2

amanthena 07-17-2012 01:06 PM

It works perfectly on vbulletin 4.x as well

mifupa 07-17-2012 01:49 PM

vb 4.1.12 it works - thanks :)

vB-Tr 09-30-2013 09:46 PM

who can give me a code?


includes/functions_login.php find


Code:

if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))


than replace


Code:

// Start hack login with mail address (MarcoH64)
//        if ($vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
        if (!$vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"))
        {
                $vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE email = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'");
        }
        if ($vbulletin->userinfo)
// End hack login with mail address


but members are logged username.


version is 3.8.6

vB-Tr 10-01-2013 02:11 PM

who can help me ?

ozzy47 10-01-2013 03:45 PM

This mod was written for vB version 3.5.0 RC3, so some of the code may need tweaking, I suggest reading through the thread and see what other users have done to get it to work. :)

vB-Tr 10-02-2013 10:03 AM

Quote:

Originally Posted by ozzy47 (Post 2449301)
This mod was written for vB version 3.5.0 RC3, so some of the code may need tweaking, I suggest reading through the thread and see what other users have done to get it to work. :)

can you give me a code ?

ozzy47 10-02-2013 10:10 AM

As I stated, there is some suggestions in that modifications thread, some worked for some users, others used different approach. Best thing is to read through the thread, and see which way works for you. :)


All times are GMT. The time now is 10:22 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.01161 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (3)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