vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   4images Gallery 1.7 + vB 3.0.x (update Oct 30) (https://vborg.vbsupport.ru/showthread.php?t=66335)

BlackxRam 06-25-2004 04:25 AM

I have edited every single file Again and still no go. If i close my browser and return to the gallery directly i am still logged out.

mtha 06-25-2004 05:33 AM

do you have your forum setup sessions ad .mogisland.com ? seems like you have your forum setup in a subdomain.

It seems like your album didnt read cookie at all

if you want to try,
look for

PHP Code:

function start_session($user_id GUEST$login_process 0) {
    global 
$site_db;
    
$this->user_info $this->load_user_info($user_id); 

add bellow:

PHP Code:

echo 'User Id: '.$user_id.' - '.$this->read_cookie_data("bbuserid").'<br>- Cookie password: '.$this->read_cookie_data("bbpassword").'<br>- User encripted password: 'md5($this->user_info['user_password'].''.VBLICENCE_NUMBER).'<br>- Input: '$this->user_info['user_password'].''.VBLICENCE_NUMBER



you have to open a NEW browser, in order to see the result.

mtha 06-25-2004 05:44 AM

lol.
I wrote the hack based on a standard vb version, which has bb as cookieprefix

You have your cookieprefix being moguslandforums

that's why

now you need to do some more work:

edit the sessions.php


replace all bb by moguslandforums


they are in bbuserid, bbpassword, bbstyleid (this one is not important), bblastvisit

Onkel_Tom 06-25-2004 11:32 AM

Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?

KTBleeding 06-25-2004 02:27 PM

Quote:

Originally Posted by Onkel_Tom
Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?

I believe that has to do with the..

Open: "forums/includes/functions.php"

Find:
$name = COOKIE_PREFIX . $name;

Replace with:
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}

Close and Save: forums/includes/functions.php


Someone correct me if I'm wrong?

Onkel_Tom 06-25-2004 05:25 PM

I have this kind of code in my functions.php of vB but still get the error while login off. I checked my code and the instructions three times to be sure that all parts are correct ;)

mtha 06-25-2004 07:12 PM

Quote:

Originally Posted by Onkel_Tom
Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?

https://vborg.vbsupport.ru/showpost....&postcount=161

that's the direct post where I have the fix, for vB 3.0.1

it should be included in the instruction file

pay attention to these lines:

in sessions.php

$url_logout = $url_app."login.php?do=logout&u={myuserid}";

includes/page_header.php
$myuserid = $user_info['user_id'];

BlackxRam 06-25-2004 09:26 PM

Quote:

Originally Posted by mtha
lol.
I wrote the hack based on a standard vb version, which has bb as cookieprefix

You have your cookieprefix being moguslandforums

that's why

now you need to do some more work:

edit the sessions.php


replace all bb by moguslandforums


they are in bbuserid, bbpassword, bbstyleid (this one is not important), bblastvisit


MTHA, That did it. I feel like such a tool that I didnt think of that, when I read your post I literally smacked my forehead. heheh.

Perhaps you should put something in your installation instructions now if people are having issues with the cookie to check that there cookie is 'bb' or something else because I have a cookie issue on my computer with a 'bb' prefix cookie and thats why I had to change mine. Perhaps some other people have a different cookie prefix as well and it wouldnt hurt to add that in your instructions.

My INTEGRATION works PERFECTLY so far and its all thanks to MTHA for following up on MatrixGL's work. I would say lets nominate this for Hack of the Month as it wasnt an easy integration to code up it seems heeheh.


Way to go MTHA, I salute you for being a pillar of the VB community! You literally ROCK! :)

Everyone with 4IMAGES and VB needs this hack. :)

mtha 06-26-2004 03:33 AM

Quote:

Originally Posted by BlackxRam
Perhaps you should put something in your installation instructions now if people are having issues with the cookie to check that there cookie is 'bb' or something else because I have a cookie issue on my computer with a 'bb' prefix cookie and thats why I had to change mine. Perhaps some other people have a different cookie prefix as well and it wouldnt hurt to add that in your instructions.

well, make life easier, I make the file ... more complicated, by adding some more variables on top.
have fun

Updated on the first post: (Update 06/25/2004)
https://vborg.vbsupport.ru/showpost....37&postcount=1

BlackxRam 06-26-2004 09:22 PM

Hey MTHA, I am having a text error where Registered board members are appearing as GUESTS and not Registered Members on the Comments Portion of the Gallery, any ideas? My Gallery is closed off to Guests and Only Registered Members can post so he didnt post as a guest.


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

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.01652 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)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