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)

mtha 09-03-2005 02:10 AM

Quote:

Originally Posted by AnGeL 08
Hello

I try this hack but I have this error displaying on the top of my main page in the 4images

This is the error

PHP Code:

DB ErrorBad SQL QuerySELECT COUNT(*) as users FROM user WHERE user_id <> 0
Unknown column 
'user_id' in 'where clause'

DB ErrorBad SQL QuerySELECT user_iduser_name FROM user WHERE user_level 3 ORDER by user_joindate DESC
Unknown column 
'user_id' in 'field list' 

Can any one help me with it?

Thanks

Did you replace session.php attached to your album file?


Quote:

-------
Step 1.
-------
Edit the included sessions.php
Correct the variables in the Configuration part
* the following variables are important, MAKE SURE you have them correct:
* Dont forget the trailing slash
* you still need to check and make changes in the CONFIGURATION section

define('VBLICENCE_NUMBER', 'XXXXXXXX'); //REPLACE XXXXXXXX with your Licence Number, usually on top of your vB files
define('ALBUM_FOLDER','/album/'); //Your Album Folder WITH trailing slash
define('COOKIE_TIMEOUT','1800'); //Set the same with your vB timeout, in second
$url_app = "http://www.yoursite.com/forums/";

Replace the file sessions.php in your album /includes/ folder with this sessions.php

Wordplay 09-10-2005 10:20 AM

i tried transfering my gallery to a new server/domain and everything is fine, i ran the sql my database is up and running but when trying to get into the admin cp i keep getting this error:

Code:

In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.
my only guess would be that it's because my gallery uses a subdomain system. and the gallery is at gallery.domain.com while my log in is at board.domain.com so what can i do about this?

commTRU 09-10-2005 09:16 PM

Hey there :)

I gather this works for 3.0.7 okay? Everything seems fine, except the login box doesn't appear! I use 4Images 1.7.1 and have tried the various edits to the sessions and constants file, but it still doesn't want to appear :)

Edit: The box now appears. Yay! But when I log in, it thanks me for logging in, and takes me back to the gallery page and I'm not logged in. I've tried everything, and I've read all 27 pages about 10 times now :D

When I try to login to the gallery control panel, it just redirects me to the forum as well.

Wordplay 09-10-2005 11:52 PM

problem fixed. now what i'd like to know is, is it possible to have 4images comments use the vbulletin smilies?

and is it possible to have the comments in the gallery add to user's post count?

or have the number of images uploaded be shown in user's postbit/profile?

ambumann 09-13-2005 07:01 AM

Quote:

Originally Posted by chanzero
i have vb3.5 rc2 and have got this hack working - i think...

only problem was, after i went through every step, i could no longer log into my vb admin panel :O

so then i backtracked and left out the step of modifying the vb functions.php which gave me vb admin access again. not sure what the functions.php editing was supposed to do, but everything seems to work fine as far as i can tell?

Are you still running RC 2, or have you upgraded to RC 3? Any problems? Looking for a update for RC 3...

Chrissicom 09-14-2005 07:50 AM

I am running this hack on 4image 1.7.1 with RC 3.... you don't have to touch the 4images files when upgrading from 3.0.x just change functions.php and functions_online.php as described. Only problem with RC 3 is that the logout link on the 4images page goes broken because it doesn't obtain the logouthash.

mtha 09-15-2005 09:25 AM

Quote:

Originally Posted by Chrissicom
I am running this hack on 4image 1.7.1 with RC 3.... you don't have to touch the 4images files when upgrading from 3.0.x just change functions.php and functions_online.php as described. Only problem with RC 3 is that the logout link on the 4images page goes broken because it doesn't obtain the logouthash.

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']), 


ambumann 09-16-2005 05:14 PM

I can't find the code you're refering to in my sessions.php...

I have a big problem, everytime I try to access the gallery via the forum I get logged out, and if I try to log in through the gallery I actually do get logged in, but also gets redirected to the forum frontpage. If I try to go back to the gallery, I get logged out again...

JimBeam 09-21-2005 09:28 PM

Hi

I know this is a bit late but GREAT WORK on the modifications!!! Thank you very much! :)

mpikounis 10-01-2005 07:02 PM

Has anyone made this integration work with vb 3.5 Gold? I have it working with 3.0.5 but now I want to move to 3.5 and my gallery is no longer working (several errors in my php error log).


All times are GMT. The time now is 02:27 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.01572 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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