MyBB Community Forums

Full Version: [Tutorial] Updated: True integration with Coppermine and MyBB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
it will use whatever theme is assigned in coppermine, which is why you need to modify that theme to match your MyBB them (or vice versa). I have not looked into changing the coppermine theme dynamically based on the mybb selected theme. it is likely doable, but would take some work on my part to investigate it.

for now, you can post a request at communityplugins.com and at least it will be on my radar. cant guarantee i will do it, but it will be there nagging me for a while Smile
I followed these instructions and this is absolutely awesome! I was hoping for a more extensive gallery alternative to the ezGallery plugin and this helped accomplish that. I do have a minor issue that hopefully is easy to solve. Basically, I have a user panel in my banner. When logged in, it still /shows/ as not logged in within this panel (even though I am technically logged in). Here are a couple screenshots to show it.

In my forum:
[Image: gallery3_zps5127b5b0.png]

In the gallery:
[Image: gallery4_zps2ebacc06.png]

As you can see, the user panel in the upper right corner doesn't display the same info, even though I am logged in (it shows I'm logged in within the gallery control panel). Would anyone happen to know how to resolve this dilemma?
its likely a hard coded path in the header you are using. be sure you use a full URL in the headers and make sure your cookie paths are set according to the instructions
Not having any luck so far. Cookie settings are fine (at least I'm fairly sure). It keeps me logged in when I transfer back and forth between the MyBB forum and the gallery (and shows me as logged in within the actual gallery header). But the user panel box just won't sync up for some reason. I managed to finally at least get some javascript working (dropdown login box) by adding a link to the js file within the template.html file. But I still can't login from that box itself (it takes me to a "this page doesn't exist" error page), nor does it look anything like it should when actually logged in.

Additionally, I can't logout from the gallery without getting some error message about malicious javascript. To top it all off, javascript isn't really working for the most part (dropdown menus in the admin config won't collapse, the upload image button doesn't work, etc). For the record, my gallery is located at "mysite.com/gallery" and my forum is at "mysite.com/testsite" (though that will be changing to simply "mysite.com" when everything goes live). Here are my files if anyone can see anything I'm missing.

template.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/curve/style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<script type="text/javascript" src="http://ffxiv-roleplayers.com/testsite/jscripts/protoaculous.js"></script>


<!-- Begin IE6 support -->
<!--[if lt IE 7]>
<style>
body {behavior: url(themes/curve/csshover3.htc );}
.dropmenu li {width: 1px;} .dropmenu li a.firstlevel span.firstlevel {white-space: nowrap;} .main_menu {overflow: auto;}
</style>
<![endif]-->
<!-- End IE6 support -->
{JAVASCRIPT}
<!--
  SVN version info:
  Coppermine version: 1.5.9
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/themes/curve/template.html $
  $Revision: 7809 $
-->
</head>
<body>
    {CUSTOM_HEADER}
    <div id="cpg_logo_block_outer">
        <div class="cpg_logo_block_inner">
            <div id="cpg_logo_block_logo">
                <a href="index.php">
                    <img src="themes/curve/images/coppermine-logo.png" border="0" width="260" height="60" alt="" />
                </a>
            </div>
            <div id="cpg_logo_block_name">
                <h1>{GAL_NAME}</h1>
                <h3>{GAL_DESCRIPTION}</h3>
            </div>
            <div class="clearer"></div>
        </div>
    </div>
    <div id="cpg_header_block_outer">
        <div class="cpg_header_block_inner">
            <div id="main_menu">
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}
            </div><!-- Begin IE7 support --><img src="images/spacer.gif" class="menuheight" alt="" /><!-- End IE7 support -->
            <div class="clearer"></div>
            {MESSAGE_BLOCK}
        </div>
    </div>
    <div id="cpg_main_block_outer">
        <div class="cpg_main_block_inner">
            {GALLERY}
            <br /> <!-- workaround for issue 64492 - do not remove the line break! -->
        </div>
    </div>
    <div id="cpg_footer_block_outer">
        <div class="cpg_footer_block_inner">
            {CUSTOM_FOOTER}
            {CREDITS}
        </div>
    </div>
</body>
</html>

headerinclude
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/protoaculous.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/global.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined')
{
	document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
	var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
	document.write(unescape("%3Cscript src='http://code.jquery.com/jquery-1.7.2.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
	var unreadAlerts = {$mybb->user['unreadAlerts']};
</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myalerts.js"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}
{$highslide_script}

header
<div id="header">
		<div class="inner">
			<div id="panel">
				{$welcomeblock}
			</div>				
			<a href="{$mybb->settings['bburl']}" class="logo"></a>
		</div>
         <div class="menu">
					
                               <div class="inner">
                                     <div class="menu_search float_right">
						<form method="post" action="{$mybb->settings['bburl']}/search.php">
						<input type="hidden" name="action" value="do_search" />
						<input type="hidden" name="postthread" value="1" />
						<input type="hidden" name="forums" value="all" />
						<input type="hidden" name="showresults" value="threads" />
						<input type="text" name="keywords" value="{$lang->toplinks_search}" onclick="if(this.value=='{$lang->toplinks_search}')this.value='';" onblur="if(this.value=='')this.value='{$lang->toplinks_search}';"/>
						<input type="submit" class="menu_btn" name="submit" value="" />
						</form>
                                 <div class="advanced_search"><a style="color:#CEE5EF" href="search.php">Advanced Search</a></div>
                                      </div>
                               

					<ul>
						<li><a href="{$mybb->settings['bburl']}/index.php">Forum</a></li>
                                                <li><a href="http://www.ffxiv-roleplayers.com/wiki">Wiki</a></li>
                                                <li><a href="http://www.ffxiv-roleplayers.com/forum/viewtopic.php?f=8&t=765">Linkshells</a></li>
                                                <li><a href="{$mybb->settings['bburl']}/ezgallery.php">{$lang->ezgallery_menu}</a></li>
						<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>		
                                                <li><a href="{$mybb->settings['bburl']}/calendar.php">Calendar</a></li>						
                                       </ul>
				</div>
		</div>
				
			<navigation>

		<div id="container">
		<a name="top" id="top"></a>
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			<br />
PM me your URL and test account credentials
Okay, my site had to go live today and so I just have a temporary workaround for the issues I've been having. I'll admit that this entire integration process has been quite daunting, but hopefully things will work out in the long run.

I have one major issue that I need to figure out as soon as possible though. After uninstalling/reinstalling/rebridging, non-admins can no longer navigate to the gallery at all. They get this error message:
Fatal error: Call to a member function stop() on a non-object in /home/castiel/public_html/inc/functions.php on line 23
Anyone know how to fix this?
--Nevermind on this one. Apparently, this comes up when the board is disabled instead of the typical maintenance message.

Also, having trouble getting the CPM fetch to work again (was working fine originally). It's simply not showing up anymore. I changed the path from:
"../gallery/cpmfetch/" to "/gallery/cpmfetch/" since the entire MyBB directory was moved up a spot, but still nothing.
--fixed. It should have been "gallery/cpmfetch/" without the first slash Smile .
Soory I have not been able to help the last few days, I have been busy with real life.

yes, the integration can be a PITA, especially if you are using jQuery in your MyBB installation. CPG uses an old jQuery library so you not only have two jQuery libs being loaded, they are far apart in version.

I will try to get to your PM later this week.
I will pay somone on fiverr if they set this up on my forum and match it to me theme.
I already installed coppermine and bridged it just dont know how to make it look like my theme
this tutorial will make it look the same as much as possible, just backup your files and follow the steps precisely
(2013-03-22, 04:14 PM)pavemen Wrote: [ -> ]this tutorial will make it look the same as much as possible, just backup your files and follow the steps precisely
I tried and failed lol Sad

I ended up using waterdrop theme and trying to match colors Sad

i am still looking for someone to do it for me if they can be trusted Smile i would appreciate it. i am also having the problem of GUESTS uploading... I set all the permissions in config.
made new categories and albums with permissions for guest to use. and when I log out and hit upload all it shows is *no categories. even tho I have a whole bunch of them with the permissions set. I even went to groups page, and set allow guest to upload. Sorry if you are not allowed to posts url to forum but here is mine if anyone would help me vwforum . org
Pages: 1 2 3 4 5 6 7 8 9