forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: will on February 16, 2006, 07:56:52 pm

Title: SMF Intergration
Post by: will on February 16, 2006, 07:56:52 pm
Hi

I have intergrated my forum to coppermine and I wanted t know if i could add some of the forum boards into the gallery

Thanks ;D
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 08:04:21 pm
In what way ?
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 08:10:37 pm
Just to show a couple a boards at the top of the coppermine main page ;D
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 08:16:01 pm
You can do that by using SMF's SSI.php in a custom header within Coppermine.
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 08:18:00 pm
How do i go about doing this ???
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 08:24:09 pm
http://www.simplemachines.org/community/index.php?topic=12936.0
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_theme_include_path_start
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 08:30:38 pm
Thanks Nibbler ;D
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 09:03:15 pm
Got this to work but is there anyway of getting it into the body of the coppermine main page and not at the very top:

http://www.cdcoverhideout.com/gallery/index.php
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 09:06:59 pm
You can reposition the {CUSTOM_HEADER} tag in your theme's template.html. Make sure you keep it before the {GALLERY} tag though.
Title: Re: SMF Intergration
Post by: dazzler on February 16, 2006, 09:10:31 pm
Hi... take a look at my Gallery... i have it working "inside" of SMF its fully intergrated

www.minidirectory.co.uk
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 09:13:29 pm
That not 'fully integrated', it's just sitting in an iframe. Please don't hijack other people's threads.
Title: Re: SMF Intergration
Post by: dazzler on February 16, 2006, 09:14:56 pm
harsh... My  database is fully intergrated with the SMF, i was then going to say if that was the look... then post the thread i had the info from....
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 10:04:29 pm
Is there anyway of making this show in anycontent.php ???
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 10:08:52 pm
Sure, use an anycontent like this:

Code: [Select]
<?php

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%""Recent topics");

?>

<tr><td class="tableb" >
<?
require_once '../path_to_smf/SSI.php';
ssi_recentTopics();
?>
</td></tr>
<?php
endtable
();
?>

Title: Re: SMF Intergration
Post by: will on February 16, 2006, 10:15:06 pm
Thanks for that Nibbler, great, is there any chance of limiting it to 10 instead of 16 and also centering it ;D
Title: Re: SMF Intergration
Post by: Nibbler on February 16, 2006, 10:21:02 pm
Set

<td class="tableb" align="center">

and

ssi_recentTopics(10);
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 10:24:25 pm
Thanks 110% for your help Nibber ;D ;D ;D
Title: Re: SMF Intergration
Post by: will on February 16, 2006, 10:32:05 pm
Sorry Nibler

Is it possible that I can split anycontent.php into two columns and have:

Recent Topics on the left & Top Boards on the right ;D
Title: Re: SMF Intergration
Post by: Joachim Müller on February 17, 2006, 07:44:08 am
you can do anything in anycontent you could do elsewhere using HTML, two colums are usually made using a regular HTML table with two columns. How to split up the output of SMF's ssi.php certainly is off-topic on this board and should be asked on SMF's support board instead. Imo this thread has got cluttered enough already. The initial question was solved, and the second one about anycontent.php as well. All subsequent question (how to work with SMF's ssi.php) should be answered elsewhere off this board.
Title: Re: SMF Intergration
Post by: will on February 18, 2006, 12:48:35 pm
Ok Thanks Gaugau ;D