- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.02
- Posts:
- 11
I am no developer and know nothing of PHP so excuse my ignorance (point me to a nice tutorial and try to help me too,:twisted: )
I hardly managed to show topics images in news in the main screen (cause Seabreeze by default without images in main screen looks much worse
) but now I'd like to know how to modify Seabreeze to have a Read more link in the center column for stories. Also The usual parenthesis in which you can see how many people have read the article.. Everything in the main screen.
Can anyone explain me how to do that:?: I think Seabreeze is nice but lacks this simple things most themes have by default. -
- rank:
-
Helper
- registered:
- May 2002
- Status:
- offline
- last visit:
- 15.08.07
- Posts:
- 332
I was just looking at the code in the Seabreeze theme.php and I'll bet if you changed this:
Line 228
Code
echo "<font class=\"pn-sub\">$preformat[notes]</font><br>\n";
to this:
Code
echo "<font class=\"pn-sub\">$preformat[notes] $preformat[fulltext]</font><br>\n";
It would work. The [fulltext] functions are in the core module, but just not called by the theme. I don't happen to have Seabreeze installed anywhere I can test this, so be careful.
zack
--
Don't shoot me — I'm just the bass player.
http://www.youremployeehandbook.com
http://www.felinefollies.com
http://www.escapetot…southeasttravel.com
http://www.wheretoliveandgolf.com -
- rank:
-
Freshman
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.02
- Posts:
- 11
I havent had the chance to change it yet but I'll try the option if my test site to see how it works.. Thanks for answering and worrying about it :) I'll let you know when I change it and the results. Thanks again.
--
-daniel
http://www.debian-gnu.com -
- rank:
-
Softmore
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.11.08
- Posts:
- 82
I did this recently at http://www.TheBeachcats.com
I replaced this
Code
/************************************************************/
/* Function themeindex() */
/* This formats the articles/stories on the homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
echo "<p>\n"
."<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr>\n"
."<td><font class=\"pn-title\">$preformat[catandtitle]</font><br>\n"
."<font class=\"pn-normal\">$info[hometext]</font><br>\n";
if ($preformat['notes']){
echo "<font class=\"pn-sub\">$preformat[notes]</font><br>\n";
}
echo "<font class=\"pn-sub\">"._PUBLISHED." $info[briefdatetime]</font>\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</p>\n";
With This
Code
/************************************************************/
/* Function themeindex() */
/* This formats the articles/stories on the homepage */
/************************************************************/
function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
echo "<p>\n"
."<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
."<tr>\n"
."<td colspan=\"2\"\"\"><font class=\"pn-title\">$preformat[catandtitle]</font><br>\n"
."<font class=\"pn-normal\">$info[hometext]</font><br>\n";
if ($preformat['notes']){
echo "<font class=\"pn-sub\">$preformat[notes]</font><br>\n";
}
echo "</td></tr><tr><td align=\"left\" class=\"pn-sub\">$info[briefdatetime]</td><td align=\"right\" class=\"pn-sub\">$preformat[more]\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</p>\n";
HTH,
Damon -
- rank:
-
Freshman
- registered:
- December 1969
- Status:
- offline
- last visit:
- 30.12.02
- Posts:
- 11
Anyone knows how to add at the beginning of any news the usual phrase "anoymous posted" or "menganito wrote:" so anyone can see who has written each news? :P
--
-daniel
http://www.debian-gnu.com
