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)

CreedFeed 06-23-2004 08:23 PM

I just installed twice and it still isn't working.

mtha, I just signed up for your forums/gallery. When I login through your gallery page, then close my browser, reopen, and go to your gallery it shows me as not logged in. ??

BlackxRam 06-23-2004 09:10 PM

MTHA!!!! YOU DID IT!!! IT WORKS COMPLETELY!!!! YOU ARE THE MAN! IF I WAS NEAR YOU I WOULD KISS YOU!!!!!! :) :) :) :)

ANYONE still having problems, start with a fresh install or fresh unhacked VB and 4IMAGES files... if you go slow you can't mess it up... ITS PERFECT! YOU ROCK!!! NO MORE LOGGING OUT!!! WOOHOO

STAND UP JOB MTHA!!!

CreedFeed 06-24-2004 12:57 AM

Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.

KTBleeding 06-24-2004 01:00 AM

Quote:

Originally Posted by CreedFeed
Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.

I'm pretty sure that's the same case as me.

mtha 06-24-2004 01:26 AM

Quote:

Originally Posted by CreedFeed
Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.

I was wondering why the code is still there, but my testing version was working fine (as I was being an administrator), so I didnt investigate more :D Sorry guys.


the new sessions.php in the first post was updated.

basically, you will only need to change the condition:

Look for:

PHP Code:

 if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password'].''.VBLICENCE_NUMBER) && $this->user_info['user_level'] > USER_AWAITING) { 

replace with

PHP Code:

 if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password'].''.VBLICENCE_NUMBER) && $this->user_info['user_level'] != USER_AWAITING) { 

this is applied for the sessions.php file in the first post. if you have the VBLICENCE_NUMBER here, just need to replace > USER_AWAITING with != USER_AWAITING
or you can remove the whole
&& $this->user_info['user_level'] != USER_AWAITING

well, I see this doesnt make alot of sence to force those who are awaiting for email confirmation not to be "remembered". but it was is the original code, so ... I just leave it there in case someone use it.


Quote:

mtha, I just signed up for your forums/gallery. When I login through your gallery page, then close my browser, reopen, and go to your gallery it shows me as not logged in. ??
the demo was NOT MY forum/gallery, I think it was MatrixGL. I dont have a demo for my testing work :) sorry.

CreedFeed 06-24-2004 02:22 AM

That works. Thanks.

One thing though, it is still not displaying that users are viewing the gallery in my vB forum. I went through all the steps several times and it still says Viewing Index (the forum index). Any ideas on this? Is that working on your forum?

mtha 06-24-2004 02:47 AM

Quote:

Originally Posted by CreedFeed
That works. Thanks.

One thing though, it is still not displaying that users are viewing the gallery in my vB forum. I went through all the steps several times and it still says Viewing Index (the forum index). Any ideas on this? Is that working on your forum?

are you sure you have someone browsing in your album at the time you check WOL?

yes it is working fine on my forum.

https://vborg.vbsupport.ru/showpost....5&postcount=35

instead of using album for token, use gallery in your case.

in gallery/include/sessions.php

PHP Code:

$this->user_location '/album/'.$this->get_user_location(); 

use gallery here too.

make sure that you have this lines correct in sessions.php too

PHP Code:

  function update_session() {
    global 
$site_db;
    
$sql "UPDATE ".SESSIONS_TABLE.
            SET lastactivity = 
$this->current_time, location = '$this->user_location'
            WHERE sessionhash = '
$this->session_id
            AND host = '
$this->user_ip'";
    
$site_db->query($sql); 

PHP Code:

    $this->session_id $this->generate_session_id();
    
$sql "INSERT INTO ".SESSIONS_TABLE.
            (sessionhash, userid, host, useragent, lastactivity, location, styleid) 
            VALUES 
            ('
$this->session_id', ".$this->user_info['user_id'].", '$this->user_ip', '". [PHP]%4$s 

SERVER['HTTP_USER_AGENT']."', $this->current_time, '$this->user_location', '".$this->read_cookie_data("bbstyleid")."')";
$site_db->query($sql);
[/PHP]


if it does not seem to work, do some test:

- access your album (either login or not login). Make sure that leave the browser stay IN ALBUM, dont go to forum :D
- login to your database, maybe using phpMyadmin
- browse to session table, and look for your record (based on your IP, maybe)
here's the query to show it:
Code:

SELECT * FROM `session` WHERE host = 'XXX.XXX.XXX.XXX';
replace XXX.XXX.XXX.XXX with your IP
- check the location field, and see if there's anything in there.

it should show /gallery/xxxx if you have everything correct.

mtha 06-24-2004 03:08 AM

It does seem like you didnt have your album location saved in database (looking from "guest" view).


if the above doesnt work, you may want to put some text before $this->user_location and see if the text is saved in database. :D

PHP Code:

function update_session() {
    global 
$site_db;
    
$sql "UPDATE ".SESSIONS_TABLE.
            SET lastactivity = 
$this->current_time, location = '$this->user_location'
            WHERE sessionhash = '
$this->session_id
            AND host = '
$this->user_ip'";
    
$site_db->query($sql); 


CreedFeed 06-24-2004 03:55 AM

I found the problem. I didn't set the case check in the vB functions_online.php file to be "gallery"

deathemperor 06-24-2004 04:27 AM

Quote:

Originally Posted by mtha
if you look at this hack, you will see some part if this one from him. He's a great coder though, and he does take care of all the important things of GVN. and you are really funny too. you think that I, having a administrator title, do no role in GVN life? :tired:

because I couldn't figure out what was your job in GVN, at that time I don't know you know php this well, I could guess that you must be a good coder since others admin take care the forums and you always like to hide yourself as you told me

Quote:

Originally Posted by mtha
No I dont. There're too many "music online" scripts, and I am not interested in this.

too many ? I don't think so. even it's so, all of them don't use the vb templates, they just use the user table of vb3 and it's impossible to manage via ACP.
perhaps it's unreasonable to ask you to make a hack I want however I believe vb3 communities really need a hack like that. vb.org has no music online script. I anyways hope you will change your mind somedays


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.01456 seconds
  • Memory Usage 1,773KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (6)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