Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
mike63740
Worker
Worker



Joined: Jun 21, 2010
Posts: 102

PostPosted: Fri Jun 08, 2012 6:58 pm Reply with quote

When a visitor click the link: Register. I want them to see a message after the Children's Online Privacy Protection screen. A warning message. A message to those who should not register.

Require Admin Approval is set to: Yes

This message should be on the registration screen at the top somewhere before or after:
User Registration
* = (required)


Thank you.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Fri Jun 08, 2012 9:03 pm Reply with quote

Under the continue button you found this:

"The site Administrator will review your application and send you an activation link if you are approved."

You can move it to "User Registration * = (required) "

open modules/Your_Account/public/new_user.php

search:
Code:
echo '<p class="thick">* = ' . _REQUIRED . '</p>';

after add:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick">' . _WAITAPPROVAL . '</p>';
}
 
View user's profile Send private message
mike63740







PostPosted: Fri Jun 08, 2012 9:21 pm Reply with quote

Done!
It works well, but there are two lines that reads the same message. "The site Administrator will review your application and send you an activation link if you are approved."

How can I change or add to one of them.

Thanks.
 
mike63740







PostPosted: Fri Jun 08, 2012 9:47 pm Reply with quote

I found: "The site Administrator will review your application and send you an activation link if you are approved." text in the lang-english.php file.

I can now add an extra line of text above this line. I then want to move it to the top without having a duplicate.

Thanks.
 
mike63740







PostPosted: Fri Jun 08, 2012 10:01 pm Reply with quote

neralex, Thank you.

I am content. Smile I just added an extra line above: "The site Administrator will review your application and send you an activation link if you are approved."
There is no need to move it above continue.

Thanks again.
 
mike63740







PostPosted: Fri Jun 08, 2012 10:41 pm Reply with quote

How can I change the font color for both or just the top line?

xxxxxxxxxx A message to those who should not register. xxxxxxxxxx<br />The site Administrator will review your application and send you an activation link if you are approved.

Thanks.
 
mike63740







PostPosted: Sat Jun 09, 2012 12:39 am Reply with quote

I believe I am done with this topic. I set three colors.

The first and second was for the new added line for those who should not register. I used one color for the first sentence of the first line, and the second color for the second sentence of the first line.

The third color I used was to restore the rest of the page back to the default color. Which is black.

It looks very, very good. Very Happy

This is the code:
<font color="#0000FF">xxxxxxxxxx A message to those who should not register.<font color="#FF0000"> xxxxxxxxxx<br /><font color="#000000">The site Administrator will review your application and send you an activation link if you are approved.

Please post if I should alter my codes.

Thanks
 
neralex







PostPosted: Sat Jun 09, 2012 4:42 am Reply with quote

use a span with styles for add colors:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick"><span style="color:#0000FF;">YOURTEXT</span><br /><span style="color:#FF0000;">' . _WAITAPPROVAL . '</span></p>';
}
 
mike63740







PostPosted: Sat Jun 09, 2012 6:33 pm Reply with quote

modules/Your_Account/public/new_user.php

Lines:
Code:
39 echo '<fieldset><legend><span class="thick">' . _REGNEWUSER . '</span></legend>';

40 echo '<p class="thick">* = ' . _REQUIRED . '</p>';
41
42 if ($ya_config['requireadmin'] == 1) {
43    echo '<p class="thick"><span style="color:#0000FF;">YOURTEXT</span><br /><span style="color:#FF0000;">' . _WAITAPPROVAL . '</span></p>';
44 }
45
41 echo '<p><label for="ya_username">' . _NICKNAME . ': *</label>';

When I insert:

Code:
if ($ya_config['requireadmin'] == 1) { 

   echo '<p class="thick"><span style="color:#0000FF;">YOURTEXT</span><br /><span style="color:#FF0000;">' . _WAITAPPROVAL . '</span></p>';
}

on line 42, it moves to the top. Nice!

The same message or lines remains under Continue.

I want to move it to the top without having a duplicate.

Thanks.
 
neralex







PostPosted: Sun Jun 10, 2012 5:45 am Reply with quote

at the beginning of this file you found this:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   $next = _WAITAPPROVAL . '<br /><br />';
} else {

change it to:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   //$next = _WAITAPPROVAL . '<br /><br />'; // old
   $next = ''; // new
} else {


Last edited by neralex on Sun Jun 10, 2012 5:48 pm; edited 1 time in total 
mike63740







PostPosted: Sun Jun 10, 2012 2:42 pm Reply with quote

Instead of this:

neralex wrote:

open modules/Your_Account/public/new_user.php

search:
Code:
echo '<p class="thick">* = ' . _REQUIRED . '</p>';

after add:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick">' . _WAITAPPROVAL . '</p>';
}


I did this:

search:
Code:
echo '<fieldset><legend><span class="thick">' . _REGNEWUSER . '</span></legend>';

before add:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick">' . _WAITAPPROVAL . '</p>';
}


Below becomes the first two lines in the User Application. I prefer here than in the middle. After the fact.

mike63740 wrote:
This is the code:
<font color="#0000FF">xxxxxxxxxx A message to those who should not register.<font color="#FF0000"> xxxxxxxxxx<br /><font color="#000000">The site Administrator will review your application and send you an activation link if you are approved.


I am working on this:

neralex wrote:
use a span with styles for add colors:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick"><span style="color:#0000FF;">YOURTEXT</span><br /><span style="color:#FF0000;">' . _WAITAPPROVAL . '</span></p>';
}


neralex, things look good. Smile
 
mike63740







PostPosted: Sun Jun 10, 2012 11:46 pm Reply with quote

neralex, this will be the first time I tried:

neralex wrote:
use a span with styles for add colors:

Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick"><span style="color:#0000FF;">YOURTEXT</span><br /><span style="color:#FF0000;">' . _WAITAPPROVAL . '</span></p>';
}


To replace this:

mike63740 wrote:
I set three colors.

The first and second was for the new added line for those who should not register. I used one color for the first sentence of the first line, and the second color for the second sentence of the first line.

The third color I used was to restore the rest of the page back to the default color. Which is black.

This is the code:
<font color="#0000FF">xxxxxxxxxx A message to those who should not register.<font color="#FF0000"> xxxxxxxxxx<br /><font color="#000000">The site Administrator will review your application and send you an activation link if you are approved.


This is how the User Application look:

If ---------- ---------- ---------- never ---------- or ---------- your ----------, PLEASE DO NOT REGISTER.
The site Administrator will review your application and send you an activation link if you are approved.

New User Registration
* = (required)

neralex, the purpose of this reply is to find out if any thing changed as to how I should replace colors or leave as is.


Would you like to change the use a span with styles for add colors code before I try it?

Thank you.
 
neralex







PostPosted: Mon Jun 11, 2012 4:01 am Reply with quote

you must close the tags, if you want use a new color.

for example:
Code:
echo '<span style="color:#0000FF;">'; // open a span

echo '   your 1st text';
echo '</span>'; // close span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open a span
echo '   your 2nd text';
echo '</span>'; // close span


if you want the 3rd text write with the default color, then don't use a span. you can write it after the last closed span.

Code:
echo '<span style="color:#0000FF;">'; // open 1st span

echo '   your 1st text';
echo '</span>'; // close 1st span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open 2nd span
echo '   your 2nd text';
echo '</span>'; // close 2nd span
echo '<br />' // linebreak
echo 'your 3rd text';


now we want write it together with the p tag in one line

Code:
echo '<p class="thick"><span style="color:#0000FF;">your 1st text</span><br /><span style="color:#FF0000;">your 2nd text</span><br />' . _WAITAPPROVAL . '</p>';


Smile


Last edited by neralex on Wed Jun 13, 2012 3:53 am; edited 1 time in total 
mike63740







PostPosted: Mon Jun 11, 2012 1:54 pm Reply with quote

Remember this:

mike63740 wrote:
I found: "The site Administrator will review your application and send you an activation link if you are approved." text in the lang-english.php file.

I can now add an extra line of text above this line. I then want to move it to the top without having a duplicate.


This is where I changed the colors to blue, red and restored the default color black.

mike63740 wrote:
This is the code:
<font color="#0000FF">xxxxxxxxxx A message to those who should not register.<font color="#FF0000"> xxxxxxxxxx<br /><font color="#000000">The site Administrator will review your application and send you an activation link if you are approved.


What harm does this do?
Why must I change it?

Thanks.
 
neralex







PostPosted: Mon Jun 11, 2012 4:56 pm Reply with quote

you have written an incorrect codeline with your font tags. you must close the html tags, before you start with a new tag. its an html rule. in your line with the font tag you don't have close the tags. this comes with errors in the validation of your html-code!

the font tag is an very old tag. forget this tag. if you want set colors, then don't use color="#xxx"! use style="color:#xxx;" and set css styles in your tags. the best choice of your problem inside your file is a span tag with a color style ... not more Smile

notice:

Code:
' . _WAITAPPROVAL . '

this is an language constant. for all other languages give it an separatly file, with the same constant. so is it possible to use modules with different languages.

Smile
 
mike63740







PostPosted: Mon Jun 11, 2012 9:49 pm Reply with quote

Step 1

I went back to this file:
/modules/Your_Account/language/lang-english.php

Line 480 Reads:
define('_WAITAPPROVAL','<font color="#0000FF">If ---------- ---------- ---------- never ---------- or ---------- your ----------,<font color="#FF0000"> PLEASE DO NOT REGISTER.<br /><font color="#000000">The site Administrator will review your application and send you an activation link if you are approved.');

Line 480 has been restored to default:
define('_WAITAPPROVAL','The site Administrator will review your application and send you an activation link if you are approved.');

This is how the User Application look:

The site Administrator will review your application and send you an activation link if you are approved.

New User Registration
* = (required)

This is all good.

Now lets get this line back in without any colors:
If ---------- ---------- ---------- never ---------- or ---------- your ----------, PLEASE DO NOT REGISTER.

Once the line appear above, "The site Administrator will review your application and send you an activation link if you are approved."
I will work on the colors.

neralex, thanks for all of your support.
 
mike63740







PostPosted: Mon Jun 11, 2012 9:58 pm Reply with quote

Step 2

Should I put this line:
If ---------- ---------- ---------- never ---------- or ---------- your ----------, PLEASE DO NOT REGISTER.

Back in:
/modules/Your_Account/language/lang-english.php?
 
neralex







PostPosted: Tue Jun 12, 2012 10:03 am Reply with quote

Why are you doing this so complicated?

neralex wrote:
at the beginning of this file you found this:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   $next = _WAITAPPROVAL . '<br /><br />';
} else {

change it to:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   //$next = _WAITAPPROVAL . '<br /><br />'; // old
   $next = ''; // new
} else {

neralex wrote:
you must close the tags, if you want use a new color.

for example:
Code:
echo '<span style="color:#0000FF;">'; // open a span

echo '   your 1st text';
echo '</span>'; // close span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open a span
echo '   your 2nd text';
echo '</span>'; // close span


if you want the 3rd text write with the default color, then don't use a span. you can write it after the last closed span.

Code:
echo '<span style="color:#0000FF;">'; // open 1st span

echo '   your 1st text';
echo '</span>'; // close 1st span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open 2nd span
echo '   your 2nd text';
echo '</span>'; // close 2nd span
echo '<br />' // linebreak
echo 'your 3rd text';


now we want write it together with the p tag in one line

Code:
echo '<p class="thick"><span style="color:#0000FF;">your 1st text</span><br /><span style="color:#FF0000;">your 2nd text</span><br />' . _WAITAPPROVAL . '</p>';


Smile


Code:
$ text1 = 'If ---------- ---------- ---------- never ---------- or ---------- your ----------';

$ text2 = 'PLEASE DO NOT REGISTER.';
if ($ya_config['requireadmin'] == 1) {
   echo '<p class="thick"><span style="color:#0000FF;">'. $ text1 . '</span><br /><span style="color:#FF0000;">'. $ text2 . '</span><br />' . _WAITAPPROVAL . '</p>';
}


Play with the snippets. Smile


Last edited by neralex on Wed Jun 13, 2012 3:55 am; edited 2 times in total 
mike63740







PostPosted: Tue Jun 12, 2012 12:46 pm Reply with quote

Step 3

I completed this from your previous post:

neralex wrote:
at the beginning of this file you found this:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   $next = _WAITAPPROVAL . '<br /><br />';
} else {

change it to:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   //$next = _WAITAPPROVAL . '<br /><br />'; // old
   $next = ''; // new
} else {


I have no ideal where to put this code:

neralex wrote:
you must close the tags, if you want use a new color.

for example:
Code:
echo '<span style="color:#0000FF;">'; // open a span

echo '   your 1st text';
echo '</span>'; // close span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open a span
echo '   your 2nd text';
echo '</span>'; // close span


if you want the 3rd text write with the default color, then don't use a span. you can write it after the last closed span.

Code:
echo '<span style="color:#0000FF;">'; // open 1st span

echo '   your 1st text';
echo '</span>'; // close 1st span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open 2nd span
echo '   your 2nd text';
echo '</span>'; // close 2nd span
echo '<br />' // linebreak
echo 'your 3rd text';


Tell me which file and what line.

Thanks.
 
mike63740







PostPosted: Tue Jun 12, 2012 1:25 pm Reply with quote

neralex wrote:
Why are you doing this so complicated?


I am sorry if it seems like I complicate things. Maybe I do, but not intentionally. Half the time I have no idea what I am doing.
The instructions I get from Raven support team, I can follow, though I may have no idea of the coding.

As an end user, I just want the CMS to work for me.

Thanks neralex for your patience.
 
neralex







PostPosted: Tue Jun 12, 2012 3:23 pm Reply with quote

No problem, I'm a end user, too Smile

this is an example to show, where you must close the html tags and where you can put your own text in the code.
mike63740 wrote:
I have no ideal where to put this code:

neralex wrote:
you must close the tags, if you want use a new color.

for example:
Code:
echo '<span style="color:#0000FF;">'; // open a span

echo '   your 1st text';
echo '</span>'; // close span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open a span
echo '   your 2nd text';
echo '</span>'; // close span


if you want the 3rd text write with the default color, then don't use a span. you can write it after the last closed span.

Code:
echo '<span style="color:#0000FF;">'; // open 1st span

echo '   your 1st text';
echo '</span>'; // close 1st span
echo '<br />' // linebreak
echo '<span style="color:#FF0000;">'; // open 2nd span
echo '   your 2nd text';
echo '</span>'; // close 2nd span
echo '<br />' // linebreak
echo 'your 3rd text';


Tell me which file and what line.

Thanks.



neralex wrote:
Under the continue button you found this:

"The site Administrator will review your application and send you an activation link if you are approved."

You can move it to "User Registration * = (required) "

open modules/Your_Account/public/new_user.php

search:
Code:
echo '<p class="thick">* = ' . _REQUIRED . '</p>';

after add:
Code:
if ($ya_config['requireadmin'] == 1) {

   echo '<p class="thick">' . _WAITAPPROVAL . '</p>';
}


here can you set now the new codline:

Code:
$text1 = 'If ---------- ---------- ---------- never ---------- or ---------- your ----------';

$text2 = 'PLEASE DO NOT REGISTER.';
if ($ya_config['requireadmin'] == 1) {
   echo '<p class="thick"><span style="color:#0000FF;">'. $text1 . '</span><br /><span style="color:#FF0000;">'. $text2 . '</span><br />' . _WAITAPPROVAL . '</p>';
}


mike63740 wrote:
I can follow, though I may have no idea of the coding.


its a good point to start learning html and a little bit of php. PHPNuke or later the RavenNuke was for me best school to learn using or writing html and php. the best one is, try it self. play with the lines and variables Smile

RavensScripts


Last edited by neralex on Wed Jun 13, 2012 3:51 am; edited 2 times in total 
mike63740







PostPosted: Tue Jun 12, 2012 6:05 pm Reply with quote

I still don't know exactly where to place this code. Be a little more specific.

I tried two places and got this message:

The website cannot display the page
HTTP 500

neralex wrote:

here can you set now the new codeline:

Code:
$ text1 = 'If ---------- ---------- ---------- never ---------- or ---------- your ----------';

$ text2 = 'PLEASE DO NOT REGISTER.';
if ($ya_config['requireadmin'] == 1) {
   echo '<p class="thick"><span style="color:#0000FF;">'. $ text1 . '</span><br /><span style="color:#FF0000;">'. $ text2 . '</span><br />' . _WAITAPPROVAL . '</p>;
}


Thanks.
 
mike63740







PostPosted: Tue Jun 12, 2012 11:21 pm Reply with quote

Step 4

I went back into this file:
/modules/Your_Account/language/lang-english.php

Line 480 Reads:
define('_WAITAPPROVAL','The site Administrator will review your application and send you an activation link if you are approved.');

Line 480 Changed to:
define('_WAITAPPROVAL','<span style="color:#0000FF;">If ---------- ---------- ---------- never ---------- or ---------- your ----------</span>,<span style="color:#FF0000;"> PLEASE DO NOT REGISTER</span>.<br />The site Administrator will review your application and send you an activation link if you are approved.');

This is how the User Application looks:

If ---------- ---------- ---------- never ---------- or ---------- your ----------, PLEASE DO NOT REGISTER.
The site Administrator will review your application and send you an activation link if you are approved.

New User Registration
* = (required)

neralex, will this work?

Thanks.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Jun 13, 2012 1:25 am Reply with quote

Will it work?
Why not try it and see!
You can do it that way and it should work but it is usually considered bad practise to add HTML markup in the languuage files, which is why neralex suggested a different approach.
 
View user's profile Send private message Send e-mail
neralex







PostPosted: Wed Jun 13, 2012 3:30 am Reply with quote

I believe i have forgot remove two freespaces in 1st and 2nd text variable and Guardian is right. If is it possible, then do not use an html markup in the language files.

open modules/Your_Account/public/new_user.php

search:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   $next = _WAITAPPROVAL . '<br /><br />';
} else {

change it to:
Code:
if ($ya_config['requireadmin'] == 1) {

   title(_USERAPPLOGIN);
   //$next = _WAITAPPROVAL . '<br /><br />'; // old
   $next = ''; // new
} else {


search:
Code:
echo '<p class="thick">* = ' . _REQUIRED . '</p>';

before add:
Code:
$text1 = 'If ---------- ---------- ---------- never ---------- or ---------- your ----------';

$text2 = 'PLEASE DO NOT REGISTER.';
if ($ya_config['requireadmin'] == 1) {
   echo '<p class="thick"><span style="color:#0000FF;">'. $text1 . '</span><br /><span style="color:#FF0000;">'. $text2 . '</span><br />' . _WAITAPPROVAL . '</p>';
}


save & done

this is the complete file:
Code:
<?php

/**************************************************************************/
/* RN Your Account: Advanced User Management for RavenNuke
/* =======================================================================*/
/*
/* Copyright (c) 2008-2011, RavenPHPScripts.com   http://www.ravenphpscripts.com
/*
/* This program 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, version 2 of the license.
/*
/**************************************************************************/
/* RN Your Account is the based on:
/*  CNB Your Account http://www.phpnuke.org.br
/*  NSN Your Account by Bob Marion, http://www.nukescripts.net
/**************************************************************************/
if (!defined('RNYA')) {
   header('Location: ../../../index.php');
   die();
}
include_once 'header.php';
$next = '';
if ($ya_config['requireadmin'] == 1) {
// mike start
   title(_USERAPPLOGIN);
//    $next = _WAITAPPROVAL . '<br /><br />'; // old
      $next = ''; // new
// mike end
} else {
   title(_USERREGLOGIN);
   if ($ya_config['useactivate'] == 1) $next = _YOUWILLRECEIVE . '<br /><br />';
}
OpenTable();
echo '<form id="newUser" class="cmxform" action="modules.php?name=' . $module_name . '" method="post">';
if (!empty($errormsg)) {
   echo '<p><span class="thick">Input Errors:</span> ' . $errormsg . '</p>';
} else {
   $ya_username = $ya_realname = $ya_user_email = $ya_user_email2 = $user_password2 = $user_password = $femail = $user_website = $user_aim = $user_icq = $user_msnm = $user_yim = $user_from = $user_occ = $user_interests = $user_sig = $bio = '';
   $newsletter = $user_viewemail = 0;
   $user_allow_viewonline = 1;
}
echo '<fieldset><legend><span class="thick">' . _REGNEWUSER . '</span></legend>';
// mike start
$text1 = 'If ---------- ---------- ---------- never ---------- or ---------- your ----------';
$text2 = 'PLEASE DO NOT REGISTER.';
if ($ya_config['requireadmin'] == 1) {
   echo '<p class="thick"><span style="color:#0000FF;">'. $text1 . '</span><br /><span style="color:#FF0000;">'. $text2 . '</span><br />' . _WAITAPPROVAL . '</p>';
}
// mike end
echo '<p class="thick">* = ' . _REQUIRED . '</p>';
echo '<p><label for="ya_username">' . _NICKNAME . ': *</label>';
echo '<input type="text" id="ya_username" name="ya_username" size="15" maxlength="' . $ya_config['nick_max'] . '" value="' . $ya_username . '" />';
echo '<span class="tiny"><span id="userAvailability"></span></span>';
echo '<br /><label for="ya_nicklength">&nbsp;</label><input id="ya_nicklength" name="ya_nicklength" type="hidden" />';
echo '<span class="tiny">(' . _YA_NICKLENGTH . ')</span>';
echo '</p>';
if ($ya_config['userealname'] > 1) {
   echo '<p><label for="ya_realname">' . _UREALNAME . ':';
   if ($ya_config['userealname'] == 3 or $ya_config['userealname'] == 5) {
      echo ' *';
   }
   echo '</label><input type="text" id="ya_realname" name="ya_realname" size="40" maxlength="60"  value="' . $ya_realname . '" /></p>';
}
echo '<p><label for="ya_user_email">' . _EMAIL . ': *</label><input type="text" id="ya_user_email" name="ya_user_email" size="40" maxlength="255" value="' . $ya_user_email . '" />
    <span id="emailAvailability" class="error"></span></p>';
if ($ya_config['doublecheckemail'] == 1) {
   echo '<p><label for="ya_user_email2">' . _RETYPEEMAIL . ': *</label><input type="text" id="ya_user_email2" name="ya_user_email2" size="40" maxlength="255" value="' . $ya_user_email2 . '" /></p>';
} else {
   echo '<input type="hidden" name="ya_user_email2" value="ya_user_email" />';
}
echo $ya_CustomFields['HTML'];
$pass_size = intval($ya_config['pass_max']) +3;
echo '<p><label for="user_password">' . _PASSWORD . ':</label><input id="user_password" name="user_password" type="password" size="' . $pass_size . '" maxlength="' . $ya_config['pass_max'] . '" value="' . $user_password . '" /></p>';
//echo '<label for="ya_passlength">&nbsp;</label><input id="ya_passlength" name="ya_passlength" type="hidden" />';
echo '<script type="text/javascript">
   jQuery(\'#user_password\').pstrength({minChar: '.$ya_config['pass_min'].', minCharText: \''._YA_PASSLENGTH.' ('._BLANKFORAUTO.')\',
   verdicts: [\'Weak\', \'Not Bad\', \'OK\', \'Strong\', \'Very Strong\']
   });
   </script>';
//echo '</p>';
echo '<p><label for="user_password2">' . _RETYPEPASSWORD . ':</label><input id="user_password2" name="user_password2" type="password" size="' . $pass_size . '" maxlength="' . $ya_config['pass_max'] . '" value="' . $user_password2 . '" /></p>';
#die($ya_config['useactivate']);
$yaroo = getYAROO($ya_config['usefakeemail']);
if ($ya_config['usefakeemail'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="femail">' . _UFAKEMAIL . ':' . $yaroo . '</label><input id="femail" type="text" name="femail" value="' . $femail . '" size="40" maxlength="255" /><br />' . _EMAILPUBLIC . '</p>';
$yaroo = getYAROO($ya_config['usewebsite']);
if ($ya_config['usewebsite'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_website">' . _YOURHOMEPAGE . ':' . $yaroo . '</label><input type="text" id="user_website" name="user_website" value="' . $user_website . '" size="40" maxlength="255" /></p>';
$yaroo = getYAROO($ya_config['useinstantmessaim']);
if ($ya_config['useinstantmessaim'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_aim">' . _YAIM . ':' . $yaroo . '</label><input type="text" id="user_aim" name="user_aim" value="' . $user_aim . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['useinstantmessicq']);
if ($ya_config['useinstantmessicq'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_icq">' . _YICQ . ':' . $yaroo . '</label><input type="text" id="user_icq" name="user_icq" value="' . $user_icq . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['useinstantmessmsn']);
if ($ya_config['useinstantmessmsn'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_msnm">' . _YMSNM . ':' . $yaroo . '</label><input type="text" id="user_msnm" name="user_msnm" value="' . $user_msnm . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['useinstantmessyim']);
if ($ya_config['useinstantmessyim'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_yim">' . _YYIM . ':' . $yaroo . '</label><input type="text" id="user_yim" name="user_yim" value="' . $user_yim . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['uselocation']);
if ($ya_config['uselocation'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_from">' . _YLOCATION . ':' . $yaroo . '</label><input type="text" id="user_from" name="user_from" value="' . $user_from . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['useoccupation']);
if ($ya_config['useoccupation'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_occ">' . _YOCCUPATION . ':' . $yaroo . '</label><input type="text" id="user_occ" name="user_occ" value="' . $user_occ . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['useinterests']);
if ($ya_config['useinterests'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_interests">' . _YINTERESTS . ':' . $yaroo . '</label><input type="text" id="user_interests" name="user_interests" value="' . $user_interests . '" size="30" maxlength="100" /></p>';
$yaroo = getYAROO($ya_config['usenewsletter']);
if ($ya_config['usenewsletter'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="newsletter">' . _RECEIVENEWSLETTER . ':' . $yaroo . '</label><select id="newsletter" name="newsletter"><option value="1" selected="selected">' . _YES . '</option><option value="0">' . _NO . '</option></select></p>';
$yaroo = getYAROO($ya_config['useviewemail']);
if ($ya_config['useviewemail'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_viewemail">' . _ALWAYSSHOWEMAIL . ':' . $yaroo . '</label><select id="user_viewemail" name="user_viewemail"><option value="1">' . _YES . '</option><option value="0" selected="selected">' . _NO . '</option></select></p>';
$yaroo = getYAROO($ya_config['usehideonline']);
if ($ya_config['usehideonline'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_allow_viewonline">' . _HIDEONLINE . ':' . $yaroo . '</label><select id="user_allow_viewonline" name="user_allow_viewonline"><option value="1" selected="selected">' . _YES . '</option><option value="0">' . _NO . '</option></select></p>';
if ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0) {
   echo '<p><label for="user_timezone">' . _FORUMSTIME . ' *</label><select id="user_timezone" name="user_timezone">';
   $utz = date('Z');
   $utz = round($utz/3600);
   for ($i = -12;$i < 13;$i++) {
      if ($i == 0) {
         $dummy = 'GMT';
      } else {
         if (!strstr($i, '-')) {
            $i = '+' . $i;
         }
         $dummy = 'GMT ' . $i . ' ' . _HOURS;
      }
      if ($utz == $i) {
         echo '<option value="' . $i . '" selected="selected">' . $dummy . '</option>';
      } else {
         echo '<option value="' . $i . '">' . $dummy . '</option>';
      }
   }
   echo '</select></p>';
   echo '<p><label for="user_dateformat">' . _FORUMSDATE . ': *<br />' . _FORUMSDATEMSG . '</label><input type="text" id="user_dateformat" name="user_dateformat" value="Y-m-d, H:i:s" size="15" maxlength="14" /></p>';
}
$yaroo = getYAROO($ya_config['usesignature']);
if ($ya_config['usesignature'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="user_sig">' . _SIGNATURE . ':' . $yaroo . '<br />' . _NOHTML . '</label><textarea cols="50" rows="5" id="user_sig" name="user_sig">' . $user_sig . '</textarea><br />' . _255CHARMAX . '</p>';
$yaroo = getYAROO($ya_config['useextrainfo']);
if ($ya_config['useextrainfo'] > '1' or ($ya_config['requireadmin'] == 0 AND $ya_config['useactivate'] == 0))
   echo '<p><label for="bio">' . _EXTRAINFO . ':' . $yaroo . '<br />' . _NOHTML . '</label><textarea cols="50" rows="5" id="bio" name="bio">' . $bio . '</textarea><br />' . _CANKNOWABOUT . '</p>';
echo '<input type="hidden" name="op" value="new_confirm" />';
echo '<p align="center"><input type="submit" value="' . _YA_CONTINUE . '" /></p>';
echo '</fieldset></form>';
echo '<br />';
echo $next;
echo '<p>' . _COOKIEWARNING . '</p>';
if ($ya_config['useasreguser'] == '1') {
   echo _ASREGUSER . '<br />';
   echo '<ul>';
   echo '<li>' . _ASREG1 . '</li>';
   echo '<li>' . _ASREG2 . '</li>';
   echo '<li>' . _ASREG3 . '</li>';
   echo '<li>' . _ASREG4 . '</li>';
   echo '<li>' . _ASREG5 . '</li>';
   $handle = opendir('themes');
   $thmcount = 0;
   while ($file = readdir($handle)) {
      if ((!preg_match('/[.]/', $file) AND file_exists('themes/' . $file . '/theme.php'))) {
         $thmcount++;
      }
   }
   closedir($handle);
   if ($thmcount > 1) {
      echo '<li>' . _ASREG6 . '</li>';
   }
   $sql = 'SELECT custom_title FROM ' . $prefix . '_modules WHERE active=\'1\' AND view=\'1\' AND inmenu=\'1\'';
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      $custom_title = $row['custom_title'];
      if ($custom_title != '') {
         echo '<li>' . _ACCESSTO . ' ' . $custom_title . '</li>';
      }
   }
   $sql = 'SELECT title FROM ' . $prefix . '_blocks WHERE active=\'1\' AND view=\'1\'';
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
      $b_title = $row['title'];
      if ($b_title != '') {
         echo '<li>' . _ACCESSTO . ' ' . $b_title . '</li>';
      }
   }
   if (is_active('Journal')) {
      echo '<li>' . _CREATEJOURNAL . '</li>';
   }
   if ($my_headlines == 1) {
      echo '<li>' . _READHEADLINES . '</li>';
   }
   echo '<li>' . _ASREG7 . '</li>';
   echo '</ul>';
}
echo _REGISTERNOW . '<br />';
echo _WEDONTGIVE . '<br /><br />';
echo '<div class="text-center content">[ <a href="modules.php?name=' . $module_name . '" >' . _USERLOGIN . '</a> | <a href="modules.php?name=' . $module_name . '&amp;op=pass_lost" >' . _PASSWORDLOST . '</a> ]</div>';
echo '<noscript><div id="noscript-warning">'. _JSWARN .'</div></noscript>';
CloseTable();
include_once 'footer.php';

function getYAROO ($cfgvalue) {
   $yaroo = '';
   if ($cfgvalue == 3 or $cfgvalue == 5) $yaroo = ' *';
   return $yaroo;
}
?>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©