Coppermine Gallery ...
 
Notifications
Clear all

Coppermine Gallery Bridge for eFiction 3.5?

24 Posts
7 Users
0 Reactions
4,251 Views
 kali
(@kali)
Posts: 307
Reputable Member
 

Essentially what I did was put the menu/tables from the main part of the Coppermine skin into the main div of the layout.  It takes some tweaking to make sure the tables don't stretch the skin and to make sure there are no duplicates in the css, but I wouldn't say it's any harder than tweaking a regular eFiction skin.

Nadia's skins are so well made that you shouldn't have much trouble at all. Users can also switch skins within Coppermine too, so if you make both, they'll have the option of using both (although they'll have to do it manually)


Skins made by Kali are no longer supported!

 
Posted : 11/02/2009 6:14 pm
(@calash)
Posts: 180
Estimable Member
 

Thank you for all of the information! I apologise for the delayed reply.

I did find Calic0Cat's Coppermine Bridge files for eFiction 3.3 on her site and I'm trying it out to see if it works for 3.5 as well. Unfortunately, I'm stuck on the silly config.php part. I can't seem to get the path right no matter what I type in there, but I'm going to keep trying until I get that right then I'll let you know if it works or not. Just for the hell of it, does anyone know what I should have here:

$this->boardurl = ' http://localhost/eFiction';  
require_once('../eFiction/config.php');

If my eFiction/Coppermine links are as follows:

http://www.mysite.com/efiction and http//www.mysite.com/efiction/gallery

I can't get it right and it's driving me nuts. I keep getting this error, so I must have the path wrong somehow:

Fatal error: require_once() [function.require]: Failed opening required '../tfa/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html//gallery/bridge/eFiction.inc.php on line 39

If I can get the bridge to work, how do I make it match the rest of my site? Are eFiction skins compatable with Coppermine galleries? That may be a stupid question, but as I said, I've never bridged anything before. If all this fails, I will probably go with one of the suggestions here. I'm not using SMF at all, so maybe I would be best just to not worry about a bridge?

Thank you in advance!

Try editing the require_once path to have the full path

ie

 require_once ('/home/********/public_html/tfa'/config.php);

It needs to be pointing to the eFiction config.php file.


The World of Necrotania - Story Writing Community

 
Posted : 11/02/2009 6:35 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Essentially what I did was put the menu/tables from the main part of the Coppermine skin into the main div of the layout.  It takes some tweaking to make sure the tables don't stretch the skin and to make sure there are no duplicates in the css, but I wouldn't say it's any harder than tweaking a regular eFiction skin.

Don't laugh, but look at the mess I've made: Screen capture here (still working on trying to fix it)

I have yet to go through and check for duplicates in the CSS, but somehow I've lost all the important links like login, etc. and everything that should be in the top menu bar from the eFiction skin is just showing up as variables. Obviously there must be things I haven't moved or linked to properly, but I'm beginning to wish I hadn't even tried. I really wish php was as uncomplicated as html. I can't figure out what I deleted and need to put back to get back those main Coppermine menu links and I haven't got a clue how to make those variables show up as links again. The rest is just CSS issues, I think, which I can play around with, but the colours are the least of my worries right now. I don't think I know what the heck I'm doing.


Edit:
I got the main links back, and I guess I don't actually need the eFiction menu on the top of the Coppermine gallery. Not sure what I was thinking then. Still poking away at it.


 
Posted : 12/02/2009 12:19 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Try editing the require_once path to have the full path

ie

 require_once ('/home/*****/public_html/tfa'/config.php);

It needs to be pointing to the eFiction config.php file.

Thank you for your help, calash. I tried that and ended up with the same error. I'm sure it was me and not your suggestion. This stuff never ceases to confuse me. Should it look like this?:

		if (!USE_BRIDGEMGR) {
$this->boardurl = 'http://*****.com/tfa';
require_once('/home/sublimer/public_html/tfa/config.php');
$this->use_post_based_groups = 0;
} else {
require_once($BRIDGE['relative_path_to_config_file'] . '/home/sublimer/public_html/tfa/config.php');
$this->boardurl = $INFO['board_url'];
$this->use_post_based_groups = $BRIDGE['use_post_based_groups'];

The error keeps saying line 42, which would be the second require_once. Are both supposed to be the same?


 
Posted : 12/02/2009 12:24 pm
(@hobert)
Posts: 61
Trusted Member
 

All right, this took me *forever* to get this working, and I found my problem waaaaaaaay deep in the other thread.

There are three changes/updating you need to do to the bridge to personalize it for your installation.

The one in the included instructions is correct...

Update

		if (!USE_BRIDGEMGR) {
$this->boardurl = ' http://localhost/eFiction';
require_once('../eFiction/config.php');
$this->use_post_based_groups = 0;

to match your existing setting.  Use ../your_efiction/config.php if your gallery and efiction are on the same level, ../config if efiction is the level above and /your_efiction/config.php if efiction is in a subfolder of your gallery.

Next, in following code:

		} else {
require_once($BRIDGE['relative_path_to_config_file'] . '/config.php');
$this->boardurl = $INFO['board_url'];
$this->use_post_based_groups = $BRIDGE['use_post_based_groups'];

the '/config,php'); should match the above required_once change, so it's now '../your_efiction/config.php')

And the third, and well hidden change...at the top of the file

		if(!defined("_BASEDIR"));
define("_BASEDIR","../");

the defined BASEDIR should match as above, in this case define("_BASEDIR","../your_efiction")

So far, my bridge is working as intended.  Hope it helps!


efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/

 
Posted : 12/02/2009 6:12 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Forgive the delayed reply. I've come down with some kind of nasty flu.

Thank you for the suggestion! I'll try this just as soon as I can and let you know if it worked. I've put Coppermine back into a sub-directory in my e-fiction folder again because that's where I'd like it to be if I can get this darn bridge working.

So they are currently located at:

http://www.mysite.com/efiction and http://www.mysite.com/efiction/gallery


 
Posted : 14/02/2009 12:53 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

No luck with that either, unfortunately, but thank you for trying.

No matter what path names I put into line 42 and the others, I still get the exact same error. No clue what I'm doing wrong anymore.


 
Posted : 15/02/2009 2:52 pm
(@hobert)
Posts: 61
Trusted Member
 

I'm curious...what you do have set as define("_BASEDIR","what-is-this?"); (the what-is-this part?)(Line 35ish)


efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/

 
Posted : 16/02/2009 2:21 pm
(@jaded)
Posts: 63
Trusted Member
Topic starter
 

Hm. I had the full path to my eFiction in there. Was that wrong?


 
Posted : 19/02/2009 1:10 pm
Page 2 / 2
Share: