4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: denisnovikov on January 17, 2009, 02:38:45 PM

Title: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on January 17, 2009, 02:38:45 PM
Last update: 04 Mar 2010: known to work without any additional tuning with latest vBulletin 4.0.2

Index


Introduction

This mod allows to use both 4images and vBulletin application transparently for users as they are one application. Registration and login are handling by the vBulletin app, users are creating into 4images database “on-the-fly”, on logged in user first request any of the 4images pages.


Demo

Thanks to Nicky for hosting live demo at:
httpx://www.nicky.net/demo/4images/
httpx://www.nicky.net/demo/vBulletin/
Updated: 4images 1.7.7 + vBulletin 4.0.2


List of changed files

New files:
   includes/vb.php
   global_usefulstuff.php

Modified:
   config.php
   global.php
   includes/sessions.php
   includes/page_header.php
   admin/admin_global.php
   admin/index.php
   templates/default/user_loginform.html


Installation

Step 1. New files

Download new files (newfiles.zip) and place them:
   a) vb.php into includes directory;
   b) global_usefulstuff.php into root directory of the 4images installation

Step 2. config.php

Add at the end of the file, before “?>” symbols:

Code: [Select]
define('VBULLETIN3_BRIDGE_ON', true);
define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'<vb_root>').'/');
define('VBULLETIN3_URL', '<vb_url>');

Where:
<vb_root> is relative path from the 4images’ root to vBulletin root. For example, if you have installed both apps at the same directory on your server and your vBulletin is located into ‘vBulletin’ directory (as it done at the Nicky’s server), type there: “/../vBulletin/” (without quotes). Note, on some servers small and caps letters are differ, so put it exactly as it named.
<vb_url> is your vBulletin installation relative to the root of server url, as users type it’s address in their web-browsers. Back to the Nicky’s installation, it should be “/vBulletin/” (again without quotes).


Step 3. global.php

Locate:

Code: [Select]
//-----------------------------------------------------
//--- Useful Stuff ------------------------------------
//-----------------------------------------------------
...
...
tons of code here
...
...
//-----------------------------------------------------
//--- Start DB ----------------------------------------
//-----------------------------------------------------

Remove everything between these two sections (“Useful Stuff” and “Start DB”) and a following code instead of deleted lines:

Code: [Select]
include(ROOT_PATH.'global_usefulstuff.php');

Step 4. includes/sessions.php

Locate somewhere around line 178:

Code: [Select]
function login($user_name = "", $user_password = "", $auto_login = 0, $set_auto_login = 1) {
Replace with:

Code: [Select]
function login($user_name = "", $user_password = "", $auto_login = 0, $set_auto_login = 1, $do_md5 = true) {
Locate somewhere around line 191:

Code: [Select]
$user_password = md5($user_password);
Replace with:

Code: [Select]
if($do_md5 == true) $user_password = md5($user_password);
Locate somewhere around line 418:

Code: [Select]
// Get Userinfo
$session_info = $site_sess->return_session_info();
$user_info = $site_sess->return_user_info();

Add following code after:

Code: [Select]
include_once(realpath(dirname(__FILE__)).'/vb.php');


Step 5. includes/page_header.php

Locate:

Code: [Select]
Copyright &copy; 2002-'.date('Y').' <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>
',

Add following code right after:

Code: [Select]
"login_user_name_form_field" => (!empty($login_user_name_form_field)) ? $login_user_name_form_field : 'user_name',
"login_user_password_form_field" => (!empty($login_user_password_form_field)) ? $login_user_password_form_field : 'user_password',
"login_auto_form_field" => (!empty($login_auto_form_field)) ? $login_auto_form_field : 'auto_login',
"login_additional_form_fields" => (!empty($login_additional_form_fields)) ? $login_additional_form_fields : '',


Step 6. admin/admin_global.php

Locate:

Code: [Select]
// Include default languages
Add following code before:

Code: [Select]
// Default form
$login_admin_form_action = $site_sess->url(ROOT_PATH."admin/index.php");;
$login_admin_name_form_field = 'loginusername';
$login_admin_password_form_field = 'loginpassword';
$login_admin_additional_form_fields = '';

// Overwrite form if necessary
if(defined('VBULLETIN3_BRIDGE_ON') && VBULLETIN3_BRIDGE_ON === true){
$login_admin_form_action = $site_sess->url(VBULLETIN3_URL."login.php?do=login");
$login_admin_name_form_field = 'vb_login_username';
$login_admin_password_form_field = 'vb_login_password';
$login_admin_additional_form_fields = '<input type="hidden" name="do" value="login" />';
}



Locate:

Code: [Select]
<form action="<?php echo $site_sess->url(ROOT_PATH."admin/index.php"); ?>" method="post">
Replace with:

Code: [Select]
<form action="<?php echo $login_admin_form_action?>" method="post">
<?php echo $login_admin_additional_form_fields?>

Locate:

Code: [Select]
<td><input type="text" name="loginusername" size="<?php echo $textinput_size2?>"></td>
<td><input type="password" name="loginpassword" size="<?php echo $textinput_size2?>"></td>

Replace with:

Code: [Select]
<td><input type="text" name="<?php echo $login_admin_name_form_field?>" size="<?php echo $textinput_size2?>"></td>
<td><input type="password" name="<?php echo $login_admin_password_form_field?>" size="<?php echo $textinput_size2?>"></td>


Step 7. admin/index.php

Locate (at around lines 60-70):

Code: [Select]
if ($action == "head") {
?>
<html dir="<?php echo $lang['direction']; ?>">

Add following code right before "?>" symbols:

Code: [Select]
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout = $site_sess->url(ROOT_PATH."admin/index.php?logout=1");
}

Locate:

Code: [Select]
<td align="right"><b><a href="<?php echo $site_sess->url(ROOT_PATH."index.php"); ?>" target="_blank"><?php echo $lang['goto_homepage']; ?></a>&nbsp;|&nbsp;<a href="<?php echo $site_sess->url(ROOT_PATH."admin/index.php?logout=1"); ?>" target="_top"><?php echo $lang['logout']; ?></a>&nbsp;&nbsp;</b></TD>
Replace with:

Code: [Select]
<td align="right"><b><a href="<?php echo $site_sess->url(ROOT_PATH."index.php"); ?>" target="_blank"><?php echo $lang['goto_homepage']; ?></a>&nbsp;|&nbsp;<a href="<?php echo $url_logout?>" target="_top"><?php echo $lang['logout']; ?></a>&nbsp;&nbsp;</b></TD>

Step 8. templates/default/user_loginform.html

Locate:

Code: [Select]
<input type="text" size="10" name="user_name" class="logininput" />
Replace with:

Code: [Select]
<input type="text" size="10" name="{login_user_name_form_field}" class="logininput" />

Locate:

Code: [Select]
<input type="password" size="10" name="user_password" class="logininput" />
Replace with:

Code: [Select]
<input type="password" size="10" name="{login_user_password_form_field}" class="logininput" />
{login_additional_form_fields}

Locate:

Code: [Select]
<td><input type="checkbox" name="auto_login" value="1" /></td>
Replace with:

Code: [Select]
<td><input type="checkbox" name="{login_auto_form_field}" value="1" /></td>

Notes

Please make sure when installing applications you have admin account on both 4images and vBulletin apps with the same user name and password.


Known issues

When switching bridge off users can’t login to 4images anymore from the native 4images form. However they still exists in 4images database and could request for new password.


Version history

0.1 - initial release
0.2 - security fix (thanks to nic_bck for reporting: http://www.4homepages.de/forum/index.php?topic=23892.msg132782#msg132782)
0.3 - upgraded to 4images 1.7.7; doesn't let user which is not confirmed his email login into 4images -- only his own CP panel on vBulletin.
0.4 - now all default templates from 4images 1.7.7 are bridge ready (modded.zip, newfiles.zip); when user changes his email in vBulletin on the next login it will be updated into 4images also (thanks to Sun); now after user registered at vBulletin his join date will be also transferred as soon as he will come to 4images (thanks again to Sun); tested with vBulletin 3.8.4
0.5 - fix for the changed user's email was not actually updated into 4images DB.
0.6 - additional condition before change email: user has to have proper vBulletin session so when user logging out of vBulletin and refreshing 4images page his email will not be changed to the empty string (thanks Sun for reporting).

Extras

Users, who already have installed 4images and have users in it, can download userexport.php (attached to post - ue.zip), place it into root directory of 4image after installing bridge and run it from the browser. Existing 4images users should appear now in vBulletin.

Download already modded 4images 1.7.7 archive (attached to post modded.zip).

Download this instruction in printer friendly pdf (attached to post - bridge-step-by-step.pdf).


Please feel free to post bugs/questions/etc. here or via pm. Languages accepted: Russian, English.

Have fun ;)


Merging with other Mods

[MOD] Language select & [MOD] Multi-Language support for any text
http://www.4homepages.de/forum/index.php?topic=4743.0
http://www.4homepages.de/forum/index.php?topic=6749.0


Known problem: doesn't work simultaneously with Bridge.

Fix:

Find in includes/sessions.php:

Code: [Select]
include_once(realpath(dirname(__FILE__)).'/vb.php');
Replace with:

Code: [Select]
$temporaryLanguage = $l;
include_once(realpath(dirname(__FILE__)).'/vb.php');
$l = $temporaryLanguage;

Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: mawenzi on January 17, 2009, 03:00:10 PM
hi denis ...

... thanks for sharing this modification for using 4images and vBulletin ...
... and what a great stuff ... installations instructions as pdf-files ...  8O
Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: denisnovikov on January 17, 2009, 03:03:50 PM
hi denis ...

... thanks for sharing this modification for using 4images and vBulletin ...
... and what a great stuff ... installations instructions as pdf-files ...  8O

Hi, it was not a problem to export to pdf as I was writing this text in gui editor, not right in the form on board :) Or do you mean it's bad to post pdfs? :D

Edit: thanks for moving into releases!
Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: mawenzi on January 17, 2009, 03:10:49 PM
... as I said ... a great stuff ... and a new standard for mod publication ... !
... thanks again ...
Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: Nicky on January 17, 2009, 03:20:26 PM
hi denis,

thank you for posting this bridge. great thing!
notice to the users: it was tested with 4images 1.7.6 and vBulletin 3.7.4 up to 3.8.0
Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: V@no on January 17, 2009, 08:59:59 PM
I'm sorry I didn't pay attention to the beta testing of this mod, but now I have two questions:
1. what is the point of step 3?
2. can we have a separate package with only needed (new) files, so people don't need download 1.4mb file just for these two files.

P.S.
Since this mod is pretty much vB version dependent, the vB version should be mentioned if not in the title, then at least in the original instructions ;)
Title: Re: [MOD] Bridge: 4images - vBulletin
Post by: denisnovikov on January 17, 2009, 09:44:42 PM
1. what is the point of step 3?

Some magic :D I realized this part of "globals" should be reloaded after initializing vBulletin core :)

2. can we have a separate package with only needed (new) files, so people don't need download 1.4mb file just for these two files.

Yeah, sure! My fault! Thanks!

Since this mod is pretty much vB version dependent, the vB version should be mentioned if not in the title, then at least in the original instructions ;)

Dunno how much it depended on vBulletin version, did you try install it with other than 3.7.4 .. 3.8.0 versions?
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Dblockn05 on January 21, 2009, 04:24:25 PM
Very nice mod, I will be installing it this afternoon.  Do you plan on releasing it on vbulletin.org?  A lot of members are probably eager for this.

Hella thanks for taking your time to do this.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on January 21, 2009, 04:26:28 PM
Very nice mod, I will be installing it this afternoon.  Do you plan on releasing it on vbulletin.org?  A lot of members are probably eager for this.

Hella thanks for taking your time to do this.

Thanks, please feel free to report bugs :)
As for releasing it on vBulletin forums, maybe later a bit :)

Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: kirby on January 30, 2009, 03:38:44 PM
Thank you, been waiting for this one for a while, very easy to follow :)

But is there a way to show "Last X posts" on the 4images gallery main page?
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on January 30, 2009, 04:00:15 PM
Thank you, been waiting for this one for a while, very easy to follow :)

But is there a way to show "Last X posts" on the 4images gallery main page?

Thanks to you for using it :)

Yes, guess it's possible to extend vb.php so it will have this info also somewhere in usersession. Will see later  :wink:
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: kirby on January 30, 2009, 04:52:18 PM
Thank you, been waiting for this one for a while, very easy to follow :)

But is there a way to show "Last X posts" on the 4images gallery main page?

Thanks to you for using it :)

Yes, guess it's possible to extend vb.php so it will have this info also somewhere in usersession. Will see later  :wink:

Well thanks in advance :) even just as it is, this is definitly my fav mod  :mrgreen:
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: riansyah on February 07, 2009, 05:11:22 PM
Hello,

I have the problem.

when I register a new member and then i'm login then show this error

An unexpected error occured. Please try again later.

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\4images\includes\db_mysql.php:192) in C:\AppServ\www\4images\includes\functions.php on line 114

then i check my database user 4images, it's not be added a new user on 4images users tables and only added on vbulletin user tables

anyone help me..


Regards
riansyah
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Nicky on February 08, 2009, 10:44:46 PM
hi,

this is strange,

because, i tested it on xampp(windows) and like you can see it on our demo page which is on linux.

i have to mentioned it, that it was tested without any mods on both sides.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 09, 2009, 09:26:43 AM
Hello,

I have the problem.

when I register a new member and then i'm login then show this error

An unexpected error occured. Please try again later.

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\4images\includes\db_mysql.php:192) in C:\AppServ\www\4images\includes\functions.php on line 114

then i check my database user 4images, it's not be added a new user on 4images users tables and only added on vbulletin user tables

anyone help me..


Regards
riansyah

Hi, can you switch bridge off and see if 4images installation works standalone? I guess problem is somewhere in your settings/configurations.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: V@no on February 09, 2009, 03:46:10 PM
The easiest way to see what that error means, is temporary  replace in includes/db_mysql.php:

      if (isset($user_info['user_level']) && $user_info['user_level'] == ADMIN){


With:

//      if (isset($user_info['user_level']) && $user_info['user_level'] == ADMIN){
      if (1){
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: boquang on February 10, 2009, 10:01:01 PM
I'm got blank page, please help!!!
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 19, 2009, 04:46:03 PM
Hi!
I have a vbulletin installed with a lot of users.

Quote
Users, who already have installed 4images and have users in it, can download userexport.php (attached to post - ue.zip), place it into root directory of 4image after installing bridge and run it from the browser. Existing 4images users should appear now in vBulletin.

Do you have something like userexport.php but to the other way? To export users from vbulletin to 4images?

Thanks!
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 19, 2009, 05:02:06 PM
Hi!
I have a vbulletin installed with a lot of users.

Do you have something like userexport.php but to the other way? To export users from vbulletin to 4images?


Why? Your existing vBulletin users will be created "on-the-fly" at their first attempt to visit 4images installation while they're logged in at vBulletin and session/cookies sharing is works okay between 4images and vBulletin. You have nothing to do, just install 4images and bridge ;)
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 19, 2009, 06:09:46 PM
Hi!
I have a vbulletin installed with a lot of users.

Do you have something like userexport.php but to the other way? To export users from vbulletin to 4images?


Why? Your existing vBulletin users will be created "on-the-fly" at their first attempt to visit 4images installation while they're logged in at vBulletin and session/cookies sharing is works okay between 4images and vBulletin. You have nothing to do, just install 4images and bridge ;)

Ok, was a translate problem :P
I have tested this mod http://www.vbulletin.org/forum/showthread.php?t=98640 and I have problems with it.

Thank you for this mod, I'll test it this week.
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 19, 2009, 06:16:03 PM
Another question:

The users are created with the same userid on 4images that they have on vbulletin?

Thanks!
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 19, 2009, 06:31:46 PM
The users are created with the same userid on 4images that they have on vbulletin?

yup
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 22, 2009, 10:58:13 AM
The users are created with the same userid on 4images that they have on vbulletin?

yup

Hi! to have the same userid on 4images than your users have on vbulletin you have to do this changes:

1. Remove auto_increment on 4images_users table, field user_id.

2. Two changes on vb.php

2.1 Comment line 38:
Replace this
Code: [Select]
$user_id = $site_db->get_next_id($user_table_fields['user_id'], USERS_TABLE);
with this:
Code: [Select]
//$user_id = $site_db->get_next_id($user_table_fields['user_id'], USERS_TABLE);
2.2 Change line 42:
Replace this
Code: [Select]
($user_id, 2, '".$vbulletin->userinfo['username']."', '".$vbulletin->userinfo['password']."', '".$vbulletin->userinfo['email']."', '".$vbulletin->userinfo['joindate']."')";
with this:
Code: [Select]
('".$vbulletin->userinfo['userid']."', 2, '".$vbulletin->userinfo['username']."', '".$vbulletin->userinfo['password']."', '".$vbulletin->userinfo['email']."', '".$vbulletin->userinfo['joindate']."')";
PS: sorry for my english... :P

Thanks!
nic_net

Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 22, 2009, 11:02:20 AM

Hi! to have the same userid on 4images than your users have on vbulletin you have to do this changes:

1. Remove auto_increment on 4images_users table, field user_id.

2. Two changes on vb.php
...

Oh crap, yeah, my mistake, your changes are correct. Didn't look from where user_id comes before insert :s
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 22, 2009, 11:16:13 AM
Hello, (EDIT: NOW IS SOLVED WITH A FIX) I think that this mod have a big security problem.

I have tested it on my developer server and Nicky's server.

The problem:
You do login with user A, and logout. Then you do login with user B, you are logged  with user B on vbulletin, but on 4images you are logged with user A.

If user A is the vb-4images admin, and user B is a normal user, user B can enter on 4images admin panel without any problem.

I think that this is a big problem.
I'm working on it to repair this problem becouse this is a very interesting mod. All the people want to have a forum on their site, and vbulletin it's on of the best.

I don't Know if Nicky or V@no can help us, I think they can be a big help. V@no help me a lot when I tried to make more efficient a SEO mod.

Do you have any idea that what the problem is?
PS: sorry for my english... :P

Thanks!
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 22, 2009, 11:29:37 AM
Hello, I think that this mod have a big security problem.

I have tested it on my developer server and Nicky's server.

The problem:
You do login with user A, and logout. Then you do login with user B, you are logged  with user B on vbulletin, but on 4images you are logged with user A.

If user A is the vb-4images admin, and user B is a normal user, user B can enter on 4images admin panel without any problem.

I think that this is a big problem.


Confirm, but it's not too big although -- if you have login data for both accounts it means they are both your accounts. However it should be fixed for sure. Already looking for solution.
Thanks for reporting!
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 22, 2009, 11:40:00 AM

Confirm, but it's not too big although -- if you have login data for both accounts it means they are both your accounts. However it should be fixed for sure. Already looking for solution.
Thanks for reporting!

I said that it's a big problem becouse I think that all security problems are important :P

I don't know if someone can modify a cookie, and can supplant another user.
Do you think this can be possible?

I can try to help you if you need help to improve this mod, and you want.

PS: sorry for my english... :P

Thanks!
nic_net


Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 22, 2009, 11:46:07 AM
I said that it's a big problem becouse I think that all security problems are important :P

I don't know if someone can modify a cookie, and can supplant another user.
Do you think this can be possible?

I can try to help you if you need help to improve this mod, and you want.


Nah, stealing cookie will not help to login under another user

fix (~line 14 @ vb.php)
replace:
Code: [Select]
if(user_info['user_id'] == -1 && intval($vbulletin->userinfo['userid']) > 0){
with:
Code: [Select]
if(intval($vbulletin->userinfo['userid']) > 0 && ($user_info['user_id'] == -1 || $user_info['user_name'] != $vbulletin->userinfo['username'])){
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 22, 2009, 11:57:19 AM
Nah, stealing cookie will not help to login under another user

fix (~line 14 @ vb.php)
replace:
Code: [Select]
if(user_info['user_id'] == -1 && intval($vbulletin->userinfo['userid']) > 0){
with:
Code: [Select]
if(intval($vbulletin->userinfo['userid']) > 0 && ($user_info['user_id'] == -1 || $user_info['user_name'] != $vbulletin->userinfo['username'])){

First , thank you for the fast reply and thanks for support your mod.
I'll test it on my developer server as soon as possible.

PS: sorry for my english... :P

Thanks!
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on February 22, 2009, 12:03:06 PM
First , thank you for the fast reply and thanks for support your mod.
I'll test it on my developer server as soon as possible.

No probs, we should be responsible for things we did ;)


Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on February 22, 2009, 01:17:44 PM
Hi!

With the fix works fine.
I'm going to do more tests.

Other thing, this mod works fine with [MOD] Google Friendly Urls For 4images Best Seo Mod and with the V@no's improve of 11 page.
Now i'm going to test it with this other mod: [MOD] Download limit v1.0.1 http://www.4homepages.de/forum/index.php?topic=7701.0

Thanks again denisnovikov.
PS: I'm going to edit my previous post becouse the problem is solved.

PS2: sorry for my english... :P

Thanks!
nic_net
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Sumale.my on April 09, 2009, 06:49:16 AM
Komme etwas durcheinander,
brauche ich alle Files die im Anhang sind?

Bei Nicky steht in der Sig für vB 3.8.1, also läuft die Version hier mir 3.8.1? Und auch mit 3.8.2?
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on April 09, 2009, 10:27:43 AM
Komme etwas durcheinander,
brauche ich alle Files die im Anhang sind?

Bei Nicky steht in der Sig für vB 3.8.1, also läuft die Version hier mir 3.8.1? Und auch mit 3.8.2?

Yes, it works with 3.8.1, and should work with 3.8.2 (can't say it will, because I didn't test it with 3.8.2 and didn't receive any reports about it). However you can try and post back here (don't forget to make backups before).

You can do installation of this mod manually using the step-by-step guide or already patched version provided at the first post.
Also keep in mind security fix: http://www.4homepages.de/forum/index.php?topic=24526.0 because this fix is not included into full patched version.

There is new release coming in a days, so I will update mod files asap.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Sumale.my on April 09, 2009, 10:44:28 AM
Ok, thanks!
I will testing!
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on April 09, 2009, 10:46:11 AM
Ok, thanks!
I will testing!

Danke schön!
And please feel free to leave a feedback :wink:
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Sun on April 09, 2009, 11:19:30 AM
Can i see actual information about user in the member_profile.html (4images)? 

Can it work with mod Multi-Lightboxes v1.03?
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on April 09, 2009, 11:54:04 AM
Can i see actual information about user in the member_profile.html (4images)? 

You can see actual information about user, but it will be information from 4images, not from vBulletin. I did so, because in my opinion same user can be just simple poster on forum and having extended rights for uploading images at 4images. These are two standalone applications finally and my task was make easier use both of them at the same time for users. However, you can always extend it by yourself in the way you need it. :)

Can it work with mod Multi-Lightboxes v1.03?

I have no information about these two mods working (or not working) together, please feel free to test and report here. Thanks!
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: crazyfrog on May 01, 2009, 09:20:57 AM
Thanks for this, its simple but FANTASTIC!

Is there any way to transfer usergroups to 4images, so only members of a certain usergroup on my forum can download images?
That would be great.
Thanks again
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Nicky on May 03, 2009, 02:12:24 PM
all,

demo is rightnow up2date with VB 3.8.2 and 4images 1.7.6

info:
usergroups are to be done by both systems..

this Bridge which is done by denis is ONLY: 1 user account for both systems, nothing more.

have a nice day.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: crazyfrog on May 03, 2009, 07:33:58 PM

info:
usergroups are to be done by both systems..

this Bridge which is done by denis is ONLY: 1 user account for both systems, nothing more.

Thats a shame.  :(
How hard would it be to do, that nobody can see the files unless in a certain VB usergroup, or possibly someone has a workaround without manually moving people.
Thanks in advance. :D
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: AntiNSA2 on May 05, 2009, 04:32:54 AM
I am trying to figure this out it is so close to working... but I get this error

Code: [Select]
Parse error: syntax error, unexpected $end in /home/lifephotography/htdocs/admin/index.php on line 189and here is the file 
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: index.php                                            *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

define('IN_CP'1);
define('ROOT_PATH''./../');
require(
'admin_global.php');

if (
$redirect != "") {
  
show_admin_header("<meta http-equiv=\"Refresh\" content=\"0; URL=".$site_sess->url($redirect)."\">");
  echo 
"<p><a href=\"".$site_sess->url($redirect)."\">".$lang['admin_login_redirect']."</a></p>";
  
show_admin_footer();
  exit;
}
if (
$action == "") {
  
$action "frames";
}

if (
$action == "frames") {
  if (
$goto != "") {
    
$framesrc $site_sess->url($goto);
  }
  else {
    
$framesrc $site_sess->url("home.php");
  }
if (
$action == "head") {
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout $site_sess->url(ROOT_PATH."admin/index.php?logout=1");

?>

<html dir="<?php echo $lang['direction']; ?>">
  <head>
    <title><?php echo $config['site_name']; ?> Control Panel</title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang['charset']; ?>">
  </head>
  <frameset rows="70,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
    <frame src="<?php echo $site_sess->url("index.php?action=head"); ?>" name="head" scrolling="NO" NORESIZE frameborder="0" marginwidth="0" marginheight="0" border="no">
    <frameset cols="216,*"  framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
      <frame src="<?php echo $site_sess->url("index.php?action=nav"); ?>" name="nav" scrolling="auto" NORESIZE frameborder="0" marginwidth="0" marginheight="0" border="no">
      <frame src="<?php echo $framesrc ?>" name="main" scrolling="auto" NORESIZE frameborder="0" marginwidth="20" marginheight="20" border="no">
    </frameset>
  </frameset>
</html>
<?php
}

if (
$action == "head") {
?>

<html dir="<?php echo $lang['direction']; ?>">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang['charset']; ?>">
    <link rel="stylesheet" href="./cpstyle.css">
  </head>
  <body leftmargin="0" background="images/bg_header.gif" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FCDC43">
    <table border="0" cellpadding=0 cellspacing=0 width="100%">
      <tr>
        <td><img src="images/logo.gif"></td>
        <td align="right"><b><a href="<?php echo $site_sess->url(ROOT_PATH."index.php"); ?>" target="_blank"><?php echo $lang['goto_homepage']; ?></a>&nbsp;|&nbsp;<a href="<?php echo $url_logout?>" target="_top"><?php echo $lang['logout']; ?></a>&nbsp;&nbsp;</b></TD>
      </tr>
    </table>
    <table border="0" cellpadding=4 cellspacing=0 width="100%">
      <tr>
        <td valign=top>
        <b><a href=<?php echo $site_sess->url("home.php?action=home"); ?> target=main>Control Panel Home</a></b>
        </td>
        <td align="center">
        <script language="JavaScript" type="text/javascript" src="http://www.4homepages.de/version/version.php"></script>
        <script language="JavaScript" type="text/javascript">
        <!--
        if ('<?php echo SCRIPT_VERSION?>' != latestversion) {
          document.write(latestversioninfo);
        }
        // -->
        </script>
        </td>
        <td align="right">
        Version: <b><?php echo SCRIPT_VERSION?></b>
        </td>
      </tr>
    </table>
  </body>
</html>
<?php
}

if (
$action == "nav") {
if (
$action == "head") {
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout $site_sess->url(ROOT_PATH."admin/index.php?logout=1");
}

?>

<html dir="<?php echo $lang['direction']; ?>">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang['charset']; ?>">
    <link rel="stylesheet" href="./cpstyle.css">
    <base target="main">
  </head>
  <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="200" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" height="1"><img src="images/spacer.gif" height="1"></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE" width="199" height="100%" valign="top">
          <table width="199" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE">
          <?php
          show_nav_header
($lang['nav_categories_main']);
          
show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
          
show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");

          
show_nav_header($lang['nav_images_main']);
          
show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");
          
show_nav_option($lang['nav_images_add'], "images.php?action=addimages");
          
show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");
          
show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");
          
show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");
          
show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");

          
show_nav_header($lang['nav_comments_main']);
          
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");

          
show_nav_header($lang['nav_users_main']);
          
show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");
          if (!
defined('USER_INTEGRATION')) {
            
show_nav_option($lang['nav_users_add'], "users.php?action=addusers");
          }
          
show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");
          if (!
defined('USER_INTEGRATION')) {
            
show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");
          }

          
show_nav_header($lang['nav_general_main']);
          
show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");
          
show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");
          
show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");
          
show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");
show_nav_option("phpinfo()""phpinfo.php");

          if (@
is_dir("plugins")) {
            
show_nav_header("PlugIns");
            
$handle = @opendir("plugins/");
            while (
$file = @readdir($handle)) {
              if (
eregi("^\.{1,2}$"$file) || !eregi("\.php$"$file)) {
                continue;
              }
              
$plugin_file file("./plugins/".$file);
              
$plugin_file[0] = trim($plugin_file[0]);
              if (
preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i"$plugin_file[0], $regs)) {
                
show_nav_option(trim($regs[1]), "./plugins/".$file);
              }
              else {
                
show_nav_option($file"./plugins/".$file);
              }
            }
            @
closedir($handle);
          }
          
?>

          </table>
        </td>
        <td bgcolor="#004C75" width="1"><img src="images/spacer.gif"></td>
      </tr>
    </table>
  </body>
</html>
<?php
}
?>


I can say the forum is super awsome and I am dying without sleep to get it to work!
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: AntiNSA2 on May 05, 2009, 04:59:30 AM
Ok, in step two I have another little issue...

My 4images is in the

htdocs/ folder.....

My forum is in the htdocs/forum/ directory.....

According to step two it says
Quote
if you
have installed both apps at the same directory on your server and your vBulletin is located
into ‘vBulletin’ directory (as it done at the Nicky’s server), type there:
“/../vBulletin/” (without quotes).

but every time I put the path like this
Code: [Select]
/../forum/ I get an error.

However everytime I put it like this I get no error
Code: [Select]
/forum/
Am I doing something wrong?
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: crazyfrog on May 05, 2009, 08:20:14 AM
If your directories are set out like you say,

htdocs/forum
&
htdocs/4images

Then your config file should look like this:

Code: [Select]
define('VBULLETIN3_BRIDGE_ON', true);
define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'/../forum/').'/');
define('VBULLETIN3_URL', '/forum/');

Nickys server is just an example, but his is set out differently.

Ie:

htdocs/forum/
&
htdocs/forum/4images/

Notice the gallery is inside the forums direcory.

Hope this helps.  :lol:

Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Nicky on May 05, 2009, 08:58:38 AM
here settings of demo

Code: [Select]
// -- invite VBulletin to share some info with us
define('VBULLETIN3_BRIDGE_ON', true);
define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'/../vBulletin/').'/');
define('VBULLETIN3_URL', '/demo/vBulletin/');

and how it is looks like
http://www.nicky.net/demo/4images/
http://www.nicky.net/demo/vBulletin/
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on May 05, 2009, 09:39:46 AM
I am trying to figure this out it is so close to working... but I get this error

Code: [Select]
Parse error: syntax error, unexpected $end in /home/lifephotography/htdocs/admin/index.php on line 189

You simply don't need code on lines 108-112 and 46-51:
Code: [Select]
if ($action == "head") {
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout = $site_sess->url(ROOT_PATH."admin/index.php?logout=1");
}

but you need it on lines
Quote
Locate (at around lines 60-70):
and once only.

Please check twice every your step with manual.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: AntiNSA2 on May 05, 2009, 06:00:58 PM
Thank you very much it seems to be working quite well now!

Your hard work is greatly appreciated.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: nic_bck on May 10, 2009, 12:57:17 PM
Komme etwas durcheinander,
brauche ich alle Files die im Anhang sind?

Bei Nicky steht in der Sig für vB 3.8.1, also läuft die Version hier mir 3.8.1? Und auch mit 3.8.2?

Yes, it works with 3.8.1, and should work with 3.8.2 (can't say it will, because I didn't test it with 3.8.2 and didn't receive any reports about it). However you can try and post back here (don't forget to make backups before).

You can do installation of this mod manually using the step-by-step guide or already patched version provided at the first post.
Also keep in mind security fix: http://www.4homepages.de/forum/index.php?topic=24526.0 because this fix is not included into full patched version.

There is new release coming in a days, so I will update mod files asap.

Hello denisnovikov,

What will be the changes with this new version?

I'm very happy with your support of this mod, you are the best!!

Thanks again!

PD: Can I make a little paypal donation to you?

Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: crazyfrog on May 15, 2009, 02:48:01 PM
Still looking for a way to put members into usergroups as in vbulletin.
Ie, when a user subscribes via VBulletin, i give them special priveledges. One of which will be to access the gallery.

If this cant be integrated, can anyone give an idea on how to implement it.

Maybe via an access file of something.
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: AntiNSA2 on June 07, 2009, 07:09:06 AM
just want to make sure that  this mod wors with treating bots as user with less rights... anyone using both???


EMERGENCY UPDATE:


I am experiancing a redirect loop error when using this with treat robots as users mod.... I think it is a result of  this mod.... this is a great mod, however I cant seem to get one single page indexed at google. I would really appreciate it if someone could help me with this.....

TIA

you can see at this link more detail... I am not sure it is this mod.... but this is the  only mod I know which does redirecting... http://www.4homepages.de/forum/index.php?topic=8752.75

Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: Mr_LovaLove on June 15, 2009, 10:30:46 PM
i got this error ,,

Warning: require_once(/includes/init.php) [function.require-once]: failed to open stream: No such file or directory

tried to re-upload the  files again same  problem !! i got an error close to this ! and the problem was from the global !  and solved by re-uploadiing the global ,, but in this case its not working !! any clue !!? or help :P

--edit--

well, when i replace the old config , without this mod modification, this error gone ,,

i assume its from the config ,,

maybe i did something wrong

my vb and image url is

www.143.ae/vb
www.143.ae/image

i sit 'em like

/../vb/
/v/

is this right ?

also i got an error in index.php

the code around line 60-70 after modification looks like this

Code: [Select]
if ($action == "head") {
if ($action == "head") {
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout = $site_sess->url(ROOT_PATH."admin/index.php?logout=1");
}


and i got this error


Parse error: syntax error, unexpected $end in /home/alwasmy/public_html/XXXXX/XXXXXX/XXXXXXXX/index.php on line 250

i tried but seems im missing something here !! also from where i can switch off or on this mod :S
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: regina on July 02, 2009, 08:52:39 PM
 :oops:
this mod is very usefull for me but I cant do that ..

I try everyway but I cant do that  :(

how can I do this bridge  :cry:

www.mysite.com                 root is Vbullettin
www.mysite.com/gallery       here is the 4 images

what does my config PHP ?

help please  :cry: :cry: :cry:
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: denisnovikov on July 06, 2009, 12:24:07 PM
Hello denisnovikov,

What will be the changes with this new version?

I'm very happy with your support of this mod, you are the best!!

Thanks again!

PD: Can I make a little paypal donation to you?

Hi, thanks for kind words! :)

I just updated mod with little changes and at the moment trying to create a list of user requests :)

If you want to offer me a beer hit me up with PM here :D


just want to make sure that  this mod wors with treating bots as user with less rights... anyone using both???


EMERGENCY UPDATE:


I am experiancing a redirect loop error when using this with treat robots as users mod.... I think it is a result of  this mod.... this is a great mod, however I cant seem to get one single page indexed at google. I would really appreciate it if someone could help me with this.....

TIA

you can see at this link more detail... I am not sure it is this mod.... but this is the  only mod I know which does redirecting... http://www.4homepages.de/forum/index.php?topic=8752.75

Thanks for reporting! I will look at this mod and why they can conflict with each other. Thanks again!
UPD: you have to create "bot" users into vBulletin system, you did so, right?

i got this error ,,

Warning: require_once(/includes/init.php) [function.require-once]: failed to open stream: No such file or directory

tried to re-upload the  files again same  problem !! i got an error close to this ! and the problem was from the global !  and solved by re-uploadiing the global ,, but in this case its not working !! any clue !!? or help :P

This means your PATH to vBulletin installation is not correct. Please refer to my step-by-step guide it's pretty clear. Looking at second part of your post I can say in your config file should be:

Code: [Select]
define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'/../vb/').'/');
define('VBULLETIN3_URL', '/vb/');


well, when i replace the old config , without this mod modification, this error gone ,,

i assume its from the config ,,

maybe i did something wrong

my vb and image url is

www.143.ae/vb
www.143.ae/image

i sit 'em like

/../vb/
/v/

is this right ?

also i got an error in index.php

the code around line 60-70 after modification looks like this

Code: [Select]
if ($action == "head") {
if ($action == "head") {
// switch back admin logout url if no integration
if(!defined('VBULLETIN3_BRIDGE_ON') || VBULLETIN3_BRIDGE_ON !== true){
$url_logout = $site_sess->url(ROOT_PATH."admin/index.php?logout=1");
}


and i got this error


Parse error: syntax error, unexpected $end in /home/alwasmy/public_html/XXXXX/XXXXXX/XXXXXXXX/index.php on line 250

i tried but seems im missing something here !! also from where i can switch off or on this mod :S



Do you see double
Code: [Select]
if ($action == "head") {in your file? This is mistake. Just remove one. I updated instructions to make this part cleaner.

i tried but seems im missing something here !! also from where i can switch off or on this mod :S

In your config.php set:
Code: [Select]
define('VBULLETIN3_BRIDGE_ON', false);

:oops:
this mod is very usefull for me but I cant do that ..

I try everyway but I cant do that  :(

how can I do this bridge  :cry:

www.mysite.com                 root is Vbullettin
www.mysite.com/gallery       here is the 4 images

what does my config PHP ?

help please  :cry: :cry: :cry:

Your config should be like:
Code: [Select]
define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'/../').'/');
define('VBULLETIN3_URL', '/');
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.7.4+ [UPDATED!]
Post by: nic_bck on July 06, 2009, 01:01:31 PM
Hello denisnovikov,

I think I have the same problem than AntiNSA2.

I only have your mod on my 4images.
Since I have the mod installed Google only has indexed the index of my galleries (before was completly indexed).

I had read AntiNSA2 message yesterday, and now I'm investigating this problem.

Do you think that is a problem with the mod?


Thanks again!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.7.4+ [UPDATED!]
Post by: waleed on July 08, 2009, 07:33:57 PM
Hello
thanks for great MOD

my vb url is www.site.com/vb
my gallery pic.site.com

what should i do

any help i appreciate it
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.7.4+ [UPDATED!]
Post by: denisnovikov on July 09, 2009, 11:10:55 AM
Hello denisnovikov,

I think I have the same problem than AntiNSA2.

I only have your mod on my 4images.
Since I have the mod installed Google only has indexed the index of my galleries (before was completly indexed).

I had read AntiNSA2 message yesterday, and now I'm investigating this problem.

Do you think that is a problem with the mod?

Thanks again!

Hi, I think it's pretty possible that mods are in some way conflicting with each other. I will take a look for sure.

Hello
thanks for great MOD

my vb url is www.site.com/vb
my gallery pic.site.com

what should i do

any help i appreciate it

You should have session sharing for subdomains configured, something like *.site.com in your vB preferences and configure url as:
Code: [Select]
define('VBULLETIN3_URL', 'http://www.site.com/vb/');
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.7.4+ [UPDATED!]
Post by: waleed on July 09, 2009, 08:18:02 PM
Hello denisnovikov,

I think I have the same problem than AntiNSA2.

I only have your mod on my 4images.
Since I have the mod installed Google only has indexed the index of my galleries (before was completly indexed).

I had read AntiNSA2 message yesterday, and now I'm investigating this problem.

Do you think that is a problem with the mod?

Thanks again!

Hi, I think it's pretty possible that mods are in some way conflicting with each other. I will take a look for sure.

Hello
thanks for great MOD

my vb url is www.site.com/vb
my gallery pic.site.com

what should i do

any help i appreciate it

You should have session sharing for subdomains configured, something like *.site.com in your vB preferences and configure url as:
Code: [Select]
define('VBULLETIN3_URL', 'http://www.site.com/vb/');

i couldnt make this to be done

everything is ok except the session . how i configure the vb option
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.7.4+ [UPDATED!]
Post by: denisnovikov on July 09, 2009, 08:25:34 PM
i couldnt make this to be done
everything is ok except the session . how i configure the vb option

In your AdminCP on vBulletin:
vBulletin Options -> Cookies and HTTP Header Options -> Cookie Domain
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: nic_bck on July 10, 2009, 11:54:57 AM
Hi,

My problem with the indexed pages was with my sitemap not with the mod. Sorry  :oops:

I have two suggestions, test your mod with this VB mods:

Thanks!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on July 10, 2009, 02:10:05 PM
Denis, could this version work with 4images 1.7.6?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on July 10, 2009, 02:15:22 PM
Denis, could this version work with 4images 1.7.6?

Well, it was working with 1.7.6 with no any problems.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: asms on July 13, 2009, 03:19:35 AM
Hi guys

how can i show member profile in vb when someone
click username in 4images
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Firestorm on July 15, 2009, 07:02:38 AM
Hello ,

My forum is located in the root folder of my addon domain that is example.com , the gallery is in example.com/gallery .. What should i put in the config.php file ? And what should i change in admin cp concerning cookies ?

Thanks a lot
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Mr_LovaLove on July 16, 2009, 10:29:04 AM
Well,

thanks for responding back

now its working  very well

one of the most important  integer for the 4image

one last question

if im ganna use the usersexportvb.php

so that mean i want to export the users in 4image database to vb database

if there  is a user with same username and different email

ex: in 4image : 143
      in vb       : 143

is any dublicate it ?

also

if the username and email are same

what well happen !!?

waiting

and thanks again
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Mr_LovaLove on July 17, 2009, 05:41:29 PM
well, im getting this error when i want to see admin control panel

Quote
Unable to add cookies, header already sent.
File: /home/XXX/public_html/XXX/image/admin/index.php
Line: 1
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on July 23, 2009, 05:59:07 PM
Denis, thank you for this great mode!  :)
I install it on 4images 1.7.6 & vBulletin 3.8.3.

Please feel free to post bugs/questions/etc. here...

I feel very free....  :oops:

I have some error/questions/comments(i want try something in demo, but it is not work - i can't login into 4images):

1. When user change his email in vb, it is not changes in the 4images. But 4images use this wrong email(for example, when you want write letter to user who write comment). How to fix this?

2. If user want change password in 4 images, he always see message, that he's password isn't correct. Maybe page must be refreshed for vb(or it's my installation error?)?

3. I can't come in from 4images. I put name and password and click Submit, then page refresh for  vb and fields name and password is empty. Is it right work of this mod? [EDIT] It was my installation error

4. If in 4images i click "Log out" then i always come to the vb. Is it necessarily? Can user stay in 4images? How to do this?
 
5. User can change his email in 4images. When he do it, he see message, that he need activate his account. After that user can't see 4image pages(he see only blank page which trying to connect). Admin must activate user for fix situation. I think we must do not let user change his email in the 4images.

And error whith different mods:
6.I have "[MOD] Language select" + "[MOD] Multi-Language support for any text" and after I install bridge i have error: if i choose language it changes, but when i click on any link - language changes for default. Please, help me to fix this.

Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on August 06, 2009, 02:11:29 PM
One more:

7. New user haven't registration date in the 4images. We can see this date, for exaple, when see comments.    
8. I copy some users from 4images to vb. I can't modify this users from vb admin panel
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: WWTNET on September 04, 2009, 01:33:50 PM
Hello everyone,

Is this mode working ok? I need to know this before buying the license for vbulletin.  Any new feedback ?

Thanks.
A.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 12, 2009, 10:48:03 PM
такая проблема: попытался убрать интеграцию, вроде все нормально, но не логинится ни с сайта ни с админки
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: V@no on September 12, 2009, 11:49:04 PM
А куки очищены?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 13, 2009, 09:37:14 AM
да, всеравно, у всех неполучается. 
я просто случайно снес базу форума, и вот из-за этого пришлось убирать интеграцию
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 14, 2009, 09:51:54 AM
поставил интеграцию обратно, под старыми логинами незаходит, новый зарегался нормально, и сразу нормально зашло
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on September 14, 2009, 07:53:26 PM
And error whith different mods:
6.I have "[MOD] Language select" + "[MOD] Multi-Language support for any text" and after I install bridge i have error: if i choose language it changes, but when i click on any link - language changes for default. Please, help me to fix this.

V@no, could you help me with this error?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 15, 2009, 01:23:58 AM
да, всеравно, у всех неполучается. 
я просто случайно снес базу форума, и вот из-за этого пришлось убирать интеграцию

Known issues

When switching bridge off users can’t login to 4images anymore from the native 4images form. However they still exist in 4images database and could request for new password.


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1. When user change his email in vb, it is not changes in the 4images. But 4images use this wrong email(for example, when you want write letter to user who write comment). How to fix this?

Yes, this is correct behavior, only if user changed password its hash transferring to the 4images table, to fix this:
Find in vb.php line (should be 28th) starting with:
Code: [Select]
$sql = "UPDATE ".USERS_TABLE." SET " ...

and replace whole line with:

Code: [Select]
$sql = "UPDATE ".USERS_TABLE." SET ".get_user_table_field(" ", "user_password")." = '".$vbulletin->userinfo['password']."', ".get_user_table_field(" ", "user_email")." = '".$vbulletin->userinfo['email']."' WHERE ".get_user_table_field("", "user_id")." = '".$user_id."' LIMIT 1;";

That's it, should work now. I will update the first post with newer version later tonight. Thanks for reporting!

2. If user want change password in 4 images, he always see message, that he's password isn't correct. Maybe page must be refreshed for vb(or it's my installation error?)?

Users can't change their passwords through the 4images profile, only through vBulletin profile. 4images and vBulletin uses different ways to keep users' passwords hashes, since we using DB from vBulletin Mod is transferring hashes from vBulletin tables to 4images with no changes and when 4images tries to compare hash it got from user's password with one in DB table it fails. This is the particular case of known issue and we can't do anything with this.

4. If in 4images i click "Log out" then i always come to the vb. Is it necessarily? Can user stay in 4images? How to do this?

No it's not possible to logout directly from 4images pages. However there is should be the link on vBulletin logout page with something like "go to the page you were previously browsing", this link should get user back to the 4images. Maybe there is an option in vBulletin which can create auto action after user successfully logged out.

5. User can change his email in 4images. When he do it, he see message, that he need activate his account. After that user can't see 4image pages(he see only blank page which trying to connect). Admin must activate user for fix situation. I think we must do not let user change his email in the 4images.

To avoid this you can just edit member_editprofile.html of your chosen template. Simply delete everything or replace with the text and links to user's profile on vb (/member.php?u=1 from the root of your vBulletin installation).

And error whith different mods:
6.I have "[MOD] Language select" + "[MOD] Multi-Language support for any text" and after I install bridge i have error: if i choose language it changes, but when i click on any link - language changes for default. Please, help me to fix this.

I'll take a look on these Mods and tell you if find anything we can do with this.

7. New user haven't registration date in the 4images. We can see this date, for exaple, when see comments.

I'll attach new vb.php with fix for this. You can just download it and replace older one. It will also fix for #1. Thanks for reporting!

8. I copy some users from 4images to vb. I can't modify this users from vb admin panel

How exactly do you copy users?


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

if im ganna use the usersexportvb.php
if there  is a user with same username and different email
is any dublicate it ?
also
if the username and email are same
what well happen !!?

I would like to recommend not use userexportvb.php to MERGE two existing databases. To see what will happen just make backups of everything and try it, but sometimes it's simpler just ask couple of user to re-register.

well, im getting this error when i want to see admin control panel

Quote
Unable to add cookies, header already sent.
File: /home/XXX/public_html/XXX/image/admin/index.php
Line: 1

Looks like your index.php has something wrong in line 1.


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Is this mode working ok? I need to know this before buying the license for vbulletin.  Any new feedback ?

Yes. Just checked for it's work with vBulletin 3.8.4
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: V@no on September 15, 2009, 02:10:45 AM
And error whith different mods:
6.I have "[MOD] Language select" + "[MOD] Multi-Language support for any text" and after I install bridge i have error: if i choose language it changes, but when i click on any link - language changes for default. Please, help me to fix this.

These mods are using 4images native multilanguage support, if it's broken after installing the bridge, then I can only assume it's a bug in the bridge (or you did something wrong elsewhere)
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 15, 2009, 08:05:24 AM
Quote
When switching bridge off users can’t login to 4images anymore from the native 4images form.  However they still exist in 4images database and could request for new password.
Отключил мост, все равно немогу залогинится, пишет ту-же ошибку: "Вы неправильно ввели логин или пароль. "
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 15, 2009, 12:08:47 PM
Quote
When switching bridge off users can’t login to 4images anymore from the native 4images form.  However they still exist in 4images database and could request for new password.
Отключил мост, все равно немогу залогинится, пишет ту-же ошибку: "Вы неправильно ввели логин или пароль. "
По-русски: Когда отключаешь мост пользователи не могут более войти на 4images посредством формы логина галереи. Тем не менее, они существуют в базе и могут запросить новый пароль.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 15, 2009, 12:21:10 PM
и как тогда мне вернуть к жизни юзеров? поставил форум обратно, скопировал пользователей, все - равно незаходит, просто негрузит страницу и все
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 15, 2009, 12:23:20 PM
и как тогда мне вернуть к жизни юзеров? поставил форум обратно, скопировал пользователей, все - равно незаходит, просто негрузит страницу и все

Тем не менее, они существуют в базе и могут запросить новый пароль.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Kaliha on September 15, 2009, 12:41:15 PM
тоесть всем пользователям надо запросить новые пароли?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 15, 2009, 03:23:10 PM
And error whith different mods:
6.I have "[MOD] Language select" + "[MOD] Multi-Language support for any text" and after I install bridge i have error: if i choose language it changes, but when i click on any link - language changes for default. Please, help me to fix this.

Fix:

Find in includes/sessions.php:

Code: [Select]
include_once(realpath(dirname(__FILE__)).'/vb.php');
Replace with:

Code: [Select]
$temporaryLanguage = $l;
include_once(realpath(dirname(__FILE__)).'/vb.php');
$l = $temporaryLanguage;

First post updated with new section. Will search for the fix for [MOD] Multi-Language support for any text later today.


тоесть всем пользователям надо запросить новые пароли?

Да.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: V@no on September 15, 2009, 03:42:39 PM
I think that fix should solve the problem for both mods

Apparently the $l variable is important for 4images, but I think it's a mistake...
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 15, 2009, 05:31:58 PM
I think that fix should solve the problem for both mods

Apparently the $l variable is important for 4images, but I think it's a mistake...

Confirm, with fix I mentioned above [MOD] Multi-Language support for any text is working just fine.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Rinner on September 18, 2009, 08:29:09 PM
Hello!
I have follewed this guide, but i have encountered the following problem: i can't login into gallery.  It showes that i have successfully logged in, but after automatic redirect i am not logged in.
Hove to fix this problem? The versions are 1. 7. 7 & 3. 8. 3.
P. S.  Можно и на русском.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 18, 2009, 08:53:06 PM
Hello!
I have follewed this guide, but i have encountered the following problem: i can't login into gallery.  It showes that i have successfully logged in, but after automatic redirect i am not logged in.
Hove to fix this problem? The versions are 1. 7. 7 & 3. 8. 3.
P. S.  Можно и на русском.

Check for the correct "session sharing". Check for the any errors in the logs. Any additional information will be helpful, at the moment I can't see where could be a problem.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Rinner on September 18, 2009, 09:12:45 PM
Quote
Check for the correct "session sharing".     
i have 2 domains:
Code: [Select]
gallery.site.domain   and
Code: [Select]
forum.site.domain
vBulletin Options -> Cookies and HTTP Header Options -> Cookie Domain i set it to
Code: [Select]
.site.domain
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 18, 2009, 09:21:35 PM
i have 2 domains:
Code: [Select]
gallery.site.domain   and
Code: [Select]
forum.site.domain
vBulletin Options -> Cookies and HTTP Header Options -> Cookie Domain i set it to
Code: [Select]
.site.domain

Yup. This should be correct. Any more info?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Rinner on September 19, 2009, 07:29:46 AM
Quote
Any more info?
Yeah, this seems to be a bug: bridge doesn't work if the email validation is disabled. 

And one more problem: the users can't change treir password in the gallery profile.  Demo site is affected by this bug too.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 19, 2009, 03:01:21 PM
Yeah, this seems to be a bug: bridge doesn't work if the email validation is disabled. 

Email validation disabled for vBulletin or 4images? I have local installation where vBulletin email verification is disabled -- and I have no probs at all.

And one more problem: the users can't change treir password in the gallery profile.  Demo site is affected by this bug too.

If you read carefully whole topic you will find an answer:

Quote
2. If user want change password in 4 images, he always see message, that he's password isn't correct. Maybe page must be refreshed for vb(or it's my installation error?)?

Users can't change their passwords through the 4images profile, only through vBulletin profile. 4images and vBulletin uses different ways to keep users' passwords hashes, since we using DB from vBulletin Mod is transferring hashes from vBulletin tables to 4images with no changes and when 4images tries to compare hash it got from user's password with one in DB table it fails. This is the particular case of known issue and we can't do anything with this.

Quote
5. User can change his email in 4images. When he do it, he see message, that he need activate his account. After that user can't see 4image pages(he see only blank page which trying to connect). Admin must activate user for fix situation. I think we must do not let user change his email in the 4images.

To avoid this you can just edit member_editprofile.html of your chosen template. Simply delete everything or replace with the text and links to user's profile on vb (/member.php?u=1 from the root of your vBulletin installation).
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Rinner on September 19, 2009, 05:48:55 PM
Quote from: denisnovikov link=topic=23892. msg141105#msg141105 date=1253365281
Email validation disabled for vBulletin
Quote
To avoid this you can just edit member_editprofile.html of your chosen template. Simply delete everything or replace with the text and links to user's profile on vb (/member.php?u=1 from the root of your vBulletin installation).
I added parameter "disabled" to tag input for emails to avoid changes, but when you try to change icq or homepage it showes the following error: this e-mail already exists.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 21, 2009, 11:31:58 AM
I added parameter "disabled" to tag input for emails to avoid changes, but when you try to change icq or homepage it showes the following error: this e-mail already exists.

As I said above -- simply replace whole template with link to the profile on vBulletin. So user will be able to change everything on the vBulletin side which is responsible for users handling while bridge is on.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on September 28, 2009, 04:17:17 PM
Fix:
Find in includes/sessions.php:

Thank you! It's work  :D
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sumale.my on September 28, 2009, 04:44:52 PM
Tolle Mod,
aber im anhang sind mir pers. zu viele Dateien!
Was soll man verwenden?
Blicke da nicht durch!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on September 28, 2009, 05:54:27 PM
1. When user change his email in vb, it is not changes in the 4images. But 4images use this wrong email(for example, when you want write letter to user who write comment). How to fix this?

Yes, this is correct behavior, only if user changed password its hash transferring to the 4images table, to fix this:
...
That's it, should work now. I will update the first post with newer version later tonight. Thanks for reporting!

It's didn't work. I try use old vb.php with you changes, try use new vb.php(from first post), i try change email in vb by user and by admin for user, but always email was old.

7. New user haven't registration date in the 4images. We can see this date, for exaple, when see comments.

I'll attach new vb.php with fix for this. You can just download it and replace older one. It will also fix for #1. Thanks for reporting!

Thank you. It's work.

8. I copy some users from 4images to vb. I can't modify this users from vb admin panel

How exactly do you copy users?

With you script. I can find user, but when i click on it i see page whith empty filds.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 28, 2009, 06:02:57 PM
Tolle Mod,
aber im anhang sind mir pers. zu viele Dateien!
Was soll man verwenden?
Blicke da nicht durch!

Kein Deutsch  :oops:


It's didn't work. I try use old vb.php with you changes, try use new vb.php(from first post), i try change email in vb by user and by admin for user, but always email was old.

Yes, my fault, with the code above it will update email only if password changed. New snippet:

Code: [Select]
//  --
//  check and update if user has a new email address in vBulletin
    if ($vbulletin->userinfo['email'] !== $user_info['user_email']) {
        $sql = "UPDATE ".USERS_TABLE." SET ".get_user_table_field(" ", "user_email")." = '".$vbulletin->userinfo['email']."' WHERE ".get_user_table_field("", "user_id")." = '".$user_info['user_id']."' LIMIT 1;";
        echo $sql;
        $result = $site_db->query($sql);
    }

Should be pasted before
Code: [Select]
if(($user_info['user_id']) > 0 && intval($vbulletin->userinfo['userid']) <= 0){
in includes/vb.php

I'll update the first post today with new files. Thanks for finding!

With you script. I can find user, but when i click on it i see page whith empty filds.

Pretty strange, I'll see at it later this week.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on September 28, 2009, 06:12:24 PM
Now It's work. Thank you for quickly answer :) .
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sumale.my on September 28, 2009, 06:17:51 PM
Great modification
But in the notes to me personally too many files!
What should you use?
Look not through there!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on September 28, 2009, 06:23:36 PM
Now It's work. Thank you for quickly answer :) .

No probs :)


Great modification
But in the notes to me personally too many files!
What should you use?
Look not through there!

You can take whole 4images sources premodified in modded.zip file.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on October 16, 2009, 03:45:59 PM
One more error.
Browser Mozilla Firefox:
1. Open gallery
2. Open forum and login
3. Refresh page with gallery. At the top of page i see "UPDATE gl_users SET user_email = 'myemail@gmail.com' WHERE user_id = '1' LIMIT 1; " , if i refresh page one more time, then i didn't see this message.
 
In the IE i didn't see this message.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on October 16, 2009, 03:52:32 PM
One more error.
Browser Mozilla Firefox:
1. Open gallery
2. Open forum and login
3. Refresh page with gallery. At the top of page i see "UPDATE gl_users SET user_email = 'myemail@gmail.com' WHERE user_id = '1' LIMIT 1; " , if i refresh page one more time, then i didn't see this message.
 
In the IE i didn't see this message.

Yeah I know about this problem, just update vb.php with the current attached to the topic. It seems like you got it downloaded before I fixed and reuploaded the file. Sorry about this!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on October 16, 2009, 04:05:34 PM
ooops!  :oops:  I don't try to take new version. Thank you, now all works.

Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Mr_LovaLove on October 17, 2009, 11:51:48 AM
thanks again for the nice modification

well,

im getting an error whenever i want to access my site

the error is :


Warning: Cannot modify header information - headers already sent by (output started at /home/alwasmy/public_html/143/sales/config.php:74) in /home/alwasmy/public_html/143/sales/includes/sessions.php on line 101

Warning: Cannot modify header information - headers already sent by (output started at /home/alwasmy/public_html/143/sales/config.php:74) in /home/alwasmy/public_html/143/sales/includes/sessions.php on line 101



Unable to add cookies, header already sent.
File: /home/alwasmy/public_html/143/sales/config.php
Line: 74

and the first 2 warning are not shown with IE and shown with firefox

the config is :

Code: [Select]
define('VBULLETIN3_BRIDGE_ON',true);
 define('VBULLETIN3_PATH', realpath(realpath(dirname(__FILE__)).'/../vb/').'/');
define('VBULLETIN3_URL', '/vb/');
?>


my fourm is :vb

and my 4image is :sales

and im using 1.7.7 and vb 3.7.4 !! 

and this mod is already working perfectly  with my another 4image which is 1.7.6 and vb 3.7.4

any clue guyz !


Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on October 17, 2009, 12:14:26 PM
output started at /home/alwasmy/public_html/143/sales/config.php:74

I bet you should check config file and see if there is any output happening. Even if there is no any output with php functions like echo and print, make sure you have nothing (even single line break) after ?> symbols.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Mr_LovaLove on October 17, 2009, 12:28:13 PM
Thanks for the fast replay

ur solution was right


thanks again ,,, the site is working now


EDIT:

when i use  my vb admin account  to enter the 4image

in firefox i got error page and sometime i got this error in IE:

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/alwasmy/public_html/143/sales/index.php on line 31

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/alwasmy/public_html/143/sales/index.php on line 31

Warning: include() [function.include]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/alwasmy/public_html/143/sales/index.php on line 31

Fatal error: Call to a member function query_firstrow() on a non-object in /home/alwasmy/public_html/143/sales/includes/sessions.php on line 316


help plz

btw, with the normal user the site is fine


EDIT:

this error in firefox:

(net::ERR_TOO_MANY_REDIRECTS)‏

only with admin account
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on October 17, 2009, 02:23:48 PM
when i use  my vb admin account  to enter the 4image

in firefox i got error page and sometime i got this error in IE:

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/alwasmy/public_html/143/sales/index.php on line 31

Warning: include(./global.php) [function.include]: failed to open stream: No such file or directory in /home/alwasmy/public_html/143/sales/index.php on line 31

Warning: include() [function.include]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/alwasmy/public_html/143/sales/index.php on line 31

Fatal error: Call to a member function query_firstrow() on a non-object in /home/alwasmy/public_html/143/sales/includes/sessions.php on line 316


help plz

btw, with the normal user the site is fine


EDIT:

this error in firefox:

(net::ERR_TOO_MANY_REDIRECTS)‏

only with admin account

That's pretty strange, the error is pretty clear -- you don't have a global.php file in your 4images installation. Check if you have all files from original 4images package.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on October 19, 2009, 07:40:34 PM
И снова, Здравствуйте! :)

I have two error:
1. User can't login in gallery in Opera(v 9.52) and Safari(v 4.0). User login to the forum, but there isn't autologin into gallery. (Ie, Mozilla and Chrome is work)
2. If user logout from forum and then refresh gallery-page, then field user_email in the table gl_users for this user will be empty.

PS. Today i see that one user disappeared from table gl_users. I don't know how its happened, but i have backup where this user was in that table.  
PS2. Denis, if you will change vb.php then, please:
 - insert version of the file into it (today i trying different version and sometimes i forget what version i use now  :oops:);
 - change "logout&logouthash" for "logout&amp;logouthash" (Mozilla's plugin think that this is error).
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on October 23, 2009, 05:25:12 PM
1. User can't login in gallery in Opera(v 9.52) and Safari(v 4.0). User login to the forum, but there isn't autologin into gallery. (Ie, Mozilla and Chrome is work)

Somebody have this error? Or it's only my problem? (i think that all worked when i test this mod first time, but i am not sure).
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: denisnovikov on October 23, 2009, 05:40:36 PM
1. User can't login in gallery in Opera(v 9.52) and Safari(v 4.0). User login to the forum, but there isn't autologin into gallery. (Ie, Mozilla and Chrome is work)

Safari should work as it's mine main browser and all tests I'm doing firstly with it. As for Opera I have version 10.0 and it also works normally.

2. If user logout from forum and then refresh gallery-page, then field user_email in the table gl_users for this user will be empty.

Weird. I'm going to test it tonight and will report shortly if I find any problems.

PS. Today i see that one user disappeared from table gl_users. I don't know how its happened, but i have backup where this user was in that table.  

This is more weird as my scripts do not delete anything from database, only inserting and updating rows in there.

PS2. Denis, if you will change vb.php then, please:
 - insert version of the file into it (today i trying different version and sometimes i forget what version i use now  :oops:);
 - change "logout&logouthash" for "logout&amp;logouthash" (Mozilla's plugin think that this is error).

Thanks for suggestions I will definitely do it.

Somebody have this error? Or it's only my problem? (i think that all worked when i test this mod first time, but i am not sure).

Try to cleanup browsers cookies, if you test alot -- cookies could be a real problem.


Update:
2. If user logout from forum and then refresh gallery-page, then field user_email in the table gl_users for this user will be empty.

Fixed in version 0.6 (now in the code)
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ [UPDATED!]
Post by: Sun on October 24, 2009, 04:30:53 PM
Try to cleanup browsers cookies, if you test alot -- cookies could be a real problem.

Thank you. It's really was problem with cookies.

Fixed in version 0.6 (now in the code)

I try it. Now all right.

:D
Title: 4images + vbb 4.0.1
Post by: hongoctrien on March 03, 2010, 10:10:55 AM
Hello everybody.
I was read some theat tell about 4images + vbb 2x,.......
Please help me about 4images + vbb vestion 4.0.1
Thanks!
Title: Re: 4images + vbb 4.0.1
Post by: Nicky on March 03, 2010, 01:18:03 PM
hi,

if you are talking about vBulletin and 4images.
vB 4.0.2 pl1 and 4images 1.7.7 can be used.
i tested it already
Title: Re: 4images + vbb 4.0.1
Post by: hongoctrien on March 03, 2010, 04:43:27 PM
thanks. Please help me edit file
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on March 04, 2010, 04:04:53 PM
Mod now is known to work without any additional tuning with latest vBulletin 4.0.2

[Edit Nicky]

demo page is updated to 4images 1.7.7 and vBulletin 4.0.2
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: Nicky on March 05, 2010, 12:27:13 AM
thanks. Please help me edit file

you can find what have to be done in the first post of this thread
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: hongoctrien on March 06, 2010, 05:26:29 AM
Thanks you
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: risestar on April 01, 2010, 07:59:58 AM
I had 4images 1.7 bridged to vbulletin 3.07 and recently upgraded and installed this new version.  Unfortunately, all the images had the user names reset to "guest"

Is there a way to mass-pull the users from vbulletin into the 4images database rather than individually, this would allow me to pair the photos with the correct users without having to add them all individually
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on April 01, 2010, 12:43:47 PM
I had 4images 1.7 bridged to vbulletin 3.07 and recently upgraded and installed this new version.  Unfortunately, all the images had the user names reset to "guest"

Is there a way to mass-pull the users from vbulletin into the 4images database rather than individually, this would allow me to pair the photos with the correct users without having to add them all individually

No, at the moment there is no anything developed to mass copy users from vB to 4images as users will be created "on the fly" on their next login. But you did backups, right? And can revert everything and try upgrade vB again and keep users in 4images?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: risestar on April 01, 2010, 02:31:11 PM
I have backups yes, but I believe that the older 4 images bridge actually used the vbulletin user table rather than importing them to the 4images one on the next login.  Is there a way to just use the existing user table in vbulletin instead, seeing as vbulletin handles most of the registration end of things anyways
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on April 01, 2010, 02:32:56 PM
I have backups yes, but I believe that the older 4 images bridge actually used the vbulletin user table rather than importing them to the 4images one on the next login.  Is there a way to just use the existing user table in vbulletin instead, seeing as vbulletin handles most of the registration end of things anyways

If it was using user table from vBulletin than you're definitely posting in wrong thread.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: risestar on April 02, 2010, 09:46:47 AM
Well, I am assuming that the early bridge shared the user table as I have looked at the backup and the 4images one has no users  in it.   Manually entering users would really suck as I would have to search the vbulletin user table and then copy it over, which would really be time consuming, especially the hashed passwords.  Thats where an import user function would really be handy, which would allow you to select a vbulletin user and import them over to the 4images user table in the same database
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: elevenoone on April 03, 2010, 07:32:36 PM
Any idea how to use the vb 4.0.2 navbar in the 4images pages?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: elie on April 22, 2010, 03:59:00 PM
After I config error occurred:
Quote
Warning: require_once() [function.require-once]: Unable to access /includes/init.php in /home/xxx/public_html/ab/includes/vb.php on line 17

Warning: require_once(/includes/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/tranphu/public_html/ab/includes/vb.php on line 17

help me..
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on April 22, 2010, 04:03:59 PM
After I config error occurred:
Quote
Warning: require_once() [function.require-once]: Unable to access /includes/init.php in /home/xxx/public_html/ab/includes/vb.php on line 17

Warning: require_once(/includes/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/tranphu/public_html/ab/includes/vb.php on line 17

help me..

Fix your path to vBulletin. If you can't understand it by yourself — post here your 4images config file and directory structure on your server (only those ones which related to 4images and vBulletin).
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: elie on April 22, 2010, 04:18:02 PM
Thanks,

So, how can check the correct path to vBulletin?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: nic_bck on May 05, 2010, 03:37:18 PM
Hello,

Is working with vbulletin 3.8.5???
I'm testing it on my developer server before update the forum.

Thanks!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: denisnovikov on May 05, 2010, 10:06:31 PM
So, how can check the correct path to vBulletin?

Please read carefully what I post, once again: if you aren't getting idea of what do these all things mean — post here your 4images config file and directory structure on your server (only those ones which related to 4images and vBulletin).

Is working with vbulletin 3.8.5???
I'm testing it on my developer server before update the forum.

Hey there, basically it should work without any problems, as it were tested with 3.8.3 and 4.0.2, I don't think vBulletin team changed anything which can cause this mod fail to work in 3.8.5 but reverted back in 4.0.2, and of course best way to know it — test by yourself (don't forget about backups). Post back here if you get some results. Thanks.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: wh-em on September 11, 2010, 07:11:12 PM
hi

thank you for this great MOD

I use it in my web site [Arabic]
http://wh-em.com/d3m-7r = vb
http://wh-em.com/mt7f-7r = 4images

but ..

I cant login to 4images admin any more

it is in loop , I have succeed login but it is ask me again for username and password in 4images admin page

any idea

thank you ..
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: Sumale.my on December 22, 2010, 09:08:03 PM
Works perfect with 4images 1.7.9 and vBulletin 4.0.8
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: Amazing on December 23, 2010, 05:43:35 PM
Thanks for the great App, but i get a blank site o0....

vBulletin root: xxx: xxx: 12345. de

Gallerie just installed on my private Server: xxx: s12345. online. de/pic/ ( root for the Gallerie )

Dont tell me now, its not running between different server :(....
Title: Re: [MOD] Bridge: 4images 1.7.6 - vBulletin 3.7.4+
Post by: alekseyn1 on February 21, 2011, 11:34:26 AM
just want to make sure that  this mod wors with treating bots as user with less rights... anyone using both???


EMERGENCY UPDATE:


I am experiancing a redirect loop error when using this with treat robots as users mod.... I think it is a result of  this mod.... this is a great mod, however I cant seem to get one single page indexed at google. I would really appreciate it if someone could help me with this.....

TIA

you can see at this link more detail... I am not sure it is this mod.... but this is the  only mod I know which does redirecting... http://www.4homepages.de/forum/index.php?topic=8752.75




Well, I finally resolved (almost) this problem.... Although I am not on this forum bridge, but on the phpBB3 bridge, I had the same problem. The problem was that every search bot that came to site, was properly identified by the forum and a special username was assigned to the bot... and this was confusing 4images.... ohhh man, I spent hour and hours trying to figure out why Google was not able to see my 4images installation.... so finally I have disabled Search Bot identification in my phpBB and it WORKED!! I suggest you dig through the settings and disable treating search bots as users within the forum.. I am sure it will fix your issue too...
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: nic_bck on May 02, 2011, 02:00:40 PM
Works perfect with 4images 1.7.9 and vBulletin 4.0.8

Hello,

works with 4.1.x? and 4.1.3?

Thanks!
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: achraf on November 12, 2011, 04:12:50 PM
It works very in vb3.8.2 well but it has two encryption database is the same on both scripts to get it working smoothly.

 I also encountered a problem with the directory of Style Forum, it must be of the same name for both scripts.

 Is there no solution to the problem of encryption between two different database, my database 4images is UTF8  and Vbulletin is Latain1 but I want to avoid the conversion that takes a long time.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: pwa on November 19, 2011, 12:21:19 AM
Hi!

I tested today this mod with 4images 1.7.10 and VB 4.1.7

I have issue regarding redirecting loop after login.
When I log in on 4images I see screeen from vb and when I return to gallery FF return error (too many redirection)
I try clean cookis but without results.


do you have any idea?


For v 1.7.10 modification of session.php is slightly different:
skip step with replacement of:

$user_password = md5($user_password);

look at oryginal code - this statement is not present :-(:

    $user_id = (isset($row[$user_table_fields['user_id']])) ? $row[$user_table_fields['user_id']] : GUEST;
    if ($user_id != GUEST) {
      if (compare_passwords($user_password, $row[$user_table_fields['user_password']])) {
        $sql = "UPDATE ".SESSIONS_TABLE."
                SET session_user_id = $user_id
                WHERE session_id = '".addslashes($this->session_id)."'";
        $site_db->query($sql);
        if ($set_auto_login) {
          $this->set_cookie_data("userpass", ($auto_login) ? md5($row[$user_table_fields['user_password']]) : "");
        }
        $this->start_session($user_id, 1);
        return true;
      }
    }


replace with:
    if ($user_id != GUEST) {
      if (compare_passwords($user_password, $row[$user_table_fields['user_password']], $do_md5)) {
        $sql = "UPDATE ".SESSIONS_TABLE."
                SET session_user_id = $user_id
                WHERE session_id = '".addslashes($this->session_id)."'";
        $site_db->query($sql);
        if ($set_auto_login) {
          if ($do_md5){
          $this->set_cookie_data("userpass", ($auto_login) ? md5($row[$user_table_fields['user_password']]) : "");
          } else {
          $this->set_cookie_data("userpass", ($auto_login) ? $row[$user_table_fields['user_password']] : "");
          }
        }
        $this->start_session($user_id, 1);
        return true;
      }
    }

(im not sure with lines about set_cookie_data - please verify)

in file includes/security_utils.php replace function compare_passwords:
function compare_passwords($plain, $hashed) {
  // Backwards compatibility
  if (strpos($hashed, ':') === false) {
    return secure_compare(md5($plain), $hashed);
  }

  return secure_compare(salted_hash($plain, $hashed), $hashed);
}
with
function compare_passwords($plain, $hashed , $do_md5 = true) {
  // Backwards compatibility
  if  ($do_md5) {
    if (strpos($hashed, ':') === false) {
      return secure_compare(md5($plain), $hashed);
      }
  } else
  {
    if ($plain == $hashed) return true;
    else return false;
  }

  return secure_compare(salted_hash($plain, $hashed), $hashed);
}

so, mod works with 4images 4.7.10 and vBulletin 4.1.7 ;-)
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: somni on December 03, 2011, 02:05:22 PM
Dont tell me now, its not running between different server :(....
I have the same problem.
Is it possible to make it works for different domains?

Также, я пробовал регистрироваться на Вашем тестовом сайте. Зарегистрирвоался нормально, на форум логинится нормально, но в галлерее пользователь не залогинен. Такая же ситуация на моей локальной машине. Пользователь попросту на создаётся в БД галлереи :( В чём может быть проблема?
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: zhono on November 14, 2013, 07:00:04 AM
Pretty old thread at this point, but I'm getting and error. At first it was the error that came when the path to vBulletin was wrong. I fixed the path, but now I get a blank page with just this error:

Code: [Select]
Warning: require_once(./includes/functions_navigation.php) [function.require-once]: failed to open stream: No such file or directory in ....includes/functions.php on line 39
I've tried every possible way to write the path for vbulletin. I even changed it to the full absolute path on my server. Still the same error.
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: zhono on November 15, 2013, 09:34:16 AM
If anyone runs into this issue, you are probably using 4.2.2

I was able to solve it by installing 4.2.0 instead. Luckily it was a new forum with no users or content, so I could just switch. If you already have content, I don't know what you can do. Maybe there is a way to downgrade? Hopefully someone will figure out how to fix the problem, so we can use 4.2.2(latest vB 4 version).
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: .Infecto on November 12, 2014, 01:37:26 AM
Wird scheinbar nicht weiterentwickelt :(
Hätte gerne eine Brücke für die aktuelle vBulletin Version
Title: Re: [MOD] Bridge: 4images 1.7.7 - vBulletin 3.8.3+ and 4.0.2
Post by: pagmalupitan on June 07, 2018, 07:29:02 AM
Hello everybody! Forgive me if the answer is already there, but I did not find it. As I understand the mod creates a user at registration and then synchronizes the authorization of the user - I have these functions earned without problems. But when I changed the user's settings to 4images - these changes were not synchronized with the forum. If you change the email settings in the 4Images user settings, it becomes impossible later to request a password change to the new address, and if you change the password in the 4images user settings, the problem occurs when the user logs in and leads to a full block access to 4images till browser history clearing.