New b2profile, no tables, all CSS, all the time.
git-svn-id: http://svn.automattic.com/wordpress/trunk@123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a674e517e
commit
e9743da5ed
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #00019b;
|
color: #00019b;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -60,7 +59,6 @@ textarea, input, select {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.quicktags, .search {
|
.quicktags, .search {
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
@ -111,23 +109,46 @@ textarea, input, select {
|
||||||
background: url(http://wordpress.org/images/wp-small.png) #fff no-repeat top center;
|
background: url(http://wordpress.org/images/wp-small.png) #fff no-repeat top center;
|
||||||
border: 2px solid #333;
|
border: 2px solid #333;
|
||||||
color: #333;
|
color: #333;
|
||||||
padding: 40px 5px 5px 5px;
|
|
||||||
text-align: right;
|
|
||||||
width: 210px;
|
|
||||||
height: 170px;
|
height: 170px;
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 45%;
|
|
||||||
margin-left: -105px; /* half of width and height */
|
margin-left: -105px; /* half of width and height */
|
||||||
margin-top: -85px;
|
margin-top: -85px;
|
||||||
|
padding: 40px 5px 5px 5px;
|
||||||
|
position: absolute;
|
||||||
|
text-align: right;
|
||||||
|
top: 45%;
|
||||||
|
width: 210px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#login textarea, #login input, #login select {
|
#login textarea, #login input, #login select {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
border-width: 1px;
|
border-color: #ccc;
|
||||||
border-color: #cccccc;
|
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
padding: 2px;
|
border-width: 1px;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile .left {
|
||||||
|
border-right: 1px dashed #ccc;
|
||||||
|
float: left;
|
||||||
|
margin-right: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile label {
|
||||||
|
float: left;
|
||||||
|
padding-right: 3px;
|
||||||
|
text-align: right;
|
||||||
|
width: 85px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#profile p {
|
||||||
|
margin: 0 0 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead {
|
#wphead {
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
</div>
|
</div>
|
||||||
</td></table>
|
|
||||||
<?php
|
<?php
|
||||||
if ($debug=="1") {
|
if ($debug=="1") {
|
||||||
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds";
|
echo "<p>$querycount queries - ".number_format(timer_stop(),3)." seconds";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p> </p>
|
|
||||||
<div align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $b2_version ?> <a href="http://wordpress.org/support/">Support Forums</a></div>
|
<div align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $b2_version ?> <a href="http://wordpress.org/support/">Support Forums</a></div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -37,13 +37,11 @@ for ($i=0; $i<count($b2varstoreset); $i += 1) {
|
||||||
require_once('../b2config.php');
|
require_once('../b2config.php');
|
||||||
require_once($abspath.$b2inc.'/b2functions.php');
|
require_once($abspath.$b2inc.'/b2functions.php');
|
||||||
|
|
||||||
dbconnect();
|
|
||||||
|
|
||||||
switch($action) {
|
switch($action) {
|
||||||
|
|
||||||
case "update":
|
case 'update':
|
||||||
|
|
||||||
require_once("b2verifauth.php");
|
require_once('b2verifauth.php');
|
||||||
|
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
||||||
|
@ -96,39 +94,39 @@ case "update":
|
||||||
$newuser_idmode=addslashes($HTTP_POST_VARS["newuser_idmode"]);
|
$newuser_idmode=addslashes($HTTP_POST_VARS["newuser_idmode"]);
|
||||||
|
|
||||||
$query = "UPDATE $tableusers SET user_firstname='$newuser_firstname', ".$updatepassword."user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode' WHERE ID = $user_ID";
|
$query = "UPDATE $tableusers SET user_firstname='$newuser_firstname', ".$updatepassword."user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode' WHERE ID = $user_ID";
|
||||||
$result = mysql_query($query);
|
$result = $wpdb->query($query);
|
||||||
if ($result==false) {
|
if (!$result) {
|
||||||
die ("<strong>ERROR</strong>: couldn't update your profile... please contact the <a href=\"mailto:$admin_email\">webmaster</a> !<br /><br />$query<br /><br />".mysql_error());
|
die ("<strong>ERROR</strong>: couldn't update your profile... please contact the <a href=\"mailto:$admin_email\">webmaster</a> !<br /><br />$query<br /><br />".mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<body onload="window.close();">
|
<body onload="window.close();">
|
||||||
Profile updated !<br />
|
Profile updated!<br />
|
||||||
If that window doesn't close itself, close it yourself :p
|
If this window doesn't close itself, close it yourself :p
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "viewprofile":
|
case 'viewprofile':
|
||||||
|
|
||||||
require_once("b2verifauth.php");
|
require_once('b2verifauth.php');
|
||||||
/* $profile=1;
|
/* $profile=1;
|
||||||
|
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
||||||
*/ $profiledata=get_userdata($user);
|
*/ $profiledata = get_userdata($user);
|
||||||
if ($HTTP_COOKIE_VARS["wordpressuser"] == $profiledata["user_login"])
|
if ($HTTP_COOKIE_VARS['wordpressuser'] == $profiledata->user_login)
|
||||||
header ("Location: b2profile.php");
|
header ('Location: b2profile.php');
|
||||||
|
|
||||||
$profile=1; /**/
|
$profile = 1;
|
||||||
include("b2header.php");
|
include('b2header.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="menutop" align="center">
|
<div class="menutop" align="center">
|
||||||
<?php echo $profiledata["user_login"] ?>
|
<?php echo $profiledata->user_login ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="form" action="b2profile.php" method="post">
|
<form name="form" action="b2profile.php" method="post">
|
||||||
|
@ -139,43 +137,43 @@ case "viewprofile":
|
||||||
<table cellpadding="5" cellspacing="0">
|
<table cellpadding="5" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>login</strong></td>
|
<td align="right"><strong>login</strong></td>
|
||||||
<td><?php echo $profiledata["user_login"] ?></td>
|
<td><?php echo $profiledata->user_login ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>first name</strong></td>
|
<td align="right"><strong>first name</strong></td>
|
||||||
<td><?php echo $profiledata["user_firstname"] ?></td>
|
<td><?php echo $profiledata->user_firstname ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>last name</strong></td>
|
<td align="right"><strong>last name</strong></td>
|
||||||
<td><?php echo $profiledata["user_lastname"] ?></td>
|
<td><?php echo $profiledata->user_lastname ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>nickname</strong></td>
|
<td align="right"><strong>nickname</strong></td>
|
||||||
<td><?php echo $profiledata["user_nickname"] ?></td>
|
<td><?php echo $profiledata->user_nickname ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>email</strong></td>
|
<td align="right"><strong>email</strong></td>
|
||||||
<td><?php echo make_clickable($profiledata["user_email"]) ?></td>
|
<td><?php echo make_clickable($profiledata->user_email) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>URL</strong></td>
|
<td align="right"><strong>URL</strong></td>
|
||||||
<td><?php echo $profiledata["user_url"] ?></td>
|
<td><?php echo $profiledata->user_url ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>ICQ</strong></td>
|
<td align="right"><strong>ICQ</strong></td>
|
||||||
<td><?php if ($profiledata["user_icq"] > 0) { echo make_clickable("icq:".$profiledata["user_icq"]); } ?></td>
|
<td><?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>AIM</strong></td>
|
<td align="right"><strong>AIM</strong></td>
|
||||||
<td><?php echo make_clickable("aim:".$profiledata["user_aim"]) ?></td>
|
<td><?php echo make_clickable("aim:".$profiledata->user_aim) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>MSN IM</strong></td>
|
<td align="right"><strong>MSN IM</strong></td>
|
||||||
<td><?php echo $profiledata["user_msn"] ?></td>
|
<td><?php echo $profiledata->user_msn ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><strong>YahooIM</strong></td>
|
<td align="right"><strong>YahooIM</strong></td>
|
||||||
<td><?php echo $profiledata["user_yim"] ?></td>
|
<td><?php echo $profiledata->user_yim ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -185,18 +183,18 @@ case "viewprofile":
|
||||||
<table cellpadding="5" cellspacing="0">
|
<table cellpadding="5" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<strong>ID</strong> <?php echo $profiledata["ID"] ?></td>
|
<strong>ID</strong> <?php echo $profiledata->ID ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<strong>level</strong> <?php echo $profiledata["user_level"] ?>
|
<strong>level</strong> <?php echo $profiledata->user_level ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<strong>posts</strong>
|
<strong>posts</strong>
|
||||||
<?php
|
<?php
|
||||||
$posts=get_usernumposts($user);
|
$posts = get_usernumposts($user);
|
||||||
echo $posts;
|
echo $posts;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
@ -205,24 +203,24 @@ case "viewprofile":
|
||||||
<td>
|
<td>
|
||||||
<strong>identity</strong><br />
|
<strong>identity</strong><br />
|
||||||
<?php
|
<?php
|
||||||
switch($profiledata["user_idmode"]) {
|
switch($profiledata->user_idmode) {
|
||||||
case "nickname":
|
case 'nickname':
|
||||||
$r=$profiledata["user_nickname"];
|
$r = $profiledata->user_nickname;
|
||||||
break;
|
break;
|
||||||
case "login":
|
case 'login':
|
||||||
$r=$profiledata["user_login"];
|
$r = $profiledata->user_login;
|
||||||
break;
|
break;
|
||||||
case "firstname":
|
case 'firstname':
|
||||||
$r=$profiledata["user_firstname"];
|
$r = $profiledata->user_firstname;
|
||||||
break;
|
break;
|
||||||
case "lastname":
|
case 'lastname':
|
||||||
$r=$profiledata["user_lastname"];
|
$r = $profiledata->user_lastname;
|
||||||
break;
|
break;
|
||||||
case "namefl":
|
case 'namefl':
|
||||||
$r=$profiledata["user_firstname"]." ".$profiledata["user_lastname"];
|
$r = $profiledata->user_firstname.' '.$profiledata->user_lastname;
|
||||||
break;
|
break;
|
||||||
case "namelf":
|
case 'namelf':
|
||||||
$r=$profiledata["user_lastname"]." ".$profiledata["user_firstname"];
|
$r = $profiledata->user_lastname.' '.$profiledata->user_firstname;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
echo $r;
|
echo $r;
|
||||||
|
@ -280,8 +278,8 @@ break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
$profile=1;
|
$profile = 1;
|
||||||
include ("b2header.php");
|
include ('b2header.php');
|
||||||
$profiledata=get_userdata($user_ID);
|
$profiledata=get_userdata($user_ID);
|
||||||
|
|
||||||
$bookmarklet_tbpb = ($use_trackback) ? '&trackback=1' : '';
|
$bookmarklet_tbpb = ($use_trackback) ? '&trackback=1' : '';
|
||||||
|
@ -289,180 +287,154 @@ default:
|
||||||
$bookmarklet_height= ($use_trackback) ? 340 : 300;
|
$bookmarklet_height= ($use_trackback) ? 340 : 300;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<h1 id="wphead"><a href="http://wordpress.org" rel="external"><span>WordPress</span></a></h1>
|
||||||
<form name="form" action="b2profile.php" method="post">
|
<form name="profile" id="profile" action="b2profile.php" method="post">
|
||||||
<input type="hidden" name="action" value="update" />
|
<h2>Edit Your Profile</h2>
|
||||||
<input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
|
<p>
|
||||||
<table width="100%">
|
<input type="hidden" name="action" value="update" />
|
||||||
<td width="200" valign="top">
|
<input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
|
||||||
|
</p>
|
||||||
<table cellpadding="5" cellspacing="0">
|
<p><strong>User ID:</strong> <?php echo $profiledata->ID ?> | <strong>Level:</strong>
|
||||||
<tr>
|
<?php echo $profiledata->user_level ?> | <strong>Posts:</strong>
|
||||||
<td align="right"><strong>login</strong></td>
|
<?php
|
||||||
<td><?php echo $profiledata["user_login"] ?></td>
|
$posts = get_usernumposts($user_ID);
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>first name</strong></td>
|
|
||||||
<td><input type="text" name="newuser_firstname" value="<?php echo $profiledata["user_firstname"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>last name</strong></td>
|
|
||||||
<td><input type="text" name="newuser_lastname" value="<?php echo $profiledata["user_lastname"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>nickname</strong></td>
|
|
||||||
<td><input type="text" name="newuser_nickname" value="<?php echo $profiledata["user_nickname"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>email</strong></td>
|
|
||||||
<td><input type="text" name="newuser_email" value="<?php echo $profiledata["user_email"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>URL</strong></td>
|
|
||||||
<td><input type="text" name="newuser_url" value="<?php echo $profiledata["user_url"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>ICQ</strong></td>
|
|
||||||
<td><input type="text" name="newuser_icq" value="<?php if ($profiledata["user_icq"] > 0) { echo $profiledata["user_icq"]; } ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>AIM</strong></td>
|
|
||||||
<td><input type="text" name="newuser_aim" value="<?php echo $profiledata["user_aim"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>MSN IM</strong></td>
|
|
||||||
<td><input type="text" name="newuser_msn" value="<?php echo $profiledata["user_msn"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="right"><strong>YahooIM</strong></td>
|
|
||||||
<td><input type="text" name="newuser_yim" value="<?php echo $profiledata["user_yim"] ?>" class="postform" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td valign="top">
|
|
||||||
|
|
||||||
<table cellpadding="5" cellspacing="0">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<strong>ID</strong> <?php echo $profiledata["ID"] ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<strong>level</strong> <?php echo $profiledata["user_level"] ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<strong>posts</strong>
|
|
||||||
<?php
|
|
||||||
$posts=get_usernumposts($user_ID);
|
|
||||||
echo $posts;
|
echo $posts;
|
||||||
?>
|
?>
|
||||||
</td>
|
| <strong>Login:</strong> <?php echo $profiledata->user_login ?></p>
|
||||||
</tr>
|
<div class="left">
|
||||||
<tr>
|
<p>
|
||||||
<td>
|
<label for="newuser_firstname">First:</label>
|
||||||
<strong>identity</strong> on the blog:<br>
|
<input type="text" name="newuser_firstname" id="newuser_firstname" value="<?php echo $profiledata->user_firstname ?>" />
|
||||||
<select name="newuser_idmode" class="postform">
|
</p>
|
||||||
<option value="nickname"<?php
|
<p>
|
||||||
if ($profiledata["user_idmode"]=="nickname")
|
<label for="">Last:</label>
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_nickname"] ?></option>
|
<input type="text" name="newuser_lastname" id="newuser_lastname" value="<?php echo $profiledata->user_lastname ?>" />
|
||||||
<option value="login"<?php
|
</p>
|
||||||
if ($profiledata["user_idmode"]=="login")
|
<p>
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_login"] ?></option>
|
<label for="newuser_nickname">Nickname:</label>
|
||||||
<option value="firstname"<?php
|
<input type="text" name="newuser_nickname" id="newuser_nickname" value="<?php echo $profiledata->user_nickname ?>" />
|
||||||
if ($profiledata["user_idmode"]=="firstname")
|
</p>
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_firstname"] ?></option>
|
<p>
|
||||||
<option value="lastname"<?php
|
<label for="newuser_email">Email:</label>
|
||||||
if ($profiledata["user_idmode"]=="lastname")
|
<input type="text" name="newuser_email" id="newuser_email" value="<?php echo $profiledata->user_email ?>" />
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_lastname"] ?></option>
|
</p>
|
||||||
<option value="namefl"<?php
|
<p>
|
||||||
if ($profiledata["user_idmode"]=="namefl")
|
<label for="newuser_url">URL:</label>
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_firstname"]." ".$profiledata["user_lastname"] ?></option>
|
<input type="text" name="newuser_url" id="newuser_url" value="<?php echo $profiledata->user_url ?>" />
|
||||||
<option value="namelf"<?php
|
</p>
|
||||||
if ($profiledata["user_idmode"]=="namelf")
|
<p>
|
||||||
echo " selected"; ?>><?php echo $profiledata["user_lastname"]." ".$profiledata["user_firstname"] ?></option>
|
<label for="newuser_icq">ICQ:</label>
|
||||||
</select>
|
<input type="text" name="newuser_icq" id="newuser_icq" value="<?php if ($profiledata->user_icq > 0) { echo $profiledata->user_icq; } ?>" />
|
||||||
</td>
|
</p>
|
||||||
</tr>
|
<p>
|
||||||
<tr>
|
<label for="newuser_aim">AIM:</label>
|
||||||
<td>
|
<input type="text" name="newuser_aim" id="newuser_aim" value="<?php echo $profiledata->user_aim ?>" />
|
||||||
<br />
|
</p>
|
||||||
new <strong>password</strong> (twice)<br>
|
<p>
|
||||||
<input type="password" name="pass1" size="16" value="" class="postform" /><br>
|
<label for="newuser_msn">MSN IM:</label>
|
||||||
<input type="password" name="pass2" size="16" value="" class="postform" />
|
<input type="text" name="newuser_msn" id="newuser_msn" value="<?php echo $profiledata->user_msn ?>" />
|
||||||
</td>
|
</p>
|
||||||
</tr>
|
<p>
|
||||||
<?php
|
<label for="newuser_yim">Yahoo IM:</label>
|
||||||
if ($user_level > 0) {
|
<input type="text" name="newuser_yim" id="newuser_yim" value="<?php echo $profiledata->user_yim ?>" />
|
||||||
?> <tr>
|
</p>
|
||||||
<td><br /><strong>bookmarklet</strong><br />add the link to your Favorites/Bookmarks<br />
|
</div>
|
||||||
<?php
|
<div class="right">
|
||||||
|
<p><strong>Identity</strong> on the blog:
|
||||||
|
<select name="newuser_idmode">
|
||||||
|
<option value="nickname"<?php
|
||||||
|
if ($profiledata->user_idmode == 'nickname')
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_nickname ?></option>
|
||||||
|
<option value="login"<?php
|
||||||
|
if ($profiledata->user_idmode=="login")
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_login ?></option>
|
||||||
|
<option value="firstname"<?php
|
||||||
|
if ($profiledata->user_idmode=="firstname")
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_firstname ?></option>
|
||||||
|
<option value="lastname"<?php
|
||||||
|
if ($profiledata->user_idmode=="lastname")
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_lastname ?></option>
|
||||||
|
<option value="namefl"<?php
|
||||||
|
if ($profiledata->user_idmode=="namefl")
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_firstname." ".$profiledata->user_lastname ?></option>
|
||||||
|
<option value="namelf"<?php
|
||||||
|
if ($profiledata->user_idmode=="namelf")
|
||||||
|
echo " selected"; ?>><?php echo $profiledata->user_lastname." ".$profiledata->user_firstname ?></option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
|
<p> <br />
|
||||||
|
New <strong>Password</strong> (Leave blank to stay the same.)<br />
|
||||||
|
<input type="password" name="pass1" size="16" value="" />
|
||||||
|
<input type="password" name="pass2" size="16" value="" />
|
||||||
|
</p>
|
||||||
|
<p><strong>Bookmarklet</strong><br />
|
||||||
|
add the link to your Favorites/Bookmarks<br />
|
||||||
|
<?php
|
||||||
if ($is_NS4 || $is_gecko) {
|
if ($is_NS4 || $is_gecko) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:Q=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'b2 bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">b2 - <?php echo $blogname ?></a>
|
<a href="javascript:Q=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'b2 bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">WordPress
|
||||||
<?php
|
- <?php echo $blogname ?></a>
|
||||||
|
<?php
|
||||||
} else if ($is_winIE) {
|
} else if ($is_winIE) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">b2 - <?php echo $blogname ?></a>
|
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(btw=window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">WordPress
|
||||||
|
- <?php echo $blogname ?></a>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="JavaScript">
|
||||||
<!--
|
<!--
|
||||||
function oneclickbookmarklet(blah) {
|
function oneclickbookmarklet(blah) {
|
||||||
window.open ("b2profile.php?action=IErightclick", "oneclickbookmarklet", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=120, left=120, screenY=120, top=120");
|
window.open ("b2profile.php?action=IErightclick", "oneclickbookmarklet", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=120, left=120, screenY=120, top=120");
|
||||||
}
|
}
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
<br />
|
||||||
<br /><br />
|
<br />
|
||||||
One-click bookmarklet:<br />
|
One-click bookmarklet:<br />
|
||||||
<a href="javascript:oneclickbookmarklet(0);">click here</a>
|
<a href="javascript:oneclickbookmarklet(0);">click here</a>
|
||||||
|
<?php
|
||||||
<?php
|
|
||||||
} else if ($is_opera) {
|
} else if ($is_opera) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:void(window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">b2 - <?php echo $blogname ?></a>
|
<a href="javascript:void(window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));">WordPress
|
||||||
<?php
|
- <?php echo $blogname ?></a>
|
||||||
|
<?php
|
||||||
} else if ($is_macIE) {
|
} else if ($is_macIE) {
|
||||||
?>
|
?>
|
||||||
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">WordPress - <?php echo $blogname ?></a> <?php
|
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo $path ?>/wp-admin/b2bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','b2bookmarklet','scrollbars=no,width=480,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();">WordPress
|
||||||
|
- <?php echo $blogname ?></a>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php if ($is_gecko) { ?>
|
<?php if ($is_gecko) { ?>
|
||||||
<br /><br />
|
<br />
|
||||||
<script language="JavaScript">
|
<br />
|
||||||
|
<script language="JavaScript" type="text/javascript">
|
||||||
function addPanel()
|
function addPanel()
|
||||||
{
|
{
|
||||||
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
|
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
|
||||||
window.sidebar.addPanel("WordPress post: <?php echo $blogname ?>","<?php echo $siteurl ?>/wp-admin/b2sidebar.php","");
|
window.sidebar.addPanel("WordPress Post: <?php echo $blogname ?>","<?php echo $siteurl ?>/wp-admin/b2sidebar.php","");
|
||||||
else
|
else
|
||||||
alert('No Sidebar found! You must use Mozilla 0.9.4 or later!');
|
alert('No Sidebar found! You must use Mozilla 0.9.4 or later!');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<strong>SideBar</strong><br />
|
<strong>SideBar</strong><br />
|
||||||
Add the <a href="#" onClick="addPanel()">WordPress Sidebar</a>!
|
Add the <a href="#" onclick="addPanel()">WordPress Sidebar</a>!
|
||||||
<?php } elseif (($is_winIE) || ($is_macIE)) { ?>
|
<?php } elseif (($is_winIE) || ($is_macIE)) { ?>
|
||||||
<br /><br />
|
<br />
|
||||||
<strong>SideBar</strong><br />
|
<br />
|
||||||
Add this link to your favorites:<br /><a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(_search=open('<?php echo $siteurl ?>/wp-admin/b2sidebar.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'_search'))">WordPress Sidebar</a>.
|
<strong>SideBar</strong><br />
|
||||||
<?php } ?>
|
Add this link to your favorites:<br />
|
||||||
</td>
|
<a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(_search=open('<?php echo $siteurl ?>/wp-admin/b2sidebar.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'_search'))">WordPress
|
||||||
</tr>
|
Sidebar</a>.
|
||||||
<?php
|
<?php } ?>
|
||||||
}
|
</p>
|
||||||
?> </table>
|
<p>
|
||||||
</td></tr>
|
<input class="search" type="submit" value="Update and Close Window" name="submit" /></p>
|
||||||
<tr>
|
</div>
|
||||||
<td colspan="2" align="center"><br /><input class="search" type="submit" value="Update" name="submit"><br />Note: closes the popup window.</td>
|
</form>
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* </Profile | My Profile> */
|
/* </Profile | My Profile> */
|
||||||
include("b2footer.php") ?>
|
include('b2footer.php') ?>
|
Loading…
Reference in New Issue