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
-
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.
-
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!
-
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)
-
Thanks Stramm, took your advice and got it working (http://www.coincommunity.org/gallery/), looks pretty good too. ;D
-
Stramm,
Usefull plugin yet ;D
LoginForm in our French Board (http://forum.coppermine-gallery.net/index.php?topic=35171.0)
Thanx again...
PYAP
-
Is it possible to move the login box above the menu? And, if yes, how?
Thanks in advance.
-
yes, download the new version and read the first post of this thread
-
Works like a charm. Many thanks again!
-
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?
-
... 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
-
thats too bad. anyways thanx for the reply.
-
has anyone been able to get this working in a bridged environment with phpbb... so close...
-
You'd need to modify the form to point to the board's login page and change the input names to match.
-
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
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
-
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
-
solved: I just make this small change on codebase.php
<table cellpadding="0" cellspacing="0" border="0">
Thanks any way!
-
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 ;)
-
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
-
I want to diplay what usergroup they are in under 'Welcome back (User)' like Admin, Suer Mods, Mods, Members etc ;)
-
the constant
USER_GROUP
holds the usergroup name...
use it eg like...
$loginFormHtml = "<div align=\"right\" class=\"smallfont\">Welcome back <strong>".(USER_NAME).', '.(USER_GROUP)."</strong><br />";
-
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 ;)
-
number_format()
http://php.net/manual/en/function.number-format.php
-
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?
-
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 ?
-
Alright I figured it out.
It was a silly mistake :-[ I was already logged in :-[
-
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.
-
I use the modpack and not the plugin login_form
Then stay out of this thread.
-
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;
}
?>
-
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...
-
USER_NAME constant... holds the username
thanks, Joachim
-
It's working. Thank you~!
-
??? I just want to know if I can integrate this plugin to my home page which is purely HTML.
Please help. Thanks!
-
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.
-
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
-
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
-
help please?? ???
-
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.
-
WOW! thanks for the big help stramm! i got it working now! :D
-
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
-
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?