almostbob 866 Retired: passive income ROCKS

Interesting solution, I might think about doing that. Thanks for the idea.

I was thinking that spambots search for email addresses that always contain a '@' SO something that doesnt include a @ will get past <input type='text' id='mailaccount'>@<input type='text' id='maildomain'>

$mail = $_post['mailaccount'].'@'.$_post['maildomain'];

I put a link to this page in all my home pages
http ://w ww.auditmypc.com/freescan/antispam.html
(link broken not sure if I would be violating DaniWeb policy),
it generates 50 fake email addresses every load to poison spambots

almostbob 866 Retired: passive income ROCKS

@media are a way of setting styles for different media in the same stylesheet,
printers accept the layout defined in @media print {}
the demo css is a subset of styles.css.php file ( .php because gzip is enabled for php on my server )
there are media types for screen, print, handheld devices, assisted devices(screen readers for the blind), and others, that are better/worse supported.
@media screen print all; are pretty well supported.
body 12pt margin 1 inch,
P firstline indent,
P first character Bold Cap
works pretty well on paper, but looks crap onscreen,
a screen layout, looks crap on paper.
using media specific css you can make the layout similar enough to be identified as your site, on paper, pc, blackberry, by using styles, that the devices can render accurately.
serve icons to blackberry instead of 800*600 img (on a 200*200 screen?)
print with copyright watermarks
hide links in print

long n rambling,
but the topic is almost unlimited

almostbob 866 Retired: passive income ROCKS

that address is sent in clear text through however many relays, proxies, exist in the traceroute between your host and the user,
any one of them could be compromised
with an appropriate packet sniffer no plain text is safe
how likely do you enticipate interception
you could use something like
break the address at the @ sign, send two parts to
2 text boxes
1 for user name
1 for domain
and not sent the @ sign at all, and reconstruct the address in php/asp before submitting to the database,

almostbob 866 Retired: passive income ROCKS

It would possibly be useful, if you posted a functioning link

almostbob 866 Retired: passive income ROCKS

This is Joomla's spam protection
Joomla has a plugin that obfuscates email addresses, to make it harder for scrapers and bots.
The visible address and effective address are not changed, just what robots can see.
you can probably disable the plugin somewhere in Joomla configuration.
There is likely a 'howto' on setting up the editbox without disabling spam protection, somewhere on the web. Joomla is a popular cms

Sometimes the help, is worse than the problem

almostbob 866 Retired: passive income ROCKS

You are actually being quite ridiculous bob. Wikipedia is probably the worst example you could think of. It's like you telling him (in lame-mans terms) to build a factory, it can do EVERYTHING FOR YOU when he will only be manufacturing 5 products. Not every site grows exponentially.

If you planning on building a large site, i would recommend going CMS there are alot of open source solutions available. This will save you development time and templating is relatively simple.

I am, arent I... :P

Siji44, plan on some expansion,
There will always be a few more changes to make, additional pages
if you arent going to use some includes, make a template you can paste content into, with the head scripts appearance set

almostbob 866 Retired: passive income ROCKS

schema - a data model, often a term used by people who dont know any more than you to convince you that they do. (humor)

http://en.wikipedia.org/wiki/Schema

almostbob 866 Retired: passive income ROCKS

Honestly, its only four pages, don't think you need to go php.

please ignore this advice,
plan on expansion,
plan on 100,000 pages, and the database to support them, and the design features to import a single css and javascript file, and to php/ssi/cgi/asp(your choice) include all the common code.

Do it now when it is four pages, and you dont have to come back in a month and rewrite 40, come back in six months to rewrite 400 or more, and decide what code can be common.

imagine for example Wikipedia without the includes, and backend, every page requiring Joe Public to hand code menus to millions of other pages, for a minor edit .....
Dont think anyone would like to make edits
( WikiPedia is chosen as a design model that works )

almostbob 866 Retired: passive income ROCKS

a gradient fill is 1 px x huge, or huge x 1px
you repeat the 1px side,
_______________________ << example repeat-y becomes a red rectangle
the attachment is a gradient fill for repeat-y where the larest possible x dimension for the div its from is 390px,
on repeat-x/y/both there are no margins borders padding in the repeat, so that there are no blank spaces

W3C recommendations, font sizes be set in relative sizes, ems and % in screen display,
the 12pt 16px fonts set throughout your css are not good, I am visually restricted, not bad enough to consider myself impaired, but I loathe web sites with fixed fonts set in the stylesheets, it makes it that much harder to read, as the fonts override my browser settings, 16px on a 24inch 2850 * 2140px screen is .15inch high very very small,
screens get bigger, dot sizes on those screens get smaller with each generation, pixels get smaller and smaller
the 12pt font set in @media print in the demo css is a print(paper) setting, not a screen setting,
target cost $1million because their site uses fixed fonts, is not lawfully accessible and they got sued..
onscreen fixed font sizes cannot be resized to suit the visual impairment of the user,
you lose customers, and the law suit.
one lawsuit has created precedent, there is likely to be a rash of them.

keep ahead, its easier than …

almostbob 866 Retired: passive income ROCKS

's good when it works

almostbob 866 Retired: passive income ROCKS
body { font:100% verdana,arial; text-align:left;  }
@media all {
.dontall {display:none; }
}
@media print {
body { line-height:100%; font-size:12pt; font-family: verdana, arial; }
.dontprint { display:none; }
p { padding: 1px; margin:0; line-height:100%; list-style-type:square; }
p:first-line { font-weight:bold; }
p:first-letter { font-size:150%; float:left; }
}
@media screen {
.dontshow { display:none; }
.doshow { display:inline; }
}
a { text-decoration: none; }
a:hover { background-color: #66cdaa; text-decoration: none; }
a:focus { background-color: #66cdaa; text-decoration: none; }
a:active { background-color: #66cdaa; text-decoration: none; }
a.button { background-color: #e4e0d8; color: #000000; cursor: pointer; }
a.button:hover  { background-color: #66cdaa; }
a.button:focus  { background-color: #66cdaa; }
a.button:active { background-color: #66cdaa; }
img { border: 0px; }
p { padding: 1px; font-size: 100%; line-height:135%; list-style-type:square; }
p:first-line { font-weight:bold; }
p:first-letter { font-size:200%; float:left; }
table { padding: 1px; }
td { background:url('YOUR GRADIENT IMAGE.gif') repeat-x; }
td > p { font-size: 85%; font-weight:bold; float:right; }
td > div { font-size:150%; font-weight:bold; float:right color:#ff00ff; }

I'm not going to create the page for you,

almostbob 866 Retired: passive income ROCKS

the cms appears to have a function built in to obfuscate email addresses, this obfuscation is the javascript shown.
check the settings in the cms for obfuscation and change it from auto to manual, (maybe).
or try emailaddress&#64;domain.com

almostbob 866 Retired: passive income ROCKS

Design in % and ems, per W3C guidelines, and you only have to make one design, that works in every size.

mattyd commented: thanks ++ +8
almostbob 866 Retired: passive income ROCKS

the table is styled directly

table { bla bla }
td { bla blah }

where you want to style elements inside the table

td > p { bla bla ]
td > div { bla bla }

these demonstrate the form for a <p> or <div> that is the directly inside a table [element] >(first child) [element] generic

td * { bla bla }

styles any element that is any child grandchild or lower child of a td

td > p > h1 {bla bla }

any h1 child of a p child of a td

a gradient background ius usually a 1px * (huge)px or a (huge)px * 1px gradient image repeated in the 1px direction
for a 1*100 image background:#0f0 url('gradient.gif') repeat-x;

almostbob 866 Retired: passive income ROCKS
#menu a:hover { color:#FFFFFF; background:#99cc00; }
#menu li { position: relative; }
#menu li:hover { color:#FFFFFF; background:#99cc00; position:relative; }
almostbob 866 Retired: passive income ROCKS

check the file is writeable to the user php is running as, CHMOD,

no other thoughts

almostbob 866 Retired: passive income ROCKS

another possible failure point appears to be the 'space' in 'style Library'
in the no-fail url the space is encoded %20, http does not 'like' unencoded spaces

almostbob 866 Retired: passive income ROCKS

I never submit sites to google or the other search engines. I just make sure at least one other site links to mine, and the engines find my sites on their own, immediately.

Do that,
the rest of us will stupidly follow Google's protocol,
Google, after all, have no idea what Google want from site design

almostbob 866 Retired: passive income ROCKS

libraries of feed2html
the 'smarty' library
google rss feed readers

almostbob 866 Retired: passive income ROCKS
User-agent: *
Disallow: /temp/
Allow: /temp/abc.html

In practice this is a bad idea - it's too fragile. Someone may publish a link to your files on their site. Or it may turn up in a publicly accessible log file, of user's proxy server, or it will show up in someone's web server log as a Referer.
/robots.txt is not intended for access control
it's a "No Entry" sign, not a locked door.
If you have files on your web site that you don't want unauthorized people to access, configure your server to do authentication, and configure appropriate authorization. Basic Authentication has been around since the early days of the web (and in Apache on UNIX is trivial to configure).htaccess
content management systems support access controls on individual pages and collections of resources

almostbob 866 Retired: passive income ROCKS

In the "not index" pages

<script type='text/javascript'>
if (self.location == top.location) { self.location='/index.html?frame=' + self.location;
</script>

in the index page a reference to set the frame src to the 'frame' parameter if set, or to the home page if not set

//my scripting isnt this good
if (frame != "") {document.getElementbyID('frame').src= frame;}

Or in php asp the same can be done serverside and never serve the pages outside of the frameset

<frameset bgcolor="#eeeeee" rows="120,0" frameborder="0" bordercolor="#eeeeee">
<frame name="Header" src="/head.html" frameborder="0" title="Header" scrolling="no" noresize>
<?php If ($frame)
{Echo '<frame name="Details" src="/' , $frame , '" frameborder="0" title="Details" Scrolling="auto" Noresize>';
}
else
{Echo '<frame name="Details" src="/home.html" frameborder="0" title="Details" Scrolling="auto" Noresize>';
}
?>
</frameset>
almostbob 866 Retired: passive income ROCKS

This is chinese on my computer, with Chinese Simplified support installed.
My guess is it will show in Chinese on the developers pc too, for the same reason,
second guess is it displays online to all in chinese with chinese language support installed
to test, install the Simplified chinese language pack from MS and refresh the page

almostbob 866 Retired: passive income ROCKS

Childhood bliss, Love it
ladylove can we have this for supper ??

Camel

almostbob 866 Retired: passive income ROCKS

no

bbcode is a way to input some user modification without allowing html, and html security flaws, in that input
the output pages are still html and no effect on SE

almostbob 866 Retired: passive income ROCKS

Can you elaborate on number 4 please? Thanks.

importance on the site should be referenced on the home page, above the line where the 'average' fullscreen user's browser cuts the page off.
that cutoff is the 'fold line'

almostbob 866 Retired: passive income ROCKS

sorry, out of brain space,
redirect to a html page instead of an image ??
not sure it can be done either
it should be cause you can make <img src='filename'php'> for generated images
how about a html file with a breakout script that loads your page

Our image protect looks like this and has the site address

almostbob 866 Retired: passive income ROCKS

this is a hot topic and there are tutorials

AltLab

has my favorite, easy to follow, flexible

almostbob 866 Retired: passive income ROCKS

object unexpected, in frontpage is usually an unclosed quote
Sorry Dunno more

almostbob 866 Retired: passive income ROCKS

I put browsershots.org images into a prior post
it does dock at window bottom,
I dont have other ideas, that ie hack to keeps "goto top" link in the bottom corner of long pages

If it works for me and not for you there must a difference I guess between my host and yours

almostbob 866 Retired: passive income ROCKS

bignosebird.com has great cgi scripts

bnbform.cgi ::"Easy to install script that handles an unlimited number of forms. Configured via the html form: direct data to e-mail and/or file, enforce data entry, autorespond with custom message for each form, redirects based on result of script's validation, sequential counter"
I have it running on some budget sites without php

almostbob 866 Retired: passive income ROCKS

it works, good

almostbob 866 Retired: passive income ROCKS

does
export the posts
update
import the posts
reduce memory demand ?

almostbob 866 Retired: passive income ROCKS

Continuing the drop dead thought provoking sitting here watching while the time expired and I couldnt edit the post again,

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
<!--
.foot {width:95%; background:#66CCFF; border: 1px solid #000; bottom:0; position:fixed; text-align:center; height:50px }
-->
</style>
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="iestyles.css" />
<![endif]-->
</head>
<body>
<div class='foot'>This is a fixed footer</div>
</body>
</html>
//iestyles.css
.foot {width:95%; background:#66CCFF; border:1px solid #000; position:fixed; text-align:center; height:50px; top: expression(document.body.scrollTop + document.body.clientHeight - offsetHeight ); }
almostbob 866 Retired: passive income ROCKS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
<!--
.foot {width:95%; background:#66CCFF; border: 1px solid #000; bottom:0; position:fixed; text-align:center; height:50px }
-->
</style>
</head>
<body>
<div class='foot'>This is a fixed footer</div>
</body>
</html>

0px does not work because 0px is not a valid css measurementthe coorect measure is bottom:0;
javascript to perform css functions is out dated,
the javascript given seems specific to the IE DOM, Mozilla browsers use a different DOM

almostbob 866 Retired: passive income ROCKS

As well as the addurl link


goto the google webmaster tools page,
https://www.google.com/webmasters/tools/home
register and verify your site and ownership
add your sitemap
you get the responses to searches as they appear,
find ways to improve your SErank
improve keywords and indexes
and get a *bleep* load of reports on how your site is indexing

I definitely agree with submit the site first,
Google have a long list of 'improve your rank' blog entries, submitted by Google staffers

Backlinks - Work real backlinks from related, indexed sites
Backlink services - get you blacklisted and its much harder to get back in the index, than it is to get out

almostbob 866 Retired: passive income ROCKS

a popup, will get blocked on more browsers every day,
and get flagged as malicious,
whether it is or not
this code scrap creates a link that opens or closes a layer above the current page at the link location, put your contact details in it, and <?php include('poplayer.inc.php'); ?> or paste the code
wherever you want the link to appeartables are passe, its example code prettify it up with your css

<!--poplayer.inc.php-->
<script language="javascript" type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false; //check ie or ff
function hideIt(layer) {
 if (dom) {document.getElementById(layer).style.visibility='hidden';} //ie
 if (document.layers) {document.layers[layer].visibility='hide';} } //ff
function showIt(layer) {
 if (dom) {document.getElementById(layer).style.visibility='visible';}
 if (document.layers) {document.layers[layer].visibility='show';} }
//-->
</script>
<a href='#' onClick="showIt('layer1');">Contact Us</button>
<div id="layer1" style="visibility:hidden;">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right" onClick="hideIt('layer1')">Close</td>
</tr>
<tr>
<td>
<UL compact>
<li>in this case the content of the popup page goes in this div</li>
<li>bla bla bla bla</li>
<li>bla bla bla bla</li>
<li>bla bla bla bla</li>
<li>bla bla bla bla</li>
<li>bla bla bla bla</li>
<li>bla bla bla bla</li>
</ul>
</td>
</tr>
<tr>
<td align="right" onClick="hideIt('layer1')">Close</font>
</td>
</tr>
</table>
</div>
almostbob 866 Retired: passive income ROCKS

is the file being parsed as php
that is, is it on a server, either localhost with php installed (wamp, a phpIDE, or similar)
or on your remote server with php installed
and named filename.php so that the php parser knows to look at it.htm .html on your local machine without php installed will not work

kvprajapati commented: Gagan played +3
almostbob 866 Retired: passive income ROCKS
<?php
$to=stripslashes($_POST['to']);
if($to == '1'){
$to='mail@.gmail.com';
@mail($to, $subject, $body, $headers);
}

not sure but mail@.gmail.com is invalid, script will fail if $to=1, sometimes it will work, where another option is chosen,

afterthought
this validation could be included in the form page with a self referring form <form action=<?php echo $_SERVER['PHP_SELF']; ?> method= . . . . . tag could redisplay the form with the $_post values in the form fields and highlight any errored fields

almostbob 866 Retired: passive income ROCKS

mostly,
embedded media players are like the <img> tag
they take a number of parameters, size, filename, filetype, a href to the codec where applicable.
the exact process, depends on the filetype of the video
I use wmv on my home vids, the format my camera takes the video html to display asf/wmv looks like this

<A href="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></A><br>
<OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="fileName" VALUE="MYFILE"> <!-- configurable -->
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="PlayCount" VALUE="0">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="" name="MediaPlayer1" width=360 height=260 AutoStart=true></EMBED></object></p>

I have a number of video clips in a folder the php script, makes a folder full of .wmv or .asf files a playlist

<?php ob_start("ob_gzhandler"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"><meta name="distribution" content="global">
<meta http-equiv="content-Script-Type" content="text/javascript"><meta name="author" content="Rob Dockrey 2004">
<script type="text/javascript">
<!--//
function shrink(){
 document.getElementById("MediaPlayer1").style.width=384;
 document.getElementById("MediaPlayer1").style.height=300;
}
function enLarge(){
 document.getElementById("MediaPlayer1").style.width=480;
 document.getElementById("MediaPlayer1").style.height=402;
}
 //-->
</script>
<style type='text/css'>
<!--
.logo { background: transparent; color: #000000; text-align: right; font-size: 85%; top: auto; left: auto; bottom: 1px; right: 1px; position: fixed; }
//-->
</style>
<title>video - Entertainment</title>
</head><body><a name='top'></a>
<p class='logo'>
<button onclick="enLarge()">large</button>
<button onclick="shrink()">small</button>
<a class='button' href='..'>Main Menu</a>
<A href="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></A><br>
<OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="
       
almostbob 866 Retired: passive income ROCKS

expanding on AkonKagva's answer

<script type='text/javascript'>
<!--
var validatethis="<?php echo $_post['input1']; ?>";
// bla bla bla bla
-->
</script>
almostbob 866 Retired: passive income ROCKS
<style type='text/css'>
<!--
hr { width:80%; color :#ddeedd; background:#ddeedd; }
.hr1 { width:50%; color:#00ff00; background:#00ff00;text-align:center; }
.hr2 { width:75%; text-align:right; }
.mb { width:80%; border-bottom:5px solid #ff0000; }
-->
</style>
<!-- or in external stylesheet by preference -->
</head><body>
<hr />
<hr class='hr1' />
<hr class='hr2' />
<hr style='width:50%; height:5px; color:#ff0000; background:#ff0000;' />
<p class='mb'> this is a slightly tacky HR effect<br />in border-bottom</p>

color and background set to the same color, IE uses one, FF uses the other

almostbob 866 Retired: passive income ROCKS

In my IE 7 8, is centred
Mozilla centered
opera centered
avant centered

clear the ie cache and try again, may be old css files in the browser cache
put the site on http://www.browsershots.org to see what it looks like on a larger number of browsers

tinyurls make everyone assume you are a spammer or malware-er

almostbob 866 Retired: passive income ROCKS
<iframe style='top:100px;left:100px; position:fixed;' src='http://www.blablabla'></iframe>
<iframe style='top:100px;left:100px; position:relative;' src='http://www.blablabla></iframe>

first code remains fixed in position and the page scrolls around it
second code scrolls with the page

google search would have been "CSS positioning an iframe"

almostbob 866 Retired: passive income ROCKS

You load the template into Flash
and edit it

job description sucks?

almostbob 866 Retired: passive income ROCKS

php Traverser, by Jabba
Not mine,
it works
options to ** password protect some folders ** there is some information you may not want to share

almostbob 866 Retired: passive income ROCKS

Thanks, but is not it. It doesn't works, I mean... maybe is too old.
BTW, the M. Frontpage displays an object unexpected error at line 16 character 1, but there's only the button on that line.

the button is on line seventeen, some part, likely of the javascript didnt copy

almostbob 866 Retired: passive income ROCKS

it couldnt be as simple as the foldernames, Catagories categories, could it?
feel free to slap me by proxy if its a stupid response <p>__________________________________________________________</p> is easier to write as <hr /> or <hr class='hr2' /> for alternate styling(s)

almostbob 866 Retired: passive income ROCKS

round the sub totals to two(2) decimal places
the totals are 10.216 and 13.077 (or similar) displayed to two decimal places

round(10.216+13.076,2) = 23.29
round(10.216,2) + round(13.077,2) = 23.30

almostbob 866 Retired: passive income ROCKS

have you looked at layers
same/similar effect without the stigma attached to
something like

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false; //check if IE
function hideIt(layer) {
 if (dom) {document.getElementById(layer).style.visibility='hidden';} //ie dom
 if (document.layers) {document.layers[layer].visibility='hide';} } //moz ff dom
function showIt() {
 if (dom) {document.getElementById(layer).style.visibility='visible';}
 if (document.layers) {document.layers[layer].visibility='show';} }
onResize="window.location.href = window.location.href"
//--></script>
</head>
<body>
<button align="center" onClick="showIt('layer1');">Important Information</button>
<div id="layer1" style="position:fixed; left:20px; width:45%; top:20px; visibility:hidden;">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td Align="right" onClick="hideIt('layer1')">
<font Color="#ffffff"><Strong>Close</strong></font>
</td>
</tr>
<tr>
<td><font size="+1"><b>title</b>:</font></center>
bal bla bla
<UL compact>
<li>Of course the html can be anything at any size</li>
<li>sourced from anywhere</li>
<li>an iframe</li>
<li>ad script</li>
<li>open on unload</li>
</ul>
</td>
</tr>
<tr>
<td Align="right" onClick="hideIt('layer1')">
<font Color="#ffffff"><Strong>Close</strong></font>
</td>
</tr>
</table>
</div>
</body></html>

yeah I know tables suck, :) , havent looked carefully at this scrap in a while
perhaps <body onload="setTimeout(ShowIt('layer1'),5000);setTimeout(hideIt('layer1'),14000);setTimeout(ShowIt('layer2'),15000);">

almostbob 866 Retired: passive income ROCKS

my google query, was 'include thread teaser in title attribute'
theres a bunch of em

My simplest answer is to download a copy of vbulletin and read the code.
not knowing the data structure, just giving 'duh' column names
something like

select postheading firstpost href from postlist where readflag=nul

and output

echo '<a href=\''.$href.'\' title=\''.substr ( $firstpost, 0, 150 ).'\'>.$postheading.'</a>';

from the database