الأحد، 29 يوليو 2012

Hack to learn to build your own in the new vBulletin

Peace and mercy of Allah

After we learned how to build a new advanced in previous topic, I want today to talk about how to program Hack your own and develop, and we will study the basics only, without going into tedious details, we will not subject in general and will not serve as a starting point you in the world of programming and the development of the vBulletin 3.5
Note: Of course you should not familiar with the programming language PHP and MySQL database languageOf course there is a very significant change in the names of functions and variables and arrays between Version 3.0.x and Version 3.5,Some of the changesCODE:000100020003000400050006000700083.0.x => 3.5$ DB_site-> => $ db->$ Bbuserinfo [] => $ vbulletin-> userinfo []$ Vboptions [] => $ vbulletin-> options []$ _GET / $ _REQUEST / $ _POST / $ _COOKIE => $ Vbulletin-> GPC []globalize () => $ vbulletin-> input-> clean_array_gpc ()$ DB_site-> query (); => $ db-> query_read ();
Excuse me for the long introduction,Order for the programming any Hack should be connected to the database of the forum in order to Attny you to perform all orders of summonses and Almgaranat because the Forum the vBulletin based entirely on the database, I have the vBulletin Doualha and Clasadtha's communication with its rules of data and make queries it, and of course these functions and my classes will help us a lot and shorten us a lot of time and effort
Connect to the database and executing queriesFirst we have to ensure this filePHP CODE:00010002require ("global.php");
 
? '
Above all,Klaas was written especially to connect to the databaseCODE:0001$ DbOf course, the definition of the object file AlgulwbalCODE:0001$ Vbulletin-> db.There are functions to carry out queries on databases: -The first functionPHP CODE:00010002-> Query_read
This function is not specific to the implementation of the orders of SELECT and SHOW onlyExample:If we want to choose the Default User Name Forum in ÓćÇáÝ which number 12,894 (of course I am :))Should write:PHP CODE:00010002-> Query_read ("SELECT * FROM user WHERE userid = 12894");
 
? '
The second functionPHP CODE:00010002-> Query_write
This function is not implemented the orders of the UPDATE, and ALTER commands and all the data is modified
Example: -PHP CODE:00010002-> Query_write ("UPDATE user SET email = 'hamada4ever@sudabest.com' WHERE userid = 12894");
 
? '
Here has been updated email a private message to number "12894."You can bring everything from the database via the classCODE:0001$ Vbulletin, For examplePHP CODE:00010002-> Itemname,Now finished,And now we know how to contact the database and carry out the orders it, will I put to you as an application example of the entire practical for this lesson: -PHP CODE:00010002000300040005000600070008000900100011001200130014001500160017001800190020002100220023002400250026002700280029003000310032center><center> / / # # # # # # # # # # # # # # # # # # # # # # # # prepare an environmental public # # # # # # # # # # # # # # # # # # # # # # # # # # #error_reporting (E_ALL & ~ E_NOTICE);/ / # # # # # # # # # # # # # # # # # # # # # # # # # # # Constants # # # # # # # # # # # # # # # # # # # # # # # # # # #require_once ('. / global.php');$ Navbits = array ();/ / Page address in the tape$ Navbits [$ parent] = 'My art';$ Navbits = construct_navbits ($ navbits);/ / Set out from here/ / To display the page in Style without the use of Altmpelitat/ / And you can dispense with all thisecho $ stylevar [htmldoctype];echo $ headinclude;echo $ header;echo $ navbar;/ / Here our main$ Results = $ db-> query ("SELECT * FROM user WHERE userid = 12894");/ / Choose a User number 12894 in the database
        
while ($ result = $ db-> fetch_array ($ results)) {/ / Start of loopecho "The user name is: $ result [username]";echo "its e-mail: $ result [email]";

      
!/ / End loop/ / Footerecho $ footer;/ / # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #/ /. :: S u d a b e s t. c o m ::./ / # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #? '
This code does display the name of the user who number 12,894, and also displays his e-mail, change this number as you want, and its implementation,I hope this one is applied to the subject and introduce us to the forum that number 2, for example?
Thank you very much and wished I had not even a little AvdtkmPeace be upon you

ليست هناك تعليقات:

إرسال تعليق

ملحوظة: يمكن لأعضاء المدونة فقط إرسال تعليق.

تعديل

Blogger templates

Blogroll

Ads

forex trading-ufx bank- forex fx trading 831: this is site of forex trading- ufx bank- forex fx trading-Google AdSense-Internet News-Management Forums-Computer software

المشاركات الشائعة

قوالب بلوجر قوالب بلوجر معربة ثيمات بلوجر قالب ورد بريس قوالب ورد بريس قوالب بلوجر عربية