The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hey im making a page.
I'll provide it a user id & i want it to show that - user name (with proper HTML markup) - user title (custom title if that user use one) - ranks i mean i'll type the link like this: http://DOMAIN/PATH/MYFILE.php?u=6 (here 6 is the user id) it'll show me those info of user-6 plz give me the php code for such a file... thank you. ![]() |
#2
|
||||
|
||||
![]()
Look up the function fetch_userinfo (do a search in your files for it, I can't remember which file it is in).
|
#3
|
|||
|
|||
![]()
i looked in function.php file & found some code...based on those i wrote these code
PHP Code:
but what about Ranks plz help me about RANKS |
#4
|
||||
|
||||
![]()
You might want to familiarize yourself with the vBulletin API. In the functions, you will find fetch_rank.
|
#5
|
|||
|
|||
![]()
Isn't his SQL query open to injection attacks?
Unless vB's query_read() function protects against it. |
#6
|
||||
|
||||
![]()
Like I told him, he should use the existing functions. And yes, he should use the input cleaner also.
|
#7
|
|||
|
|||
![]()
guys english plz
![]() 1st of all what is "SQL query open to injection attacks". how can i solve it? lynne u told about existing functions ! could u guys plz, plz & plz post some PHP code here as an example? plz stop telling look here or there...find it....its really not an easy thing for a novice coder |
#8
|
||||
|
||||
![]()
The existing php code is in the vbulletin files. Did you try a search in the files for fetch_userinfo? It shows up many times and you can see the use of it. These are some excepts from a page I use:
First the cleaner is used on the userid that is passed from the form: PHP Code:
PHP Code:
There are articles you can read on the user of the vbulletin cleaner and on writing secure code. |
#9
|
|||
|
|||
![]()
thank you Lynne. thank you very much.
especially for PHP Code:
i tried something like this PHP Code:
can u plz help me....plz |
#10
|
||||
|
||||
![]()
Did you look the function up in the API like I suggested? The API will tell you what file it is in. Or, do a search in the files for the function to find what file it is in and then make sure you either include the file in your code, or copy/paste the function into your code.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|