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: Gallery Login goes to Board?  (Read 7920 times)

0 Members and 1 Guest are viewing this topic.

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Gallery Login goes to Board?
« on: September 28, 2004, 12:39:19 pm »

See below for current problem..
« Last Edit: September 30, 2004, 09:41:26 pm by GauGau »
Logged
I love GauGau!

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: What does it mean by same database?
« Reply #1 on: September 28, 2004, 12:57:13 pm »

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'].
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

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Database
« Reply #2 on: September 28, 2004, 12:59:07 pm »

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
Logged
I love GauGau!

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Database
« Reply #3 on: September 28, 2004, 01:04:33 pm »

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?
« Last Edit: September 28, 2004, 01:40:17 pm by zeitgeist »
Logged
I love GauGau!

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Gallery Login goes to Board?
« Reply #4 on: September 28, 2004, 03:41:41 pm »

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

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Gallery Login goes to Board?
« Reply #5 on: September 28, 2004, 06:58:21 pm »

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
Logged
I love GauGau!

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Gallery Login goes to Board?
« Reply #6 on: September 28, 2004, 06:59:28 pm »

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

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Gallery Login goes to Board?
« Reply #7 on: September 28, 2004, 07:04:07 pm »

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
Logged
I love GauGau!

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Gallery Login goes to Board?
« Reply #8 on: September 28, 2004, 07:08:54 pm »

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

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Gallery Login goes to Board?
« Reply #9 on: September 28, 2004, 08:26:15 pm »

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?
Logged
I love GauGau!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Gallery Login goes to Board?
« Reply #10 on: September 29, 2004, 01:05:17 am »

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

Joachim
Logged

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Gallery Login goes to Board?
« Reply #11 on: September 29, 2004, 09:26:32 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.
Logged
I love GauGau!

chilehead

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Gallery Login goes to Board?
« Reply #12 on: September 30, 2004, 04:15:00 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Gallery Login goes to Board?
« Reply #13 on: September 30, 2004, 07:02:21 am »

to add a link in the coppermine navigation that points to your forum, edit themes/yourtheme/theme.php, find
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
and add (in a new line)
Code: [Select]
<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
Logged

chilehead

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Gallery Login goes to Board?
« Reply #14 on: September 30, 2004, 05:54:03 pm »

thats it!  thanks!  i was looking for a more common area, but its on a per theme basis  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.