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)

Tenny 10-02-2005 12:38 AM

Hmm mine seems to work fine, and I upgraded to 3.5.0 all the way from 3.0.3.

Where does your's begin to have problems?

mpikounis 10-02-2005 04:34 PM

There seem to be problems with the session. A logged in user (in vb) does not appear logged in when in 4images. In addition I get several errors in php error log. Here is an example of the errors:

Code:

[01-Oct-2005 22:35:36] PHP Notice:  Undefined variable:  cookiedomain in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 428

[01-Oct-2005 22:35:36] PHP Notice:  Undefined variable:  cookiepath in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 429

[01-Oct-2005 22:35:36] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 441

[01-Oct-2005 22:35:36] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 447

[01-Oct-2005 22:35:36] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 453

[01-Oct-2005 22:35:36] PHP Notice:  Undefined index:  userid in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\page_header.php on line 45

[01-Oct-2005 22:35:36] PHP Notice:  Undefined index:  userid in C:\Program Files\Apache Group\Apache2\htdocs\4images\index.php on line 59

[01-Oct-2005 22:49:56] PHP Notice:  Undefined variable:  cookiedomain in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 428

[01-Oct-2005 22:49:56] PHP Notice:  Undefined variable:  cookiepath in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 429

[01-Oct-2005 22:49:56] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 441

[01-Oct-2005 22:49:56] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 447

[01-Oct-2005 22:49:56] PHP Notice:  Use of undefined constant user_level - assumed 'user_level' in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\sessions.php on line 453

[01-Oct-2005 22:49:56] PHP Notice:  Undefined index:  userid in C:\Program Files\Apache Group\Apache2\htdocs\4images\includes\page_header.php on line 45

[01-Oct-2005 22:49:57] PHP Notice:  Undefined index:  userid in C:\Program Files\Apache Group\Apache2\htdocs\4images\index.php on line 59


Tenny 10-02-2005 10:31 PM

Well I haven't checked my PHP error log but I found what you were talking about. It appears though that if you were logged in 4images before you upgraded it, you would still appear logged in. So I logged out, and I cannot log back in. Doesn't display any errors or anything though, just acts like you are but when you are not.

mpikounis 10-03-2005 10:37 AM

There is a problem with the session since vb 3.5 seems to handle session information differently. If anyone knows a way to deal with this it would be extremely helpful!

mpikounis 10-04-2005 07:49 AM

Ok, I think this is it. Edit the file sessions.php in the includes folder of 4images.

Find:

PHP Code:

($this->session_id $this->read_cookie_data("sessionhash")) 

and replace with:

PHP Code:

($this->session_id $this->read_cookie_data("bbsessionhash")) 

Now everything seems to work just fine. I have NOT tested this thoroughly so use at your own risk! Please let me know if it works or if there are any other problems.

chanzero 10-05-2005 04:17 PM

Quote:

Originally Posted by mtha
Quick fix for vb3.5.0 (tested on RC3):

Edit album/includes/sessions.php

LOOK FOR arount line 318,

PHP Code:

     $sql "SELECT u.*, l.*, user.password as user_password, user.salt as salt
              FROM "
.USERS_TABLE." u, ".LIGHTBOXES_TABLE." l, user
              WHERE "
.get_user_table_field("u.""user_id")." = $user_id AND user.userid = $user_id AND l.user_id = ".get_user_table_field("u.""user_id");
      
$user_info $site_db->query_firstrow($sql); 

ADD BELLOW

PHP Code:

      $user_info['logouthash'] = md5($user_info['user_id'] . $user_info['salt'] . VBLICENCE_NUMBER); 


Edit album/includes/page_header.php

Line 110

LOOK FOR

PHP Code:

  "url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url($url_app."login.php?do=logout&u=".$user_info['user_id']), 

REPLACE BY

PHP Code:

  "url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url($url_app."login.php?do=logout&logouthash=".$user_info['logouthash']), 


my page_header.php doesn't have that line? it has

PHP Code:

"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"), 

...


Quote:

Originally Posted by mpikounis
Ok, I think this is it. Edit the file sessions.php in the includes folder of 4images.

Find:

PHP Code:

($this->session_id $this->read_cookie_data("sessionhash")) 

and replace with:

PHP Code:

($this->session_id $this->read_cookie_data("bbsessionhash")) 

Now everything seems to work just fine. I have NOT tested this thoroughly so use at your own risk! Please let me know if it works or if there are any other problems.


when i changed this, 4images didn't show me as logged in anymore so it didn't work for me

vBFreak 10-15-2005 12:31 AM

Erm, I can't find any of the lines mentioned above in my sessions.php, I'm using 4images 1.7.1 and vBulletin 3.5.0 Gold... My sessions.php differs from the one used in 4images 1.7...

What can I do? Need help, the whole thingie isn't working anymore :/

mtha 10-17-2005 08:27 PM

For integration with vB 3.5.0, please check the following release:

https://vborg.vbsupport.ru/showthread.php?t=98640

Any support for vB 3.5.0 will be given over that thread!

Guest191216 11-05-2007 10:08 PM

Long time since the last activity....
However I'd like to ask if anyone has integrated his/her existing 4Images gallery V 1.7 into a vbulletin 3.6.8 ?
Really looking forward to find a solution to get my old gallery (900+ pictures ) into my new VB.

@mtha
As I do understand that all the coders do the work on hacks & mods for free, which is great, and they also have a real live beside this work, there is no way to demand anything. period.
However :)) I would be willing to spend some money to get this thing done.
Is there any chance ?

txs
kh


All times are GMT. The time now is 01:38 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.01563 seconds
  • Memory Usage 1,768KB
  • 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
  • (9)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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