Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
I'd like to know how to modify Seabreeze to:
  • Posted: 06.11.2002, 20:56
     
    ezra-s
    rank:
    Freshman 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 icon_rolleyes ) 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.
  • Posted: 13.11.2002, 05:52
     
    zacsmith
    rank:
    Helper 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]&nbsp;&nbsp;$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
  • Posted: 18.11.2002, 21:56
     
    ezra-s
    rank:
    Freshman 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
  • Posted: 20.11.2002, 08:19
     
    damon
    rank:
    Softmore 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
  • Posted: 22.11.2002, 05:35
     
    ezra-s
    rank:
    Freshman Freshman
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.02
    Posts:
    11
    :D Thanks a lot I did use that code and now my theme look how I wanted. Thanks a lot :))

    --
    -daniel
    http://www.debian-gnu.com
  • Posted: 22.11.2002, 13:30
     
    damon
    rank:
    Softmore Softmore
    registered:
     December 1969
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    82
    Glad it worked for you.

    Damon
  • Posted: 24.11.2002, 00:49
     
    ezra-s
    rank:
    Freshman Freshman
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.02
    Posts:
    11
    Well.. I am just missing the "how many reads the article has".

    Do you know how to add that?

    --
    -daniel
    http://www.debian-gnu.com
  • Posted: 10.12.2002, 19:44
     
    ezra-s
    rank:
    Freshman 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
  • Posted: 12.01.2003, 02:46
     
    SMacnelly
    rank:
    Freshman Freshman
    registered:
     October 2002
    Status:
    offline
    last visit:
    16.12.03
    Posts:
    21
    How do I show the topic images in the main page?

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula