How do I make a login box display if the user isn't logged i - Page 2 How do I make a login box display if the user isn't logged i - Page 2
 

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]

Main Menu

How do I make a login box display if the user isn't logged i

Started by bit bit spears, January 31, 2004, 04:33:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jarekn

I think my issue is related to the integration with vBulletin...

I'll post more info there....

Here is the link for more info:


http://forum.coppermine-gallery.net/viewtopic.php?p=22024#22024

korn

Quote from: tb on February 26, 2004, 04:53:24 AM
ok-i am not sure this works-but it might.

i would just move all of the links or whatever you don't want to be displayed without logging in under these span classes in theme.php

<!-- BEGIN logout -->
<a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->


Move them into that span class:

<!-- BEGIN logout -->
<!-- END logout -->


please be sure to back up-because i am not certain that this will work:)

I tried this and all of the links are gone except for "Album list". I am probably doing sth wrong...

<!-- BEGIN logout -->
<a href="{ALB_LIST_TGT}">{ALB_LIST_LNK}</a>
<!-- END logout -->

Joachim Müller

you didn't do anything wrong - tb's idea just doesn't work that way.

GauGau

korn

Quote from: GauGau on April 25, 2004, 02:21:59 PM
you didn't do anything wrong - tb's idea just doesn't work that way.

GauGau

Is it possible to remove button "Album list" from the "first page" any other way?

Joachim Müller

what's wrong with the album list? What will remain on the first page if you remove the album list? In theory, this is possible (by adding some if/then switches to index.php), but I can't see the point.

GauGau

korn

Moving links (I do not want to see without logging in) under these span classes in theme.php

<!-- BEGIN logout -->
<a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->


does not seem to work with theme mac_ox_x. Any idea why or what could I do not to show the links without logging in with this theme?

Joachim Müller


korn

I have already done that, but this does not help. I am talking about moving links to span classes, which works with other themes, but not with MAC_OX_X. Any idea why?

Joachim Müller

I have no idea what you're talking about. What's a span class? What links are supposed to show where when what happens?

GauGau

leshelle02

 ;D this script came in soo handy for me...thanx...you guys are great
**** Dont knock it till you try it ****

omniscientdeveloper

QuoteWhat's a span class?

LOL.  ;D

I think he's talking about using classes for <span> tags. ;)

Incite

QuoteI think it would be easier to change the cookie settings, so that when someone actually leaves, they are automatically logged out, then when they come back, they will go straight to the login page.

How do i do that?

ElCool

I got the login box to display, so if you aren't logged in, it takes you there

thx a lot :)


now, another question:
what if the person who got there wants to register? there is no register button there
i'd have to be a registred user in order to login to my gallery now...

any suggestions?
- don't forget to bring a towel

Joachim Müller

there should be a register button in your navigation. If it isn't, you'll have to allow user registration (coppermine config).

Joachim

Joachim Müller


Arnoman


Justttt

Quote from: ElCool on October 11, 2004, 07:26:24 PM
I got the login box to display, so if you aren't logged in, it takes you there

thx a lot :)


now, another question:
what if the person who got there wants to register? there is no register button there
i'd have to be a registred user in order to login to my gallery now...

any suggestions?

why dont you redirect it to your own login page like i have done

www.trippy-illusion.co.uk/album/ccc.php
J U S T T T T

sdl

FYI, when I integrated/bridged SMF and Coppermine, my redirect to login.php no longer worked, because all logging in was taken over by SMF.  Even so, I really loved the hack.  I didn't want guests browsing the photos without logging in first.  

I needed to redirect to my index page for SMF, not my login page for Coppermine, so I changed the code to:

if (USER_ID){

} else {
{
  $redirect = $redirect . "../index.php";
      header("Location: $redirect");

  exit();
}}


...and it works like a champ!  If a user goes to my Coppermine installation, but isn't logged in, (s)he's bumped to the index file of SMF, one folder up in the root of the domain.