However, I would be carefull about displaying email addy’s in the random profile… Im not looking at it from a privacy issue, look at it from a spam point a view!
Its is quite likely that they will be found by a web crawler, it looks for email addy’s on web pages…
I’m not sure if its just me, but if you change the style and then browse the site, the default style always loads first and then it loads the style I had selected?
The shoutbox is a public shoutbox, to make it private you could put it on it’s own page, or you could disable the input boxes if the user isn’t logged in.
[php]<?
ob_start();
include("config.php");
if ($logged[username])
{
echo("FORM STUFF IN HERE");
}
else
{
echo("LOGIN BOX HERE SO THEY CAN LOGIN TO POST SHOUT");
}
?>
[/php]
Put that in the area where the shout input would be (and remember to change the capital typed stuff to the inputs required). Would something like that work? I’m not sure as I’m a php n00b remember
[QUOTE=Matt555]
The shoutbox is a public shoutbox, to make it private you could put it on it’s own page, or you could disable the input boxes if the user isn’t logged in.
[php]<?
ob_start();
include("config.php");
if ($logged[username])
{
echo("FORM STUFF IN HERE");
}
else
{
echo("LOGIN BOX HERE SO THEY CAN LOGIN TO POST SHOUT");
}
?>
[/php]
Put that in the area where the shout input would be (and remember to change the capital typed stuff to the inputs required). Would something like that work? I’m not sure as I’m a php n00b remember
[/QUOTE]
Yup totally.
altho I’ll beusing
[php]
<? if(isset($_SESSION['username'])) {
// shoutbox
} else {
// no form
}
?>
[/php]
altho i could just whack all the registered members into query..
[php]
<?
//form submitted
$members = mysql_query("SELECT * FROM users WHERE
username = '".$_POST['author']."'");
if(mysql_num_rows($members) > 0) { //the name exists..
die('That username is already taken by a registered member ');
}
//carry on
?>
Ahh cool, well it’s looking great man and my personal favourite bit is the colour switcher, makes the site a bit more ‘personal’ as you can make it look how you want it too.
[Quote=Waffle]
And..you would want one because?
[/Quote]
In the future when you will have so many tutorials then it will be a problem to find one particular and if you would have a search engine then you can find it easily.
[Quote=Waffle]
So…
[/Quote]
Its bit confusing coz if somebody press edit profile link and change the profile then I believe there should be a save button instead of edit profile button again. It creates confusions.