smf theme how can news, stats, user info be included ? smf theme how can news, stats, user info be included ?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

smf theme how can news, stats, user info be included ?

Started by jayos, September 03, 2004, 09:36:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jayos

I have coppermine with smf theme bridged with smf forum

I want include the news, key stats, user info from smf into coppermine

I have started to look into the smf code has anyone tried this or done this ?

any help apreciated

Joachim Müller

you can try using smf's ssi.php for that (refer to smf documentation for details), although it will not work instantly, as there are duplicate functions names with coppermine and smf (we're currently fixing this for future versions, but I guess that's not the information you were looking for).
You might want to take a look at kegobeer's personal site: http://pictures.kazebeer.com/coppermine/thumbnails.php?album=6

Joachim

kegobeer

I have this working on a test site, but there won't be any mods released for it.  Hopefully it'll be something you can do in the next release.  Please don't ask when it will be ready.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

jayos

Am I right in thinking the newsbox funtion is defined in ssi.php (ssi_boardNews) so all I do is call the function from the coppermine theme.php file

hmmm...

How will coppermine recognise the function from ssi.php ?
Do I need to look at editing the bridging file to do this ?

Joachim Müller

just use anycontent.php, put the code ssi.php needs into it. As I already mentioned: this won't work instantly, as it will show errors about function names existing twice both in coppermine and smf. Either use an iframe to avoid this, or replace one of the two functions (both the function definition and all occurences where it's being used). This is not newbie stuff though - if you don't feel comfortable with php, you will have to wait for the next version of coppermine to come out.

Joachim