forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Stramm on June 30, 2006, 04:36:55 pm

Title: Loginform
Post by: Stramm on June 30, 2006, 04:36:55 pm
Cause someone needed a loginform similar to bbs loginforms that appeare on the main page somwhere below the menu
Works with a standalone CPG 1.4.x

edit: adding a screenshot

edit: new version 1.1 (01-08-2007), it's possible to place the loginform where you want with placing the tag {LOGIN_FORM} anywhere in your template.html. If you do not use that tag, the loginform will appeare after the sub menu.
Title: Re: Loginform
Post by: bobby131313 on August 18, 2006, 10:47:33 pm
Hey Stramm, thanks for the great plug-in.

I got it working on my gallery (http://www.coincommunity.org/gallery/), I even figured out how to tweak it a little to fit my sidebar.

But now I would like to put it in my custom header and can't figure out how, if it's even possible using your plugin.

Can you help?

Thanks!

Title: Re: Loginform
Post by: Stramm on August 18, 2006, 11:07:58 pm
that's not how it works... for having it in the custom header you basically have just to copy the plugins html output there (in a if else clause)
Title: Re: Loginform
Post by: bobby131313 on August 21, 2006, 06:00:02 am
Thanks Stramm, took your advice and got it working (http://www.coincommunity.org/gallery/), looks pretty good too.  ;D

Title: Re: Loginform
Post by: Pascal YAP on August 21, 2006, 10:01:04 am
Stramm,

Usefull plugin yet ;D
LoginForm in our French Board (http://forum.coppermine-gallery.net/index.php?topic=35171.0)

Thanx again...

PYAP
Title: Re: Loginform
Post by: hydroplane on January 07, 2007, 07:06:52 pm
Is it possible to move the login box above the menu? And, if yes, how?
Thanks in advance.
Title: Re: Loginform
Post by: Stramm on January 08, 2007, 08:24:29 am
yes, download the new version and read the first post of this thread
Title: Re: Loginform
Post by: hydroplane on January 09, 2007, 01:45:32 am
Works like a charm. Many thanks again!
Title: Re: Loginform
Post by: santosh_iit32 on January 11, 2007, 02:57:35 pm
i have the gallery integrated with phpbb forum. it doesnt seem to work after installation of the plugin and how do I manage this plugin? I placed {LOGIN_FORM} but "{LOGIN_FORM}" there and it shows up elsewhere... how do I positioned this plugin?
Title: Re: Loginform
Post by: Stramm on January 11, 2007, 05:22:25 pm
... Works with a standalone CPG 1.4.x ...

it doesn't work in a bridged environment... therefore you'll have to modify it. Don't ask me how cause I do not use phpbb
Title: Re: Loginform
Post by: santosh_iit32 on January 11, 2007, 05:49:14 pm
thats too bad. anyways thanx for the reply.
Title: Re: Loginform
Post by: Gephri on January 18, 2007, 01:50:50 am
has anyone been able to get this working in a bridged environment with phpbb... so close...
Title: Re: Loginform
Post by: Nibbler on January 18, 2007, 02:06:54 am
You'd need to modify the form to point to the board's login page and change the input names to match.
Title: Re: Loginform doesnt logout
Post by: Gephri on February 21, 2007, 08:11:21 am
I have the following issue when trying to bridge coppermine and phpBB using CPG Stramm Loginform Plugin 1.1:
A user can not log OUT properly because the SID doesn't carry through the process.  Any idea how to get the logout process to recognize the phpBB session id on logout?

Nibbler has suggested
Quote
Get the plugin to use cpg_udb::logout() or if that's not possible the session id is stored in $cpg_udb->sid.
but I'm not sure how to use that advice.

Coppermine install: /cpg/
Forum install: /phpbb/
Coppermine version: cpg1.4.10
Forum version: phpBB 2.0.22
Cookie name/preifx:  ss_pg_cookie


Title: Re: Loginform
Post by: rubenix on July 03, 2007, 12:05:53 am
Hi All,

First of all thanks for this lovely plugin.
2nd after installing this beauty (works perfectly) I just found an error on the normal login page... login.php The tables are not centered anymore...

Please I just need help as i dont know what going on here!! Am not a coder and dont know where to start...

Thanks in advance guys
Title: Re: Loginform
Post by: rubenix on July 03, 2007, 05:13:54 pm
solved: I just make this small change on codebase.php

Code: [Select]
<table cellpadding="0" cellspacing="0" border="0">
Thanks any way!
Title: Re: Loginform
Post by: will on November 15, 2007, 11:30:49 am
Hi Stramm

I've started using this plugin since the PMs plugin isn't supported with Invision, I wanted to know how to add the user group to it.

Any help will be great ;)
Title: Re: Loginform
Post by: Stramm on November 15, 2007, 12:48:49 pm
Not sure what you mean with usergroup and what you want to do with that. When a user logs in, then the system knows in what usergroup he is. Usually that's saven in the user table
Title: Re: Loginform
Post by: will on November 15, 2007, 01:29:34 pm
I want to diplay what usergroup they are in under 'Welcome back (User)' like Admin, Suer Mods, Mods, Members etc ;)
Title: Re: Loginform
Post by: Stramm on November 15, 2007, 01:42:55 pm
the constant
Code: [Select]
USER_GROUPholds the usergroup name...

use it eg like...
Code: [Select]
$loginFormHtml = "<div align=\"right\" class=\"smallfont\">Welcome back <strong>".(USER_NAME).', '.(USER_GROUP)."</strong><br />";
Title: [Solved]: Re: Loginform
Post by: will on November 15, 2007, 02:00:08 pm
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 ;)
Title: Re: Loginform
Post by: Stramm on November 15, 2007, 02:47:24 pm
number_format()

http://php.net/manual/en/function.number-format.php
Title: Re: Loginform
Post by: dke on January 07, 2008, 01:05:41 pm
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?
Title: Re: Loginform
Post by: Hassan on March 12, 2008, 08:34:10 am
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 ?
Title: Re: Loginform
Post by: Hassan on March 12, 2008, 10:54:02 am
Alright I figured it out.
It was a silly mistake  :-[ I was already logged in  :-[
Title: Re: Loginform
Post by: DaBe on May 19, 2008, 10:07:01 pm
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.
Title: Re: Loginform
Post by: Joachim Müller on May 20, 2008, 08:16:30 am
I use the modpack and not the plugin login_form
Then stay out of this thread.
Title: Re: Loginform
Post by: mireille on July 05, 2008, 02:22:28 pm
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:
Code: [Select]
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;
}
?>
Title: Re: Loginform
Post by: Joachim Müller on July 05, 2008, 05:44:33 pm
Yours is a case of improperly escaping quotes.
Try
Code: [Select]
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;
}
?>
Not sure though what (USER_NAME) is supposed to do...
Title: Re: Loginform
Post by: Stramm on July 05, 2008, 08:19:48 pm
USER_NAME constant... holds the username
thanks, Joachim
Title: Re: Loginform
Post by: mireille on July 06, 2008, 03:06:59 pm
It's working. Thank you~!
Title: Re: Loginform
Post by: nazcarpine on July 27, 2008, 07:51:07 am
 ??? I just want to know if I can integrate this plugin to my home page which is purely HTML.
Please help. Thanks!
Title: Re: Loginform
Post by: Joachim Müller on July 27, 2008, 09:08:33 am
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.
Title: Re: Loginform
Post by: ogio71 on February 15, 2009, 03:39:41 pm
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
Title: Re: Loginform
Post by: bb3 on February 25, 2009, 05:14:22 am
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
Title: Re: Loginform
Post by: bb3 on February 25, 2009, 10:14:23 am
help please??  ???
Title: Re: Loginform
Post by: Stramm on February 25, 2009, 12:26:38 pm
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.
Title: Re: Loginform
Post by: bb3 on February 25, 2009, 03:09:27 pm
WOW! thanks for the big help stramm! i got it working now! :D
Title: Re: Loginform
Post by: Marlin on March 09, 2009, 06:18:36 pm
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 (http://usagungallery.com)
Marlin
Title: Re: Loginform
Post by: mireillesan on July 07, 2010, 04:45:03 pm
Code: [Select]
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?