-

2011年8月3日星期三

Html coding help please?

-My school has chosen me to make a social website for the school. Kinda like facebook or myspace but just for my school. But i am having some trouble. I need to know how to make recent post by the members show up on the home page? And how do I make it where you can click on the persons name who posted the status you go to their profile. Thank youi very much. PICKING BEST ANSWER. 10 POINTS!!If you use Blogger as your blog host then you can use recent post widget. But if you use wordpress I guess there's no HTML code. In fact you have to do it with plug-in.

Whatever, here's the process how you'll set up a recent post widget. Use the HTML code below.



<div id="mtrpwa">

<script style="text/javascript" src="https://sites.google.com/site/proje鈥?br>
<script style="text/javascript">var numposts = 5;var showpostdate = false;var showpostsummary = true;var numchars = 100;var standardstyling = true;</script>

<script src="http://YourOwnB1og.blogspot.com/fee鈥?br>
<div style="font-family: arial, sans-serif; font-size: 9px;" id="rpdr"><a href="http://www.madtomatoe.com/recent-p鈥?title="Grab this Recent Posts Widget" target="_blank">Recent Posts Widget</a> by <a href="http://www.madtomatoe.com" title="Recent Posts Widget">Blogger Widgets</a></div><noscript>Your browser does not support JavaScript!</noscript>

<style type=text/css>

#rpdr {background: url(http://3.bp.blogspot.com/-wsIqUGbMUyk/Tc鈥?/a> 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}

#rpdr, #rpdr a {color:#808080;}

#mtrpwa { border-bottom:1px #cccccc dotted; margin-top:-10px; padding-bottom:10px;}

.mtrpw a {font-weight:bold; }

.mtrpwsumm {}

</style>



If you're using blogger then Go to Design -> Page element -> Add a Gadget -> HTML/Javascript

paste the code above and click Save.



Well, to make a clickable poster name you can use the code below.



<a href="Author's Profile URL ">Author Name</a>



Hey, If you are new, then you can try out the following link to know more.

http://www.w3schools.com/html/default.as鈥?/a>



I hope your problem will solve. :)Use PHP and mySQL to read and write data to a database.
Did you code the forum yourself, or is it the school's forum or a forum from an outside source?

没有评论:

发表评论