Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Coppermine 1.2.1 / vBulletin 3.0.0 Integration Details »»
Coppermine 1.2.1 / vBulletin 3.0.0 Integration
Version: 1.00, by SpeedStreet SpeedStreet is offline
Developer Last Online: Feb 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-21-2004 Last Update: Never Installs: 76
 
No support by the author.

Coppermine Gallery 1.21 and vBulletin 3.0.0 Integration
Version 1.0
Compiled by SpeedStreet

I'm not the hacker for this; I am merely the guy who poured through all of the threads on vBulletin.org and the Coppermine Development Forums to come up with one definitive post about integrating vBulletin with Coppermine.

WHAT IT DOES:
At the end of this how-to, you're installations of vBulletin and Coppermine will work together off of the same login. While everyone else wants to see all sorts of integration between the two, I believe this is the first step to making those things happen.

CREDITS:
A big thanks to everyone over at Coppermine for a terrific product and the users that support and mod it on a daily basis. I am merely standing on the shoulders of giants here, folks. Also, Nanobot was the guy over there that did the vB3 Gamma bridge, so the credit for that is all his.

FILES TO EDIT (2):
/bridge/vbulletin3.inc.php (Coppermine)
/include/init.inc.php (Coppermine)

HACK REQUIREMENTS:
vBulletin 3.0.0 Installed and Running
Coppermine 1.2.1 Installed and Running
5 Minutes of your time

SUPPORT THREADS:
Coppermine Gamma Thread (original thread): http://coppermine.sourceforge.net/bo...asc&highlight=
vBulletin.org Hack Thread: https://vborg.vbsupport.ru/showthread.php?p=488062
Coppermine vB 3.0.0 Thread: http://coppermine.sourceforge.net/bo...ic.php?p=20674

FINAL WARNINGS:

There are seem to be some issues with people integrating this with forums located on subdomains (e.g. subaruforums.speedstreet.org). Please reference the Coppermine Gamma Thread above for more info.
Please ensure that Coppermine and vBulletin cookies are NOT named the same thing.

Show Your Support

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

Comments
  #202  
Old 03-24-2005, 12:48 PM
Siouxfire Siouxfire is offline
 
Join Date: Mar 2005
Location: prague, czech republic
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the 'How to', it says "Save vbulletin3.inc.php to the bridge directory of your Coppermine installation" - What is a bridge directory? I currently have my files placed like this: 1) vBulletin - www.domain.com/forums/ and 2) Coppermine - www.domain.com/gallery/ - so what would the bridge directory be? The root?
Reply With Quote
  #203  
Old 03-28-2005, 09:43 AM
ged's Avatar
ged ged is offline
 
Join Date: Feb 2005
Location: Istanbul, Turkey
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a directory named 'bridge' in your coppermine folder.
Reply With Quote
  #204  
Old 03-31-2005, 05:04 AM
shane801 shane801 is offline
 
Join Date: Mar 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where does this hack/integration stand?

I have the following problems:

1. Login in coppermine takes me to forum home. Login there and return to coppermine and everything is okay. Solution: remove login from coppermine and install a popup that advises users they must be logged in in forum home to use gallery.

2. Logout error in coppermine "an error occurred while attempting to logout, please click here to logout This one was posted before and not addressed.

I installed my coppermine on a seperate database. Seems to work ok though. No other problems than login/out like everyone else.
Reply With Quote
  #205  
Old 04-12-2005, 03:19 PM
DaFire DaFire is offline
 
Join Date: Apr 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the login taking you to the forum is necessary because in fact the forum is processing the login and there is no way to tell the forums login page to redirect you back to the gallery.

I suggest to just add a "Gallery" link to the forums main page
Reply With Quote
  #206  
Old 04-18-2005, 05:16 AM
d3nnis d3nnis is offline
 
Join Date: Jun 2003
Location: Singapore
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi guys, any one of you using htm version of vbulletin with this mod? I can't seems to logout... I guess those links had been hardcoded to point to .php files... just need to know where to edit it so it will point to .htm files instead. Any help will be appreciated.
Reply With Quote
  #207  
Old 04-19-2005, 02:00 AM
d3nnis d3nnis is offline
 
Join Date: Jun 2003
Location: Singapore
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by d3nnis
hi guys, any one of you using htm version of vbulletin with this mod? I can't seems to logout... I guess those links had been hardcoded to point to .php files... just need to know where to edit it so it will point to .htm files instead. Any help will be appreciated.
anyone? :ninja:
Reply With Quote
  #208  
Old 04-22-2005, 02:15 AM
d3nnis d3nnis is offline
 
Join Date: Jun 2003
Location: Singapore
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bumped!
Reply With Quote
  #209  
Old 04-25-2005, 01:14 PM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Providing hacks and not supporting them is quite useless. Maybe the moderators could flag hacks that are not supported by the authors as that. Saves time and you don't install stuff that doesn't work right anyway.

I stopped scanning this thread on page 10 or whatever, but I guess since people still have issues, I post my mods.

Here is my setup:
- latest coppermine (1.3.3)
- vbulletin 3.0.6 (German)

The version of Coppermine that I have came with the bridge file for PHP. Since the one provided here didn't work and the file distributed with Coppermine had the cookie fix already applied to, I used it as base of my modifications to make it work.

Warning: The edits are quite techy and I will not support this.

bridge/vbulletin30.inc.php
1) You do all the obvious magic (database settings, ...)
2) Code hacking

Find this (around line 91):
PHP Code:
$got_user 0;

if (
$bbuserid && $bbpassword) {
    
// If userid and password exist in cookies we use them to login 
And replace the following query ($sql = ...) and the mysql_num_rows() statement with this:

PHP Code:
$got_user 0;

if (
$bbuserid && $bbpassword) {
    
// If userid and password exist in cookies we use them to login
    
$sql "SELECT userid as user_id, username as user_name, usergroupid as mgroup, password, salt ";
    
$sql.= "FROM " $UDB_DB_NAME_PREFIX VB_TABLE_PREFIX VB_USER_TABLE " ";
    
$sql.= "WHERE userid='" addslashes(stripslashes($bbuserid)) . "'";
    if(!(
$result db_query($sql$UDB_DB_LINK_ID))){
        echo 
'Error: '.mysql_error().'<br/>';
        echo 
'Query: '.$sql.'<br/>';
        echo 
'File: '.__FILE__.'<br/>';
        exit;
    }
    if (
mysql_num_rows($result) > 0) {
        
$USER_DATA mysql_fetch_array($result);
        if (
$bbpassword != md5($USER_DATA['password'] . $USER_DATA['salt'])) {
            
$got_user 1;
        }
    }
... 
So, what did I change here? First of all, I made the $sql query readable. There is an unwritten law that when you write code, you try to break it up after 65 chars (makes printing and reading easier).

Then I added the field "salt" to the SELECT-statement. It's used in vbulletin's login/authentication methods. Last but not least, I changed the if()-statement to check the password stored in the cookie against the password stored in the database.

If you want to have a look at the way vbuelltin does the authentication magic, feel free to browse includes/function-login.php under your vbulletin installation.

Ok, this is it. Not it works for me. Hope this actually helps someone else. If I find anything else, I will post again.

Cheers,
Till
Reply With Quote
  #210  
Old 04-25-2005, 01:34 PM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logout doesn't work either.

In bridge/vbulletin30.inc.php, find this:

PHP Code:
// Logout
function udb_logout_page()
{
    
$target 'login.php?&do=logout';
    
udb_redirect($target);

Replace with:
PHP Code:
// Logout
function udb_logout_page()
{
    
$target 'login.php?do=logout&u=10';
    
udb_redirect($target);

Reply With Quote
  #211  
Old 04-25-2005, 08:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Till
Providing hacks and not supporting them is quite useless. Maybe the moderators could flag hacks that are not supported by the authors as that. Saves time and you don't install stuff that doesn't work right anyway.
........
Warning: The edits are quite techy and I will not support this.
A bit of a contradiction this.

And this hack is already flagged as unsupported, see upper right corner.

Anyhow thank you for sharing your modification with the community. They might be usefull for some.
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT. The time now is 01:26 AM.


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

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete