phpWebLog - web news management with adolescent sexist humor
find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (900)
  • Announcements (20)
  • Development (516)
  • Mods & Hacks (31)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • links.php (Anonymous)
  • fix_permissions.sh HELP (elen)
  • links.php (uytu)
  • last 5 comments mod (Jesper Mohr)
  • PHPWEBLOG FRENCH VERSION (Romarin)


  • How much "Story" do I want? - General
    Posted by Eric (Monday October 22 2001 @ 02:17PM EDT) views: 161
    'bout all of it. I'm needing help here. I'd like to display all of my story on the front page (then I'd limit the stories per page to one). Does anyone have any idea how I can do this?

    Thanks,
    Eric

    < Next unstable... | phpWebLog on Sourceforge >

    By Dylan (Tuesday October 23 2001 @ 06:36PM EDT)
    Easy...

    Disable story summaries (by setting length to 0).
    [ reply | parent ]
    By Eric (Wednesday October 24 2001 @ 08:44AM EDT)
    wrong... That just disables the summary, doesn't display the story until the user clicks on the title. I need the story displayed on the front page.
    [ reply | parent ]
    By Dylan (Sunday October 28 2001 @ 07:22AM EST)
    On my site, I have it configured to have '0' summary length and display 2 stories per page.

    If you have to have the commenting and stuff on the mainpage as well, you will have to hack the code, although it should be that hard. If a story ID isn't provided, make it pull the last one from the database.

    I just wrote some code to do this:

    if (empty($story)) {
    $sql = "SELECT Rid FROM T_Stories ";
    if ($CONF["Moderation"]>0 && empty($HTTP_COOKIE_VARS["phpWebLog"])) {
    $sql .= "WHERE Verified = 'Y'";
    }
    $sql .= "ORDER BY Birthstamp DESC LIMIT 1";

    $result = @mysql_query($sql,$db);
    $nrows = mysql_num_rows($result);
    if ($nrows == 1) {
    $A = mysql_fetch_array($result);
    $story = $A["Rid"];
    }
    }

    Goes after the includes and before the if(!empty($story)) in stories.php

    I hope that does what you want.
    [ reply | parent ]
    By Eric (Tuesday October 30 2001 @ 09:51AM EST)
    I will try that and let you know, thanks!
    [ reply | parent ]
    By Eric (Tuesday October 30 2001 @ 10:08AM EST)
    Well, it mostly works... When you go to stories.php it only displays the headlines (no summary no story). If you click on a Topic it does display no summary and all the stoy. However, if I have a story posted under one topic it suddenly appears in every other topic too.

    Check out my site (not quite done yet) to get a better idea of what it's doing. http://www.revolutiontoday.org

    I'm going to play a little and post again if I happen to stumble across usefull information.

    Thanks
    [ reply | parent ]
    By Eric (Tuesday October 30 2001 @ 10:36AM EST)
    Well, if I go to stories.php and not index.php then it does what I want.... Minus it doesn't respect the users topic selection. No matter what topic you click it gives you all stories. Do you have an idea on how I (being my php deficient self) would get it to respect the topic selection?

    Thanks,
    Eric
    [ reply | parent ]
    By Eric (Tuesday October 30 2001 @ 10:41AM EST)
    Check that, no matter what topic you click you only get the last story submitted. Hmmm....
    [ reply | parent ]
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:
    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net


    PHPBuilder



    phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications