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
  #62  
Old 04-25-2004, 06:00 PM
OGT OGT is offline
 
Join Date: Mar 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, i did some scouring and came up with the following fixes to some of our issues.

To solve the board confusion with having to refresh to stay logged in and out, go into forumdir/includes/config.php and change the cookie prefix to ''

To get rid of the HTTP notices, follow the instructions in this link:
http://coppermine.sourceforge.net/bo...22808#msg22808

if your users link in coppermine returns a 404, go into the vbulletin3.inc.php file and search for admincp, and replace it with what your admincp directory is renamed to.

The remaining issues I am having are as follows, and i posted this int he vb3 gold integration thread as well:

if a user sets the permissions on a user album to a specific group, it locks out admins, but admins can still view images from that group.

if a user sets the permissions on a user album to a specific group, members that have that group as a secondary group cant view the album.

when logged into coppermine as admin, the usermode link just says its taking you out of admin mode, and puts you right back into admin mode.
Reply With Quote
  #63  
Old 04-25-2004, 10:49 PM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've had a few issues as well, but was able to fix everything and it all works like a charm now... fully integrated.

the one thing that kept me puzzled for a while was the fact that in admin mode i could upload pics but in usermode i could not. seems i had not set the album properties to allow me to do so... once i did that, i was cooking. everything works great now.
Reply With Quote
  #64  
Old 04-26-2004, 12:19 AM
OGT OGT is offline
 
Join Date: Mar 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Buddha, do you use any groups outside of hte traditional vBull groups, and are you using secondary groups at all?

How are your forums and gallery organized? www.website.com/forums and www.website.com/gallery?
Reply With Quote
  #65  
Old 04-26-2004, 08:09 AM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANKS
worked great for me on 3.0.1.
i do have one question though can anyone tell me how i can intergrate this into a vb template so when they view the gallery it shows the navbar and footer for vb?
Reply With Quote
  #66  
Old 04-26-2004, 02:13 PM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ohgeetee, i have like, 4 or 5 extra groups on my forum... i have a dummy tester account that i created and whenever i make changes, i use that account and test by changing the usergroups on that account... and i was able to do everything with that account as well as mine after i'd configured the usergroups in coppermine first.

as for where they are installed...

subdomain.domain.com - forum (in a subdomain)
subdomain.domain.com/gallery - coppermine (it's installed in a folder within the root of the forum install)

will_lean... use the 'extra pages powered by vB hack'... link is in this thread. then in the main table where the content goes, insert an iFrame. worked perfect for me.
Reply With Quote
  #67  
Old 04-26-2004, 06:51 PM
Bigwrenn's Avatar
Bigwrenn Bigwrenn is offline
 
Join Date: Mar 2004
Location: Florida, USA
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried the integration and what happens is when I try to login it returns me to the forums home. Now when I login and click on gallery it doesn;t show the options for uploading for any users. I have CP and vB installed on the same database and when I check the tables of CP it doesn't show as if it has been integrated. What could be the problem?
Thanks,
Bigwrenn
Reply With Quote
  #68  
Old 04-26-2004, 07:03 PM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont think it will show you that its intergrated with coppermine because really coppermine is just using the vb db for authentication.

@buddha
DOH "Iframe" LOL thats one thing i did not try!! :nervous:
thanks.
Reply With Quote
  #69  
Old 04-26-2004, 09:19 PM
Bigwrenn's Avatar
Bigwrenn Bigwrenn is offline
 
Join Date: Mar 2004
Location: Florida, USA
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I meant by "integrated" is the user table. If the integration was succesful then when you look at the CP user table then you should see the vB user's. Basically what is happening is when I click on the gallery it goes to it and doesn't give me any admin options. I'm trying to figure out if it's a cookie problem(domain is set to .mysite.com and cookie path is /) or did I miss something that's been updated that I need to download.
-Bigwrenn
Reply With Quote
  #70  
Old 04-27-2004, 03:03 AM
Cloudrunner's Avatar
Cloudrunner Cloudrunner is offline
 
Join Date: May 2003
Location: Butte, MT
Posts: 635
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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(
Reply With Quote
  #71  
Old 04-27-2004, 03:44 AM
Bigwrenn's Avatar
Bigwrenn Bigwrenn is offline
 
Join Date: Mar 2004
Location: Florida, USA
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I greatly appreciate you helping me out. Just as I figured out what I was doing wrong, I came here and saw the post of yours. So it's fixed now and again, I thank you for your time!
-Bigwrenn
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 02:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04918 seconds
  • Memory Usage 2,316KB
  • 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_code
  • (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