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
  #92  
Old 06-17-2004, 06:59 AM
Vega Vega is offline
 
Join Date: May 2004
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mijae
Does this integration use vB's templates for the gallery?
Nope. Uses it's own Templates.
Reply With Quote
  #93  
Old 06-17-2004, 04:47 PM
Lee Wilde's Avatar
Lee Wilde Lee Wilde is offline
 
Join Date: Apr 2004
Location: Perth, Australia
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badpacket
I just used the default of 2mb.. since i'm still working on the site I dont know if this is enough or too much.. we'll see when i go live..

btw has anyone gotten this to work with 1.3? i had to revert back to 1.2 :/

Yes, I've got vb3.0.1 and cpg 1.3 integrated.

My site is still under construction but you can check it out at http://www.cbdpeople.com.au/gallery/

Now I am trying to figure out a way of showing the vb navbar & login box on the cpg pages, to make moving between /forums/ and /gallery/ as seemless as possible.
Reply With Quote
  #94  
Old 06-18-2004, 05:44 PM
RetroDreams RetroDreams is offline
 
Join Date: Nov 2002
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cloudrunner: Any plans for your integration?
Reply With Quote
  #95  
Old 06-24-2004, 04:16 AM
RetroDreams RetroDreams is offline
 
Join Date: Nov 2002
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more time... Cloudrunner?
Reply With Quote
  #96  
Old 06-28-2004, 08:35 PM
Super91 Super91 is offline
 
Join Date: Jun 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tryed the code too, did'nt work, im also getting this error at the top of the page:

Notice: Constant VB_COOKIE_PREFIX already defined in /home/nrizk/public_html/gallery/bridge/vbulletin30.inc.php on line 49


When i click on login it goes back to the forums...no work i did the hack still no luck..
Reply With Quote
  #97  
Old 06-28-2004, 09:55 PM
Super91 Super91 is offline
 
Join Date: Jun 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i got rid of the error as per my previous post, but now it still just goes back to the forums....any help?!? please
Reply With Quote
  #98  
Old 07-02-2004, 01:00 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone working on a more complete integration?

I just installed CPG and intergrated it to vB3, it works perfectly. If you could use forum templates it would rock even more.

The other thing, is to get this to show up on the who's online list. Anyone want to work on that? :P
Reply With Quote
  #99  
Old 07-03-2004, 06:37 AM
corvettecrew corvettecrew is offline
 
Join Date: Jun 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Super91
I tryed the code too, did'nt work, im also getting this error at the top of the page:

Notice: Constant VB_COOKIE_PREFIX already defined in /home/nrizk/public_html/gallery/bridge/vbulletin30.inc.php on line 49


When i click on login it goes back to the forums...no work i did the hack still no luck..
I also did the hack, and I am also having the login problem still.
Reply With Quote
  #100  
Old 07-05-2004, 12:31 AM
HellRazor HellRazor is offline
 
Join Date: Mar 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cloudrunner
I'm not sure if this will fix any other issues, but for those with VB 3.0 and the included vbulletin30.inc.php running the 1.3 beta of Coppermine, I have figgered out the issue with not having the system recognize you as being logged in from the VB side of the house.

Basically it is a simple change in the naming of the cookie information that VB uses.

Follow along with me:

in the vbulletin30.inc.php find the following:

Code:
// The web path to your vBulletin Board directory
// In this example http://yoursite_name.com/vbulletin3/
define('VB_WEB_PATH', '/vbulletin3/');
directly below that add the following:

Code:
// Enter your VB 3.0 Cookies prefix if applicable
// This was defined in your Vbulletin config.php file when you installed VB
// Double-check this to be sure you don't have one
define('VB_COOKIE_PREFIX', '');
Then find the following lines:

Code:
    if (is_array($HTTP_COOKIE_VARS)) {
        $sessionhash = isset($HTTP_COOKIE_VARS['sessionhash']) ? $HTTP_COOKIE_VARS['sessionhash'] : '';
        $bbuserid = isset($HTTP_COOKIE_VARS['bbuserid']) ? $HTTP_COOKIE_VARS['bbuserid'] : 0;
        $bbpassword = isset($HTTP_COOKIE_VARS['bbpassword']) ? $HTTP_COOKIE_VARS['bbpassword'] : '';
    }
and replace it with the following (the quick ones will notice the difference immediately):

Code:
    if (is_array($HTTP_COOKIE_VARS)) {
        $sessionhash = isset($HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash']) ? $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'sessionhash'] : '';
        $bbuserid = isset($HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'userid']) ? $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'userid'] : 0;
        $bbpassword = isset($HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'password']) ? $HTTP_COOKIE_VARS[VB_COOKIE_PREFIX . 'password'] : '';
    }
I haven't yet figgered out the logout error yet, but I will.

FYI: This is based on an installation of VB 3.0.1 and Coppermine 1.3.0 Beta 4 using the following directory structure and cookie structure:

http://yourdomain.com/forum/
http://yourdomain.com/gallery/

VB cookiedomain: www.yourdomain.com
VB cookiepath: /

Gallery cookie name: *something other than what VB is using*
Gallery cookiepath: /

Hope that this helps.

Enjoy!

)O( Cloudrunner )O(

Worked for me, thanks!!!
Reply With Quote
  #101  
Old 07-09-2004, 03:03 AM
allhandl allhandl is offline
 
Join Date: Mar 2004
Location: Delaware
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im running an integrated 1.2.1 Coppermine with Vb 3.0.1 flawlessly for while now. I just recently decided to make some of my albums "members only" which seems to be doing the trick for getting people to register.

The problem is when someone registers for the first time they do so thru VB obviously. When they are done registering it it brings them back into the forum as normal and they are recognized as registered on the 'forum' but not the Coppermine board. In order for Coppermine to take, they have to log out & then log back in. After they have done that everything is cool.

Any ideas on a fix? whether it be a forced logout on the Vb side or a cookie on the CM side?

thanks in advance
Reply With Quote
  #102  
Old 07-19-2004, 03:44 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run Vb 3.3
I have the Copermine 1.2.1

Everything works fine
only dat i have no administrator pass......
I am log in.... but theres no admin area nuthing :ermm: what did i do wrong??

Just like i wasnt log in

If iw anna log in it brings me to my forum... and it stays there... it doesnt bring me back to the gallery
Reply With Quote
  #103  
Old 07-19-2004, 08:08 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its okay i figured it out
Reply With Quote
  #104  
Old 07-24-2004, 10:43 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji
Its okay i figured it out
how'd you figure it out? i'm having the identical problem.
Reply With Quote
  #105  
Old 07-25-2004, 03:05 AM
njsr njsr is offline
 
Join Date: Jul 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone had any luck with Coppermine 1.3.1 and vBulletin 3.0.3 yet?
Reply With Quote
  #106  
Old 07-25-2004, 10:52 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just renamed the Cookies in the bridge file....it was " " <-- i used the same one in the vbulletin script (cookies)
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 06:51 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.07390 seconds
  • Memory Usage 2,367KB
  • Queries Executed 30 (?)
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_code
  • (5)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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