Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Front End User Login Plugin (XML Or Database - ver: 3.0)
#51
luchosar Wrote:He instalado el plugin em WP 3.2y sale este mensaje:
(I have installed the plugin in WP 3.2 and it leaves this messageSmile

Plugin could not be activated because it triggered a fatal error.
Fatal error: Call to undefined function register_plugin() in /home/luchosar/public_html/wp/wp-content/plugins/front-end-user-login-1/user_login.php on line 29

¿Espero que no te confundas el cms Wordpress con GetSimple? Este foro es para solucionar y hablar acerca de los problemas con el cms GetSimple aunque es parecido a WP, no es el mismo cms.
Todo arde si le aplicas la chispa adecuada.
Reply
#52
Thank you for plugin
Slug does not work?

Register: domain.com/index.php?id=&register=yes
Logout: domain.com/index.php?id=&logout=yes

How we can fix it?

edit: Sorry, my error, corrected
Reply
#53
I was wondering how to make a page reload or redirect after a user has registered using FEUL?
Also, I noticed that I can enter anything into the register fields and I get:
'Success
Your account was successfully created..'

Is this normal behavior?

edit:
I was able to turn the form into a component but it still does not function as it should.
Am I to understand that it can only be added via PHP and any of the forms will not be able to be added to the main page?
Even the demo page for this plugin looks like it had to be shrunk to fit the form.
So in other words, am I stuck with margin: 0 0 0 -(n)px; to move this into main page?

Thanks for any answers.

Oh before I forget,
any chance for captcha in future iterations?
Reply
#54
Regarding my 2nd question above.
I created an email address validation needle
Code:
^.(?<![^a-zA-Z0-9])\w+(?!.\.)@\w+(?!.+[@\s\.])\.(?!.[0-9_])(?=\w{3})(?!\w{4})\w+
Works on PCRE. Not sure how to implement into your plugin though.

Any ideas?
Reply
#55
what is PCRE?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#56
Connie Wrote:what is PCRE?
http://lmgtfy.com/?q=pcre&l=1

Easier than asking here ... ;-)
--
Nick.
Reply
#57
Thanks Hameau,

as a PHP-user I am not fit in PERL, even when I took coursed in Perl 18 years ago ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#58
Understandable, but php and or the plugins must have a way of setting up conditions using regex no?
Info here for PCRE supported Regex in PHP:
http://ca.php.net/manual/en/book.pcre.php
This is the match function that would be needed:
http://ca.php.net/manual/en/function.preg-match.php

Ofcourse this is my assumption that plugins are written in PHP.
... and after some investigation looks like they are.

Perhaps someone could tell me the policy of modifying plugins?

Looks like I've narrowed down the problem with non standard addresses being allowed to:
Code:
$email = $_POST['email'];
in function user_login_register().
Any way for the developer to add a condition to this?

Whats stopping a bot from flooding my server?
Reply
#59
Why cant I get a simple answer from this developer?
Is this plugin no longer supported?
Reply
#60
Connie Wrote:as a PHP-user ...
... you'll probably be familiar with preg. (Y)

From http://www.regular-expressions.info/php.html:
Quote:These functions are a PHP wrapper around the PCRE library (Perl-Compatible Regular Expressions). Anything said about the PCRE regex flavor in the regular expression tutorial on this website applies to PHP's preg functions. You should use the preg functions for all new PHP code that uses regular expressions. PHP includes PCRE by default as of PHP 4.2.0.
--
Nick.
Reply
#61
Hi,

I've some simple suggestions for the excellent plugin.

When I download the plugin from the extend I get a version that is called 2.5 with file date 2011-08-30. Is that version 2.6 or 2.5?

In the input filed for password please use type password instead of text.

On the protected message info it would be realy nice if you could get the login form. That would mean that it's easy to just show the login form when you're accessing protected content.

Last suggestion I have is an internationalisation request. It would be realy nice if it's possible to either define the login form in different languages or that you easily could define the login terms and button in the settings. I can d this customisation of the form today but...

PÃ¥l
Reply
#62
chainsaw81 Wrote:@mikeh

i followed your instructions, but one thing won't work:
- i want to add manually users to the webseite
--> settings -> manage users -> add new user

nothing happens.

I have the same problem. There are 2 problems. Jquery script is not created when there is no folder data/site-users and does not create a folder data/site-users via admin panel. To fix this you should change 2 files: manage-users.php and add-user.php.
Reply
#63
bree7e Wrote:
chainsaw81 Wrote:@mikeh

i followed your instructions, but one thing won't work:
- i want to add manually users to the webseite
--> settings -> manage users -> add new user

nothing happens.

I have the same problem.
Same for me.
I added Multi user as well, because I interpreted chainsaw hint like this.
I use FF8 with noscript but all JS activated now.
Any idea?

[edit]
further info
IE9 tested as well
a new blank getsimple 3
test local on win7 64 and xamp php 5.3 (cURL not supported)

bydey (http://deynews.de)
my getsimple page deynews.de
Reply
#64
dey Wrote:I added Multi user as well, because I interpreted chainsaw hint like this.
I use FF8 with noscript but all JS activated now.
Any idea?

I changed the plugin source code. It now works correctly. You can download and try.
Reply
#65
Thank you everyone for your contributions and error/bug reports.

I have been swamped with work over the past 2 months and was unable to work on this plugin.
I have made it a big priority to release the next version (addressing the mentioned issues) over the next couple months.

If anyone has questions, requests, or contributions, now would be the time to post them. Thanks
Reply
#66
Added "<div style="clear:both"></div>" to end of line 601 in user_login.php to cure editor area trying to load alongside Member Checkbox.
Also Login box needs some css sorting, changed mine to work with site theme, so not really useful to anyone else.
Quinn
Reply
#67
I am having some trouble adding I18N functionality to another plugin I'm using (user-login). I have previously hard-coded messages to the user etc, but would now like to add a language switching capability.

I decided to use I18N for this, and I followed the instructions here to be able to call e.g. i18n_r("user-login/REGISTER_MSG"). This works to a degree, but I am not able to switch between languages.

At first, everything was always English, confirmed by dumping $LANG to the screen. Then I decided to add $LANG = "nb_NO"; To my gsconfig.php file. This made everything Norwegian. The user-login plugin is using the language files I made in user-login/lang/ but I don't understand how to make the ?setlang=en/nb work with it.

Thanks for a great plugin. Hoping for a quick resolution.
Reply
#68
lrsk Wrote:I am having some trouble adding I18N functionality to another plugin I'm using (user-login). I have previously hard-coded messages to the user etc, but would now like to add a language switching capability.

I decided to use I18N for this, and I followed the instructions here to be able to call e.g. i18n_r("user-login/REGISTER_MSG"). This works to a degree, but I am not able to switch between languages.

At first, everything was always English, confirmed by dumping $LANG to the screen. Then I decided to add $LANG = "nb_NO"; To my gsconfig.php file. This made everything Norwegian. The user-login plugin is using the language files I made in user-login/lang/ but I don't understand how to make the ?setlang=en/nb work with it.

Thanks for a great plugin. Hoping for a quick resolution.

The Front End User Plugin does not support the I18N plugin but relies on the $LANG variable.
Depending on how the Front End User Plugin works internally, you might have success with adding the following somewhere to the top of your template:
Code:
<?php global $language; $LANG = $language == 'nb' ? 'nb_NO' : 'en_US'; ?>
(of course this will not work, if the plugin loads the language texts before the template is executed)
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#69
mvlcek Wrote:The Front End User Plugin does not support the I18N plugin but relies on the $LANG variable.
Depending on how the Front End User Plugin works internally, you might have success with adding the following somewhere to the top of your template:
Code:
<?php global $language; $LANG = $language == 'nb' ? 'nb_NO' : 'en_US'; ?>
(of course this will not work, if the plugin loads the language texts before the template is executed)


Ok. I will try that. Does that mean I have to use the global lang files to make custom content for the login pages, or can I use the plugin-name/lang/nb_NO.php method?
Reply
#70
bree7e Wrote:
dey Wrote:I added Multi user as well, because I interpreted chainsaw hint like this.
I use FF8 with noscript but all JS activated now.
Any idea?

I changed the plugin source code. It now works correctly. You can download and try.

Thanks for your fix. This works great.
Reply
#71
Johonwayni Wrote:Thank you for plugin
Slug does not work?

Register: domain.com/index.php?id=&register=yes
Logout: domain.com/index.php?id=&logout=yes

How we can fix it?

edit: Sorry, my error, corrected

Hi, i've got the same problem, can you tell us what you do to solve it?
thanks for the support

Edit: with this code

if(!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email'])))....

we are able to check the input mail.
bob
Reply
#72
Hi,

I use this Plugin and it works as it should

I have connect these plugin with an other plugin. (You can see here: http://weforg.de/cms/404/login/)
So, there is the sidebar including a navigation.

But the navigation should not be visible to other.

I tried to include
Code:
<ul class="subnav"><?php get_i18n_navigation(return_page_slug(),1,99); ?></ul>
into the login code, but it doesn't work.

How can i fix that? Or can I fix this with other ways`

Greetings, and sorry for my bad english,
SlazZe.
Reply
#73
Here is the PayPal IPN (Instant Payment Notification) script I use to charge for memberships. Eventually I will add a feature to this plugin to make it easier.
IPN Postback script (/PayPal/ipn.php):
Code:
<?php

// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-validate';
foreach ($_POST as $key => $value) {
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}
// post back to PayPal system to validate
$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";

$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);

if (!$fp) {
// HTTP ERROR
} else {
fputs ($fp, $header . $req);
while (!feof($fp)) {
$res = fgets ($fp, 1024);
if (strcmp ($res, "VERIFIED") == 0) {
function XMLsave($xml, $file) {
    $success = $xml->asXML($file) === TRUE;
    
    if (defined('GSCHMOD')) {
        return $success && chmod($file, GSCHMOD);
    } else {
        return $success && chmod($file, 0755);
    }
}

// PAYMENT VALIDATED & VERIFIED!
$NUSR = strtolower($_POST['custom']);
$usrfile    = $NUSR . '.xml';
$password = $_POST['option_selection1'];
$NEMAIL = $_POST['payer_email'];

// create user xml file - This coding was mostly taken from the 'settings.php' page..
    $xml = new SimpleXMLElement('<item></item>');
    $xml->addChild('Username', $NUSR);
    $xml->addChild('Password', $password);
    $xml->addChild('EmailAddress', $NEMAIL );
    $xml->addChild('Comments', "");
    $xml->addChild('Ratings', "");
    $xml->addChild('Chatbox', "");
    if (! XMLsave($xml, '../data/site-users/' . $usrfile) ) {
        $error ='File Not Created';
    }

$to      = $email;
$subject = 'YourDomain.com Membership | Login Credentials';
$message = '

Thank you for your purchase

Your account information
-------------------------
Email: '.$email.'
Password: '.$password.'
-------------------------

You can now login at http://yourdomain.com/';
$headers = 'From:info@yourdomain.com' . "\r\n";
}

else if (strcmp ($res, "INVALID") == 0) {

// PAYMENT INVALID & INVESTIGATE MANUALY!

}
}
fclose ($fp);
}
?>

Sign up form code:
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

        <label style="font-weight:bold">Username: </label><input type="text" name="custom" id="username" style="width:220px;padding:2px;margin-bottom:5px;margin-left:5px;"/><br />
        <label style="font-weight:bold">Password:</label>
        <input type="hidden" name="on1" value="Password" />
        <input type="text" name="os1" maxlength="200" style="width:220px;padding:2px;margin-left:5px;" />
        <br />
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="D7Y73JX2V9EES">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="MembershipS">
<input type="hidden" name="amount" value="3.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://yourdomain.com/register-success/">
<input type="hidden" name="cancel_return" value="http://yourdomain.com/register-cancel/">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="margin-top:15px;margin-left:80px;">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Reply
#74
Updated this plugin to 2.6 and its still showing as 2.5 in the plugin list after a refresh?
Pete

Chefbyte Services
Reply
#75
chefbyte Wrote:Updated this plugin to 2.6 and its still showing as 2.5 in the plugin list after a refresh?
Looks like I just forgot to update the version in the plugin file. It is in fact 2.6
Reply




Users browsing this thread: 1 Guest(s)