News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF ssi to Coppermine

Started by Owdy, March 11, 2005, 01:47:23 PM

Previous topic - Next topic

Owdy

Has anyone done this? Use smf SSI features in coppermine integration?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

kegobeer

Coppermine 1.3.2 shares common function names with SMF, especially the database connection functions, so it isn't possible to use SMF ssi calls.  In 1.4 we've added a unique prefix to our functions to prevent this from happening, but this version is still late-alpha.  Doesn't help you right now though.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Owdy

Hmmm, too bad. I would like to include smf menu to coppermine.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

kegobeer

So would I.   ;D  That's why I renamed all of our functions when we started working on 1.4.

You could always rename Coppermine's database functions, and then go thru all the Coppermine files and rename the calls.  It's a lot of tedious work, but you'd be able to use SSI.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Owdy

Any hints what to search? Just for menu.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

kegobeer

#5
You'd need to change functions db_error, db_query and db_fetch_rowset in functions.inc.php (just prefix them with cpg_), then search thru all of the Coppermine files for those function calls and add the cpg_ prefix.

I don't remember exactly what files needed to be edited - I just used the XP search function for a "phrase in the file" and it found all the files.  I think most php editors support some sort of search function on all open files, so you could open a bunch and search that way if you don't have XP.

There might be one or two other functions that have the same name.  The easiest way to find those is to do a ssi include and see what error message you get.  ;)
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: