. .
pragmaMx Support Forum 26 Mai 2012, 01:07:51 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: Block Schnelle Anmeldung / Block fast register  (Gelesen 3115 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« am: 13 August 2011, 12:32:36 »

 Hello @ all community  smile
I come back because the fast register block for pmx 1.12 not works.
 I also want to add the website into this quick register block if it's possible
You can this the error on http://www.trade-zone.fr home page
i try this Algebre code :
Code: [Select]  
<?php
/**
 * This file is part of 
 * pragmaMx - Web Content Management System.
 * Copyright by pragmaMx Developer Team - http://www.pragmamx.org
 *
 * pragmaMx is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * $Revision: 1.5 $
 * $Author: tora60 $
 * $Date: 2007/12/22 14:15:56 $
 */

defined('mxMainFileLoaded') or die('access denied');

$mxblockcache false;
$module_name "User_Registration";
mxGetLangfile("Your_Account");
$blockfiletitle _QUICKREGISTER ;
$content "";
include_once(
PMX_SYSTEM_DIR DS "mx_userfunctions.php");


$userconfig load_class('Userconfig');
$pvs['uid'] = (empty($pvs['uid'])) ? $pvs['uid'];
    
$pvs['uname'] = (empty($pvs['uname'])) ? '' $pvs['uname'];
    
$pvs['user_bday'] = (empty($pvs['user_bday'])) ? '0000-00-00' $pvs['user_bday'];

    if (
function_exists("vkpUserform_option")) {
        return 
vkpUserform_option($pvs);
    }
    
$cbday vkpBdaySelect($pvs['user_bday']);
    if (
$userconfig->yaproofdate) {
        
$cbday .= ' ' _REQUIRED '<br />' _APPROVEDATE1 "&nbsp;<strong>" $userconfig->yaproofdate "</strong>&nbsp;" _APPROVEDATE2;
    }
if (!
mxIsUser() && (mxModuleAllowed('User_Registration')) ) {
  
##############################################################  
$content =  "<form name=\"Register\" action=\"modules.php?name=" $module_name "\"  method=\"post\">\n"

          
"<table cellspacing=\"1\" cellpadding=\"3\" class=\"bgcolor1\">"
          
"<tr valign=\"top\"><th colspan=\"4\" class=\"bgcolor2 bigger\">" _YA_ACCOUNTDATA "</th></tr>"
          
"<tr valign=\"top\"><td width=\"20%\" class=\"bgcolor2\"><b>" _NICKNAME ":</b></td><td colspan=\"3\" class=\"bgcolor3\">\n"
          
"<input type=\"text\" name=\"uname\" size=\"50\" maxlength=\"25\" value=\"" . ((isset($oldvals['uname'])) ? mxentityquotes($oldvals['uname']) : "") . "\" />&nbsp;&nbsp;<font class=\"tiny\">" _REQUIRED "</font></td></tr>\n";

$content .= "<tr valign=\"top\"><td class=\"bgcolor2\"><b>" _UREALEMAIL ":</b></td><td colspan=\"3\" class=\"bgcolor3\">\n"
     
"<input type=\"text\" name=\"email\" size=\"50\" maxlength=\"100\" value=\"" . ((isset($oldvals['email'])) ? mxentityquotes($oldvals['email']) : "") . "\" />&nbsp;&nbsp;<font class=\"tiny\">" _REQUIRED "</font><br /><span class=\"tiny\">" _EMAILNOTPUBLIC "</span></td></tr>\n"
          
"<tr valign=\"top\"><td width=\"20%\" class=\"bgcolor2\"><b>" _YA_UBDAY ":</b></td><td colspan=\"3\" width=\"80%\" class=\"bgcolor3\">\n" $cbday "</td></tr>\n";
    
    switch (
$userconfig->register_option) {
        case 
1:
        case 
3:
        case 
4:
            
$xpass makepass();
            
$msg _PASSWILLSEND;
            
$content .=  "<tr valign=\"top\"><td class=\"bgcolor2\">
        <b>" 
_DESIREDPASS ":</b>
        <input type=\"hidden\" name=\"xpass\" value=\"" 
$xpass "\" />
        </td><td colspan=\"3\" class=\"bgcolor3\">\n
        <input type=\"password\" name=\"pass\" size=\"22\" maxlength=\"20\" value=\"\" />&nbsp;
        <input type=\"password\" name=\"vpass\" size=\"22\" maxlength=\"20\" value=\"\" />&nbsp; " 
sprintf(_OPTIONAL1$userconfig->minpass) . "\n<br />
        <span class=\"tiny\">" 
_OPTIONAL2 " " _YA_PWVORSCHLAG ":&nbsp;" $xpass "</span>
        </td></tr>\n"
;
            break;
        case 
2:
            
$msg _YA_REG_MAILMSG2;
            break;
    }

   
// echo vkpUserform($oldvals);
    /**
     * START Benutzer muessen den AGB zustimmen - 2005-18-05  (RtR)
     */
    
if ($userconfig->agb_content) {
        
$content .=  "<tr valign=\"top\"><td width=\"20%\" class=\"bgcolor2\"><strong>" _EULA ":</strong></td><td colspan=\"3\" class=\"bgcolor3\">\n";
        switch (
$userconfig->agb_content) {
            case 
"1":
                
$agb_out $userconfig->agb_content_sub1;
                
$moduleslist sql_query("SELECT DISTINCT artid FROM " $prefix "_seccont WHERE artid='$agb_out'");
                list(
$linkartid) = sql_fetch_row($moduleslist);
                if (!empty(
$linkartid)) {
                    
$linkout "modules.php?name=Sections&amp;op=viewarticle&amp;artid=$linkartid";
                } else {
                    
$linkout "#>";
                }
                break;
            case 
"2":
                
$agb_out $userconfig->agb_content_sub2;
                
$moduleslist sql_query("SELECT DISTINCT pid FROM " $prefix "_pages WHERE pid='$agb_out'");
                list(
$linkpid) = sql_fetch_row($moduleslist);
                if (!empty(
$linkpid)) {
                    
$linkout "modules.php?name=Content&amp;pid=$linkpid";
                } else {
                    
$linkout "#>";
                }
                break;
            case 
"3":
                
$agb_out $userconfig->agb_content_sub3;
                
$moduleslist sql_query("SELECT DISTINCT title FROM " $prefix "_modules WHERE mid='$agb_out'");
                list(
$linktitle) = sql_fetch_row($moduleslist);
                if (!empty(
$linktitle)) {
                    
$linkout "modules.php?name=$linktitle";
                } else {
                    
$linkout "#>";
                }
                break;
            default:
                
$linkout "#>";
        }
        
$content .= "<input type=\"checkbox\" name=\"readrules\" value=\"1\" /> " _IHAVE " <a href=\"{$linkout}\" target=\"_blank\" title=\"" _EULA " " _SHOWIT "\"><strong>" _EULA "</strong></a> " _READDONE " " _REQUIRED "</font></td></tr>\n";
    }
    
/**
     * ENDE Benutzer muessen den AGB zustimmen
     */
    
$content .= "<tr class=\"bgcolor2\"><td>\n<input type=\"submit\" value=\"" _NEWUSER "\" />&nbsp;&nbsp;";
    
$content .= "</td>"
     
"<td colspan=\"3\">" $msg "\n"
     
"<input type=\"hidden\" name=\"op\" value=\"confirm\" />\n"
     
"<input type=\"hidden\" name=\"name\" value=\"" $module_name "\" />\n"
     
"<input type=\"hidden\" name=\"check\" value=\"" md5(mxsessiongetvar("newusercheck")) . "\" />\n"
     
"</td></tr></table>\n"
     
"</form>";
    
$content .= '</div>'// tabs-panel
    
    
  ##############################################################  
    
}

switch (
$GLOBALS['currentlang']){ 
    case 
"french":
    
define("_QUICKREGISTER""Eenregistrement rapide");
    break;

    case 
"german":
    
define("_QUICKREGISTER""Eenregistrement rapide");
    break;

    case 
"turkish":
    
define("_QUICKREGISTER""Eenregistrement rapide");
    break;

    default :
    
define("_QUICKREGISTER""Quick Register");
}
?>



Thanks @ all for your support
 regards
Gespeichert

comedi
Moderator
*****
Offline Offline

Geschlecht: Männlich
Beiträge: 669

comedi


WWW
« Antworten #1 am: 14 August 2011, 15:41:48 »

Hello shorty,  Smiley

the block works for me.

Turn you at times, the minimum age for users from.

If it works then add in the Your_Account module, the two missing language constants (_APPROVEDATE1 and _APPROVEDATE2) and the minimum turn on again. I have not found these two constants and language?


EDIT://
Here you can look. I included only the language constants.
« Letzte Änderung: 14 August 2011, 15:53:11 von comedi » Gespeichert

LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.1 --- PHP-Version: 5.2.14
MySQL-Version: 5.0.67 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #2 am: 15 August 2011, 04:44:38 »

thanks for your help  smile
i will try to edit language files...
Gespeichert

shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #3 am: 16 August 2011, 02:37:17 »

I've added the string langage files in my lang file, but the systel said me "_QUICKREGISTER" is a function already running, it's works if i deletete this
Code: [Select]  
switch ($GLOBALS['currentlang']){
    case "french":
    define("_QUICKREGISTER", "Inscription gratuite");
    break;

    case "german":
    define("_QUICKREGISTER", "Eenregistrement rapide");
    break;

    case "turkish":
    define("_QUICKREGISTER", "Eenregistrement rapide");
    break;

    default :
    define("_QUICKREGISTER", "Quick Register");
}

I'm sure it's not a solution to delete this and it's not works, user can't see the calendar for choosing birthdate...

 Thanks for your support
« Letzte Änderung: 16 August 2011, 02:44:43 von shorty » Gespeichert

comedi
Moderator
*****
Offline Offline

Geschlecht: Männlich
Beiträge: 669

comedi


WWW
« Antworten #4 am: 16 August 2011, 10:44:58 »

Hello,

the fault lies with you in a css file is there with you ----- style="display: none;"----, why does not the field for the input.


Edit://

It then looks at you when ---- style="display: none;"---- is removed. Javascript from.


* TZ.jpg (54.88 KB, 734x424 - angeschaut 152 Mal.)
« Letzte Änderung: 16 August 2011, 11:10:33 von comedi » Gespeichert

LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.1 --- PHP-Version: 5.2.14
MySQL-Version: 5.0.67 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de
shorty
weiss was
***
Offline Offline

Beiträge: 103


WWW
« Antworten #5 am: 20 Oktober 2011, 05:47:11 »

 ok,now it's allright, thanks for your help.  cul
but now  can't display birthdate due to a java conflict. crash
« Letzte Änderung: 20 Oktober 2011, 06:01:18 von shorty » Gespeichert

comedi
Moderator
*****
Offline Offline

Geschlecht: Männlich
Beiträge: 669

comedi


WWW
« Antworten #6 am: 20 Oktober 2011, 10:07:00 »

Moin shorty,  Smiley

It is probably the same problem as here.
Gespeichert

LG Michael


Kein Support über PN, Mail oder ICQ!

CMS-Version: pragmaMx 1.12.1 --- PHP-Version: 5.2.14
MySQL-Version: 5.0.67 --- Server-Version: Apache 2.2.4

Wer den Weg zum Ziel kennt - dann aber Umwege nimmt - muss sich nicht wundern wenn er sein Ziel nicht findet!


Gemeinschaftseite: www.pragmamx-erweiterungen.de
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
design by hENNE, layout based on YAML