Loginform - Page 2 Loginform - 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

Loginform

Started by Stramm, June 30, 2006, 04:36:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

will

#20
Thanks Stramm thats worked a treat, 1 little thing more, I've added the code you gave me on this subject here: http://forum.coppermine-gallery.net/index.php?topic=33314.0 for total files uploaded.

How do I make 72784 to 72,784

Thanks ;)

Stramm


dke

#22
Would it be possible to add a "Register" button right below the login form in a fashionable mannor?

Also how do i make this plugin appear in the "CENTER" of the page and not at the right side (tested to replace "right" with "center" but that moved the whole thing to the left?

Hassan

Hi Stramm,

I have installed the Login Form Plugin, but its not showing anywhere. Even when using {LOGIN_FORM} anywhere in the template.html.  I am using CPG v1.46 and login form v1.1. Also when enabling the plugin from plugin manager it sets my {SYS_MENU} and {SUB_MENU} to right aligned. I want it back on left.

Any suggestions ?

Hassan

Alright I figured it out.
It was a silly mistake  :-[ I was already logged in  :-[

DaBe

hello

I use the modpack and not the plugin login_form

in which file I can modify the html code from the login form ?

pls help. I searched the board.

Joachim Müller

Quote from: DaBe on May 19, 2008, 10:07:01 PM
I use the modpack and not the plugin login_form
Then stay out of this thread.

mireille

I'm trying to add links to the html message but when I upload it, I get an unexpected T_STRING error.

The code looks like this:
EOT;
} else {
$loginFormHtml = "Welcome back, <span class=\"color1\"> ".(USER_NAME)."</span><br /><a href="profile.php?op=edit_profile" class=\"color2\">[Edit my Profile]</a>    <a href="thumbnails.php?album=favpics" class=\"color2\">[View and Download my Favorites]</a>   <a href="logout.php" class=\"color2\" >[Logout]</a><br />";
}
  return $loginFormHtml;
}
?>

Joachim Müller

Yours is a case of improperly escaping quotes.
TryEOT;
} else {
$loginFormHtml = 'Welcome back, <span class="color1"> '.(USER_NAME).'</span><br /><a href="profile.php?op=edit_profile" class="color2">[Edit my Profile]</a>    <a href="thumbnails.php?album=favpics" class="color2">[View and Download my Favorites]</a>   <a href="logout.php" class="color2" >[Logout]</a><br />';
}
  return $loginFormHtml;
}
?>
Not sure though what (USER_NAME) is supposed to do...

Stramm

USER_NAME constant... holds the username
thanks, Joachim

mireille

It's working. Thank you~!

nazcarpine

 ??? I just want to know if I can integrate this plugin to my home page which is purely HTML.
Please help. Thanks!

Joachim Müller

Read up what this plugin does: it displays a login box on coppermine-driven pages. Nothing else. If you want a login form to be displayed on a non-coppermine page, you're in the wrong thread. Search the board then, as this has been asked and answered many times over. If you can't find those threads, start a thread of your own.

ogio71

Hi,
I installed this plugin, but eyeballs theme isn't well displayed after enabling it.

Classic theme is good.
Didn't checked other themes.
I downloaded loginform from the download pages for coppermine, but I see it's 1.0 version.
I read about 1.1 version and downloaded it, but it don't work too.
Why 1.1 version isn't included in plugins collections?

Tnx
Ambrogio

bb3

hi,

I successfully installed the login form hack on my cpg1.4x and used it properly until i placed it on top panel right.
It looks like this.

<div class="top_panel">
  <div class="top_panel_left">
    <div class="top_panel_right">
      <div id="SELECT_LISTS">
   {LOGIN_FORM}
   {THEME_SELECT_LIST}
        {LANGUAGE_SELECT_LIST}
      </div>
      <h1>{GAL_NAME}</h1>
      <h3>{GAL_DESCRIPTION}</h3>
    </div>
  </div>
</div>

now my problem is, whenever i am logged in, the gallery name and description moves to the top right panel where my login form (now "welcome back user") is. But when im not logged in it is just perfect.

link to my site ---> www.redlens.org/gallery.html  username: test / password: test

thanks

bb3


Stramm

Change the html of the loginform in codbase.php to whatever fits your design/ layout. It's pure html so it shouldn't be a problem for you.

bb3

WOW! thanks for the big help stramm! i got it working now! :D

Marlin

Just wanted to say thanks,I put the login form in my top banner,replaced {SITE_DESCRIRPTION} with {LOGIN_FORM} and it works great  :D
http://usagungallery.com
Marlin

mireillesan

EOT;
} else {
$loginFormHtml = 'Welcome back, <span class="color1"> '.(USER_NAME).'</span><br /><a href="profile.php?op=edit_profile" class="color2">[Edit my Profile]</a>    <a href="thumbnails.php?album=favpics" class="color2">[View and Download my Favorites]</a>   <a href="logout.php" class="color2" >[Logout]</a><br />';
}
  return $loginFormHtml;
}
?>


With the new release of cpm, the old <a href="logout.php" no longer works as I'm getting an error about form token. Any way to solve this?