|
|
Posted under Development by esoteric on Monday June 11 2001 @ 11:20PM EDT
Can someone explain how I can make picture link to "$comment"? Much like the "$logo".
which file would this information be stored?
*.inc.php
________ esoteric
Related Link
|
jason writes on Tuesday June 12 2001 @ 06:01PM EDT: [ reply | parent ]
The template variables are defined in layout.inc.php. I hope that's what you meant. ??
|
|
esoteric writes on Tuesday June 12 2001 @ 07:02PM EDT: [ reply | parent ]
actually what I need to do is change the "read more -- comment" to this "http://www.projectedoutcome.net/images/comment.gif"
Do you know how I can do this? I tried the summary.tmpl, no luck, then I just tried to look in the layout.inc.php this is whay I found:
$ncmts = F_count("T_Comments","TopRid",$A["Rid"]);
$vcmts = $ncmts > 1 ? _COMMENTS : _COMMENT;
if ($ncmts>0) {
$tmp = "(" . $ncmts . " " . $vcmts . ")";
} else {
$tmp = "-- " . _COMMENT;
}
if ($CONF["Comments"]>0) {
$comments = sprintf("" . _READMORE . " %s\n",$G_URL,$A["Rid"],$tmp);
} else {
$comments = sprintf("" . _READMORE . "\n",$G_URL,$A["Rid"]);
}
$modified = F_lastModified($A["Rid"]);
$views = _VIEWS . " " . $A["Hits"];
$templatefile = "/G_PATH/backend/template/index.html" . $LAYOUT["TMPL_Summary"] . "/summary.tmpl";
$imagedir = "/G_URL/backend/template/index.html" . $LAYOUT["TMPL_Summary"] . "/images";
$templ_arr = @file($templatefile);
$template = @implode("", $templ_arr);
$template = addslashes($template);
$tmp = "print \"" . $template . "\";";
print "\n\n";
print eval($tmp);
print "\n\n";
any idea how to pop the graphic into the summary block?
|
|
|
Nicklas writes on Wednesday June 13 2001 @ 04:50PM EDT: [ reply | parent ]
Can't you just change the text for "comments" and "read more" in the language file you're using (supposedly ENGLISH.LNG) ... just change it to etc...
|
|
|
jason writes on Wednesday June 13 2001 @ 05:00PM EDT: [ reply | parent ]
It's the lines above that define $comments.
You would just add a line like $comments = ""; before the template gets printed.
|
|
|
|
|