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 [2]   Go Down

Author Topic: How do I make a login box display if the user isn't logged i  (Read 35519 times)

0 Members and 1 Guest are viewing this topic.

jarekn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 47
Sorry, not sure which one this is realated to...
« Reply #20 on: April 02, 2004, 04:00:00 pm »

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
Logged

korn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How do I make a login box display if the user isn't logged i
« Reply #21 on: April 25, 2004, 02:07:27 pm »

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

Code: [Select]
<!-- BEGIN logout -->
<a href="{LOGOUT_TGT}">{LOGOUT_LNK}</a>
<!-- END logout -->

Move them into that span class:

Code: [Select]
<!-- 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...

Code: [Select]
<!-- BEGIN logout -->
<a href="{ALB_LIST_TGT}">{ALB_LIST_LNK}</a>
 <!-- END logout -->
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #22 on: April 25, 2004, 02:21:59 pm »

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

GauGau
Logged

korn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How do I make a login box display if the user isn't logged i
« Reply #23 on: April 25, 2004, 02:46:57 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #24 on: April 25, 2004, 11:28:35 pm »

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
Logged

korn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How do I make a login box display if the user isn't logged i
« Reply #25 on: May 02, 2004, 11:15:37 am »

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

Code: [Select]
<!-- 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #26 on: May 02, 2004, 11:44:11 am »

if you want only registered users to be able to browse your gallery, take a look at http://coppermine.sourceforge.net/faq.php?q=registeredUsersOnly#registeredUsersOnly

GauGau
Logged

korn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: How do I make a login box display if the user isn't logged i
« Reply #27 on: May 02, 2004, 12:46:01 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #28 on: May 02, 2004, 10:49:07 pm »

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
Logged

leshelle02

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 2
    • DTPWorld.net
Re: How do I make a login box display if the user isn't logged i
« Reply #29 on: July 27, 2004, 03:36:36 am »

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

omniscientdeveloper

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 901
Re: How do I make a login box display if the user isn't logged i
« Reply #30 on: July 27, 2004, 03:42:54 am »

Quote
What's a span class?

LOL.  ;D

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

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: How do I make a login box display if the user isn't logged i
« Reply #31 on: July 27, 2004, 08:31:56 am »

Quote
I 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?
Logged

ElCool

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
  • ...my pretty head? in a box?
Re: How do I make a login box display if the user isn't logged i
« Reply #32 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?
Logged
- don't forget to bring a towel

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #33 on: October 11, 2004, 10:34:01 pm »

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

Joachim
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I make a login box display if the user isn't logged i
« Reply #34 on: October 12, 2004, 08:31:06 am »

[Moderation]
moved unrelated reply to http://forum.coppermine-gallery.net/index.php?topic=10802.0
[/Moderation]

Joachim
Logged

Arnoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How do I make a login box display if the user isn't logged i
« Reply #35 on: December 07, 2004, 04:22:34 pm »

It's working perfectly! Thanks a lott!
Logged

Justttt

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk
Re: How do I make a login box display if the user isn't logged i
« Reply #36 on: January 20, 2005, 03:47:09 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
Logged
J U S T T T T

sdl

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How do I make a login box display if the user isn't logged i
« Reply #37 on: May 29, 2005, 04:40:35 am »

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:

Code: [Select]
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.

Logged
Pages: 1 [2]   Go Up
 

Page created in 0.024 seconds with 19 queries.