| | 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! |
|
|
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]
Recent Queries:-
Keywords : smf coppermine worng ive posted
|
|
![]() 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 |
|