vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   User Integration: 4images Gallery 1.7.2 + vB 3.5.4 (https://vborg.vbsupport.ru/showthread.php?t=98640)

mtha 10-16-2005 10:00 PM

User Integration: 4images Gallery 1.7.2 + vB 3.5.4
 
=============================================
User Integration 4images 1.7.2 / vBulletin 3.5.x
=============================================

Copyright: ? 2002 Jan Sorgalla
Integration to vBulletin 2.x by Jan Sorgalla ?
Integration to vBulletin 3.0.1 by mtha
Integration to vBulletin 3.5.0 by mtha
Constribution:
Matrixgl for re-organize the hack
d1635d for adding the fix for 3.0.1
all others for comments and suggestions
=============================================
Hack version: 3.5.0.20051117
Compatible with vB 3.5.x and 4images 1.7.2
Translated Versions:
http://www.vbhacks-germany.com/forum...ead.php?t=1969
=============================================
Features:
=============================================
- Use vBulletin's user table instead of 4images.
- Forum's members can access and upload pictures (depends on permissions)
- Forum's admin can administrate the album (unless you do the EXTRA part)
- Display Who is browsing album, in the Forum's WhoisOnline list

=============================================
Changes and modifications
=============================================
4images file to replace: 5 (sessions.php, constants.php,admin/admin_global.php,templates/default/user_loginform.html)

Query to run: 0

* If you do EXTRA part, there're few queries to run, depends on what you want to do.

=============================================
Requirements:
=============================================
- vBulletin 3.5.0 installed and working
- 4images 1.7 fresh installed and working
-
4images and vBulletin are installed to use the SAME database
=============================================
Limitations:
- This is ONLY users integration. NO template/style integration.
- This hack use default usergroup for album level, there're only 4 levels of Guest, User awaiting, User, Admin. See Extra section at the end for other solution
- I didnt look at the "cooke path" and "cookie domain" yet, so it will use the default

=============================================
Notes before you install
=============================================
1. Back up the files before you edit.

2. 4images tables and vbulletin tables have to be in the same database.

3. If you run 4images and vBulletin under different subdomains,
for example http://4images.domain.com and http://vbulletin.domain.com,
you should use the following setting for vBulletin in

"vBulletin Options -> HTTP Headers and output":

#############################
Cookie Domain = .domain.com
#############################

Dont forget the dot at the beginning, and change domain.com to your domain. If you do not do this, you might experience a login problem.

4. If you delete users, you should delete the user first over the Control Panel of 4images
and after that over the Administration Panel of vBulletin.
This is neccessary to delete/modify all user-related data from the 4images database (images, comments, usergroups).

5. Its is highly recomanded that you use integration only with fresh new installations of 4images because of the following reason:
In the 4images user-table User A has the User-ID "1".
After integration 4images will use the user-table of vBulletin.
There, the User A has the User-ID "2" and User B the User-ID "1".
All images, comments and usergroup memberships are now "owned" by User B.

6. Lot of people are getting logged out after a certain period of time. This could be fixed by changing
"Session timeout in minutes" to "0" in the 4images control panel.
==============================================

==============================================
INSTALLATION (read intergrate-4image-vB35.txt for more detail)
=============================================

-------
Step 1: Edit the included sessions.php

Step 2. Edit the included constants.php

Step 3: Upload the files in UPLOAD folder to your album directory

Step 4: Import Product product-hao_wol_locations.xml from vB 3.5.0 adminCP product manager

-------------------
LOG:

20051117: clean up code, might have some small errors fixed.
20060410: modify for 4images172
-------
The End :).

mtha 10-17-2005 08:33 PM

reserved

mtha 10-17-2005 09:19 PM

In order to make 4Images template look the same as vB template, you can copy vB's header and footer, put into /templates/yourtemplate/header.html and footer.html, make adjustments so that it read the correct location and tables (Assuming that you know html and know how to change html code)

ambumann 10-17-2005 11:43 PM

Do I need a fresh install in order to upgrade from my 3.0.7 version of this hack? I'm allready running it under 3.5 and it's causing problems for some of my users.

deathemperor 10-18-2005 03:13 AM

I had to do nothing to make it work with vb3.5, from the time I upgraded to 3.5 it's starting to work already.

deta 10-18-2005 05:15 AM

Hello,

must i change phps in the orginal vbulletin?
Or ist that a Plugin/Produkt?

Please post Screens..

Thanks

cu Deta

Chrissicom 10-18-2005 07:44 AM

Works like a charm on my site :) http://www.sandrabullockcentral.com/sbcgalleries

deta 10-18-2005 11:13 AM

Quote:

Originally Posted by Chrissicom
Works like a charm on my site :) http://www.sandrabullockcentral.com/sbcgalleries

that is not a intigration in Vbulletin

cu Deta

Snake 10-18-2005 12:10 PM

Thank you. I have installed this hack.

deathemperor 10-18-2005 05:08 PM

Quote:

Originally Posted by deta
that is not a intigration in Vbulletin

cu Deta

why isn't it ?

it use 4images and vbulletin 3.5 and they are integrated. then why not ?

steadicamop 10-18-2005 05:57 PM

Quote:

Originally Posted by mtha
In order to make 4Images template look the same as vB template, you can copy vB's header and footer, put into /templates/yourtemplate/header.html and footer.html, make adjustments so that it read the correct location and tables (Assuming that you know html and know how to change html code)

Which template do I need to copy? I've tried the header code ... but being PHP it doesn't parse inside HTML ..... what do I have to do to include the header, and will it change the colour scheme of the 4Images in the process?

Thanks, great hack :)

Jason

deta 10-18-2005 07:14 PM

Quote:

Originally Posted by deathemperor
why isn't it ?

it use 4images and vbulletin 3.5 and they are integrated. then why not ?

The Sample of Sandra is not integrated...

Tell me please a Sampe Page or Screens.

Thanks

cu Deta

vBFreak 10-18-2005 07:49 PM

Works for me, thanks again for this quality hack mtha ;)

The only problems I have are, if I login via the Gallery I'm redirected to the forum's home and not to the gallery and the display of the online users seems to miss some phrases, the users are displayed, but the table head of that table is empty and the text above the user listing is also not displayed :/

@deta: http://www.gerritsforum.de/gallery <- my 4images 1.7.1 gallery integrated with this hack, feel free to take a look at it if you want to see it in action, but it's german...

mtha 10-20-2005 12:03 AM

Quote:

Originally Posted by vBFreak
The only problems I have are, if I login via the Gallery I'm redirected to the forum's home and not to the gallery

I have mine return to album fine.

Quote:

and the display of the online users seems to miss some phrases, the users are displayed, but the table head of that table is empty and the text above the user listing is also not displayed :/
You may want to check your phrases and templates. My hack doesnt do anything with phrases. you may want to get the latest phrase from 4images, and check your phrase list. (languages/english/main.php)




Quote:

Originally Posted by Deta
Quote:

Originally Posted by Chrissicom
Works like a charm on my site http://www.sandrabullockcentral.com/sbcgalleries
that is not a intigration in Vbulletin

cu Deta

I'm not sure if you know what you are talking about, or expecting on integration.

this integration is ONLY integrate USER database, so that users in forum can login and post in album. this DOES NOT integrate style/template, so that it will still look exactly the same as the original 4images, if you had it installed.

the screen is attached, if you want.

mtha 10-20-2005 12:06 AM

2005.10.19: bug fix:

For those who download the file before ... NOW, you may want to download the sessions.php again.

there's a bug when loading logouthash

deta 10-20-2005 04:12 AM

Quote:

Originally Posted by mtha
I have mine return to album fine.



You may want to check your phrases and templates. My hack doesnt do anything with phrases. you may want to get the latest phrase from 4images, and check your phrase list. (languages/english/main.php)






I'm not sure if you know what you are talking about, or expecting on integration.

this integration is ONLY integrate USER database, so that users in forum can login and post in album. this DOES NOT integrate style/template, so that it will still look exactly the same as the original 4images, if you had it installed.

the screen is attached, if you want.

Hello

I mean direct intigration in the Vbulletin Style.
With headers, ... like that as the Memberliste etc. is integiert and
a new side is not called.
Thus a complete Template intigration

cu deta

Sychev_S 10-22-2005 10:34 PM

How exactly can i have vbulletin's footer adn header on 4images gallery?
my vbulletin isntallation is in www.mysite.com and 4 images is in www.mysite.com/gallery
Could somebody please explain it to me?

nitro 10-23-2005 08:35 AM

Thanks works fine here on my test site having grabbed our old 4images seperate db and thrown the tables into my vb test db. USer integration is better than nothing. The rest would take a lot of work :)

Not sure if we will use it or go vbA gallery but 4images can now get more consideration ;)

mtha 10-23-2005 10:29 AM

Quote:

Originally Posted by deta
Hello

I mean direct intigration in the Vbulletin Style.
With headers, ... like that as the Memberliste etc. is integiert and
a new side is not called.
Thus a complete Template intigration

cu deta

Ok, I rename it "User Integration", which, as stated in the description, only integrate USER system, so that forum's user can upload images in 4images.

This is NOT a full integration, nor template/style integration.

if you are looking for a full integration, with template included, vBA or Photopost could be the options

Quote:

How exactly can i have vbulletin's footer adn header on 4images gallery?
my vbulletin isntallation is in www.mysite.com and 4 images is in www.mysite.com/gallery
Could somebody please explain it to me?
You should go to 4images website, and learn how to edit template. then, you can edit 4images' templates. (header.html and footer.html), so that it might look the same as your forum.

that is not included in this hack, as each template will be different.

kai3k 10-23-2005 09:29 PM

works great. thanks!

/me clicks install

nokturno 10-27-2005 03:07 AM

thanks!

GamerJunk.net 10-28-2005 05:18 AM

Everytime I log in, it takes me back to the index and I am not logged in. WTF?

www.gsnforce.com/4images

Chrissicom 10-28-2005 11:49 AM

I didn't use the vB template for my 4images page because it is linked from other websites as well. My intention was that forum users gain access to the galleries automatically and the other way round, so although a lot of people only use one of both those who use both can use it with one account.

GamerJunk.net 10-29-2005 01:10 PM

So how can I log in?

mtha 10-30-2005 03:16 PM

Quote:

Originally Posted by RasMasta
Everytime I log in, it takes me back to the index and I am not logged in. WTF?

www.gsnforce.com/4images

I really dont like to answer when people swearing!



you need to read the steps, and make correct modifications in the given files. I did something wrong somewhere.

Sadie Frost 11-05-2005 10:19 PM

I'm having sort of a strange problem. I had this working yesterday, but now I'm having the problem where I can't login (it takes me back to the forum home). I've checked and rechecked the directions, and I set the session timeout to 0. Has anyone had a similar problem and found a solution?

Thanks :)

mtha 11-06-2005 01:51 AM

Quote:

Originally Posted by Sadie Frost
I'm having sort of a strange problem. I had this working yesterday, but now I'm having the problem where I can't login (it takes me back to the forum home). I've checked and rechecked the directions, and I set the session timeout to 0. Has anyone had a similar problem and found a solution?

Thanks :)

Quote:

I set the session timeout to 0.
why 0? I dont play much with session timeout, but zero means it always timeout, isnt it?

make it a big number and see how it works

Sadie Frost 11-06-2005 10:55 PM

Maybe I misunderstood this part of the directions then?

Quote:

Originally Posted by mtha
6. Lot of people are getting logged out after a certain period of time. This could be fixed by changing
"Session timeout in minutes" to "0" in the 4images control panel.


Will try setting it big then :) Thanks!


Edit: Hmm that didn't work so far :(

Edit again: Well it's working now, unfortuneately I have no idea what I did...lol

JirQUEST 11-08-2005 07:06 PM

Quote:

Originally Posted by Sadie Frost
I'm having sort of a strange problem. I had this working yesterday, but now I'm having the problem where I can't login (it takes me back to the forum home). I've checked and rechecked the directions, and I set the session timeout to 0. Has anyone had a similar problem and found a solution?

Thanks :)

i am having the same problem too. set session timeout to 200. still got me logged out after about 15 mins of inactivity. now i cant log back in without clearing my cookies :/

Sadie Frost 11-08-2005 10:53 PM

Yep same thing is happening to me - when I first install (or reinstall as the case may be) it's fine, then the next time I try to access it I'm logged out and I can't log in again.

Clearing my cookies doesn't seem to work for me though :(

JirQUEST 11-08-2005 11:13 PM

did u clear it by logging out? i had to clear it from the browser's options. i also noticed that logging in from the forum is a sure way to log into the image gallery. logging out is the same as well.

Sadie Frost 11-08-2005 11:26 PM

I logged out via the forumhome and then cleared my cookies in the browser. Then I re-logged in to the forumhome, then clicked on a link to the gallery, but I wasn't logged in.

Omranic 11-12-2005 11:18 PM

Everytime I log in via gallery,it say thak you SolidSnake@GTI for loging in (forums's welcome redirecting msg) & then it takes me back to the gallery's index and I am not logged in

all modifications are right
gallery's dir out side forums dir

mtha 11-15-2005 11:21 AM

well, my version is just working fine without problem.

i'd suggest you check the cookies path in both vB and 4images, configurations in constants and config file, license number,

try to login with "remember me" turn on/off, login from forum and go to album ...

i dont really have time to look into the issue in detail right now, but if I can get some clue, it'd be much easier.

Omranic 11-15-2005 02:49 PM

I have Tried all of that & it still say thank you for login & redirect me to the login page

any one can solve this plz ?

mtha 11-15-2005 07:18 PM

you can try to fall back to the older version, without the vBulletin edit.

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

it said to work too, with small bugs that can be fix otherway

chanzero 11-16-2005 06:02 PM

i am getting the following error:

DB Error: Bad SQL Query: SELECT u.*, l.*, user.password as user_password, user.salt as salt FROM vb3_user u, 4images_lightboxes l, user WHERE u.userid = 976 AND user.userid = 976 AND l.user_id = u.userid
Table 'chan_zero.user' doesn't exist

everything else seems to be working -- i'm logged in with my vb login and i can see WOL

the vb user table is actually called "chan_zero.vb3_user" but i already put 'vb3_' as the vb table prefix in the constants.php so i'm not sure what i didn't do right?

mtha 11-16-2005 10:50 PM

quick fix: edit sessions.php, line 302, 303, 304, replace with this:

PHP Code:

      $sql "SELECT u.*, l.*
              FROM "
.USERS_TABLE." u, ".LIGHTBOXES_TABLE." l
WHERE "
.get_user_table_field("u.""user_id")." = $user_id AND l.user_id = ".get_user_table_field("u.""user_id"); 


chanzero 11-17-2005 05:11 AM

thanks mtha. actually i just used your sessions.php and it worked fine without editing those lines

mtha 11-17-2005 11:35 AM

Quote:

Originally Posted by SolidSnake@GTI
I have Tried all of that & it still say thank you for login & redirect me to the login page

any one can solve this plz ?

well, your login form seems to work, but it doesnt know where to redirect to, and if it redirect to the login page (forum login page?) then the url is wrong somewhere.


i just clean the code alittle bit, try the new files and see how it work out. (save the old backup plz)


All times are GMT. The time now is 02:25 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.01473 seconds
  • Memory Usage 1,854KB
  • 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_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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