Smf And Coppermine - something went worng so ive posted it again!

Pages: 1, 2
free web hosting
Open Discussion > CONTRIBUTE > The Internet > Web Design

Smf And Coppermine - something went worng so ive posted it again!

karlosantana
IT WORKS!!!!!! love it! however if your doing it for the first time dont get cocy and start adding other things like i did and then screwed it up!

Reply

karlosantana
IVE DONE IT!
Ok so i dissagree with daniel15 of smf I like handing people answers on silver plates if i can
So listen up

Step 1.
Put Both Coppermine and smf in the same MySQL database (DO NOT USE FANTASTICO use the webintstall that comes built into Coppermine and smf!)
In my case I put SMF into Forum_ prefix and Coppermine into Gallery_ prefix

Step 2.
Bridge the two (using Coppermine bridge manager)


Step 3.
Create a file called Coppermine.php (yes the capital "C" makes a difference!) save it in "sources" directory in SMF' intallation folder containing :-
CODE
<?php

if (!defined('SMF'))
    die('Hacking attempt...');

function Coppermine()
{
    global $context, $mbname, $txt;

    //Load the main msn template
    loadtemplate('Coppermine');

    //Load the main msn template
    $context['sub_template']  = 'main';

}
?>


Step 4.
Create a file called Coppermine.template.php In your theme (the one your using or want) im using default which makes it easier! It needs to contain
CODE
<?php

function template_main()
{
    global $db_prefix, $scripturl, $txt, $user_info,$settings, $modSettings;

echo ' <center><iframe width="900" height="800" src="www.Yourwebsite.com"></iframe></center>';

}
?>


Step 5.
In your index.template.php file add this where you want your gallery to appear
CODE
// The Coppermine Gallery
    echo ($current_action == 'Coppermine' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'Coppermine' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=Coppermine">Gallery</a>
                </td>' , $current_action == 'Coppermine' ? '<td class="maintab_active_' . $last . '"> </td>' : '';


Step 6.
In the index.php root look for this
QUOTE
'coppa' => array('Register.php', 'CoppaForm'),
After that add (on the next line)
CODE
'Coppermine' => array('Coppermine.php', 'Coppermine'),


That it all that i did and it worked
What did go wrong though

Well in step 6 if you look at this bit
QUOTE
Coppermine' => array...
people often change the capital "C" to a lower case it sometimes works but in my case it didn't!

QUOTE
Fatal error: smf_main() [function.require]: Failed opening required '/homepages/xx/xxxxxx/htdocs/scjb-test/Sources/Coppermine.php' (include_path='.:/usr/local/lib/php') in /homepages/xx/xxxxxx/htdocs/scjb-test/index.php on line 355


In the Coppermine.php file make sure there is no spaces in the file name!

[size="5"][/size]

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. save powered by coppermine photo gallery register.php - 98.34 hr back. (1)
  2. smf-coppermine plugin - 824.94 hr back. (1)
Similar Topics

Keywords : smf coppermine worng ive posted


    Looking for smf, coppermine, worng, ive, posted

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for smf, coppermine, worng, ive, posted

*MORE FROM TRAP17.COM*
advertisement



Smf And Coppermine - something went worng so ive posted it again!



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE