vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-To] vBulletin API Basics: Variables, Functions, Objects (https://vborg.vbsupport.ru/showthread.php?t=98047)

akanevsky 06-16-2006 08:33 PM

Yup. :)

Ninth Dimension 08-23-2006 03:49 PM

Quote:

Originally Posted by Psionic Vision
Authentication Storage

The authentication data is stored in the following way (thank to Kirby for this info):

$_COOKIE:
{cookiepfx}userid - plain(userid)
{cookiepfx}password - md5(md5(md5('PlaintextPassword'), salt), 'LicenseNo').

TABLE user:
password - md5(md5('PlaintextPassword'), salt)

Note that for cookie, {cookiepfx} is your board's cookie prefix. It is configurable via admincp and is accessible via the COOKIE_PREFIX constant.

Hi, I believe you have an error in the above code, where you've put
Code:

md5(md5('PlaintextPassword'), salt)
I believe it should say
Code:

md5(md5('PlaintextPassword'). 'salt')
I.e. what the script does it takes the plain password, md5()s it, the adds the salt to the end, then md5()s it again. At least that is what i think it does in vB 3.6.0..

I'd be keen on getting some clarification on this, cheers :D

akanevsky 08-24-2006 01:13 AM

I got that from Kirby's post and haven't actually verified the information, but you are most likely correct.

Adrian Schneider 08-24-2006 01:19 AM

Yep you need a . instead of , otherwise things will go horribly wrong.

akanevsky 08-24-2006 01:30 AM

Quote:

Yep you need a . instead of , otherwise things will go horribly wrong.
Thank you. May I ask why you are not responding to my private message over at your site?

vietkieu_cz 10-01-2006 04:34 PM

Hi Psionic Vision, do you know what do I wrong?

Here is the code:
PHP Code:

$query $db->query_read("SELECT title FROM thread WHERE forumid = 2 ASC");
while (
$hienthithreads $db->fetch_array($query))
{
    
$hienthithreads[title] = $hienthithreads[title];


And how do I do to show Selected Threads on forum?

Thank you

akanevsky 10-01-2006 04:39 PM

Quote:

$query = $db->query_read("SELECT title FROM thread WHERE forumid = 2 ASC");
ASC cannot be there alone without ORDER BY something before it. You can either remove ASC or write ORDER BY title DESC.

Second question - don't know, sorry. Post in modification questions please.

hotwheels 10-02-2006 12:05 AM

holy cow, how did i miss this thread.............

mike.fro 05-12-2008 12:20 AM

Any updates for 3.7 on this article? Looking to get some documentation as I am trying to write a hack but am completely stumped when it comes to vBulletin and writing hacks for it.

Antivirus 05-14-2008 12:51 AM

most of the stuff herein still applies to 3.7


All times are GMT. The time now is 04:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01234 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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
  • (3)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