phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (894)
  • Announcements (20)
  • Development (516)
  • Mods & Hacks (28)


  • 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
  • Need help (Razor)
  • Need help (Razor)
  • Chaging the Time Zone in phpWebLog (FranKi)
  • IP blocking? (benny)
  • Improve phpweblog site performance (George)


  • Extra feature - Add news items to pages...
    Posted under Development by enter.nu on Wednesday August 23 2000 @ 03:27PM EDT

    Development I wonder if it would be usefull to make it possible to add news items to a specified page.

    I've done so with my site. When I add a story, I can select the page I want the story to appear on.

    It's very simple. I've created a listbox in contrib.php that checks which pages excist (out of T_Pages). I also added an extra field (named: onpage) to 'T_Stories' (mySQL).
    When the story is submitted it also writes the selected page in 'onpage'. To display those stories I've added the 'get story data' code to the pages.php file. With an extra 'if' statement like: if (onpage==page).....

    It might be interesting.
    Please check out: www.enter.nu and visit one of the pages (sorry, it's in dutch).




    < Can't add "include" pages | comments dissapearing >

    enter.nu writes on Monday September 11 2000 @ 02:07PM EDT: [ reply | parent ]
    I received an email of August asking me to give some extra info. I tried to reply to him. Unfortunately his emailadress fails.

    reply:
    -------
    I am not sure what message you're refering at. Probably the one about adding
    an extra feature to select on which page you add a story?
    Well there isn't much to tell.

    You'll have to figure out to WRITE a 'onpage' variable to the T_Stories
    table in your database. And you'll have to add some code that makes it
    possible to display it again, if it matches a certain page name.

    Concerning your stories you would like to have a 'add', 'edit/preview', and
    'submit' modification to fill the 'onpage' field in your T_Stories table.

    Also you would like to have the 'get story data' (out of stories.php) added
    to the pages.php code in order to display the stories on that particular
    page. (use an if statement, or else all the stories appear).

    That's pretty much it.

    It took me a while to figure out how I could pass the 'onpage' variable from
    the preview.php to the modes.php and submitting it into my database. This
    would probably be the hardest part of the job.

    Kind regards,

    Gerard


    Please let me know how you're doing.
    What is your website URL?



    -----Original Message-----
    From: A@web1.eyeintegrated.com [mailto:A@web1.eyeintegrated.com]
    Sent: Monday, 11 September, 2000 19:32
    To: enter.nu
    Subject: Your message at phpweblog


    Hi,

    I saw your message. Could you give me more exact instruction? Seems good on
    your site.

    August
    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
  • PHP 4.3.2RC3 Released
  • ActiveState Active Awards
  • Country Detection
  • PHP 4.3.2RC2 Released
  • My PHP.net
  • PHP 4.3.2RC1 Released
  • Grant Program
  • Set your own language preference
  • First Hungarian PHP Conference
  • PHP 4.3.1 released in response to CGI vulnerability

  • PHPBuilder
  • The Benefits of Using Objects with Databases
  • Interfacing with COM objects under Windows
  • Dynamic XML Conversion Using the SAX Parser
  • Arrays 101
  • Introduction to PHP5
  • Installing PHP-GTK on Linux
  • Installing PHP under BadBlue Web Server
  • Installing PHP under Xitami
  • A Test To See If You Write Sloppy Software
  • Switchbox


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