vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   BB| Messenger 1.5 (https://vborg.vbsupport.ru/showthread.php?t=66989)

C.Birch 07-09-2004 01:11 PM

link to your install would be nice that way we can see if its a user end prob or server side. eg if it loads for me on your site then its user side. if i get the same probs then its server side.

NuclioN 07-09-2004 01:36 PM

<a href="http://www.cyberty.nl/forums/" target="_blank">http://www.cyberty.nl/forums/</a> right above the footer is the link

C.Birch 07-09-2004 01:59 PM

Quote:

Originally Posted by NuclioN
http://www.cyberty.nl/forums/ right above the footer is the link


ok it defo looks like cookies

try the following:

in vb3.inc.php

find:
PHP Code:

// Returns an array of user details, or false depending on whether user's cookies are valid.
function boardmodule_user_authentication()
{
    global 
$VAR;
    if (!isset(
$_COOKIE["bbuserid"]) OR !ereg("^[0-9]*$"$_COOKIE["bbuserid"]))
    {
        return 
PERM_LOGGED_OUT;
    }
    if (!isset(
$_COOKIE["bbpassword"]) OR !ereg("^[0-9A-Fa-f]*$"$_COOKIE["bbpassword"]))
    {
        return 
PERM_LOGGED_OUT;
    } 

and replace with:

PHP Code:

// Returns an array of user details, or false depending on whether user's cookies are valid.
function boardmodule_user_authentication()
{
    global 
$VAR;
    if (!isset(
$_COOKIE["vbuserid"]) OR !ereg("^[0-9]*$"$_COOKIE["vbuserid"]))
    {
        return 
PERM_LOGGED_OUT;
    }
    if (!isset(
$_COOKIE["vbpassword"]) OR !ereg("^[0-9A-Fa-f]*$"$_COOKIE["vbpassword"]))
    {
        return 
PERM_LOGGED_OUT;
    } 

close all windows and remove all cookies and temp ineternet files and try again.

because my vb cookies save as bbpassword and so on where yours are saveing as vbpassword

C.Birch 07-09-2004 02:01 PM

heres a pic of how your cookie names are not the same as mine or vb.org's

NuclioN 07-09-2004 02:08 PM

Gives this error on top:

Notice: Undefined index: bbuserid in /bbmessenger/sources/boardmodule/vb3.inc.php on line 93
SQL ERROR: SELECT userid, username, usergroupid, membergroupids, password, salt, pmunread as unreadpms FROM user WHERE userid= LIMIT 1 [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1]
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /bbmessenger/sources/boardmodule/vb3.inc.php on line 94

Maybe i must change the cookie prefix in config.php?

C.Birch 07-09-2004 02:12 PM

no in vb3.inc.php

find:

$user = db_query("SELECT userid, username, usergroupid, membergroupids, password, salt, pmunread as unreadpms FROM {prefix}user WHERE userid=" . $_COOKIE["bbuserid"] . " LIMIT 1");

replace with:

$user = db_query("SELECT userid, username, usergroupid, membergroupids, password, salt, pmunread as unreadpms FROM {prefix}user WHERE userid=" . $_COOKIE["vbuserid"] . " LIMIT 1");

C.Birch 07-09-2004 02:14 PM

there might be other parts in other files that might need the cookie call's editing from the bb ones to vb ones so it works with your cookies.

NuclioN 07-09-2004 02:14 PM

Ok it works :) Tnx for your help C. Birch. It's a great addon.

C.Birch 07-09-2004 02:16 PM

or you could just edit:

// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';

in vb's config.php as you said but that might kill your vbadvanced so it be best to edit messenger to work with your setup.

Acido 07-09-2004 02:24 PM

Instaled and Working 100/100 :D

Great work !

Features suggested for next versions:

1) Ignore User
2) Set usergroups permisions

Thanx for this excellent hack !


All times are GMT. The time now is 10:50 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01632 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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