PDA

View Full Version : Use plugin to edit a file


Scanu
06-19-2012, 07:59 PM
Hi everyone i see this mod of Marco, you have to go in includes/functions_login.php
And replace this code

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


With this

//++++Start+hack+login+with+mail+address+(MarcoH64)
//++++if+($vbulletin->userinfo+=+$vbulletin->db->query_first("SELECT+userid,+usergroupid,+membergroupids,+infrac tiongroupids,+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,+infrac tiongroupids,+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,+infrac tiongroupids,+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+(MarcoH64)+


There is a way to do this with the plugin system?

--------------- Added 1340140233 at 1340140233 ---------------

Sorry i have problems pasting the code however you can see it here: https://vborg.vbsupport.ru/showpost.php?p=2276545&postcount=39

kh99
06-19-2012, 08:11 PM
Are you asking if you can implement that mod without editing files? There is a vb4 mod that does that here: www.vbulletin.org/forum/showthread.php?t=275348

Scanu
06-19-2012, 08:23 PM
Unfortunately it doesn't work on the last version of vbulletin