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
  #212  
Old 04-25-2005, 08:39 PM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
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.
Those checkboxes didn't really catch my eye. Could have been more obvious, but that's a usability issue. Thanks for your reply.
Reply With Quote
  #213  
Old 04-25-2005, 09:38 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem.

Well all the important information is in the bar in the top and on the right.
Reply With Quote
  #214  
Old 04-26-2005, 02:04 PM
Till Till is offline
 
Join Date: May 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, to take this one step further. The login doesn't work well either, it logs me in, but I am not taken back to the gallery.

In reference to the following hack:
https://vborg.vbsupport.ru/showthrea...2&page=1&pp=15

First off, a small correction:

bridge/vbulletin30.inc.php

Replace all instances of "VB_BD_HOST" with "VB_DB_HOST".

So here is my modification:

bridge/vbulletin30.inc.php

#1
Find:
PHP Code:
 define('VB_WEB_PATH''/forum/'); 
Add underneath:
PHP Code:
 define('VB_DOC_ROOT'$_SERVER['DOCUMENT_ROOT'].'/forum'); 
Of course you have to modify the path, this works in my example.

#2
Find "function udb_login()" and replace its contents with the following:

PHP Code:
function udb_login_page($url)
{
    $bbuserid   = (int) ((isset($_COOKIE['bbuserid']) && !empty($_COOKIE['bbuserid']))?$_COOKIE['bbuserid']:0);
    $bbpassword = (string) $_COOKIE['bbpassword'];
    $bbusername = (string) '';
    $db_conn = mysql_connect(VB_DB_HOST, VB_DB_USERNAME, VB_DB_PASSWORD) OR die('vbbridge: No connection.');
    mysql_select_db(VB_DB_NAME, $db_conn) OR die ('vbbridge: No such database.');
    $query = "select username from ". VB_USER_TABLE ." where userid = $userid";
    if($rawdb = @mysql_query($query)){
        if(mysql_num_rows($rawdb) > 0){
            $array = mysql_fetch_array($rawdb);
            $bbusername=$array['username'];
            mysql_free_result($rawdb);
        }
    }
    mysql_close($db_conn);
    if(empty($bbusername)){
?>
<html>
<head>
<script type="text/javascript" src="<?php echo VB_WEB_PATH?>clientscript/vbulletin_md5.js"></script>
</head>
<body>
<form action="<?php echo VB_WEB_PATH?>login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password);">
<span class="sectionheader">Username:</span>
<input type="text" class="button" name="vb_login_username" id="navbar_username" size="15" accesskey="u" tabindex="1" value="username" onfocus="if (this.value == 'username') this.value = '';" /><br/>
<span class="sectionheader">Password:&nbsp;</span>
<input type="password" class="button" name="vb_login_password" size="15" accesskey="p" tabindex="2" /><br/>
<input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />
<span class="sectionheader">Remember Me</span><br/>
<input name="submit" type="submit" class="button" accesskey="s" tabindex="4" title="Log In" value="Log In" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="url" value="URL_TO_YOUR_GALLERY_HERE">
<input type="hidden" name="vb_login_md5password" />
</form>
</body>
</html>
<?php
    
}else{
        
udb_redirect('index.php');
    }
    
// hard exit
    
exit;
}
Make sure you replace URL_TO_YOUR_GALLERY_HERE in the code snippet. You can make it more pretty by including CSS and so on, and so on. This is quite dirty. But it works.

Cheers,
Till
Reply With Quote
  #215  
Old 05-04-2005, 01:34 AM
Rick Grunwald Rick Grunwald is offline
 
Join Date: Feb 2005
Location: Brooksville FL US
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have probably missed something simple but I installed the hack and the coppermie login button works correctly (takes me to the forums but when I go back to coppermine I am not logged in. LOGIN takes me back to the forums and register tells me I'm already registered
Thanks
Rick
Reply With Quote
  #216  
Old 05-20-2005, 03:51 AM
FightRice.com FightRice.com is offline
 
Join Date: Mar 2005
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So will this work with 3.0.7 or should i go with the 4images one?
Reply With Quote
  #217  
Old 05-23-2005, 09:39 PM
Ironhead Ironhead is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right below "// Nothing to edit below this line" you have to set the table_prefix and the cookie_prefix

('VB_TABLE_PREFIX', 'vb3_'); and ('VB_COOKIE_PREFIX', 'bb').

Both of these values can be found in your vBulletin config.php.
vb3_ and bb were the default vB settings in config.php
Reply With Quote
  #218  
Old 05-27-2005, 03:52 PM
Zeoran Zeoran is offline
 
Join Date: Oct 2001
Location: Sillicon Valley
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a copy of CPG 1.3.3 and VB 3.0.7 and I'd really like to get this working so that I can have SOME form of photo gallery up and running.

Does anyone have this working with cpg 1.3.3 and vb 3.0.7 that can upload their vbinclude30.inc.php file for those of us who don't have a clue how to code php/mysql???

Please?

~Z
Reply With Quote
  #219  
Old 05-30-2005, 05:04 AM
darkon darkon is offline
 
Join Date: May 2005
Location: Germany
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I worked out the problem, that admins weren?t able to upload pics...

Go to the directory of your coppermine-theme and open the "theme.php", there you have to look for "// HTML template for user admin menu"
In this Block you?ll find the code for the three links. Just cut it out there and paste it where do you want to have it into the Block "// HTML template for main menu" (should be the first one).

I think the problem was, that this user-admin-menu is based on the admin-menu. If you were in admin-view it was overwritten and if your were in user-view it wasn?t shown.
Reply With Quote
  #220  
Old 05-30-2005, 05:07 AM
darkon darkon is offline
 
Join Date: May 2005
Location: Germany
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zeoran
Does anyone have this working with cpg 1.3.3 and vb 3.0.7 that can upload their vbinclude30.inc.php file for those of us who don't have a clue how to code php/mysql???
That wouldn?t work on your board.
You have to enter the information for your board into this file and not someone elses.

Actualy it?s really easy and the comments in the file are very clear and not too hard to follow.
Reply With Quote
  #221  
Old 05-30-2005, 11:07 AM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work if I only want one custom usergroup to be able to upload? while the others can only view
Reply With Quote
  #222  
Old 05-30-2005, 12:58 PM
Ironhead Ironhead is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you can give different upload permissions for different usergroups. The only thing I found that you can’t do is to restrict viewing by usergroup permissions.
Reply With Quote
  #223  
Old 05-30-2005, 06:04 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK after going through 15 pages of notes starting from 2004 . I am so lost...

I have VB 3.0.7 with coppermine 1.33

I successfully installed coppermine and was able to get to the main index. i have the following menu options

I followed the original hack to a T and also implements through out a few pages, but slowly got lost.

Album list :: Upload file :: Login
Last uploads :: Last comments :: Most viewed :: Top rated :: My Favorites :: Search

I click Login . It sends me to Vbulletin in which many case I'm already logged in to the Vbulletin. So I logout, go back to Coppermines main page and click Login -> sends me to Vbulletin -> i then login -> point the browser to my coppermine folder (index.php) and I still have a login. Therefore repeating the whole sequence. I feel its cookie related somehow.

1) Can I have some assistence
2) Is there going to be an updated hack for this for everyone who has the latest scripts
3) I already wasted money on WSN Gallery (no decent support) so buying another program such as VBaGallery is no in the budget
4) Is 4images better and easyier to integrate.

Seems I'm having problems with any gallery. Yet I completely customized Vbulletin without a hitch :ermm:

Soooo i can't login,
Reply With Quote
  #224  
Old 05-30-2005, 06:54 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ironhead

Right below "// Nothing to edit below this line" you have to set the table_prefix and the cookie_prefix

('VB_TABLE_PREFIX', 'vb3_'); and ('VB_COOKIE_PREFIX', 'bb').

Both of these values can be found in your vBulletin config.php.
vb3_ and bb were the default vB settings in config.php

I used the vbulletin3.inc.php in the latest release of coppermine and followed all the directions and it finally worked!
by default in config.php my Table Prefix was '' (nothing) and Cookies was 'bb' So I went and found those in the vbulletin30.inc.php and adjusted, and still no go. I tried to edit

Quote:
// Prefix that your vBulletin tables have in the database.
// For example: $tableprefix = 'vb3_';
$tableprefix = '';
to

Quote:
// Prefix that your vBulletin tables have in the database.
// For example: $tableprefix = 'vb3_';
$tableprefix = 'vb3_';
To make it something, then adjusted the vbulletin30.inc.php to vb3_ and my vBulletin freaked out with a server error. Is there something else I have to change???


I tried what Till said and still nothing. Can someone who is using theirs and working well email me their vbulletin30.inc.php of course with all important user password info gone.
my email is lex1@acceswave.ca
Reply With Quote
  #225  
Old 05-30-2005, 07:42 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aeolian
Now this should fix all the problems and set you FREE!

Safwan
amaderGaan.com

:hurt:

I banged my head so hard at this and even tried method on page 11 by Safwan and still no go. I still get the "login" on the coppermine page.
Reply With Quote
  #226  
Old 05-30-2005, 07:48 PM
Ironhead Ironhead is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To be sure you are using the right table prefix look at your db tables with mysql and see what prefix they have.
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 07:01 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.07859 seconds
  • Memory Usage 2,379KB
  • 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
  • (3)bbcode_php
  • (6)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
  • (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