Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Integration: 4images Gallery 1.7.2 + vB 3.5.4 Details »»
User Integration: 4images Gallery 1.7.2 + vB 3.5.4
Version: 1.2, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-16-2005 Last Update: 04-09-2006 Installs: 73
Uses Plugins
Additional Files  
No support by the author.

=============================================
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 .

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 04-23-2006, 04:46 AM
Paprika Paprika is offline
 
Join Date: Jul 2003
Location: Ohio
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to hate to have my gallery and foum have different user bases, but this bridge or whatever is having cookie problems for me, so bad I can't always log-in, and when i do it doesn't stay logged-in.
Reply With Quote
  #83  
Old 05-17-2006, 02:32 AM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, hope this isn't a problem, i compared 1.7.1 hack with 1.7.2 files, this is the result, isn't the same as in 1.7.2 release by mtha, so make sure you save a copy in case you don't like how this works.

So far i don't have more complains about system kicking people out after a while. But i don't know, i think something is missing, and didn't attach login template cause i can't make it redirect to 4images.

Don't know why, but the new release by mtha isn't working for me.
Reply With Quote
  #84  
Old 05-29-2006, 01:34 AM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*** Warning, important security hole fix ***

Since there's a sql injection security issue in sessions.php of 4images 1.7.1/1.7.2, V@no from 4images has also made an extra fix for the vBulletin users because they're also affected, even if the code to change on the 4images website seems to be not in the modified sessions.php the hole is in there in another line...

My gallery was affected and got sql injected by some spambots, so I think it's good for you to know that

Find:
Code:
  function get_session_id() {
    global $HTTP_GET_VARS, $HTTP_POST_VARS;
    if ($this->session_id = $this->read_cookie_data(COOKIE_PREFIX."sessionhash")) {
      $this->mode = "cookie";
    }
    else {
      if (isset($HTTP_GET_VARS[SESSION_NAME])) {
        $this->session_id = $HTTP_GET_VARS[SESSION_NAME];
      }
      elseif (isset($HTTP_POST_VARS[SESSION_NAME])) {
        $this->session_id = $HTTP_POST_VARS[SESSION_NAME];
      }
      else {
        $this->session_id = false;
      }
    }
  }
Replace it with:
Code:
  function get_session_id() {
    global $HTTP_GET_VARS, $HTTP_POST_VARS;
    if ($this->session_id = $this->read_cookie_data(COOKIE_PREFIX."sessionhash")) {
      $this->mode = "cookie";
    }
    else {
      if (isset($HTTP_GET_VARS[SESSION_NAME])) {
        $this->session_id = $HTTP_GET_VARS[SESSION_NAME];
      }
      elseif (isset($HTTP_POST_VARS[SESSION_NAME])) {
        $this->session_id = $HTTP_POST_VARS[SESSION_NAME];
      }
      else {
        $this->session_id = false;
      }
    }
    $this->session_id = preg_replace('/[^a-z0-9]+/i', '', $this->session_id);
  }
The original thread can be found here (my request for a vB fix is on page 2)
Reply With Quote
  #85  
Old 06-02-2006, 05:05 PM
kai3k kai3k is offline
 
Join Date: Jul 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks.

edited and works without any problems. :up:
Reply With Quote
  #86  
Old 06-08-2006, 05:46 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it works with vBulletin 3.6 BETA ?
Reply With Quote
  #87  
Old 06-09-2006, 08:11 AM
xec xec is offline
 
Join Date: Mar 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I am working with 4images 1.7.2 and vBulletin 3.5.4


One of the changes in sessions.php is

define('ALBUM_FOLDER','/album/'); //Your Album Folder WITH trailing slash

Does this mean the root of 4images gallery? I have installed 4images at the root (www.mydomain.com). So would I need to change that to(?):

define('ALBUM_FOLDER','http://www.mydomain.com/'); //Your Album Folder WITH trailing slash




Also, for constants.php it has

define('SCRIPT_URL', 'http://www.YOURWEBSITE.org/album'); //no trailing slash

So would I need to make that(?):

define('SCRIPT_URL', 'http://www.mydomain.com'); //no trailing slash

Since my 4images gallery is installed at www.mydomain.com

Thank you for your time.
Reply With Quote
  #88  
Old 06-16-2006, 06:37 PM
Blackmana Blackmana is offline
 
Join Date: Jun 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paprika
My problem actually still presists too..

At first after the upgrade I thought it was working correctly but a day or two later I go back to the gallery and see myself logged-out. Then I goto the forum and it has me logged-in.

So I go back to the gallery and logg-in but still it doesn't see me as being logged in.

Even logging-out completely and logging back in won't get me in...

WTF
yes this problem me too... somebody help me please? I can't logg-in control panel, because i cant see control panel button (vbulletin is ok).. screen:
Reply With Quote
  #89  
Old 06-19-2006, 04:50 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u.u i gave up with 4images... i really love it, but it's not the best to work with vB.
Reply With Quote
  #90  
Old 07-27-2006, 12:52 AM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrm, any tests available with vB 3.5 and 4images 1.7.3 or even vB 3.6 and 4images 1.7.3 yet?

Would like to know if it works before I update at least to 1.7.3 which is recommended by 4homepages because of the fixed security holes and bugs...
Reply With Quote
  #91  
Old 07-28-2006, 01:19 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear all,

Even though that I like 4images alot (I like it much more than most other script), I need to move to a different album management, that fit better with our website (not because of the intergration).

Besides, I dont really have much time spending on this, so, if there is anyone who is inspired enough by this hack, and by 4images, can take care of the intergration, and give support, that would really be great.

I try the best of what I can do, but I cant promise much

Thank you very much for all of your supports by using the intergration.

mtha.

PS. If no one want to work on the matter, I promise I will clean up the code, and change the way the integration work, so that it might work better.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07127 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete