Jump to content

Themes -- Please Vote


CA3LE

What is your favorite theme that testmy.net currently offers? (SCROLL DOWN TO THE TOPIC TO SEE THE CHOICE DETAILS BEFORE YOU MAKE YOUR CHOICE! Also, you may change your vote if you change your mind) You can pick up to 3 of your favorites if you have a  

47 members have voted

  1. 1. What is your favorite theme that testmy.net currently offers? (SCROLL DOWN TO THE TOPIC TO SEE THE CHOICE DETAILS BEFORE YOU MAKE YOUR CHOICE! Also, you may change your vote if you change your mind) You can pick up to 3 of your favorites if you have a

    • GL Series (Red)
      0
    • GL Series (Red) [w/gray forum]
      0
    • GL Series (Blue)
      3
    • GL Series (Blue) [w/gray forum]
      3
    • GL Series (Green)
      0
    • GL Series (Green) [w/gray forum]
      0
    • GL Series (Orange)
      0
    • GL Series (Orange) [w/gray forum]
      0
    • GL Series (Purple)
      0
    • GL Series (Purple) [w/gray forum]
      1
    • Original Feel
      5
    • ekaf
      2
    • Blue Black Box
      1
    • Greenhouse
      0
    • America the Beautiful
      6
    • Halloween
      0
    • Christmas
      1
    • Thanksgiving
      0
    • Purple Darkness
      1
    • Dark Blood Red
      4
    • Blacken
      2
    • Dark Blue
      0
    • Red 'N Black
      2
    • BlueGray
      2
    • Shades of Gray
      0
    • Red/Pink
      0
    • Green
      1
    • Orange
      1
    • Blue
      3
    • Copper
      1
    • neuron * brand new check it out*
      8


Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

I don't think CA3LE will be adding more for the forum, we must wait for him to update the forum with the site themes and whatnot.

Which, is easier than it sounds.

<iframe src="forums/index.php" width="100%" height="100%"><p>Your browser does not support IFrames, either upgrade to a newer one, or a different one, or click <a href="forums/index.php">here[/url].</p></iframe>
That would work, if you put it on a page like forums.php with all the Theme stuff for the main site. Thanks, Nanobot
You should not use iframes. They are a very old tech. Not really supported for anything new, Newer javascipt functions don't really work well inside them. They are also very slow because they are one of the last things rendered. There are 2 other things that should be used, depending on what you want to do. The first is a php include, mostly for smaller things.
<?php include("menu.php"); ?>
The second is a object element.

<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html"         data="object.html" style="width:300px;height:200px;">    <p>Fallback text</p></object>

That will work with just about anything. But for TMN the best thing to do, is put your main theme around the SMF theme, by editing the actualy theme files, so you could have proper URL's. Using any kind of embed method would cause your URL's to not exist.

Link to comment
Share on other sites

Well since you all seem to like code so much, try and figure out what this does...



$DISALLOWED_NAMES = file ( NAME_FILE );

            $DISALLOWED_NAMES = $DISALLOWED_NAMES[0];



            if ( $userinfo['name'] == '' ) $errors [] = $lang_account['reg1'];

            elseif ( strlen ( $userinfo['name'] ) < MIN_USERNAME_LEN ) $errors [] = parse ( $lang_account['reg2'], '{min_length}', MIN_USERNAME_LEN );

            elseif ( MAX_USERNAME_LEN > 0 && strlen ( $userinfo['name'] ) > MAX_USERNAME_LEN ) $errors [] = parse ( $lang_account['reg3'], '{max_length}', MAX_USERNAME_LEN );

            elseif ( preg_match ( '#[^a-z0-9_]#i', $userinfo['name'] ) ) $errors [] = $lang_account['reg4'];

            elseif ( searchStringFromList ( strtolower ( $userinfo['name'] ), $DISALLOWED_NAMES ) ) $errors [] = $lang_account['reg5'];

            elseif ( $username_exists ) $errors[] = parse ( $lang_account['reg6'], '{username}', entities ( $userinfo['name'] ) );



            if ( $userinfo['pass1'] == '' ) $errors [] = $lang_account['reg7'];

            elseif ( $userinfo['pass1'] != $userinfo['pass2'] ) $errors [] = $lang_account['reg8'];

            elseif ( strlen ( $userinfo['pass1'] ) < MIN_PASSWORD_LEN ) $errors [] = parse ( $lang_account['reg9'], '{min_length}', MIN_PASSWORD_LEN );

            elseif ( MAX_USERNAME_LEN > 0 && strlen ( $userinfo['pass1'] ) > MAX_PASSWORD_LEN ) $errors [] = parse ( $lang_account['reg10'], '{max_length}', MAX_PASSWORD_LEN );



            if ( $userinfo['email'] == '' ) $errors [] = $lang_account['reg11'];

            elseif ( strlen ( $userinfo['email'] ) > 100 || !preg_match ( "#(.+?)@(.+?).(.+?)#i", $userinfo['email'] ) ) $errors [] = $lang_account['reg12'];

            elseif ( $useremail_exists ) $errors [] = $lang_account['reg13'];



            $captcha_expected = ( isset ( $_SESSION['captcha_word'] ) && $_SESSION['captcha_word'] != '' ) ? $_SESSION['captcha_word'] : get_rand ( 100 );



            if ( $captcha != $captcha_expected )

            {

                $errors [] = $lang_account['reg14'];

                $_SESSION['captcha_word'] = get_captcha_word ( );

                $captcha = '';

            }



Link to comment
Share on other sites

OK. Here is something harder for you ladies.

   $url_p = parse_url ( $url );

    $host = $url_p['host'];

    $path = $url_p['path'];

    $fp = @fsockopen ( $host, 80, $errno, $errstr, 20 );

    if ( !$fp ) return false;

	else

	{

        fputs ( $fp, "HEAD ".$url." HTTP/1.1rn" );

        fputs ( $fp, "HOST: dummyrn" );

        fputs ( $fp, "Connection: closernrn" );

        while ( !feof ( $fp ) )

		{

			$headers .= @fgets ( $fp, 128 );

        }

    }

    fclose ( $fp );

    $return = false;

    $arr_headers = explode ( "n", $headers );

    foreach ( $arr_headers as $header ) {

        $s = "Content-Length: ";

        if ( substr ( strtolower ( $header ), 0, strlen ( $s ) ) == strtolower ( $s ) )

		{

            $return = trim ( substr ( $header, strlen ( $s ) ) );

            break;

        }

    }


	$return/=1024;

    return $return;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...