Gallery Login goes to Board? Gallery Login goes to Board?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Gallery Login goes to Board?

Started by Zeitgeist, September 28, 2004, 12:39:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zeitgeist

See below for current problem..
I love GauGau!

kegobeer

The way the bridge files are written you must have Coppermine and your bbs sharing the same database; they can't be separate.  You'll have to move the tables from one to the other (doesn't matter which one), and then change the database name in your program before the bridge will work.  Don't worry about overwriting stuff - both Coppermine and your bbs have prefixes before each table name that precludes this from happening.

For example, move your Coppermine tables to the database that contains your bbs tables, then change include/config.inc.php to point to the new database.  You'll have to change $CONFIG['dbuser'], $CONFIG['dbpass'] and $CONFIG['dbname'].
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

Zeitgeist

Im a bit confused on how to move them over, by default fantastico installs each with its own database.

I did get them to successful connect to each other but when I try to login on Coppermine I get this error:
http://www.topdrunks.com/board/index.php?&act=Login&CODE=00

I assume it must be because of 2 databases.... but im still confused on how you merge them
I love GauGau!

Zeitgeist

#3
So I have successful merged the databases and it is running with the a username/password that all of them use.

Now when I go to http://www.topdrunks.com/gallery to login it takes me to the board to login. This I thought was great but how can i get back to the gallery to edit images and such, it always takes me to the board.

Is this the correct behavior?
I love GauGau!

kegobeer

When you bridge Coppermine and a bbs, all login/logout and membership functions are handled in the bbs.  That's why you are directed to the bbs to login and logout.  Some bbs have the ability to redirect back, but I don't use your bbs so I don't know.  It shouldn't be too hard though - you could use set a session variable in the bridge file that holds the url to the page the member is currently on, and add code to the bbs login/logout function to check for the session variable and redirect back to the original page.  Just remember to clear the session variable after the login/logout.
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

Zeitgeist

Okay if the bbs is the correct behavior that is good.

However, I am not able to modify stuff on the image gallery - I don't even appear to be logged in, so I can't create albums or anything. I'm not sure what's wrong.

The urls in question are:
http://topdrunks.com/board and
http://topdrunks.com/gallery

Thanks - Zeit
I love GauGau!

kegobeer

Create a test user with normal permissions and post the login/pass here.
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

Zeitgeist

Alright, again it looks my own stupidity.

It was a default install so I didn't expect there to be cookie fields filled in; but apparently Fantastico might add them when it sets them up.

All seems alright now..cept there is no redirect back to the gallery after logging into the board.. will see if i can find a mod or something
I love GauGau!

kegobeer

Since you are using Fantistico builds, you'll probably have to ask them for help with some of your issues since they modify the original code.  We can only reallly help with versions downloaded from this site.
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

Zeitgeist

It seems like everything is set up normal.

So, with invision if you login from the gallery it is not possible to have it redirect back to the gallery rather then staying at the forum page, correct?
nobody has done a modificaiton that fixes this?
I love GauGau!

Joachim Müller

[slightly off topic]
fantastico sucks, use the "original"
[/slightly off topic]

Joachim

Zeitgeist

Quote from: GauGau on September 29, 2004, 01:05:17 AM
[slightly off topic]
fantastico sucks, use the "original"
[/slightly off topic]

Joachim

Speaking of which, I just did!

I installed both Coppermine and PHPBB from scratch, no Fantastico involved. PHPBB is great since it can do redirection and is free, can Vbulletin do redirection too - or any of the other boards? Vbulletin is the best for large boards, but I guess my board will never get so large that it'll need vbulletin.
I love GauGau!

chilehead

I have this integration working fine (I think) but how do I add a link on the gallery to just go directly to the BB? (without logging out).  There was a file in my 'include' directory where i could add a common link.  Is there a file that is common to all themes in copermine where i can just add a hotlink?  nothing fancy.  thanks.

Joachim Müller

to add a link in the coppermine navigation that points to your forum, edit themes/yourtheme/theme.php, find// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
and add (in a new line)<a href="your_bbs_folder" title="to the board">go to the Forum</a> ::

Another option is to add a more prominent link in themes/yourtheme/template.html

Joachim

chilehead

thats it!  thanks!  i was looking for a more common area, but its on a per theme basis  ;)