Updating Your Journal


Clicking on Your Journal lists your current journal entries and provides a link to add a new entry. Figure 17.2 shows the Add Journal Entry page: Provide a title for the entry, and then enter the entry text. As noted on the page, HTML tags are fine, and you should wrap paragraphs in the <p> and </p> tags to provide the proper line breaks in between paragraphs. You can also select an icon to go with your entry, if desired. Finally, you have the option to make each entry public or private: Only you can view private entries, while public entries are accessible to everyone who has access to the Journal module.

Figure 17.2. Adding a journal entry.


HTML tags allow within journal entries the usual culprits:

  • <b> boldfaces text. Just pick whatever you want to be boldfaced, and surround it with <b> and </b>.

  • <i> works similar to boldfacing, except that it italicizes. Whatever you want to be in <i>italics</i> should be surrounded by these tags.

  • <u> handles underlining; just surround text with the tags to make that text <u>underlined</u>.

    UNDER THE HOOD

    Blogscan be fun, but they're not always free. The fact that PHP-Nuke includes a blog feature (although it's called a journal) is often overlooked, but it's a great service to offer to your users. Commercial blog hosts like www.blog.com charge as much as $9 a month for a blog (although basic service is free); you may consider making your Journal module available to subscribers who pay for the feature.

    Like most everything else in PHP-Nuke, journals take up database space. Your Web host may (and probably does) place an upper limit on howmuch database space you can use, and journals don't automatically delete old entries, so they can contribute to a filled-up database. Just keep an eye on your users' journal utilization, and be prepared to make journals a paid portion of your site or to shut off the feature, if necessary. But don't fret too much at first: A 500-word journal entry takes up only about 3,000 bytes of information. You can fit well over 300 of these entries in a megabyte of database space.


  • To create images in your journal entry, use a tag like this: <img src="http://www.mywebsite.com/images/mypicture.gif">. The src portion points to a graphic file that's living on a Web server someplace, which means the image tag enables you to insert a picture into your text.

It probably makes the most sense to make your journal entries public; after all, that's pretty much the point of the whole module. However, making an entry private does allow you time to edit the entry and get it perfect before making it public. As shown in Figure 17.3, you can edit (or delete) any of your own entries; the list of entries conveniently indicates which ones are currently public or private.

Figure 17.3. Listing journal entries for editing or deletion.




    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net