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
So I tried to get mine to work, but to no avail. I'm really at my wits end. I feel like I followed your directions, but I probably missed something. At this point, I've switched the template.html back to the original copy, so that the gallery is still usable.

At this point, I'd be willing to pay to have this working, because I'm just not getting it, at all. Ugh. I'll detail at the bottom what I've done, perhaps then I can find out where I've gone wrong.

My site: www.fancyhatbrigade.com
My coppermine: http://www.fancyhatbrigade.com/gallery/index.php

Basically going for the same exact thing Kylin tried to do. I've seen it on his page and it works perfectly. But I have no idea how to make it work. -face palm-

1. I edited the init.inc.php with the code presented in the directions.

2. I had edited the code in template.html. This I think is where I've gone wrong, as I'm not sure what I need to add to make it look like my actual myBB forum.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    {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}
3. I then uploaded and installed the plugin provided. Had an issue there, but it was a user error on my part, by accidentally editing out ' '.

4. I edited the variables in the included wrapper, to read what I think is correct. I can provide this information if you'd like.

5. I created the cpg_main_top and cpg_main_bottom. I'm not sure what to adjust in these to make it look like my site.

Hopefully this will be enough information to go on. If not, I'm more than willing to provide what I can to make this work. Thank you immensely, in advance.
I could use some help with this.. tried multiple times and messed up each. Would someone be willing to do this first hand for me?
Was anyone able to get the wrapper to work with mybb 1.8?

Ever since I upgraded from 1.6 it stopped working. cpmfetch still displayed gallery images on the forum pages but I was unable to get to the actual gallery. I kept getting the error below.

Fatal error: Call to a member function stop() on a non-object in /home1/xxxxx/public_html/forum/inc/functions.php on line 22

Today I did some more poking around and traced the problem to the mybb_wrapper plugin. With plugin disabled my gallery works and is bridged with MyBB, just shows the default Coppermine background. As soon as I install the plugin I get the same error as above. Did something change in the coding for 1.8 that is now preventing it from working correctly?
I have not messed with 1.8 and this plug yet, but I would try modifying the coppermine plugin file <CPG_ROOT>\cpg_mybb_wrapper.php and add "$maintimer" to the list of globals somewhere in lines 13-15.
(2015-03-20, 11:19 PM)pavemen Wrote: [ -> ]I have not messed with 1.8 and this plug yet, but I would try modifying the coppermine plugin file <CPG_ROOT>\cpg_mybb_wrapper.php  and add "$maintimer" to the list of globals somewhere in lines 13-15.

Is that just a matter of putting global $maintimer; between lines 13-15?

When I do that I get a page full of warnings and a message indicating that I was banned.
Any thoughts on this?
what is on line 1279 of your functions file?
will the files/ plugins be updated for 1.8?
(2015-03-28, 06:35 AM)pavemen Wrote: [ -> ]what is on line 1279 of your functions file?

[attachment=34082]
Is that the github repo? I need to know what is on line 1279 of the file on your server.
Pages: 1 2 3 4 5 6 7 8 9