MyBB Community Forums

Full Version: how to show recentposts in webiste homepage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
it is demonstrated here:
http://www.wiiroom.net/reviews.php

Alex.
damn ive doubleposted.
<!--- read below ---!>
try this:

		<div class="login">

		<div>

<?php

if($mybb->user["uid"])

{

?>

&nbsp;• <a href="<?php echo $rel; ?>search.php?action=getnew">View new posts</a><br>

&nbsp;• <a href="<?php echo $rel; ?>private.php">View new PM's</a><br>

&nbsp;• <a href="<?php echo $rel; ?>usercp.php">User CP</a><br>

&nbsp;&nbsp;&nbsp;&nbsp; <b>·</b> <a href="<?php echo $rel; ?>usercp.php?action=editsig">Edit Signature</a><br>

&nbsp;&nbsp;&nbsp;&nbsp; <b>·</b><a href="<?php echo $rel; ?>usercp.php?action=avatar">Edit Avatar</a><br>

&nbsp;• <a href="<?php echo $rel; ?>member.php?action=profile&uid=<?php echo $mybb->user["uid"]; ?>">My Profile</a><br>

&nbsp;• <a href="<?php echo $rel; ?>search.php?action=finduser&uid=<?php echo $mybb->user["uid"]; ?>">My Posts</a>

<?php
}
else
{
?>
		<input type="text" name="username" class="logtxt" /> 
		<input type="submit" value=" " name="login" class="login" />
		</div>
		<div>	
		<input type="password" name="password" class="logtxt" />
		<input type="button" value=" " onclick="window.location='register.php'" name="register" class="register" />
		</div>
<?php
}
?>

and save as xxx.php
and then do an include:

include(xxx.php);
on the page you want the login form.

Alex.
I guess this dicussion is now going here
Pages: 1 2