1 (edited by wopio 2004-08-14 08:59)

Topic: board title and board description !!!

hey
when i'm trying to submit changes in administrator menu[admin=>options], i have a problem :[
" The admin e-mail address you entered is invalid." but i've entered  a valid address !!!
what is wrong ?!
something is wrong when i'm trying to change some options in 'admin options'

pleaseee help

2

Re: board title and board description !!!

i think it would help if you tell us more about your email-adress.

3

Re: board title and board description !!!

oh, i see.
try insert the email adress lowercase. otherwise the regex won't match.
hope that helps.

4

Re: board title and board description !!!

no it isn't working hmm
hm i have no idea what is wrong ;/ there is always the same error: The admin e-mail address you entered is invalid :[
my email is: wopio@tlen.pl

Re: board title and board description !!!

Hmm
Works fine for me...

Re: board title and board description !!!

Yes, it works just fine for me as well. Are you using a non-english language pack?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

7 (edited by Johi 2004-08-15 15:53)

Re: board title and board description !!!

as far as i can see the email is being sent to the is_valid_email function in includes/email.php
Did you change something there?

@Rickard: what would change if he used a non-english language pack?

The code below return 1, so the only reason for me is that he has another version of the is_valid_email function.

<?php

function is_valid_email($email)
{
    return preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/', $email);
}

echo is_valid_email("wopio@tlen.pl");
?>

or maybe he changed this part in admin_options.php:

    $form['admin_email'] = strtolower($form['admin_email']);
    if (!is_valid_email($form['admin_email']))
        message('The admin e-mail address you entered is invalid.');

?

8

Re: board title and board description !!!

I'm using a english language pack and I didn't change anything in that code ;/
I've only changed a few lines of code in : 'include/template/main.tpl' because I must change the title of page. that's all
maybe I should reinstall all forum and try again ? sad

9

Re: board title and board description !!!

What did you change exactly?

Do, or do not.

10 (edited by wopio 2004-08-16 08:56)

Re: board title and board description !!!

in main.tpl:

<html dir="<pun_content_direction>">
<head><title>       Page Title     </title>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>">
<pun_head>
</head>
<body><pun_body>

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr class="punhead">
        <td class="punhead">
            <span class="puntitle">      Page title       </span><br>
      ----------------------------------------------------
</td>

that's all, but before these changes forum wasn't working properly too

11

Re: board title and board description !!!

hey hey hey smile
I've found the reason !!! :)my fault ;/ when I'm uploading all files to the server there was an error, and file admin_options.php wasn't send properly. now everything works fine
thank you guys smile

Re: board title and board description !!!

Gah :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."