Advanced search  

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]

Pages: [1]   Go Down

Author Topic: smf theme how can news, stats, user info be included ?  (Read 2681 times)

0 Members and 1 Guest are viewing this topic.

jayos

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Jaypix
smf theme how can news, stats, user info be included ?
« on: September 03, 2004, 09:36:06 pm »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: smf theme how can news, stats, user info be included ?
« Reply #1 on: September 03, 2004, 11:24:59 pm »

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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: smf theme how can news, stats, user info be included ?
« Reply #2 on: September 04, 2004, 12:09:00 am »

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.
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Jaypix
Re: smf theme how can news, stats, user info be included ?
« Reply #3 on: September 04, 2004, 11:07:52 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: smf theme how can news, stats, user info be included ?
« Reply #4 on: September 04, 2004, 11:14:15 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.