The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Many times we may need to use the LOG OUT HASH - Let's say, share a common logout between VB and non-VB pages?
Or perhaps serve as a unique ID? Instead of including it into a config file thru PHP, why not use mysql instead? It is a centralised location for your web apps. Requirements: mysql 5 Code:
Create VIEW vw_usernamelist AS (select userid,username, md5(concat(userid,salt,'<YOUR VB LICENSE CODE>') ) AS logouthash from user order by userid) Code:
select logouthash from vw_usernamelist where userid='12345' |
#2
|
||||
|
||||
![]()
How about just generate the ID dynamically with PHP? No need to query the SQL server.
![]() PHP Code:
|
#3
|
|||
|
|||
![]()
I opted for mysql style so that I will be able to do a query from db server directly. It will also be indepedent of any development language. Eg: A vb forum + integration with a non-PHP web scripting lang.
|
#4
|
||||
|
||||
![]()
The code I posted is pseudo and can be adapted for different languages. Most languages will have an MD5 function built-in, and those that don't have scripts created for them.
|
#5
|
|||
|
|||
![]()
Is this still the same method used to generate the logout hash? It seems that it is different now.
[edit] ok, nm found the new 3.7.2'ish method |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|